summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php22
1 files changed, 9 insertions, 13 deletions
diff --git a/post.php b/post.php
index 160dbf9c..345a622a 100644
--- a/post.php
+++ b/post.php
@@ -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']))