php-mpos/public/include/pages/logout.inc.php
Sebastian Grewe faadf7cbaf [FEATURE] Proper login/logout/auth redirects
* Allow to redirect to referrer page when access is denied
* Logout user and point towards login, add redirect
* Logout user as usual but added save redirects
* Adjusted templates and page codes
2013-09-14 21:20:12 +02:00

12 lines
248 B
PHP

<?php
// Make sure we are called from index.php
if (!defined('SECURITY'))
die('Hacking attempt');
// This probably (?) never fails
$user->logoutUser();
$smarty->assign("CONTENT", "default.tpl");
// header('Location: index.php?page=home');
?>