本文整理匯總了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>