Exemplo n.º 1
0
    // secure cookie key
    $ck = substr($ck, 0, 32);
    // avoid md5 collision by using a long key
    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');