case 'download_updates': $sLink = process_db_input($_POST['link'], BX_TAGS_STRIP); $mixedResult = $oInstallerUi->downloadUpdate($sLink); $aResult = array('code' => 0, 'message' => _t('_adm_txt_modules_update_download_success')); if ($mixedResult !== true) { $aResult = array('code' => 1, 'message' => $mixedResult); } break; } header('Content-Type:text/javascript'); $oJson = new Services_JSON(); echo $oJson->encode($aResult); exit; } if (isset($_POST['modules-install']) && is_array($_POST['pathes']) && !empty($_POST['pathes'])) { $sResult = $oInstallerUi->actionInstall($_POST['pathes']); } if (isset($_POST['modules-delete']) && is_array($_POST['pathes']) && !empty($_POST['pathes']) && isset($aEnabledModuleAction['module_delete'])) { $sResultDeleteModule = $oInstallerUi->actionDelete($_POST['pathes']); } else { if (isset($_POST['modules-update']) && is_array($_POST['pathes']) && !empty($_POST['pathes']) && isset($aEnabledModuleAction['module_update'])) { $oInstallerUi->setCheckPathes($_POST['pathes']); } else { if (isset($_POST['modules-uninstall']) && is_array($_POST['pathes']) && !empty($_POST['pathes'])) { $sResult = $oInstallerUi->actionUninstall($_POST['pathes']); } else { if (isset($_POST['modules-recompile-languages']) && is_array($_POST['pathes']) && !empty($_POST['pathes'])) { $sResult = $oInstallerUi->actionRecompile($_POST['pathes']); } } }