本文整理汇总了PHP中MEMBER::isLoggedIn方法的典型用法代码示例。如果您正苦于以下问题:PHP MEMBER::isLoggedIn方法的具体用法?PHP MEMBER::isLoggedIn怎么用?PHP MEMBER::isLoggedIn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MEMBER
的用法示例。
在下文中一共展示了MEMBER::isLoggedIn方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
// 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');