diff options
Diffstat (limited to 'scire/admin.php')
-rw-r--r-- | scire/admin.php | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/scire/admin.php b/scire/admin.php index 4b494eb..39367d2 100644 --- a/scire/admin.php +++ b/scire/admin.php @@ -1,28 +1,12 @@ <?php +include('main_checklogin.php'); include('Smarty.class.php'); +include('main_smarty.php'); #Instantiates Smarty and sets the left nav bar. + require_once('DBInterface.php'); -if(!isset($_SESSION['userid'])) { - #print "<h1>NO MATCH</h1>"; - header("Location: login.php"); -} -else { - print "Welcome $_SESSION[userid]<br>"; -} -$smarty = new Smarty; -#phpinfo(); -$smarty->template_dir = './templates'; -$smarty->compile_dir = './templates_c'; -$smarty->cache_dir = './cache'; -$smarty->config_dir = './configs'; -$smarty->assign('topbar', array( - array('name'=> 'Login', 'link' => 'login.php'), - array('name'=> 'Clients', 'link' => 'clients.php'), - array('name'=> 'Jobs/Tasks', 'link' => 'jobs.php'), - array('name'=> 'Modules', 'link' => 'modules.php'), - array('name'=> 'Admin', 'link' => 'admin.php'))); - + $smarty->display('admin.tpl'); |