summaryrefslogtreecommitdiffstats
path: root/stream.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-25 02:47:56 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-25 02:47:56 +0000
commita2c471bd18fb5e38763bb0dfd563aca3a54aed1b (patch)
treec110bd8da54fd0006cd2f32ea2f1c32f9582395b /stream.php
parent74ff21838d600bc36014953db8e6c51db7ce33a4 (diff)
downloadampache-a2c471bd18fb5e38763bb0dfd563aca3a54aed1b.tar.gz
ampache-a2c471bd18fb5e38763bb0dfd563aca3a54aed1b.tar.bz2
ampache-a2c471bd18fb5e38763bb0dfd563aca3a54aed1b.zip
reimplemented the session function check
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/stream.php b/stream.php
index 322f5ee7..c8118e88 100644
--- a/stream.php
+++ b/stream.php
@@ -34,21 +34,6 @@ $web_path = Config::get('web_path');
* action switch
*/
switch ($_REQUEST['action']) {
- case 'play_selected':
- $type = scrub_in($_REQUEST['type']);
- if ($type == 'album') {
- $song_ids = get_songs_from_type($type, $_POST['song'], $_REQUEST['artist_id']);
- }
- elseif ($_REQUEST['playlist_id']) {
- $playlist = new Playlist($_REQUEST['playlist_id']);
- $song_ids = $playlist->get_songs($_REQUEST['song']);
- }
- else {
- $song_ids = $_POST['song'];
- }
- // Make sure they actually passed soemthing
- if (!count($song_ids)) { header("Location:" . return_referer()); exit; }
- break;
case 'basket':
// Pull in our items (multiple types)
$objects = $GLOBALS['user']->playlist->get_items();
@@ -77,8 +62,7 @@ switch ($_REQUEST['action']) {
} // end foreach
// Check to see if 'clear' was passed if it was then we need to reset the basket
- // FIXME: We need to reload the rightbar when we do this... sigh...
- if ($_REQUEST['playlist_method'] == 'clear' || $GLOBALS['user']->prefs['playlist_method'] == 'clear') {
+ if ( ($_REQUEST['playlist_method'] == 'clear' || $GLOBALS['user']->prefs['playlist_method'] == 'clear') AND $GLOBALS['user']->prefs['play_method'] != 'xspf_player') {
$GLOBALS['user']->playlist->clear();
}