diff options
author | deva <deva> | 2009-03-23 18:41:22 +0000 |
---|---|---|
committer | deva <deva> | 2009-03-23 18:41:22 +0000 |
commit | eec8fdf3fd36f6f8511bdb4bea0899f82bf3f6ab (patch) | |
tree | eefac33e9ef9980c81fd6200a437f39c12e63ba8 /utils/login.php | |
parent | 93a934051be4af5f61e28d98650808fcc701ae91 (diff) |
First attempt on a modularized plugin system, complete with admin, and parameters.
Diffstat (limited to 'utils/login.php')
-rw-r--r-- | utils/login.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/login.php b/utils/login.php index 950476e..88ba53a 100644 --- a/utils/login.php +++ b/utils/login.php @@ -13,6 +13,7 @@ function checklogin() global $loggedin; global $action; global $DATA_DIR; + global $ADMIN_TIMEOUT; $users = new Users($DATA_DIR . "/users.xml"); @@ -25,8 +26,8 @@ function checklogin() } else { _log("Wrong password", $userid); } - setcookie("UserID", $userid, time()+600); // expire in 10 minutes - setcookie("Password", $password, time()+600); // expire in 10 minutes + setcookie("UserID", $userid, time()+$ADMIN_TIMEOUT); + setcookie("Password", $password, time()+$ADMIN_TIMEOUT); return; } else { _log("Failed", $userid); |