}
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/admin.class.php";
//载入管理员控制器
$ctl_admin = new CONTROL_ADMIN();
//初始化管理员对象
switch ($GLOBALS["act_get"]) {
case "show":
//显示
$arr_adminRow = $ctl_admin->ctl_show();
if ($arr_adminRow["alert"] != "y020102") {
header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_adminRow["alert"]);
exit;
}
break;
case "form":
//创建、编辑表单
$arr_adminRow = $ctl_admin->ctl_form();
if ($arr_adminRow["alert"] != "y020102") {
header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_adminRow["alert"]);
exit;
}
break;
default:
//列出