summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-23 07:09:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-23 07:09:45 +0000
commit4ad67656eb63a6c23b0e6caed619f463e0c14aec (patch)
tree4acf5de1b4ddb89e90b5e082f5ab481c50c7d15d /server
parent216e691dfa53a28af8beca7aad2bf0ffb71dba2c (diff)
downloadampache-4ad67656eb63a6c23b0e6caed619f463e0c14aec.tar.gz
ampache-4ad67656eb63a6c23b0e6caed619f463e0c14aec.tar.bz2
ampache-4ad67656eb63a6c23b0e6caed619f463e0c14aec.zip
editing a live stream works now, added confirmation to live stream creation and also tweaked the create page to be slightly less wordy
Diffstat (limited to 'server')
-rw-r--r--server/ajax.server.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/ajax.server.php b/server/ajax.server.php
index 15ba8588..9021065a 100644
--- a/server/ajax.server.php
+++ b/server/ajax.server.php
@@ -59,6 +59,11 @@ switch ($action) {
$song = new Song($_GET['id']);
$song->format();
break;
+ case 'live_stream':
+ $key = 'live_stream_' . $_GET['id'];
+ $radio = new Radio($_GET['id']);
+ $radio->format();
+ break;
default:
$key = 'rfc3514';
echo xml_from_array(array($key=>'0x1'));
@@ -73,7 +78,6 @@ switch ($action) {
echo xml_from_array($results);
break;
case 'edit_object':
-
// Make sure we've got them rights
if (!$GLOBALS['user']->has_access('50')) {
exit;
@@ -90,6 +94,12 @@ switch ($action) {
$song = new Song($_POST['id']);
$song->format();
break;
+ case 'live_stream':
+ $key = 'live_stream_' . $_POST['id'];
+ Radio::update($_POST);
+ $radio = new Radio($_POST['id']);
+ $radio->format();
+ break;
default:
$key = 'rfc3514';
echo xml_from_array(array($key=>'0x1'));