Exemplo n.º 1
0
            }
            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']);
            }
        }
    }
}
if (isset($_POST['updates-install']) && is_array($_POST['pathes']) && !empty($_POST['pathes']) && isset($aEnabledModuleAction['update_install'])) {
    $sResult = $oInstallerUi->actionUpdate($_POST['pathes']);
}
if (isset($_POST['updates-delete']) && is_array($_POST['pathes']) && !empty($_POST['pathes']) && isset($aEnabledModuleAction['update_delete'])) {
    $sResultDeleteUpdate = $oInstallerUi->actionDelete($_POST['pathes']);