CONTROL_UPGRADE::ctl_over PHP Method

ctl_over() public method

public ctl_over ( )
    function ctl_over()
    {
        if ($this->errCount > 0) {
            return array("alert" => "x030414");
        }
        if (!$this->check_db()) {
            return array("alert" => "x030412");
        }
        $this->obj_tpl->tplDisplay("upgrade_over.tpl", $this->tplData);
        return array("alert" => "y030405");
    }

Usage Example

Example #1
0
    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;
        }
        break;
    case "base":
    case "upload":
    case "sso":
        $arr_upgradeRow = $ctl_upgrade->ctl_form();
        if ($arr_upgradeRow["alert"] != "y030405") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
        break;
    case "over":
        $arr_upgradeRow = $ctl_upgrade->ctl_over();
        if ($arr_upgradeRow["alert"] != "y030405") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
        break;
    default:
        $arr_upgradeRow = $ctl_upgrade->ctl_ext();
        if ($arr_upgradeRow["alert"] != "y030403") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_upgradeRow["alert"]);
            exit;
        }
        break;
}