本文整理汇总了PHP中Logging::LogBadPasswd方法的典型用法代码示例。如果您正苦于以下问题:PHP Logging::LogBadPasswd方法的具体用法?PHP Logging::LogBadPasswd怎么用?PHP Logging::LogBadPasswd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logging
的用法示例。
在下文中一共展示了Logging::LogBadPasswd方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
}
if ($res) {
if ($dis) {
$page->smarty->assign('error', "Your account has been disabled.");
} else {
if ($page->users->checkPassword($_POST["password"], $res["password"], $res['id'])) {
$rememberMe = isset($_POST['rememberme']) && $_POST['rememberme'] == 'on' ? 1 : 0;
$page->users->login($res["id"], $_SERVER['REMOTE_ADDR'], $rememberMe);
if (isset($_POST["redirect"]) && $_POST["redirect"] != "") {
header("Location: " . $_POST["redirect"]);
} else {
header("Location: " . WWW_TOP . $page->settings->home_link);
}
die;
} else {
$page->smarty->assign('error', "Incorrect username or password.");
$logging->LogBadPasswd($_POST["username"], $_SERVER['REMOTE_ADDR']);
}
}
} else {
$page->smarty->assign('error', "Incorrect username or password.");
$logging->LogBadPasswd($_POST["username"], $_SERVER['REMOTE_ADDR']);
}
}
}
$page->smarty->assign('redirect', isset($_GET['redirect']) ? $_GET['redirect'] : '');
$page->meta_title = "Login";
$page->meta_keywords = "Login";
$page->meta_description = "Login";
$page->content = $page->smarty->fetch('login.tpl');
$page->render();