diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-12 04:55:20 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-12 04:55:20 +0000 |
commit | ba62ca14b91934d9f5d81ff3a29fcf434acd1fdc (patch) | |
tree | 0b06c8d81016408a5141d347ca47bedd44adc286 /server/localplay.ajax.php | |
parent | f5a47635bd7b3d4b3c12f0f6f42424316a074e71 (diff) | |
download | ampache-ba62ca14b91934d9f5d81ff3a29fcf434acd1fdc.tar.gz ampache-ba62ca14b91934d9f5d81ff3a29fcf434acd1fdc.tar.bz2 ampache-ba62ca14b91934d9f5d81ff3a29fcf434acd1fdc.zip |
added abilty to display and delete localplay instances
Diffstat (limited to 'server/localplay.ajax.php')
-rw-r--r-- | server/localplay.ajax.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/localplay.ajax.php b/server/localplay.ajax.php index 49212bfd..cefa8009 100644 --- a/server/localplay.ajax.php +++ b/server/localplay.ajax.php @@ -67,6 +67,18 @@ switch ($_REQUEST['action']) { } // end whitelist break; + case 'delete_instance': + // Make sure that you have access to do this... again I really + // don't know what that means so I'm just going to do nothing fo now + + + // Scrub it in + $localplay = new Localplay($GLOBALS['user']->prefs['localplay_controller']); + $localplay->delete_instance($_REQUEST['instance']); + + $key = 'localplay_instance_' . $_REQUEST['instance']; + $results[$key] = ''; + break; default: $results['rfc3514'] = '0x1'; break; |