* @copyright 2001-2007 VIKO team and contributors * @license http://www.gnu.org/licenses/gpl.html GPL 2.0 */ require_once 'Module.php'; require_once 'HTML/QuickForm.php'; require_once 'HTML/QuickForm/Renderer/VIKO.php'; /** * Manages the logout from VIKO * */ class Module_Logout extends Module { /** * Returns the module identifier string * * @access public * @static * @return string Identificator of module */ function getID() { return "logout"; } /** * Log out from VIKO * * @return bool falses */ function toHTML() { // unset the session variable and redirect to the login page unset($_SESSION['user']); $this->redirect(); return false; } } ?>