CONTROL_INSTALL::ctl_form PHP Méthode

ctl_form() public méthode

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

Usage Example

Exemple #1
0
        $arr_installRow = $ctl_install->ctl_ssoAuto();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
    case "ssoAdmin":
        $arr_installRow = $ctl_install->ctl_ssoAdmin();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
    case "dbconfig":
    case "base":
    case "upload":
    case "sso":
        $arr_installRow = $ctl_install->ctl_form();
        if ($arr_installRow["alert"] != "y030404") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
    default:
        $arr_installRow = $ctl_install->ctl_ext();
        if ($arr_installRow["alert"] != "y030403") {
            header("Location: " . BG_URL_INSTALL . "ctl.php?mod=alert&act_get=show&alert=" . $arr_installRow["alert"]);
            exit;
        }
        break;
}