function errorInterface($ras_ip, $err) { $smarty = new IBSSmarty(); $smarty->assign("ras_ip", $ras_ip); $smarty->set_page_error($err->getErrorMsgs()); $smarty->display("admin/ras/del_port.tpl"); }
function showHelp($subject, $category) { $smarty = new IBSSmarty(); $smarty->default_template_handler_func = 'template_handler_func'; $smarty->assign("tpl_file", getTplFile($subject, $category)); $smarty->assign("subject", $subject); $smarty->assign("category", $category); $smarty->display("help/skeleton.tpl"); }
function showAccessDenied($auth_type) { switch ($auth_type) { case ADMIN_AUTH_TYPE: $url = "/IBSng/admin"; $role = "admin"; break; default: $url = "/IBSng/admin"; $role = ""; break; } $smarty = new IBSSmarty(); $smarty->assign_array(array("url" => $url, "role" => $role)); $smarty->display("access_denied.tpl"); exit; }
function intShowCategories() { $smarty = new IBSSmarty(); $smarty->assign("admin_username", $_REQUEST["admin_username"]); $smarty->display("admin/admins/perm_category_select.tpl"); }