validate()) { $error = new Error(); $error->set_error("Not logged in", "You are currently not logged in. " . "Please use the 'Login' option on Main Menu"); $error->display(); } else { $_SESSION['_user']->set_currentTool("egon"); }*/ /******************* Menu **********************/ ob_start(); $menu = new_smarty('egon'); if (isset($_SESSION['_user'])) { $menu->assign('admin', $_SESSION['_user']->get_isAdmin()); $menuTemplate = 'e_menu.tpl'; $_SESSION['_user']->set_currentTool("egon"); }else { $menuTemplate = '../adb/menu_left_nli.tpl'; } $menu->assign('admin_email', ADMIN_EMAIL); $menu->display($menuTemplate); $meny_out = ob_get_clean(); /******************* Main ***********************/ ob_start(); $menu->display('e_index.tpl'); $main_out = ob_get_clean(); /******************* Display ********************/ $index = new_smarty('common'); $index->assign('egon', 1); $index->assign('main', $main_out); $index->assign('menu', $meny_out); $index->display('index.tpl'); ?>