예제 #1
0
 function Page_Main()
 {
     global $conn;
     $GLOBALS["Page"] =& $this;
     //**$conn = ew_Connect();
     // Get fn / table name parameters
     $key = EW_RANDOM_KEY . session_id();
     $fn = @$_GET["fn"] != "" ? ew_StripSlashes($_GET["fn"]) : "";
     if ($fn != "" && EW_ENCRYPT_FILE_PATH) {
         $fn = ew_Decrypt($fn, $key);
     }
     $table = @$_GET["t"] != "" ? ew_StripSlashes($_GET["t"]) : "";
     if ($table != "" && EW_ENCRYPT_FILE_PATH) {
         $table = ew_Decrypt($table, $key);
     }
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         exit;
     }
     // No permission
     // Global Page Loading event (in userfn*.php)
     //**Page_Loading();
     // Get resize parameters
     $resize = @$_GET["resize"] != "";
     $width = @$_GET["width"] != "" ? $_GET["width"] : 0;
     $height = @$_GET["height"] != "" ? $_GET["height"] : 0;
     if (@$_GET["width"] == "" && @$_GET["height"] == "") {
         $width = EW_THUMBNAIL_DEFAULT_WIDTH;
         $height = EW_THUMBNAIL_DEFAULT_HEIGHT;
     }
     // Resize image from physical file
     if ($fn != "") {
         $fn = str_replace("", "", $fn);
         $info = pathinfo($fn);
         $fn = ew_PathCombine(ew_AppRoot(), $info["dirname"], TRUE) . $info["basename"];
         if (file_exists($fn) || @fopen($fn, "rb") !== FALSE) {
             // Allow remote file
             if (ob_get_length()) {
                 ob_end_clean();
             }
             $pathinfo = pathinfo($fn);
             $ext = strtolower(@$pathinfo["extension"]);
             $ct = ew_ContentType("", $fn);
             if ($ct != "") {
                 header("Content-type: " . $ct);
             }
             if (in_array($ext, explode(",", EW_IMAGE_ALLOWED_FILE_EXT))) {
                 $size = @getimagesize($fn);
                 if ($size) {
                     header("Content-type: {$size['mime']}");
                 }
                 if ($width > 0 || $height > 0) {
                     echo ew_ResizeFileToBinary($fn, $width, $height);
                 } else {
                     echo file_get_contents($fn);
                 }
             } elseif (in_array($ext, explode(",", EW_DOWNLOAD_ALLOWED_FILE_EXT))) {
                 echo file_get_contents($fn);
             }
         }
     }
     // Global Page Unloaded event (in userfn*.php)
     //**Page_Unloaded();
     // Close connection
     //**ew_CloseConn();
 }
예제 #2
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // User profile
     $UserProfile = new cUserProfile();
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if ($Security->IsLoggedIn()) {
         $Security->TablePermission_Loading();
     }
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     if ($Security->IsLoggedIn()) {
         $Security->TablePermission_Loaded();
     }
     if (!$Security->CanDelete()) {
         $Security->SaveLastUrl();
         $this->setFailureMessage($Language->Phrase("NoPermission"));
         // Set no permission
         if ($Security->CanList()) {
             $this->Page_Terminate(ew_GetUrl("banklist.php"));
         } else {
             $this->Page_Terminate(ew_GetUrl("login.php"));
         }
     }
     if ($Security->IsLoggedIn()) {
         $Security->UserID_Loading();
         $Security->LoadUserID();
         $Security->UserID_Loaded();
     }
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     $this->BANK_ID->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // 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, $GiftCertificates;
     global $Security;
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Global page loading event (in userfn6.php)
     Page_Loading();
     // Page load event, used in current page
     $this->Page_Load();
 }
예제 #4
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Get export parameters
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $this->Export = $_POST["exporttype"];
         }
     } else {
         $this->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExport = $this->Export;
     // Get export parameter, used in header
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     if (@$_GET["guru_id"] != "") {
         if ($gsExportFile != "") {
             $gsExportFile .= "_";
         }
         $gsExportFile .= ew_StripSlashes($_GET["guru_id"]);
     }
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Setup export options
     $this->SetupExportOptions();
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
     // Update url if printer friendly for Pdf
     if ($this->PrinterFriendlyForPdf) {
         $this->ExportOptions->Items["pdf"]->Body = str_replace($this->ExportPdfUrl, $this->ExportPrintUrl . "&pdf=1", $this->ExportOptions->Items["pdf"]->Body);
     }
 }
예제 #5
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Get export parameters
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $this->Export = $_POST["exporttype"];
         }
     } else {
         $this->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExport = $this->Export;
     // Get export parameter, used in header
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up curent action
     // Get grid add count
     $gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
     if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
         $this->GridAddRowCount = $gridaddcnt;
     }
     // Set up list options
     $this->SetupListOptions();
     // Setup export options
     $this->SetupExportOptions();
     $this->id->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
     // Setup other options
     $this->SetupOtherOptions();
     // Set "checkbox" visible
     if (count($this->CustomActions) > 0) {
         $this->ListOptions->Items["checkbox"]->Visible = TRUE;
     }
     // Update url if printer friendly for Pdf
     if ($this->PrinterFriendlyForPdf) {
         $this->ExportOptions->Items["pdf"]->Body = str_replace($this->ExportPdfUrl, $this->ExportPrintUrl . "&pdf=1", $this->ExportOptions->Items["pdf"]->Body);
     }
 }
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     global $order;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Get export parameters
     if (@$_GET["export"] != "") {
         $order->Export = $_GET["export"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $order->Export = $_POST["exporttype"];
         }
     } else {
         $order->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExport = $order->Export;
     // Get export parameter, used in header
     $gsExportFile = $order->TableVar;
     // Get export file, used in header
     // 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;
     // User profile
     $UserProfile = new cUserProfile();
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if ($Security->IsLoggedIn()) {
         $Security->TablePermission_Loading();
     }
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     if ($Security->IsLoggedIn()) {
         $Security->TablePermission_Loaded();
     }
     if (!$Security->CanEdit()) {
         $Security->SaveLastUrl();
         $this->setFailureMessage($Language->Phrase("NoPermission"));
         // Set no permission
         if ($Security->CanList()) {
             $this->Page_Terminate(ew_GetUrl("bank_accountlist.php"));
         } else {
             $this->Page_Terminate(ew_GetUrl("login.php"));
         }
     }
     if ($Security->IsLoggedIn()) {
         $Security->UserID_Loading();
         $Security->LoadUserID();
         $Security->UserID_Loaded();
     }
     // Create form object
     $objForm = new cFormObj();
     $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;
     }
     // Process auto fill
     if (@$_POST["ajax"] == "autofill") {
         $results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
         if ($results) {
             // Clean output buffer
             if (!EW_DEBUG_ENABLED && ob_get_length()) {
                 ob_end_clean();
             }
             echo $results;
             $this->Page_Terminate();
             exit;
         }
     }
     // Create Token
     $this->CreateToken();
 }
예제 #8
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate(ew_GetUrl("login.php"));
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     $Security->TablePermission_Loaded();
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // 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 $userinfo;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
 }
예제 #10
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $this->Page_Terminate(ew_GetUrl("login.php"));
     }
     // Create form object
     $objForm = new cFormObj();
     $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;
     }
     // Process auto fill
     if (@$_POST["ajax"] == "autofill") {
         $results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
         if ($results) {
             // Clean output buffer
             if (!EW_DEBUG_ENABLED && ob_get_length()) {
                 ob_end_clean();
             }
             echo $results;
             $this->Page_Terminate();
             exit;
         }
     }
     // Create Token
     $this->CreateToken();
 }
예제 #11
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     global $tbl_facebook_stat;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->TableName);
     $Security->TablePermission_Loaded();
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     if (!$Security->CanList()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Create form object
     $objForm = new cFormObj();
     // Get export parameters
     if (@$_GET["export"] != "") {
         $tbl_facebook_stat->Export = $_GET["export"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $tbl_facebook_stat->Export = $_POST["exporttype"];
         }
     } else {
         $tbl_facebook_stat->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExport = $tbl_facebook_stat->Export;
     // Get export parameter, used in header
     $gsExportFile = $tbl_facebook_stat->TableVar;
     // Get export file, used in header
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
 }
예제 #12
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $this->Page_Terminate(ew_GetUrl("login.php"));
     }
     // Create form object
     $objForm = new cFormObj();
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Get grid add count
     $gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
     if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
         $this->GridAddRowCount = $gridaddcnt;
     }
     // Set up list options
     $this->SetupListOptions();
     // 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;
     }
     // Process auto fill
     if (@$_POST["ajax"] == "autofill") {
         $results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
         if ($results) {
             // Clean output buffer
             if (!EW_DEBUG_ENABLED && ob_get_length()) {
                 ob_end_clean();
             }
             echo $results;
             $this->Page_Terminate();
             exit;
         }
     }
     // Create Token
     $this->CreateToken();
     // Setup other options
     $this->SetupOtherOptions();
     // Set up custom action (compatible with old version)
     foreach ($this->CustomActions as $name => $action) {
         $this->ListActions->Add($name, $action);
     }
     // Show checkbox column if multiple action
     foreach ($this->ListActions->Items as $listaction) {
         if ($listaction->Select == EW_ACTION_MULTIPLE && $listaction->Allow) {
             $this->ListOptions->Items["checkbox"]->Visible = TRUE;
             break;
         }
     }
 }
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate(ew_GetUrl("login.php"));
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     $Security->TablePermission_Loaded();
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     if ($Security->IsLoggedIn() && strval($Security->CurrentUserID()) == "") {
         $this->setFailureMessage($Language->Phrase("NoPermission"));
         // Set no permission
         $this->Page_Terminate(ew_GetUrl("gastos_mantenimientoslist.php"));
     }
     // Get grid add count
     $gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
     if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
         $this->GridAddRowCount = $gridaddcnt;
     }
     // Set up list options
     $this->SetupListOptions();
     $this->codigo->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // 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;
     }
     // Process auto fill
     if (@$_POST["ajax"] == "autofill") {
         $results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
         if ($results) {
             // Clean output buffer
             if (!EW_DEBUG_ENABLED && ob_get_length()) {
                 ob_end_clean();
             }
             echo $results;
             $this->Page_Terminate();
             exit;
         }
     }
     // Create Token
     $this->CreateToken();
     // Setup other options
     $this->SetupOtherOptions();
 }
예제 #14
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate(ew_GetUrl("cciag_login.php"));
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel(CurrentProjectID() . 'tramites');
     $Security->TablePermission_Loaded();
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Page Load event
     $this->Page_Load();
     // Check token
     if (!$this->ValidPost()) {
         echo $Language->Phrase("InvalidPostRequest");
         $this->Page_Terminate();
         exit;
     }
     // Create Token
     $this->CreateToken();
 }
예제 #15
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate(ew_GetUrl("cciag_login.php"));
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     $Security->TablePermission_Loaded();
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     if ($Security->IsLoggedIn() && strval($Security->CurrentUserID()) == "") {
         $this->setFailureMessage($Language->Phrase("NoPermission"));
         // Set no permission
         $this->Page_Terminate(ew_GetUrl("cciag_deudaslist.php"));
     }
     // Get export parameters
     $custom = "";
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
         $custom = @$_GET["custom"];
     } elseif (@$_POST["export"] != "") {
         $this->Export = $_POST["export"];
         $custom = @$_POST["custom"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $this->Export = $_POST["exporttype"];
         }
         $custom = @$_POST["custom"];
     } else {
         $this->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     if (@$_GET["id"] != "") {
         if ($gsExportFile != "") {
             $gsExportFile .= "_";
         }
         $gsExportFile .= ew_StripSlashes($_GET["id"]);
     }
     // Get custom export parameters
     if ($this->Export != "" && $custom != "") {
         $this->CustomExport = $this->Export;
         $this->Export = "print";
     }
     $gsCustomExport = $this->CustomExport;
     $gsExport = $this->Export;
     // Get export parameter, used in header
     // Update Export URLs
     if (defined("EW_USE_PHPEXCEL")) {
         $this->ExportExcelCustom = FALSE;
     }
     if ($this->ExportExcelCustom) {
         $this->ExportExcelUrl .= "&custom=1";
     }
     if (defined("EW_USE_PHPWORD")) {
         $this->ExportWordCustom = FALSE;
     }
     if ($this->ExportWordCustom) {
         $this->ExportWordUrl .= "&custom=1";
     }
     if ($this->ExportPdfCustom) {
         $this->ExportPdfUrl .= "&custom=1";
     }
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Setup export options
     $this->SetupExportOptions();
     $this->id->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // 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;
     }
     // Process auto fill
     if (@$_POST["ajax"] == "autofill") {
         // Process auto fill for detail table 'detalle_deudas'
         if (@$_POST["grid"] == "fdetalle_deudasgrid") {
             if (!isset($GLOBALS["detalle_deudas_grid"])) {
                 $GLOBALS["detalle_deudas_grid"] = new cdetalle_deudas_grid();
             }
             $GLOBALS["detalle_deudas_grid"]->Page_Init();
             $this->Page_Terminate();
             exit;
         }
         // Process auto fill for detail table 'pagos'
         if (@$_POST["grid"] == "fpagosgrid") {
             if (!isset($GLOBALS["pagos_grid"])) {
                 $GLOBALS["pagos_grid"] = new cpagos_grid();
             }
             $GLOBALS["pagos_grid"]->Page_Init();
             $this->Page_Terminate();
             exit;
         }
         $results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
         if ($results) {
             // Clean output buffer
             if (!EW_DEBUG_ENABLED && ob_get_length()) {
                 ob_end_clean();
             }
             echo $results;
             $this->Page_Terminate();
             exit;
         }
     }
     // Create Token
     $this->CreateToken();
 }
예제 #16
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate(ew_GetUrl("cciag_login.php"));
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     $Security->TablePermission_Loaded();
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     // Create form object
     $objForm = new cFormObj();
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     $this->codigo->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // 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;
     }
     // Process auto fill
     if (@$_POST["ajax"] == "autofill") {
         // Process auto fill for detail table 'seguimiento_tramites'
         if (@$_POST["grid"] == "fseguimiento_tramitesgrid") {
             if (!isset($GLOBALS["seguimiento_tramites_grid"])) {
                 $GLOBALS["seguimiento_tramites_grid"] = new cseguimiento_tramites_grid();
             }
             $GLOBALS["seguimiento_tramites_grid"]->Page_Init();
             $this->Page_Terminate();
             exit;
         }
         $results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
         if ($results) {
             // Clean output buffer
             if (!EW_DEBUG_ENABLED && ob_get_length()) {
                 ob_end_clean();
             }
             echo $results;
             $this->Page_Terminate();
             exit;
         }
     }
     // Create Token
     $this->CreateToken();
 }
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Create form object
     $objForm = new cFormObj();
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     $this->id->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
 }
예제 #18
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // User profile
     $UserProfile = new cUserProfile();
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if ($Security->IsLoggedIn()) {
         $Security->TablePermission_Loading();
     }
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     if ($Security->IsLoggedIn()) {
         $Security->TablePermission_Loaded();
     }
     if (!$Security->CanView()) {
         $Security->SaveLastUrl();
         $this->setFailureMessage($Language->Phrase("NoPermission"));
         // Set no permission
         if ($Security->CanList()) {
             $this->Page_Terminate(ew_GetUrl("airplanelist.php"));
         } else {
             $this->Page_Terminate(ew_GetUrl("login.php"));
         }
     }
     if ($Security->IsLoggedIn()) {
         $Security->UserID_Loading();
         $Security->LoadUserID();
         $Security->UserID_Loaded();
     }
     // Get export parameters
     $custom = "";
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
         $custom = @$_GET["custom"];
     } elseif (@$_POST["export"] != "") {
         $this->Export = $_POST["export"];
         $custom = @$_POST["custom"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $this->Export = $_POST["exporttype"];
         }
         $custom = @$_POST["custom"];
     } else {
         $this->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     if (@$_GET["AIRPLANE_ID"] != "") {
         if ($gsExportFile != "") {
             $gsExportFile .= "_";
         }
         $gsExportFile .= ew_StripSlashes($_GET["AIRPLANE_ID"]);
     }
     // Get custom export parameters
     if ($this->Export != "" && $custom != "") {
         $this->CustomExport = $this->Export;
         $this->Export = "print";
     }
     $gsCustomExport = $this->CustomExport;
     $gsExport = $this->Export;
     // Get export parameter, used in header
     // Update Export URLs
     if (defined("EW_USE_PHPEXCEL")) {
         $this->ExportExcelCustom = FALSE;
     }
     if ($this->ExportExcelCustom) {
         $this->ExportExcelUrl .= "&custom=1";
     }
     if (defined("EW_USE_PHPWORD")) {
         $this->ExportWordCustom = FALSE;
     }
     if ($this->ExportWordCustom) {
         $this->ExportWordUrl .= "&custom=1";
     }
     if ($this->ExportPdfCustom) {
         $this->ExportPdfUrl .= "&custom=1";
     }
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Setup export options
     $this->SetupExportOptions();
     $this->AIRPLANE_ID->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // 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();
 }
예제 #19
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Get grid add count
     $gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
     if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
         $this->GridAddRowCount = $gridaddcnt;
     }
     // Set up list options
     $this->SetupListOptions();
     $this->EvaluateAnswerID->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
     // Setup other options
     $this->SetupOtherOptions();
     // Set "checkbox" visible
     if (count($this->CustomActions) > 0) {
         $this->ListOptions->Items["checkbox"]->Visible = TRUE;
     }
 }
예제 #20
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate(ew_GetUrl("login.php"));
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     $Security->TablePermission_Loaded();
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     // Get export parameters
     $custom = "";
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
         $custom = @$_GET["custom"];
     } elseif (@$_POST["export"] != "") {
         $this->Export = $_POST["export"];
         $custom = @$_POST["custom"];
     }
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     // Get custom export parameters
     if ($this->Export != "" && $custom != "") {
         $this->CustomExport = $this->Export;
         $this->Export = "print";
     }
     $gsCustomExport = $this->CustomExport;
     $gsExport = $this->Export;
     // Get export parameter, used in header
     // Update Export URLs
     if (defined("EW_USE_PHPEXCEL")) {
         $this->ExportExcelCustom = FALSE;
     }
     if ($this->ExportExcelCustom) {
         $this->ExportExcelUrl .= "&custom=1";
     }
     if (defined("EW_USE_PHPWORD")) {
         $this->ExportWordCustom = FALSE;
     }
     if ($this->ExportWordCustom) {
         $this->ExportWordUrl .= "&custom=1";
     }
     if ($this->ExportPdfCustom) {
         $this->ExportPdfUrl .= "&custom=1";
     }
     $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;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Get export parameters
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $this->Export = $_POST["exporttype"];
         }
     } else {
         $this->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExport = $this->Export;
     // Get export parameter, used in header
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     // Get grid add count
     $gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
     if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
         $this->GridAddRowCount = $gridaddcnt;
     }
     // Set up list options
     $this->SetupListOptions();
     // Setup export options
     $this->SetupExportOptions();
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
 }
예제 #22
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Get export parameters
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $this->Export = $_POST["exporttype"];
         }
     } else {
         $this->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExport = $this->Export;
     // Get export parameter, used in header
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     if (@$_GET["realmid"] != "") {
         if ($gsExportFile != "") {
             $gsExportFile .= "_";
         }
         $gsExportFile .= ew_StripSlashes($_GET["realmid"]);
     }
     if (@$_GET["acctid"] != "") {
         if ($gsExportFile != "") {
             $gsExportFile .= "_";
         }
         $gsExportFile .= ew_StripSlashes($_GET["acctid"]);
     }
     // Setup export options
     $this->SetupExportOptions();
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
 }
예제 #23
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     global $tbl_user_level;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->TableName);
     $Security->TablePermission_Loaded();
     if (!$Security->CanAdmin()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     // Create form object
     $objForm = new cFormObj();
     // Global Page Loading event (in userfn*.php)
     Page_Loading();
     // Page Load event
     $this->Page_Load();
 }
예제 #24
0
include "categoriesinfo.php";
include "userfn50.php";
include "userinfo.php";
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate");
// HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// HTTP/1.0
// Open connection to the database
$conn = ew_Connect();
$Security = new cAdvancedSecurity();
if (!$Security->IsLoggedIn()) {
    $Security->AutoLogin();
}
if (!$Security->IsLoggedIn()) {
    $Security->SaveLastUrl();
    Page_Terminate("login.php");
}
// Common page loading event (in userfn*.php)
Page_Loading();
// Page load event, used in current page
Page_Load();
$categories->Export = @$_GET["export"];
// Get export parameter
$sExport = $categories->Export;
// Get export parameter, used in header
$sExportFile = $categories->TableVar;
예제 #25
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     $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();
 }
예제 #26
0
 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();
 }
예제 #27
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $ZipCode;
     global $Security;
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("login.php");
     }
     $ZipCode->Export = @$_GET["export"];
     // Get export parameter
     $gsExport = $ZipCode->Export;
     // Get export parameter, used in header
     $gsExportFile = $ZipCode->TableVar;
     // Get export file, used in header
     if (@$_GET["ZipCode"] != "") {
         if ($gsExportFile != "") {
             $gsExportFile .= "_";
         }
         $gsExportFile .= ew_StripSlashes($_GET["ZipCode"]);
     }
     if ($ZipCode->Export == "print" || $ZipCode->Export == "html") {
         // Printer friendly or Export to HTML, no action required
     }
     if ($ZipCode->Export == "excel") {
         header('Content-Type: application/vnd.ms-excel;charset=utf-8');
         header('Content-Disposition: attachment; filename=' . $gsExportFile . '.xls');
     }
     if ($ZipCode->Export == "csv") {
         header('Content-Type: application/csv;charset=utf-8');
         header('Content-Disposition: attachment; filename=' . $gsExportFile . '.csv');
     }
     // Global page loading event (in userfn6.php)
     Page_Loading();
     // Page load event, used in current page
     $this->Page_Load();
 }
예제 #28
0
 function Page_Init()
 {
     global $gsExport, $gsCustomExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate(ew_GetUrl("login.php"));
     }
     $Security->TablePermission_Loading();
     $Security->LoadCurrentUserLevel($this->ProjectID . $this->TableName);
     $Security->TablePermission_Loaded();
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     // Get export parameters
     $custom = "";
     if (@$_GET["export"] != "") {
         $this->Export = $_GET["export"];
         $custom = @$_GET["custom"];
     } elseif (@$_POST["export"] != "") {
         $this->Export = $_POST["export"];
         $custom = @$_POST["custom"];
     } elseif (ew_IsHttpPost()) {
         if (@$_POST["exporttype"] != "") {
             $this->Export = $_POST["exporttype"];
         }
         $custom = @$_POST["custom"];
     } else {
         $this->setExportReturnUrl(ew_CurrentUrl());
     }
     $gsExportFile = $this->TableVar;
     // Get export file, used in header
     // Get custom export parameters
     if ($this->Export != "" && $custom != "") {
         $this->CustomExport = $this->Export;
         $this->Export = "print";
     }
     $gsCustomExport = $this->CustomExport;
     $gsExport = $this->Export;
     // Get export parameter, used in header
     // Update Export URLs
     if (defined("EW_USE_PHPEXCEL")) {
         $this->ExportExcelCustom = FALSE;
     }
     if ($this->ExportExcelCustom) {
         $this->ExportExcelUrl .= "&custom=1";
     }
     if (defined("EW_USE_PHPWORD")) {
         $this->ExportWordCustom = FALSE;
     }
     if ($this->ExportWordCustom) {
         $this->ExportWordUrl .= "&custom=1";
     }
     if ($this->ExportPdfCustom) {
         $this->ExportPdfUrl .= "&custom=1";
     }
     $this->CurrentAction = @$_GET["a"] != "" ? $_GET["a"] : @$_POST["a_list"];
     // Set up current action
     // Get grid add count
     $gridaddcnt = @$_GET[EW_TABLE_GRID_ADD_ROW_COUNT];
     if (is_numeric($gridaddcnt) && $gridaddcnt > 0) {
         $this->GridAddRowCount = $gridaddcnt;
     }
     // Set up list options
     $this->SetupListOptions();
     // Setup export options
     $this->SetupExportOptions();
     $this->codigo->Visible = !$this->IsAdd() && !$this->IsCopy() && !$this->IsGridAdd();
     // 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;
     }
     // Process auto fill
     if (@$_POST["ajax"] == "autofill") {
         $results = $this->GetAutoFill(@$_POST["name"], @$_POST["q"]);
         if ($results) {
             // Clean output buffer
             if (!EW_DEBUG_ENABLED && ob_get_length()) {
                 ob_end_clean();
             }
             echo $results;
             $this->Page_Terminate();
             exit;
         }
     }
     // Create Token
     $this->CreateToken();
     // Setup other options
     $this->SetupOtherOptions();
     // Set "checkbox" visible
     if (count($this->CustomActions) > 0) {
         $this->ListOptions->Items["checkbox"]->Visible = TRUE;
     }
 }
예제 #29
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     if (!$Security->IsLoggedIn()) {
         $Security->SaveLastUrl();
         $this->Page_Terminate("cciaglogin.php");
     }
     $Security->UserID_Loading();
     if ($Security->IsLoggedIn()) {
         $Security->LoadUserID();
     }
     $Security->UserID_Loaded();
     if ($Security->IsLoggedIn() && strval($Security->CurrentUserID()) == "") {
         $this->setFailureMessage($Language->Phrase("NoPermission"));
         // Set no permission
         $this->Page_Terminate("cciagsocioslist.php");
     }
     // Create form object
     $objForm = new cFormObj();
     $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();
 }
예제 #30
0
 function Page_Init()
 {
     global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;
     // Security
     $Security = new cAdvancedSecurity();
     if (!$Security->IsLoggedIn()) {
         $Security->AutoLogin();
     }
     // Uncomment codes below for security
     //if (!$Security->IsLoggedIn())
     //	$this->Page_Terminate("cciag_login.php");
     if (@$_GET["export"] != "") {
         $gsExport = $_GET["export"];
     }
     // Get export parameter, used in header
     $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();
 }