function logout() { require_once WEBAPPROOT . 'security/AuthentificationManager.php'; $auth = new AuthentificationManager(); $auth->logout(); $this->redirect('admin'); exit; }
function logout() { require_once WEBAPPROOT . 'security/AuthentificationManager.php'; $auth = new AuthentificationManager(); $auth->logout(); header("Location: " . ROOT); exit; }