php-mpos/public/include/pages/logout.inc.php
2013-05-06 14:11:38 +02:00

11 lines
202 B
PHP

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