$error_detected[] = _T("No host"); } if (empty($_POST['install_dbport'])) { $error_detected[] = _T("No port"); } if (empty($_POST['install_dbuser'])) { $error_detected[] = _T("No user name"); } if (empty($_POST['install_dbpass'])) { $error_detected[] = _T("No password"); } if (empty($_POST['install_dbname'])) { $error_detected[] = _T("No database name"); } if (count($error_detected) == 0) { $install->setDsn($_POST['install_dbhost'], $_POST['install_dbport'], $_POST['install_dbname'], $_POST['install_dbuser'], $_POST['install_dbpass']); $install->setTablesPrefix($_POST['install_dbprefix']); $install->atDbCheckStep(); } } elseif (isset($_POST['install_dbperms_ok'])) { if ($install->isInstall()) { $install->atDbInstallStep(); } elseif ($install->isUpgrade()) { $install->atVersionSelection(); } } elseif (isset($_POST['previous_version'])) { $install->setInstalledVersion($_POST['previous_version']); $install->atDbUpgradeStep(); } elseif (isset($_POST['install_dbwrite_ok']) && $install->isInstall()) { $install->atAdminStep(); } else {