summaryrefslogtreecommitdiffstats
path: root/server/stream.ajax.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-10 19:05:42 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-10 19:05:42 +0000
commit0e26226af811a2a92c300ff28f3aa1ad47ae19f0 (patch)
treeb5c083da4160cc61d0ac3aec21d9129f54f49937 /server/stream.ajax.php
parent7114792a08c65a5429bfdf6bfaba267b9f88b019 (diff)
downloadampache-0e26226af811a2a92c300ff28f3aa1ad47ae19f0.tar.gz
ampache-0e26226af811a2a92c300ff28f3aa1ad47ae19f0.tar.bz2
ampache-0e26226af811a2a92c300ff28f3aa1ad47ae19f0.zip
initial work on democratic play, not finished, added drop down select for playtype switching back in, thinking about changing it and making it a row of icons... not sure
Diffstat (limited to 'server/stream.ajax.php')
-rw-r--r--server/stream.ajax.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/stream.ajax.php b/server/stream.ajax.php
index be29a545..7996b676 100644
--- a/server/stream.ajax.php
+++ b/server/stream.ajax.php
@@ -25,6 +25,16 @@
if (AJAX_INCLUDE != '1') { exit; }
switch ($_REQUEST['action']) {
+ case 'set_play_type':
+ // Make sure they have the rights to do this
+ if (!Preference::has_access('play_type')) {
+ $results['rfc3514'] = '0x1';
+ break;
+ }
+
+ // Go ahead and update their preference
+ Preference::update('play_type',$GLOBALS['user']->id,$_POST['type']);
+ break;
case 'basket':
// We need to set the basket up!
$_SESSION['iframe']['target'] = Config::get('web_path') . '/stream.php?action=basket';