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(); }
function Page_Init() { global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm; // Security $Security = new cAdvancedSecurity(); if (!$Security->IsLoggedIn()) { $Security->AutoLogin(); } if (!$Security->IsLoggedIn() || $Security->IsSysAdmin()) { $this->Page_Terminate(ew_GetUrl("login.php")); } $Security->LoadCurrentUserLevel($this->ProjectID . 'usuarios'); $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"]; // Set up current action // Global Page Loading event (in userfn*.php) Page_Loading(); // Page Load event $this->Page_Load(); // Check token if (!$this->ValidPost()) { echo $Language->Phrase("InvalidPostRequest"); $this->Page_Terminate(); exit; } // Create Token $this->CreateToken(); }
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(); }