コード例 #1
0
ファイル: cate.php プロジェクト: richardcj/baigoCMS
/*-----------------------------------------------------------------
!!!!警告!!!!
以下为系统文件,请勿修改
-----------------------------------------------------------------*/
//不能非法包含或直接执行
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/cate.class.php";
//载入设置类
$ctl_cate = new CONTROL_CATE();
//初始化设置对象
switch ($GLOBALS["act_get"]) {
    case "order":
        $arr_cateRow = $ctl_cate->ctl_order();
        if ($arr_cateRow["alert"] != "y110102") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_cateRow["alert"]);
            exit;
        }
        break;
    case "form":
        $arr_cateRow = $ctl_cate->ctl_form();
        if ($arr_cateRow["alert"] != "y110102") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_cateRow["alert"]);
            exit;
        }
コード例 #2
0
ファイル: cate.php プロジェクト: xiaodin1/baigoCMS
<?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/cate.class.php";
//载入文章类
$ctl_cate = new CONTROL_CATE();
switch ($GLOBALS["act_get"]) {
    default:
        $arr_cateRow = $ctl_cate->ctl_show();
        if ($arr_cateRow["alert"] != "y110102") {
            if ($arr_cateRow["cate_type"] == "link" && $arr_cateRow["cate_link"]) {
                $_str_linkUrl = $arr_cateRow["cate_link"];
            } else {
                $_str_linkUrl = BG_URL_ROOT . "index.php?mod=alert&act_get=show&alert=" . $arr_cateRow["alert"];
            }
            header("Location: " . $_str_linkUrl);
            exit;
        }
        break;
}