php-mpos/public/include/pages/admin/user.inc.php
Sebastian Grewe ed0853202b Initial file import for admin panel
* Added isAdmin to user class
 * Run isAdmin on EACH page to ensure admin status hasn't changed
* Added main page with no content
* Added user query page with basic form, no content
2013-06-04 09:15:55 +02:00

20 lines
399 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->isAdmin($_SESSION['USERDATA']['id'])) {
header("HTTP/1.1 404 Page not found");
die();
}
if ($_POST['query']) {
// Fetch all users from DB cross referencing all stats
}
// Tempalte specifics
$smarty->assign("CONTENT", "default.tpl");
?>