if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_FUNC . "init.func.php"; //管理员通用 fn_init(true, true, "Content-Type: text/html; charset=utf-8", true, "ctl", true); include_once BG_PATH_INC . "is_install.inc.php"; //验证是否已登录 include_once BG_PATH_INC . "is_admin.inc.php"; //验证是否已登录 include_once BG_PATH_CONTROL . "admin/ctl/opt.class.php"; //载入设置控制器 $ctl_opt = new CONTROL_OPT(); //初始化设置对象 switch ($GLOBALS["act_get"]) { case "dbconfig": $arr_optRow = $ctl_opt->ctl_dbconfig(); if ($arr_optRow["alert"] != "y040301") { header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_optRow["alert"]); exit; } break; default: //基本 $arr_optRow = $ctl_opt->ctl_form(); if ($arr_optRow["alert"] != "y040301") { header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_optRow["alert"]); exit; } break; }