X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/2a57704703a13f4825e677d5264613aadb05b12e..18d80742bf7b275c5136a3594173b94ff766f365:/lib/utils.inc.php diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 311713d..a792bd5 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -178,6 +178,7 @@ class Utils { global $CFG; $loggedIn = false; + echo '$this->user: '.$this->user.' $_SESSION['user']: '.$_SESSION['user']; if ($this->user) { $loggedIn = true; } else if (isset($_SESSION['user'])) { @@ -192,6 +193,10 @@ class Utils { } } + if ($loggedIn == false { + echo 'R_TIME: '.date('c', $_SERVER['REQUEST_TIME']).' L_ACT: '.date('c', $_SESSION['LAST_ACTIVITY']); + exit; + } return $loggedIn; }