From 5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 9 Apr 2006 07:55:50 +0000 Subject: added an ugly localplay view page, and made it so you can remove songs from your mpd playlist... its ugly.. I know.. ooh yea you can also deactivate modules now --- localplay.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'localplay.php') diff --git a/localplay.php b/localplay.php index 816f40c4..ba5a5f7d 100644 --- a/localplay.php +++ b/localplay.php @@ -42,9 +42,15 @@ show_template('header'); switch ($action) { - case 'delete_songs': - - + case 'delete_song': + $song_id = scrub_in($_REQUEST['song_id']); + $songs = array($song_id); + $localplay = init_localplay(); + $localplay->delete($songs); + $url = $web_path . '/localplay.php'; + $title = _('Song Removed from Playlist'); + $body = ''; + show_confirmation($title,$body,$url); break; default: require_once (conf('prefix') . '/templates/show_localplay.inc.php'); -- cgit