Ejemplo n.º 1
0
                 <th class="rex-col-c">' . $I18N->msg('addon_hinstall') . '</th>
                 <th class="rex-col-d">' . $I18N->msg('addon_hactive') . '</th>
                 <th class="rex-col-e" colspan="2">' . $I18N->msg('addon_hdelete') . '</th>
             </tr>
         </thead>
         <tbody>';
 foreach ($ADDONS as $addon) {
     $addonurl = 'index.php?page=addon&amp;addonname=' . $addon . '&amp;';
     if (OOAddon::isSystemAddon($addon)) {
         $delete = $I18N->msg('addon_systemaddon');
     } else {
         $delete = '<a href="' . $addonurl . 'delete=1" onclick="return confirm(\'' . htmlspecialchars($I18N->msg('addon_delete_question', $addon)) . '\');">' . $I18N->msg('addon_delete') . '</a>';
     }
     if (OOAddon::isInstalled($addon)) {
         $install = $I18N->msg('addon_yes') . ' - <a href="' . $addonurl . 'install=1">' . $I18N->msg('addon_reinstall') . '</a>';
         if (count(OOPlugin::getInstalledPlugins($addon)) > 0) {
             $uninstall = $I18N->msg('plugin_plugins_installed');
             $delete = $I18N->msg('plugin_plugins_installed');
         } else {
             $uninstall = '<a href="' . $addonurl . 'uninstall=1" onclick="return confirm(\'' . htmlspecialchars($I18N->msg('addon_uninstall_question', $addon)) . '\');">' . $I18N->msg('addon_uninstall') . '</a>';
         }
     } else {
         $install = $I18N->msg('addon_no') . ' - <a href="' . $addonurl . 'install=1">' . $I18N->msg('addon_install') . '</a>';
         $uninstall = $I18N->msg('addon_notinstalled');
     }
     if (OOAddon::isActivated($addon)) {
         $status = $I18N->msg('addon_yes') . ' - <a href="' . $addonurl . 'activate=0">' . $I18N->msg('addon_deactivate') . '</a>';
     } elseif (OOAddon::isInstalled($addon)) {
         $status = $I18N->msg('addon_no') . ' - <a href="' . $addonurl . 'activate=1">' . $I18N->msg('addon_activate') . '</a>';
     } else {
         $status = $I18N->msg('addon_notinstalled');