19 lines
494 B
PHP
19 lines
494 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");
|
|
}
|
|
|
|
$iActiveWorkers = $worker->getCountAllActiveWorkers();
|
|
$aWorkers = $worker->getAllWorkers($iActiveWorkers);
|
|
|
|
$smarty->assign('WORKERS', $aWorkers);
|
|
|
|
$smarty->assign('CONTENT', 'default.tpl');
|
|
|
|
?>
|