summaryrefslogtreecommitdiffstats
path: root/democratic.php
diff options
context:
space:
mode:
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')) {