<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_FUNC . "include.func.php"; fn_include(true, true, "Content-Type: text/html; charset=utf-8", true, "ctl"); include_once BG_PATH_CONTROL . "advert/advert.class.php"; //载入应用控制器 $ctl_advert = new CONTROL_ADVERT(); //初始化应用 switch ($GLOBALS["act_get"]) { default: $arr_advertRow = $ctl_advert->ctl_url(); if ($arr_advertRow["alert"] == "y080102") { header("Location: " . $arr_advertRow["advert_url"]); } else { header("Location: " . BG_URL_ADVERT . "ctl.php?mod=alert&act_get=show&alert=" . $arr_advertRow["alert"]); } exit; break; }
!!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_INC . "common_admin_ctl.inc.php"; //管理员通用 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/advert.class.php"; //载入应用控制器 $ctl_advert = new CONTROL_ADVERT(); //初始化应用 switch ($GLOBALS["act_get"]) { case "show": //显示 $arr_advertRow = $ctl_advert->ctl_show(); if ($arr_advertRow["alert"] != "y080102") { header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_advertRow["alert"]); exit; } break; case "form": //创建、编辑表单 $arr_advertRow = $ctl_advert->ctl_form(); if ($arr_advertRow["alert"] != "y080102") { header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_advertRow["alert"]);
<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_INC . "common_api.inc.php"; //验证是否已登录 include_once BG_PATH_CONTROL . "advert/advert.class.php"; //载入应用控制器 $ctl_advert = new CONTROL_ADVERT(); //初始化应用 switch ($GLOBALS["act_get"]) { case "url": $ctl_advert->ctl_url(); break; default: $ctl_advert->ctl_list(); break; }