[svn r13120] Added possibility to call an external 'logout' function with a unique parameter being the user info array (so that actions requiring name or ID of the user might be carried out)

skala
Yannick Warnier 17 years ago
parent 32f6c12799
commit a0a5e89fe5
  1. 4
      index.php

@ -20,7 +20,7 @@
/** /**
* @package dokeos.main * @package dokeos.main
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Refactoring * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Refactoring
* @version $Id: index.php 13119 2007-09-20 05:37:51Z yannoo $ * @version $Id: index.php 13120 2007-09-20 05:51:07Z yannoo $
* @todo check the different @todos in this page and really do them * @todo check the different @todos in this page and really do them
* @todo check if the news management works as expected * @todo check if the news management works as expected
*/ */
@ -302,7 +302,7 @@ function logout()
$logout_function = $uinfo['auth_source'].'_logout'; $logout_function = $uinfo['auth_source'].'_logout';
if(function_exists($logout_function)) if(function_exists($logout_function))
{ {
$logout_function(); $logout_function($uinfo);
} }
} }
} }

Loading…
Cancel
Save