$action = OA_UPGRADE_PLUGINS; } else { $aConfig = $oUpgrader->getConfig(); $prevPathRequired = true; $errMessage = $strPathToPreviousError; $action = OA_UPGRADE_CONFIGSETUP; } } } else { if (array_key_exists('btn_post', $_POST)) { if (!OA_Upgrade_Login::checkLogin()) { $message = $strUsernameOrPasswordWrong; $action = OA_UPGRADE_LOGIN; } else { @unlink(MAX_PATH . '/var/plugins/recover/enabled.log'); $result = $oUpgrader->executePostUpgradeTasks(); if (is_array($result)) { $aPostTasks = $result; } $message = $strPostUpgradeTasks; $action = OA_UPGRADE_POST; } } else { if (array_key_exists('btn_finish', $_POST)) { if (!OA_Upgrade_Login::checkLogin()) { $message = $strUsernameOrPasswordWrong; $action = OA_UPGRADE_LOGIN; } else { if ($_COOKIE['oat'] == OA_UPGRADE_UPGRADE) { $message = $strUpgradeComplete; } else {