diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-10 06:08:33 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-10 06:08:33 +0000 |
commit | 32349846fbd66e4ebc44e63d37fbcd8cff5a8a73 (patch) | |
tree | 6aa1acd81fcf798150ba2c702116aa5f4dcde63b /admin | |
parent | 8045c0121ca3e22af2945faa072c5de4b329d7d8 (diff) | |
download | ampache-32349846fbd66e4ebc44e63d37fbcd8cff5a8a73.tar.gz ampache-32349846fbd66e4ebc44e63d37fbcd8cff5a8a73.tar.bz2 ampache-32349846fbd66e4ebc44e63d37fbcd8cff5a8a73.zip |
fixed two MPD issues, can now disable localplay modules, added check for PHP5
Diffstat (limited to 'admin')
-rw-r--r-- | admin/modules.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/admin/modules.php b/admin/modules.php index 42f82ef5..baeb1748 100644 --- a/admin/modules.php +++ b/admin/modules.php @@ -44,10 +44,23 @@ switch ($_REQUEST['action']) { header("Location:" . Config::get('web_path') . '/admin/modules.php?action=show_localplay'); break; case 'confirm_uninstall_localplay': - + $type = scrub_in($_REQUEST['type']); + $url = Config::get('web_path') . '/admin/modules.php?action=uninstall_localplay&type=' . $type; + $title = _('Are you sure you want to remove this plugin?'); + $body = ''; + show_confirmation($title,$body,$url); break; case 'uninstall_localplay': + $type = scrub_in($_REQUEST['type']); + $localplay = new Localplay($type); + $localplay->uninstall(); + + /* Show Confirmation */ + $url = Config::get('web_path') . '/admin/modules.php?action=show_localplay'; + $title = _('Plugin Deactivated'); + $body = ''; + show_confirmation($title,$body,$url); break; case 'install_plugin': /* Verify that this plugin exists */ |