本文整理汇总了PHP中cAdvancedSecurity::IsSysAdmin方法的典型用法代码示例。如果您正苦于以下问题:PHP cAdvancedSecurity::IsSysAdmin方法的具体用法?PHP cAdvancedSecurity::IsSysAdmin怎么用?PHP cAdvancedSecurity::IsSysAdmin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cAdvancedSecurity
的用法示例。
在下文中一共展示了cAdvancedSecurity::IsSysAdmin方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cAdvancedSecurity
function Page_Init()
{
global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn() || $Security->IsSysAdmin()) {
$this->Page_Terminate("login.php");
}
$Security->LoadCurrentUserLevel($this->ProjectID . 'usuario');
$this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
// Set up curent action
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
}
示例2: cAdvancedSecurity
function Page_Init()
{
global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
global $tbl_user;
// Security
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
$Security->AutoLogin();
}
if (!$Security->IsLoggedIn() || $Security->IsSysAdmin()) {
$this->Page_Terminate("login.php");
}
$Security->LoadCurrentUserLevel('tbl_user');
// Global Page Loading event (in userfn*.php)
Page_Loading();
// Page Load event
$this->Page_Load();
}