post.php: load config earlier
This commit is contained in:
parent
df077197bb
commit
8e9db69375
8
post.php
8
post.php
@ -150,6 +150,10 @@ if (isset($_POST['delete'])) {
|
||||
if (!isset($_POST['body'], $_POST['board']))
|
||||
error($config['error']['bot']);
|
||||
|
||||
// Check if board exists
|
||||
if (!openBoard($post['board']))
|
||||
error($config['error']['noboard']);
|
||||
|
||||
if (!isset($_POST['name']))
|
||||
$_POST['name'] = $config['anonymous'];
|
||||
|
||||
@ -184,10 +188,6 @@ if (isset($_POST['delete'])) {
|
||||
|
||||
checkDNSBL();
|
||||
|
||||
// Check if board exists
|
||||
if (!openBoard($post['board']))
|
||||
error($config['error']['noboard']);
|
||||
|
||||
// Check if banned
|
||||
checkBan($board['uri']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user