if (array_key_exists('btn_recovery', $_POST)) { $oUpgrader->recoverUpgrade(); $action = OA_UPGRADE_RECOVERY; } else { $action = OA_UPGRADE_RECOVERY_INFORM; } } else { if (array_key_exists('btn_syscheck', $_POST) || $_POST['dirPage'] == OA_UPGRADE_SYSCHECK) { // store checkForUpdates value into session, so that they can be inserted into DB once DB has been created session_start(); // Always check for updates $_SESSION['checkForUpdates'] = true; $aSysInfo = $oUpgrader->checkEnvironment(); // Do not check for an upgrade package if environment errors exist if (!$aSysInfo['PERMS']['error'] && !$aSysInfo['PHP']['error'] && !$aSysInfo['FILES']['error']) { $halt = !$oUpgrader->canUpgrade(); $installStatus = $oUpgrader->existing_installation_status; if ($installStatus == OA_STATUS_CURRENT_VERSION) { // Do not halt if the version is current $halt = false; } } else { $message = $strFixErrorsBeforeContinuing; } $action = OA_UPGRADE_SYSCHECK; } else { if (array_key_exists('btn_appcheck', $_POST)) { $action = OA_UPGRADE_APPCHECK; } else { if (array_key_exists('btn_login', $_POST)) { $action = OA_UPGRADE_LOGIN;