diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-07-27 13:40:27 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-07-27 13:40:27 +1000 |
| commit | 4c1935a6b6ec8d8cb95c6b5af3399927d30fbe66 (patch) | |
| tree | fa4589931153016cb73eab3fbf80bc13e08b8f2f /post.php | |
| parent | f33848a3acb010cfd21b7087f92293038c9f6d4f (diff) | |
per-board bans
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'])) |
