From d0e0e716af8e19de76d861aa0f334b55203a759f Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 5 Jan 2006 06:41:04 +0000 Subject: aww yea --- playlist.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'playlist.php') 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(); -- cgit