exit; } if ($test) { $_SESSION['islogin'] = $login->islogin; $_SESSION['access'] = $login->access; $_SESSION['emp'] = $login->EMP; $_SESSION['zone'] = $login->zone; $session = new session_info(); $page = new layout(); $page->call_info($_GET['pageload'], $session->access); } } else { if ($_SESSION['islogin'] == 1) { $session = new session_info(); $page = new layout(); $page->call_info($_GET['pageload'], $session->access); } else { die("<h6>Logon Hacking Atempt</h6>"); } } } if ($session->islogin == 1) { $template->set_filenames(array('header' => 'header.html')); $template->assign_vars(array('TITLE' => $page->display[TITLE])); foreach ($page->tabledata as $category => $a) { if ($category) { $template->assign_block_vars('menu', array('CATEGORY' => $category)); foreach ($a as $b => $output) { $template->assign_block_vars('menu.sub', array('CURRENT' => $_SERVER['PHP_SELF'], 'PAGE_NUM' => $output[PAGE], 'PAGE_NAME' => $output[NAME])); } }