當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseUser::AuthenticateNoCookie方法代碼示例

本文整理匯總了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>
開發者ID:jhbsz,項目名稱:ossimTest,代碼行數:31,代碼來源:base_maintenance.php


注:本文中的BaseUser::AuthenticateNoCookie方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。