/** @var i18n $I18N */ $addonkey = rex_request('addonkey', 'string'); $addons = array(); try { if ($func == 'add') { $api = new rex_api_install_package_add(); $info = $api->execute(); echo rex_info($info); $addonkey = ''; } } catch (rex_install_functional_exception $e) { echo rex_warning($e->getMessage()); $addonkey = ''; } try { $addons = rex_install_packages::getAddPackages(); } catch (rex_install_functional_exception $e) { echo rex_warning($e->getMessage()); $addonkey = ''; } if ($addonkey && isset($addons[$addonkey]) && !is_dir(rex_path::addon($addonkey))) { $addon = $addons[$addonkey]; $content = ' <div class="rex-addon-output"> <h2 class="rex-hl2">' . htmlspecialchars($addonkey) . '</small></h2> <table id="rex-table-install-packages-information" class="rex-table"> <colgroup> <col width="120" /> <col width="*" /> </colgroup>