Esempio n. 1
0
}
session_start();
//开启session
$GLOBALS["ssid"] = session_id();
header("Content-Type: text/html; charset=utf-8");
include_once BG_PATH_INC . "common_global.inc.php";
//载入通用
include_once BG_PATH_CLASS . "mysqli.class.php";
//载入数据库类
include_once BG_PATH_CLASS . "base.class.php";
//载入基类
include_once BG_PATH_CONTROL . "install/ctl/install.class.php";
//载入栏目控制器
$GLOBALS["obj_base"] = new CLASS_BASE();
//初始化基类
$ctl_install = new CONTROL_INSTALL();
//初始化商家
switch ($GLOBALS["act_get"]) {
    case "admin":
        $arr_installRow = $ctl_install->ctl_admin();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
    case "reg":
        $arr_installRow = $ctl_install->ctl_reg();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
Esempio n. 2
0
}
session_start();
//开启session
$GLOBALS["ssid"] = session_id();
header("Content-Type: text/html; charset=utf-8");
include_once BG_PATH_INC . "common_global.inc.php";
//载入通用
include_once BG_PATH_CLASS . "mysqli.class.php";
//载入数据库类
include_once BG_PATH_CLASS . "base.class.php";
//载入基类
include_once BG_PATH_CONTROL . "install/ctl/install.class.php";
//载入栏目控制器
$GLOBALS["obj_base"] = new CLASS_BASE();
//初始化基类
$ctl_install = new CONTROL_INSTALL();
//初始化商家
switch ($GLOBALS["act_get"]) {
    case "auth":
        $arr_installRow = $ctl_install->ctl_auth();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
    case "admin":
        $arr_installRow = $ctl_install->ctl_admin();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
Esempio n. 3
0
    include_once BG_PATH_CONFIG . "is_install.php";
    if (defined("BG_INSTALL_PUB") && PRD_SSO_PUB > BG_INSTALL_PUB) {
        header("Location: " . BG_URL_INSTALL . "ctl.php?mod=upgrade");
    } else {
        header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=x030403");
    }
    exit;
}
include_once BG_PATH_FUNC . "include.func.php";
//管理员通用
fn_include(true, true);
include_once BG_PATH_CLASS . "mysqli.class.php";
//载入数据库类
include_once BG_PATH_CONTROL . "install/ctl/install.class.php";
//载入栏目控制器
$ctl_install = new CONTROL_INSTALL();
//初始化商家
switch ($GLOBALS["act_get"]) {
    case "admin":
        $arr_installRow = $ctl_install->ctl_admin();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
    case "dbtable":
        $arr_installRow = $ctl_install->ctl_dbtable();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
Esempio n. 4
0
    //将当前的SessionId设置成客户端传递回来的SessionId
}
session_start();
//开启session
$GLOBALS["ssid"] = session_id();
include_once BG_PATH_INC . "common_global.inc.php";
//载入通用
include_once BG_PATH_CLASS . "mysqli.class.php";
//载入数据库类
include_once BG_PATH_CLASS . "base.class.php";
//载入基类
include_once BG_PATH_CONTROL_INSTALL . "ctl/install.class.php";
//载入栏目控制器
$GLOBALS["obj_base"] = new CLASS_BASE();
//初始化基类
$ctl_install = new CONTROL_INSTALL();
//初始化商家
header("Content-Type: text/html; charset=utf-8");
switch ($GLOBALS["act_get"]) {
    case "auth":
        $arr_installRow = $ctl_install->ctl_auth();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
    case "admin":
        $arr_installRow = $ctl_install->ctl_admin();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
Esempio n. 5
0
<?php

/*-----------------------------------------------------------------
!!!!警告!!!!
以下为系统文件,请勿修改
-----------------------------------------------------------------*/
//不能非法包含或直接执行
if (!defined("IN_BAIGO")) {
    exit("Access Denied");
}
include_once BG_PATH_INC . "common_help.inc.php";
//验证是否已登录
include_once BG_PATH_CONTROL_HELP . "install.class.php";
//载入文章类
$ctl_install = new CONTROL_INSTALL();
$ctl_install->ctl_show($GLOBALS["act_get"]);