www.gusucode.com > baigo CMS PHP开源网站管理系统 v1.2.2源码程序 > baigocms_v1.2.2/bg_sso/core/control/install/ctl/alert.class.php
<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if(!defined("IN_BAIGO")) { exit("Access Denied"); } include_once(BG_PATH_CLASS . "tpl.class.php"); //载入模板类 class CONTROL_ALERT { private $obj_tpl; function __construct() { //构造函数 $this->obj_base = $GLOBALS["obj_base"]; $this->config = $this->obj_base->config; $_arr_cfg["admin"] = true; $this->obj_tpl = new CLASS_TPL(BG_PATH_TPLSYS . "install/" . $this->config["ui"], $_arr_cfg); } /** * install_alert function. * * @access public * @return void */ function ctl_show() { $_str_alert = fn_getSafe(fn_get("alert"), "txt", ""); $this->tplData = array( "alert" => $_str_alert, "status" => substr($_str_alert, 0, 1), ); $this->obj_tpl->tplDisplay("alert.tpl", $this->tplData); } }