forked from GithubBackups/tinyib
parent
e59927290b
commit
392609cab8
16
imgboard.php
16
imgboard.php
@ -254,6 +254,12 @@ foreach ($includes as $include) {
|
||||
require $include;
|
||||
}
|
||||
|
||||
list($account, $loggedin, $isadmin) = manageCheckLogIn(false);
|
||||
|
||||
if (!$loggedin) {
|
||||
checkBanned();
|
||||
}
|
||||
|
||||
$redirect = true;
|
||||
// Check if the request is to make a post
|
||||
if (!isset($_GET['delete']) && !isset($_GET['manage']) && (isset($_POST['name']) || isset($_POST['email']) || isset($_POST['subject']) || isset($_POST['message']) || isset($_POST['file']) || isset($_POST['embed']) || isset($_POST['password']))) {
|
||||
@ -261,15 +267,13 @@ if (!isset($_GET['delete']) && !isset($_GET['manage']) && (isset($_POST['name'])
|
||||
fancyDie(__('Posting is currently disabled.<br>Please try again in a few moments.'));
|
||||
}
|
||||
|
||||
list($account, $loggedin, $isadmin) = manageCheckLogIn(false);
|
||||
if (!$loggedin) {
|
||||
checkCAPTCHA(TINYIB_CAPTCHA);
|
||||
checkFlood();
|
||||
}
|
||||
|
||||
$rawpost = isRawPost();
|
||||
$rawposttext = '';
|
||||
if (!$loggedin) {
|
||||
checkCAPTCHA(TINYIB_CAPTCHA);
|
||||
checkBanned();
|
||||
checkFlood();
|
||||
}
|
||||
if (!$rawpost) {
|
||||
checkMessageSize();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user