/*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_INC . "common_admin_ctl.inc.php"; //载入全局通用 include_once BG_PATH_INC . "is_admin.inc.php"; //载入后台通用 include_once BG_PATH_CONTROL_ADMIN . "ctl/article.class.php"; //载入文章类 $ctl_article = new CONTROL_ARTICLE(); switch ($GLOBALS["act_get"]) { case "show": $arr_articleRow = $ctl_article->ctl_show(); if ($arr_articleRow["alert"] != "y120102") { header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_articleRow["alert"]); exit; } break; case "form": $arr_articleRow = $ctl_article->ctl_form(); if ($arr_articleRow["alert"] != "y120102") { header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_articleRow["alert"]); exit; } break;
<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ //不能非法包含或直接执行 if (!defined("IN_BAIGO")) { exit("Access Denied"); } include_once BG_PATH_FUNC . "include.func.php"; fn_include(true, false, "Content-Type: text/html; charset=utf-8", true, "ctl", false, true); include_once BG_PATH_CONTROL . "pub/ctl/article.class.php"; //载入文章类 $ctl_article = new CONTROL_ARTICLE(); switch ($GLOBALS["act_get"]) { default: $arr_articleRow = $ctl_article->ctl_show(); if ($arr_articleRow["alert"] != "y120102") { if ($arr_articleRow["cate_type"] == "link" && $arr_articleRow["cate_link"]) { $_str_linkUrl = $arr_articleRow["cate_link"]; } else { if ($arr_articleRow["article_link"]) { $_str_linkUrl = $arr_articleRow["article_link"]; } else { $_str_linkUrl = BG_URL_ROOT . "index.php?mod=alert&act_get=show&alert=" . $arr_articleRow["alert"]; } } header("Location: " . $_str_linkUrl); exit; }