CONTROL_UPGRADE::ctl_form PHP Method

ctl_form() public method

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

Usage Example

Example #1
0
     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;
     }
     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") {