if ($_POST['aConfig']) { $aDatabase = $_POST['aConfig']; } else { $aDatabase['database'] = $GLOBALS['_MAX']['CONF']['database']; $aDatabase['table'] = $GLOBALS['_MAX']['CONF']['table']; } $displayError = true; $action = OA_UPGRADE_DBSETUP; } } else { if (array_key_exists('btn_configsetup', $_POST)) { if (!OA_Upgrade_Login::checkLogin()) { $message = $strUsernameOrPasswordWrong; $action = OA_UPGRADE_LOGIN; } else { $aConfig = $oUpgrader->getConfig(); } $prevPathRequired = false; $prevPath = ''; if (!empty($GLOBALS['_MAX']['CONF']['plugins'])) { $oPluginImporter = new OX_UpgradePluginImport(); if (!$oPluginImporter->verifyAll($GLOBALS['_MAX']['CONF']['plugins'])) { $prevPathRequired = true; // See if we can figure out the previous path if (!empty($GLOBALS['_MAX']['CONF']['store']['webDir'])) { $possPath = dirname(dirname($GLOBALS['_MAX']['CONF']['store']['webDir'])); $oPluginVerifier = new OX_UpgradePluginImport(); $oPluginVerifier->basePath = $possPath; $oPluginVerifier->destPath = $possPath; if ($oPluginVerifier->verifyAll($GLOBALS['_MAX']['CONF']['plugins'], false)) { $prevPath = $possPath;