From 7cace34d7f9a4e3baeaa82ef451b2c008390ea2c Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Fri, 30 Sep 2005 17:47:39 +0200 Subject: [PATCH] rebuild $INFO array directly after lockout darcs-hash:20050930154739-7ad00-e5dea212a28508d24be6471fe5900c7edb1bbde9.gz --- inc/actions.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'; } -- GitLab