diff options
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -36,17 +36,15 @@ } } - - - // Check if banned - checkBan(); - checkDNSBL(); // Check if board exists if(!openBoard($_POST['board'])) error($config['error']['noboard']); + // Check if banned + checkBan($board['uri']); + if(empty($delete)) error($config['error']['nodelete']); @@ -96,17 +94,15 @@ } } - - - // Check if banned - checkBan(); - checkDNSBL(); // Check if board exists if(!openBoard($_POST['board'])) error($config['error']['noboard']); + // Check if banned + checkBan($board['uri']); + if(empty($report)) error($config['error']['noreport']); @@ -174,15 +170,15 @@ if(time()-$user['appeared']<LURKTIME) error(ERROR_LURK); */ - // Check if banned - checkBan(); - checkDNSBL(); // Check if board exists if(!openBoard($post['board'])) error($config['error']['noboard']); + // 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['recaptcha_challenge_field']) || !isset($_POST['recaptcha_response_field'])) |
