Пример #1
0
       <col width="130" />
       <col width="130" />
       <col width="153" />
     </colgroup>
 	  <thead>
       <tr>
       	<th class="rex-icon">&nbsp;</th>
         <th>' . $I18N->msg("addon_hname") . '</th>
         <th>' . $I18N->msg("addon_hinstall") . '</th>
         <th>' . $I18N->msg("addon_hactive") . '</th>
         <th colspan="2">' . $I18N->msg("addon_hdelete") . '</th>
       </tr>
 	  </thead>
 	  <tbody>';
   foreach ($ADDONS as $cur) {
       if (OOAddon::isSystemAddon($cur)) {
           $delete = $I18N->msg("addon_systemaddon");
       } else {
           $delete = '<a href="index.php?page=addon&amp;addonname=' . $cur . '&amp;delete=1" onclick="return confirm(\'' . htmlspecialchars($I18N->msg('addon_delete_question', $cur)) . '\');">' . $I18N->msg("addon_delete") . '</a>';
       }
       if (OOAddon::isInstalled($cur)) {
           $install = $I18N->msg("addon_yes") . ' - <a href="index.php?page=addon&amp;addonname=' . $cur . '&amp;install=1">' . $I18N->msg("addon_reinstall") . '</a>';
           $uninstall = '<a href="index.php?page=addon&amp;addonname=' . $cur . '&amp;uninstall=1" onclick="return confirm(\'' . htmlspecialchars($I18N->msg("addon_uninstall_question", $cur)) . '\');">' . $I18N->msg("addon_uninstall") . '</a>';
       } else {
           $install = $I18N->msg("addon_no") . ' - <a href="index.php?page=addon&amp;addonname=' . $cur . '&amp;install=1">' . $I18N->msg("addon_install") . '</a>';
           $uninstall = $I18N->msg("addon_notinstalled");
       }
       if (OOAddon::isActivated($cur)) {
           $status = $I18N->msg("addon_yes") . ' - <a href="index.php?page=addon&amp;addonname=' . $cur . '&amp;activate=0">' . $I18N->msg("addon_deactivate") . '</a>';
       } elseif (OOAddon::isInstalled($cur)) {
           $status = $I18N->msg("addon_no") . ' - <a href="index.php?page=addon&amp;addonname=' . $cur . '&amp;activate=1">' . $I18N->msg("addon_activate") . '</a>';
Пример #2
0
             <col width="130" />
             <col width="153" />
         </colgroup>
         <thead>
             <tr>
                 <th class="rex-icon rex-col-a">&nbsp;</th>
                 <th class="rex-col-b">' . $I18N->msg('addon_hname') . '</th>
                 <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');