summaryrefslogtreecommitdiffstats
path: root/tv.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-17 06:30:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-17 06:30:36 +0000
commitc522a2c1e97518d21e351821c27a9188e0cb3a1d (patch)
treea4a2ece3b050d4624ea9737a20bb9d2e0bf9dfb8 /tv.php
parent4fb9dbd3ef5b0b613efb32c5e02ca64db37d336a (diff)
downloadampache-c522a2c1e97518d21e351821c27a9188e0cb3a1d.tar.gz
ampache-c522a2c1e97518d21e351821c27a9188e0cb3a1d.tar.bz2
ampache-c522a2c1e97518d21e351821c27a9188e0cb3a1d.zip
some bug fixes and tweaks
Diffstat (limited to 'tv.php')
-rw-r--r--tv.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/tv.php b/tv.php
index ecd2c066..1b232897 100644
--- a/tv.php
+++ b/tv.php
@@ -50,9 +50,16 @@ switch ($action) {
break;
/* This sends the playlist to the 'method' of their chosing */
case 'send_playlist':
-
-
-
+ /* Only Admins Here */
+ if (!$GLOBALS['user']->has_access(100)) {
+ access_denied();
+ break;
+ }
+ $stream_type = scrub_in($_REQUEST['play_type']);
+ $tmp_playlist = new tmpPlaylist($_REQUEST['tmp_playlist_id']);
+ $stream = new Stream($stream_type,array());
+ $stream->manual_url_add($tmp_playlist->get_vote_url());
+ $stream->start();
break;
case 'update_playlist':
/* Only Admins Here */