diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-02-11 19:02:40 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-02-11 19:02:40 +0100 |
commit | 5298a619f2836d718204a61624c6388923c51a29 (patch) | |
tree | 0fa473f8d9eb1e201429ffd5df0de31cf005d3fd /inc/auth.php | |
parent | 8a831f2bba632ebf9e24d0f2f407c5b42cebffe5 (diff) | |
download | rpg-5298a619f2836d718204a61624c6388923c51a29.tar.gz rpg-5298a619f2836d718204a61624c6388923c51a29.tar.bz2 |
updated auth_punbb
darcs-hash:20060211180240-7ad00-c7c589aa6e5e67f2d7ad54f7e41837f116a91c9c.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 5 |
1 files changed, 5 insertions, 0 deletions
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(); + } } /** |