re_once('config.php'); verify_auth(); // NEW INSTANCE OF SMARTY $smarty = new Smarty(); // SET SMARTY DIRECTORIES $smarty->template_dir = SMARTY_PATH.'templates/'; $smarty->compile_dir = SMARTY_PATH.'templates_c/'; $smarty->config_dir = SMARTY_PATH.'configs/'; $smarty->cache_dir = SMARTY_PATH.'cache/'; // SET DEFAULTS $errors = array(); $content = ''; $secondary_menu = false; $js = ' '; // MAIN SWITCH if(!$action = my_isset($_REQUEST, 'action')) { $action = 'main'; } switch($action) { case 'main': $content = main_content(); break; default: $content = main_content(); break; } // SETUP MENUS $main_nav = ''; // ASSIGN SMARTY VARS $smarty->assign('title', 'Profile Manager'); $smarty->assign('main_nav', $main_nav); $smarty->assign('content', $content); $smarty->assign('js', $js); // DISPLAY TEMPLATE $smarty->display('profile_manager.tpl'); if(MODE == 'TEST') { $time_end = microtime(true); $time = $time_end - $time_start; echo "exec time = $time"; } ?>