register_modifier("sslash","stripslashes"); $smarty->register_modifier("aslash","addslashes"); $smarty->register_modifier("hentites","htmlentities"); if($_SESSION['show_splash'] == "") { $_SESSION['show_splash'] = 1; $show_splash = 1; } else $show_splash = 0; $smarty->assign("show_splash", $show_splash); // Assign tab value $smarty->assign("tab", $_GET['tab']); $smarty->assign("msg", $msg); $smarty->assign("iUserId", $_SESSION["sess_iUserId".$user_suffix]); $smarty->assign("vName", $_SESSION["sess_vName".$user_suffix]); $smarty->assign("host_name", $_SERVER["HTTP_HOST"]); $smarty_array[] = ''; $smarty_array = array_merge($smarty_array, array("COMPANY_COPYRIGHTS", "SUPPORT_EMAIL", "SHOW_SAVING", "banner_url", "page_title","file", "msgs", "site_images", "site_style", "script", "file", "top_banner", "middle", "site_url", "module", "var_msg", "sslash", "aslash","hentites", "adminfolder", "page", "section", "stylesheet_name", "admin_url", "SITE_TITLE", "site_images_url","META_KEYWORD", "META_DESCRIPTION", "LOGO_ALT_TEXT", "META_OTHER","INNER_TOP_TITLE")); for($k=0;$kassign($smarty_array[$k],$$smarty_array[$k]); } $smarty->assign("local_host", $_SERVER['HTTP_HOST']); $smarty->assign("iUserId", $iUserId); $smarty->display("template.tpl"); unset($smarty); ?>