summaryrefslogtreecommitdiffstats
path: root/democratic.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-10 05:24:59 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-10 05:24:59 +0000
commit311ac991126f68b12a6a29747091544de4acf6a1 (patch)
tree3e52ca25f8ba905e635c996cf31eafaff599ddde /democratic.php
parent01a5512c04512a0d08d8de05705d87d6c9fe46d3 (diff)
downloadampache-311ac991126f68b12a6a29747091544de4acf6a1.tar.gz
ampache-311ac991126f68b12a6a29747091544de4acf6a1.tar.bz2
ampache-311ac991126f68b12a6a29747091544de4acf6a1.zip
minor fixes to the playlist, fixed up the democratic playlist kinda, still does not work completely
Diffstat (limited to 'democratic.php')
-rw-r--r--democratic.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/democratic.php b/democratic.php
index 6cca46c4..ec7c7fcc 100644
--- a/democratic.php
+++ b/democratic.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) 2001 - 2008 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -40,6 +40,19 @@ switch ($_REQUEST['action']) {
// Show the create page
require_once Config::get('prefix') . '/templates/show_create_democratic.inc.php';
break;
+ case 'delete':
+ if (!Access::check('interface','75')) {
+ access_denied();
+ break;
+ }
+
+ Democratic::delete($_REQUEST['democratic_id']);
+
+ $title = '';
+ $text = _('The Requested Playlist has been deleted.');
+ $url = Config::get('web_path') . '/democratic.php?action=manage_playlists';
+ show_confirmation($title,$text,$url);
+ break;
case 'create':
// Only power users here
if (!Access::check('interface','75')) {