login(); return true; } public function handle($fnc): bool { if ($fnc === 'logout') { Security::get()->logout(); $url = ArgumentHandler::get()->getPostItem('REDIRECT_TO', '/admin/'); header('Location: ' . $url); die(); } return true; } }