php-mpos/public/include/pages/admin.inc.php
2013-12-26 16:10:04 +01:00

15 lines
350 B
PHP

<?php
// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');
// Check user to ensure they are admin
if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
header("HTTP/1.1 404 Page not found");
die("404 Page not found");
}
// Tempalte specifics
$smarty->assign("CONTENT", "");
?>