function ctl_show()
{
$_str_alert = fn_getSafe(fn_get("alert"), "txt", "");
$arr_data = array("adminLogged" => $this->adminLogged, "alert" => $_str_alert, "status" => substr($_str_alert, 0, 1), "view" => $GLOBALS["view"]);
$this->obj_tpl->tplDisplay("alert.tpl", $arr_data);
}
<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_FUNC . "init.func.php"; $arr_set = array("base" => true, "header" => "Content-Type: text/html; charset=utf-8"); fn_init($arr_set); include_once BG_PATH_CONTROL . "advert/alert.class.php"; //载入应用控制器 $ctl_alert = new CONTROL_ALERT(); //初始化应用 switch ($GLOBALS["act_get"]) { default: $ctl_alert->ctl_show(); break; }