Beispiel #1
0
    case "base":
    case "upload":
    case "sso":
    case "over":
        $arr_set = array("base" => true, "ssin" => true, "header" => "Content-Type: text/html; charset=utf-8", "db" => true, "type" => "install");
        break;
    default:
        $arr_set = array("base" => true, "ssin" => true, "header" => "Content-Type: text/html; charset=utf-8", "ssin_file" => true);
        break;
}
fn_init($arr_set);
include_once BG_PATH_CLASS . "mysqli.class.php";
//载入数据库类
include_once BG_PATH_CONTROL . "install/ctl/upgrade.class.php";
//载入栏目控制器
$ctl_upgrade = new CONTROL_UPGRADE();
//初始化商家
switch ($GLOBALS["act_get"]) {
    case "dbconfig":
        $arr_upgradeRow = $ctl_upgrade->ctl_dbconfig();
        if ($arr_upgradeRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
        break;
    case "dbtable":
        $arr_upgradeRow = $ctl_upgrade->ctl_dbtable();
        if ($arr_upgradeRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
Beispiel #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/upgrade.class.php";
//载入栏目控制器
$GLOBALS["obj_base"] = new CLASS_BASE();
//初始化基类
$ctl_upgrade = new CONTROL_UPGRADE();
//初始化商家
switch ($GLOBALS["act_get"]) {
    case "reg":
        $arr_upgradeRow = $ctl_upgrade->ctl_reg();
        if ($arr_upgradeRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
        break;
    case "base":
        $arr_upgradeRow = $ctl_upgrade->ctl_base();
        if ($arr_upgradeRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
Beispiel #3
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/upgrade.class.php";
//载入栏目控制器
$GLOBALS["obj_base"] = new CLASS_BASE();
//初始化基类
$ctl_upgrade = new CONTROL_UPGRADE();
//初始化商家
header("Content-Type: text/html; charset=utf-8");
switch ($GLOBALS["act_get"]) {
    case "sso":
        $arr_upgradeRow = $ctl_upgrade->ctl_sso();
        if ($arr_upgradeRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
        break;
    case "upload":
        $arr_upgradeRow = $ctl_upgrade->ctl_upload();
        if ($arr_upgradeRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
Beispiel #4
0
<?php

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