* Currently no GUI, use DB access to change the row entry * Upgraded Database table `accounts` with upgrade SQL * Updated `admin` field to `is_admin` as boolean * Modified pages, classes, templates to support is_admin and is_locked Addresses #147
15 lines
361 B
PHP
15 lines
361 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", "default.tpl");
|
|
?>
|