1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 17:31:00 +01:00
This commit is contained in:
8chan 2014-12-31 22:39:49 -08:00
parent aa5d0e6e4b
commit a7adf844eb

View File

@ -218,6 +218,11 @@ elseif (isset($_POST['post'])) {
if (!openBoard($post['board']))
error($config['error']['noboard']);
checkDNSBL();
// 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']))
@ -257,11 +262,6 @@ elseif (isset($_POST['post'])) {
error($config['error']['referer']);
}
checkDNSBL();
// Check if banned
checkBan($board['uri']);
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
require 'inc/mod/auth.php';
check_login(false);