本文整理汇总了PHP中BaseUser::AuthenticateNoCookie方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseUser::AuthenticateNoCookie方法的具体用法?PHP BaseUser::AuthenticateNoCookie怎么用?PHP BaseUser::AuthenticateNoCookie使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseUser
的用法示例。
在下文中一共展示了BaseUser::AuthenticateNoCookie方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: EventTiming
include "base_conf.php";
include "{$BASE_path}/includes/base_constants.inc.php";
include "{$BASE_path}/includes/base_include.inc.php";
include_once "{$BASE_path}/base_db_common.php";
include_once "{$BASE_path}/base_common.php";
include_once "{$BASE_path}/base_stat_common.php";
include_once "{$BASE_path}/setup/setup_db.inc.php";
$et = new EventTiming($debug_time_mode);
$cs = new CriteriaState("base_maintenance.php");
$cs->ReadState();
// Check role out and redirect if needed -- Kevin
$roleneeded = 10000;
$BUser = new BaseUser();
if ($Use_Auth_System == 1) {
if ($_POST['standalone'] == "yes") {
$usrrole = $BUser->AuthenticateNoCookie(filterSql($_POST['user']), filterSql($_POST['pwd']));
if ($usrrole == "Failed") {
base_header('HTTP/1.0 401');
}
if ($usrrole > $roleneeded) {
base_header('HTTP/1.0 403');
}
} elseif ($BUser->hasRole($roleneeded) == 0) {
base_header("Location: " . $BASE_urlpath . "/index.php");
}
}
$page_title = gettext("Maintenance");
PrintBASESubHeader($page_title, $page_title, $cs->GetBackLink(), 1);
$submit = ImportHTTPVar("submit", VAR_ALPHA | VAR_SPACE);
?>
<br>