Browse Source

fixed banned redirect i think (#270)

* fixed banned redirect i think

my tinyboard script has been altered a lot but i think this is the fix for the wrong ban redirect.

* maybe it's just this
main
H0K4 7 years ago
committed by Fredrick Brennan
parent
commit
b3e16cfa0d
  1. 6
      post.php

6
post.php

@ -378,6 +378,10 @@ if (isset($_POST['delete'])) {
if (!$dropped_post) {
// Check if banned
checkBan($board['uri']);
// Check for CAPTCHA right after opening the board so the "return" link is in there
if ($config['recaptcha']) {
if (!isset($_POST['g-recaptcha-response']))
@ -418,8 +422,6 @@ if (isset($_POST['delete'])) {
checkDNSBL();
// Check if banned
checkBan($board['uri']);
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
check_login(false);

Loading…
Cancel
Save