Esempio n. 1
0
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;
        }
        break;
    case "base":
        $arr_installRow = $ctl_install->ctl_base();
        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") {