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'); ?>