summaryrefslogtreecommitdiffstats
path: root/localplay.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-09 07:55:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-09 07:55:50 +0000
commit5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc (patch)
treeff7ceb1767ce45ab9dc9e5e192ed36bc69e3db90 /localplay.php
parent79a890b7bf7bd9b31e6879c64d5651cef02975f3 (diff)
downloadampache-5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc.tar.gz
ampache-5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc.tar.bz2
ampache-5aeac3b17e31d0cc88321a614469c4f3f1a9c0dc.zip
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
Diffstat (limited to 'localplay.php')
-rw-r--r--localplay.php12
1 files changed, 9 insertions, 3 deletions
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');