示例#1
0
            fancyDie('Invalid password.');
        }
    } else {
        fancyDie('Sorry, an invalid post identifier was sent.  Please go back, refresh the page, and try again.');
    }
    $redirect = false;
    // Check if the request is to access the management area
} elseif (isset($_GET['manage'])) {
    $text = '';
    $onload = '';
    $navbar = ' ';
    $redirect = false;
    $loggedin = false;
    $isadmin = false;
    $returnlink = basename($_SERVER['PHP_SELF']);
    list($loggedin, $isadmin) = manageCheckLogIn();
    if ($loggedin) {
        if ($isadmin) {
            if (isset($_GET['rebuildall'])) {
                $allthreads = allThreads();
                foreach ($allthreads as $thread) {
                    rebuildThread($thread['id']);
                }
                rebuildIndexes();
                $text .= manageInfo('Rebuilt board.');
            } elseif (isset($_GET['bans'])) {
                clearExpiredBans();
                if (isset($_POST['ip'])) {
                    if ($_POST['ip'] != '') {
                        $banexists = banByIP($_POST['ip']);
                        if ($banexists) {
示例#2
0
function isRawPost()
{
    if (isset($_POST['rawpost'])) {
        list($loggedin, $isadmin) = manageCheckLogIn();
        if ($loggedin) {
            return true;
        }
    }
    return false;
}