per-board bans

This commit is contained in:
Savetheinternet 2011-07-27 13:40:27 +10:00
parent f33848a3ac
commit 4c1935a6b6
4 changed files with 78 additions and 28 deletions

View file

@ -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']))