owls
changeset 9:eb5bff360deb
TIME_SESSION_EXPIRES: now class const
author | Meillo r e t u r n s <meillo@marmaro.de> |
---|---|
date | Thu, 14 Dec 2006 21:51:44 +0100 |
parents | 2672cd855fa2 |
children | 144bc36a6c27 |
files | Includes/Loginsys.class.php |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/Includes/Loginsys.class.php Wed Dec 13 23:08:55 2006 +0100 1.2 +++ b/Includes/Loginsys.class.php Thu Dec 14 21:51:44 2006 +0100 1.3 @@ -12,7 +12,7 @@ 1.4 /** 1.5 * time in seconds till the session expires 1.6 */ 1.7 - define('TIME_SESSION_EXPIRES', 1800); 1.8 + const TIME_SESSION_EXPIRES = 1800; 1.9 1.10 1.11 1.12 @@ -63,7 +63,7 @@ 1.13 * @return bool 'true' if user is logged in, else 'false' 1.14 */ 1.15 public function loggedIn() { // return login-status --------------------------------------------- 1.16 - return (isset($_SESSION[login][id]) && $_SESSION[login][logintime] > time()-TIME_SESSION_EXPIRES); 1.17 + return (isset($_SESSION[login][id]) && $_SESSION[login][logintime] > time()-self::TIME_SESSION_EXPIRES); 1.18 } 1.19 1.20