]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
Add check for valid session
[qtadmin.git] / lib / utils.inc.php
index c06729f7e023dbe7dd73bc2dbd174121337e0107..71f0071291f0e1d60aebe7ba8db84988db27fdc2 100644 (file)
@@ -43,12 +43,16 @@ class Utils {
 
         $this->log("Init Utils", 4);
 
 
         $this->log("Init Utils", 4);
 
+        $this->log("__construct[1]: user ".var_export($this->settings['user'], true), 3);
         $this->startSession();
         $this->startSession();
+        $this->log("__construct[2]: user ".var_export($this->settings['user'], true), 3);
 
         if (! isset($_SESSION['settings'])) {
             $this->initSettings();
         }
 
         if (! isset($_SESSION['settings'])) {
             $this->initSettings();
         }
+        $this->log("__construct[3]: user ".var_export($this->settings['user'], true), 3);
         $this->settings = $_SESSION['settings'];
         $this->settings = $_SESSION['settings'];
+        $this->log("__construct[4]: user ".var_export($this->settings['user'], true), 3);
 
         if ($CFG->auth_method == 'HTTP_AUTH') {
             if (isset($this->server['PHP_AUTH_USER'])) {
 
         if ($CFG->auth_method == 'HTTP_AUTH') {
             if (isset($this->server['PHP_AUTH_USER'])) {
@@ -247,13 +251,15 @@ class Utils {
         global $CFG;
         $loggedIn = false;
 
         global $CFG;
         $loggedIn = false;
 
-        $this->log("isLoggedIn", 4);
+        $this->log("isLoggedIn[1]: user ".var_export($this->settings['user'], true), 3);
 
         if ('' == session_id()) {
             $this->startSession();
         }
 
 
         if ('' == session_id()) {
             $this->startSession();
         }
 
+        $this->log("isLoggedIn[2]: user ".var_export($this->settings['user'], true), 3);
         $this->checkSession();
         $this->checkSession();
+        $this->log("isLoggedIn[3]: user ".var_export($this->settings['user'], true), 3);
 
         if (isset($this->settings['user'])) {
             if ($this->settings['user'] != null) {
 
         if (isset($this->settings['user'])) {
             if ($this->settings['user'] != null) {
This page took 0.035926 seconds and 5 git commands to generate.