* 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
12 lines
248 B
PHP
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');
|
|
?>
|