本文整理汇总了PHP中member::login_log方法的典型用法代码示例。如果您正苦于以下问题:PHP member::login_log方法的具体用法?PHP member::login_log怎么用?PHP member::login_log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类member
的用法示例。
在下文中一共展示了member::login_log方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: convert
if ($MOD['passport'] && $MOD['passport'] != 'uc') {
$api_url = '';
$user['password'] = is_md5($password) ? $password : md5($password);
//Once MD5
if (strtoupper($MOD['passport_charset']) != DT_CHARSET) {
$user = convert($user, DT_CHARSET, $MOD['passport_charset']);
}
extract($user);
include DT_ROOT . '/api/' . $MOD['passport'] . '.inc.php';
if ($api_url) {
$forward = $api_url;
}
}
#if($MOD['sso']) include DT_ROOT.'/api/sso.inc.php';
if ($DT['login_log'] == 2) {
$do->login_log($username, $password, $user['passsalt'], 0);
}
if ($api_msg) {
message($api_msg, $forward, -1);
}
message($api_msg, $forward);
} else {
if ($DT['login_log'] == 2) {
$do->login_log($username, $password, $user['passsalt'], 0, $do->errmsg);
}
message($do->errmsg);
}
} else {
if ($DT_TOUCH) {
dheader($EXT['mobile_url'] . 'login.php?forward=' . urlencode($forward));
}
示例2: dalert
if ($DT['admin_week'] && !check_period($DT['admin_week']) || $DT['admin_hour'] && !check_period($DT['admin_hour'])) {
set_cookie('auth', '');
dalert('未被允许的管理时间', $MODULE[2]['linkurl'] . 'logout.php?forward=' . urlencode(DT_PATH));
}
}
if ($CFG['authadmin'] == 'cookie') {
set_cookie($secretkey, $user['userid']);
} else {
$_SESSION[$secretkey] = $user['userid'];
}
require DT_ROOT . '/admin/admin.class.php';
$admin = new admin();
$admin->cache_right($user['userid']);
$admin->cache_menu($user['userid']);
if ($DT['login_log']) {
$do->login_log($username, $password, 1);
}
dheader($forward);
} else {
if ($DT['login_log']) {
$do->login_log($username, $password, 1, $do->errmsg);
}
msg($do->errmsg);
}
} else {
if (strpos($DT_URL, DT_PATH) === false) {
dheader(DT_PATH . basename(get_env('self')));
}
$username = isset($username) ? $username : $_username;
include tpl('login');
}