Пример #1
0
    if ($CONF['secureCookieKey'] !== 'none') {
        $ck = md5($ck . $CONF['secureCookieKeyIP']);
    }
    $res = $member->cookielogin(cookieVar($CONF['CookiePrefix'] . 'user'), $ck);
    unset($ck);
    // renew cookies when not on a shared computer
    if ($res && cookieVar($CONF['CookiePrefix'] . 'sharedpc') != 1 && !headers_sent()) {
        $member->setCookieKey(cookieVar($CONF['CookiePrefix'] . 'loginkey'));
        $member->setCookies();
    }
}
// login completed
$manager->notify('PostAuthentication', array('loggedIn' => $member->isLoggedIn()));
ticketForPlugin();
// first, let's see if the site is disabled or not. always allow admin area access.
if ($CONF['DisableSite'] && !$member->isAdmin() && !$CONF['UsingAdminArea']) {
    redirect($CONF['DisableSiteURL']);
    exit;
}
// load other classes
include $DIR_LIBS . 'PARSER.php';
include $DIR_LIBS . 'SKIN.php';
include $DIR_LIBS . 'TEMPLATE.php';
include $DIR_LIBS . 'BLOG.php';
include $DIR_LIBS . 'BODYACTIONS.php';
include $DIR_LIBS . 'COMMENTS.php';
include $DIR_LIBS . 'COMMENT.php';
//include($DIR_LIBS . 'ITEM.php');
include $DIR_LIBS . 'NOTIFICATION.php';
include $DIR_LIBS . 'BAN.php';
include $DIR_LIBS . 'PAGEFACTORY.php';