summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-15 08:57:52 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-15 08:57:52 +0000
commit637656f08dfde4f8843cfaef257e2a2a3c49d770 (patch)
tree052a9ff6423a24fff04f49675fad7f79aead5cc4 /server
parent8cae71c489090f2c59822d04b1622520b8e6b1b0 (diff)
downloadampache-637656f08dfde4f8843cfaef257e2a2a3c49d770.tar.gz
ampache-637656f08dfde4f8843cfaef257e2a2a3c49d770.tar.bz2
ampache-637656f08dfde4f8843cfaef257e2a2a3c49d770.zip
added db update for tmp playlist and added initial class definition
Diffstat (limited to 'server')
-rw-r--r--server/ajax.server.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/ajax.server.php b/server/ajax.server.php
index e340a955..ee3578d5 100644
--- a/server/ajax.server.php
+++ b/server/ajax.server.php
@@ -37,6 +37,7 @@ $action = scrub_in($_REQUEST['action']);
header("Content-type: application/xhtml+xml");
switch ($action) {
+ /* Controls Localplay */
case 'localplay':
init_preferences();
$localplay = init_localplay();
@@ -70,6 +71,7 @@ switch ($action) {
$xml_doc = xml_from_array($results);
echo $xml_doc;
break;
+ /* For changing the current play type */
case 'change_play_type':
init_preferences();
session_id(scrub_in($_REQUEST['sessid']));
@@ -89,6 +91,7 @@ switch ($action) {
$xml_doc = xml_from_array($results);
echo $xml_doc;
break;
+ /* reloading the now playing information */
case 'reloadnp':
ob_start();
show_now_playing();
@@ -97,6 +100,7 @@ switch ($action) {
$xml_doc = xml_from_array($results);
echo $xml_doc;
break;
+ /* Setting ratings */
case 'set_rating':
ob_start();
$rating = new Rating($_REQUEST['object_id'],$_REQUEST['rating_type']);