Commit bcc271d260cdf64aecbbb2004f7e5abd8637a447

Authored by michael
1 parent 681262fb

moved session and control classes to lib/session


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@371 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/Session.inc renamed to lib/session/Session.inc
lib/control.inc renamed to lib/session/control.inc
@@ -101,9 +101,11 @@ function checkSessionAndRedirect($bRedirect) { @@ -101,9 +101,11 @@ function checkSessionAndRedirect($bRedirect) {
101 * Automatically redirects to the login page on session verification failure 101 * Automatically redirects to the login page on session verification failure
102 */ 102 */
103 function checkSession() { 103 function checkSession() {
  104 + global $default;
104 if (checkSessionAndRedirect(true)) { 105 if (checkSessionAndRedirect(true)) {
105 // the session is cool, now check if we access to this page 106 // the session is cool, now check if we access to this page
106 - if ($_SESSION["pageAccess"][basename($_SERVER['SCRIPT_FILENAME'])]) { 107 + $default->log->debug("control.inc page=" . $_SERVER['PHP_SELF']);
  108 + if ($_SESSION["pageAccess"][$_SERVER['PHP_SELF']]) {
107 return true; 109 return true;
108 } else { 110 } else {
109 return false; 111 return false;