mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-26 23:09:02 +01:00
Close ctrlcctrlv/infinity#161
This commit is contained in:
parent
aa5d0e6e4b
commit
a7adf844eb
10
post.php
10
post.php
@ -218,6 +218,11 @@ elseif (isset($_POST['post'])) {
|
|||||||
if (!openBoard($post['board']))
|
if (!openBoard($post['board']))
|
||||||
error($config['error']['noboard']);
|
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
|
// Check for CAPTCHA right after opening the board so the "return" link is in there
|
||||||
if ($config['recaptcha']) {
|
if ($config['recaptcha']) {
|
||||||
if (!isset($_POST['recaptcha_challenge_field']) || !isset($_POST['recaptcha_response_field']))
|
if (!isset($_POST['recaptcha_challenge_field']) || !isset($_POST['recaptcha_response_field']))
|
||||||
@ -257,11 +262,6 @@ elseif (isset($_POST['post'])) {
|
|||||||
error($config['error']['referer']);
|
error($config['error']['referer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
checkDNSBL();
|
|
||||||
|
|
||||||
// Check if banned
|
|
||||||
checkBan($board['uri']);
|
|
||||||
|
|
||||||
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
|
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
|
||||||
require 'inc/mod/auth.php';
|
require 'inc/mod/auth.php';
|
||||||
check_login(false);
|
check_login(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user