diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-09-30 17:47:39 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-09-30 17:47:39 +0200 |
commit | 7cace34d7f9a4e3baeaa82ef451b2c008390ea2c (patch) | |
tree | f9fd88a877bd15ecb268b9468265c0232663fffc | |
parent | 5783998f1518db5000b33432885f3153de6b579f (diff) | |
download | rpg-7cace34d7f9a4e3baeaa82ef451b2c008390ea2c.tar.gz rpg-7cace34d7f9a4e3baeaa82ef451b2c008390ea2c.tar.bz2 |
rebuild $INFO array directly after lockout
darcs-hash:20050930154739-7ad00-e5dea212a28508d24be6471fe5900c7edb1bbde9.gz
-rw-r--r-- | inc/actions.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php index 97374578c..3636406db 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -207,6 +207,7 @@ function act_save($act){ */ function act_auth($act){ global $ID; + global $INFO; //already logged in? if($_SERVER['REMOTE_USER'] && $act=='login') @@ -217,8 +218,13 @@ function act_auth($act){ $lockedby = checklock($ID); //page still locked? if($lockedby == $_SERVER['REMOTE_USER']) unlock($ID); //try to unlock - + + // do the logout stuff auth_logoff(); + + // rebuild info array + $INFO = pageinfo(); + return 'login'; } |