From 5298a619f2836d718204a61624c6388923c51a29 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 11 Feb 2006 19:02:40 +0100 Subject: updated auth_punbb darcs-hash:20060211180240-7ad00-c7c589aa6e5e67f2d7ad54f7e41837f116a91c9c.gz --- inc/auth.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/auth.php') diff --git a/inc/auth.php b/inc/auth.php index 69ff930be..d8fae97b7 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -207,6 +207,7 @@ function auth_logoff(){ global $conf; global $USERINFO; global $INFO, $ID; + global $auth; if(isset($_SESSION[$conf['title']]['auth']['user'])) unset($_SESSION[$conf['title']]['auth']['user']); @@ -218,6 +219,10 @@ function auth_logoff(){ unset($_SERVER['REMOTE_USER']); $USERINFO=null; //FIXME setcookie(DOKU_COOKIE,'',time()-600000,'/'); + + if($auth && $auth->canDo('logoff')){ + $auth->logOff(); + } } /** -- cgit v1.2.3