summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-30 04:46:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-30 04:46:45 +0000
commit598a200b969da093a99153173129257da080f71b (patch)
treeb9b12acc57a92063b3227f7dc495e62749449f19 /modules
parent07ad109268f038880d1bd1d4cda299cbff59b83a (diff)
downloadampache-598a200b969da093a99153173129257da080f71b.tar.gz
ampache-598a200b969da093a99153173129257da080f71b.tar.bz2
ampache-598a200b969da093a99153173129257da080f71b.zip
ok this is ugly but it works
Diffstat (limited to 'modules')
-rw-r--r--modules/flash/xspf_player.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/flash/xspf_player.php b/modules/flash/xspf_player.php
new file mode 100644
index 00000000..c88999c5
--- /dev/null
+++ b/modules/flash/xspf_player.php
@@ -0,0 +1,46 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2006 Ampache.org
+ All rights reserved.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License v2
+ as published by the Free Software Foundation
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+*/
+
+require_once('../../lib/init.php');
+
+
+$dbh = dbh();
+$web_path = conf('web_path');
+
+/* Attempt to build the temp playlist */
+$action = scrub_in($_REQUEST['action']);
+
+switch ($action) {
+ default:
+ case 'tmp_playlist':
+ $tmp_playlist = new tmpPlaylist($_REQUEST['tmp_id']);
+ $items = $tmp_playlist->get_items();
+ $stream = new Stream('xspf',$items);
+ $stream->start();
+ break;
+ case 'show':
+ $play_info = "?tmp_id=" . scrub_out($_REQUEST['tmpplaylist_id']);
+ require_once (conf('prefix') . '/templates/show_xspf_player.inc.php');
+ break;
+} // end switch
+
+
+?>