Ejemplo n.º 1
0
     $url = AmpConfig::get('web_path') . '/admin/modules.php?action=uninstall_localplay&type=' . $type;
     $title = T_('Are you sure you want to remove this plugin?');
     $body = '';
     show_confirmation($title, $body, $url, 1);
     break;
 case 'confirm_uninstall_catalog_type':
     $type = scrub_in($_REQUEST['type']);
     $url = AmpConfig::get('web_path') . '/admin/modules.php?action=uninstall_catalog_type&type=' . $type;
     $title = T_('Are you sure you want to remove this plugin?');
     $body = '';
     show_confirmation($title, $body, $url, 1);
     break;
 case 'uninstall_localplay':
     $type = scrub_in($_REQUEST['type']);
     $localplay = new Localplay($type);
     $localplay->uninstall();
     /* Show Confirmation */
     $url = AmpConfig::get('web_path') . '/admin/modules.php?action=show_localplay';
     $title = T_('Plugin Deactivated');
     $body = '';
     show_confirmation($title, $body, $url);
     break;
 case 'uninstall_catalog_type':
     $type = scrub_in($_REQUEST['type']);
     $catalog = Catalog::create_catalog_type($type);
     if ($catalog == null) {
         Error::add('general', T_('Uninstall Failed, Catalog Error'));
         Error::display('general');
         break;
     }
     $catalog->uninstall();