summaryrefslogtreecommitdiffstats
path: root/playlist.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-05 06:41:04 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-05 06:41:04 +0000
commitd0e0e716af8e19de76d861aa0f334b55203a759f (patch)
tree621bd1e4104921d23ba27c1d90863387ca849720 /playlist.php
parent6daae3271c5126c2cd4c08b98b451ebe51fa90e0 (diff)
downloadampache-d0e0e716af8e19de76d861aa0f334b55203a759f.tar.gz
ampache-d0e0e716af8e19de76d861aa0f334b55203a759f.tar.bz2
ampache-d0e0e716af8e19de76d861aa0f334b55203a759f.zip
aww yea
Diffstat (limited to 'playlist.php')
-rw-r--r--playlist.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/playlist.php b/playlist.php
index 914a167c..64be7f7e 100644
--- a/playlist.php
+++ b/playlist.php
@@ -87,6 +87,16 @@ switch ($action) {
/* Show the Playlist */
show_playlist($playlist);
break;
+ case 'add_dyn_song':
+ /* Check Rights */
+ if (!$GLOBALS['user']->has_access(100) && $GLOBALS['user']->username != $playlist->username) {
+ access_denied();
+ break;
+ }
+
+ $playlist->add_dyn_song();
+ show_playlist($playlist);
+ break;
case 'create_playlist':
case 'create':
/* Check rights */
@@ -139,7 +149,6 @@ switch ($action) {
show_import_playlist();
break;
case 'set_track_numbers':
- print_r($_REQUEST);
/* Make sure they have permission */
if (!$GLOBALS['user']->has_access(100) && $GLOBALS['user']->username != $playlist->user) {
access_denied();