summaryrefslogtreecommitdiffstats
path: root/admin/catalog.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-06-19 06:32:23 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-06-19 06:32:23 +0000
commitcef43c3602c38fe4b49e74bdfa429c66929ada0e (patch)
tree0eaf81ca59c5c52ff023254105afb9f43b67cfc5 /admin/catalog.php
parentcabbf907970a6d514a4b9288abcfec3c0c6b2d55 (diff)
downloadampache-cef43c3602c38fe4b49e74bdfa429c66929ada0e.tar.gz
ampache-cef43c3602c38fe4b49e74bdfa429c66929ada0e.tar.bz2
ampache-cef43c3602c38fe4b49e74bdfa429c66929ada0e.zip
reorganize the menu a whole bunch and add a confirmation page to the catalog deletion
Diffstat (limited to 'admin/catalog.php')
-rw-r--r--admin/catalog.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/admin/catalog.php b/admin/catalog.php
index c9b470ff..fb23f7cf 100644
--- a/admin/catalog.php
+++ b/admin/catalog.php
@@ -103,12 +103,23 @@ switch ($_REQUEST['action']) {
case 'delete_catalog':
/* Make sure they aren't in demo mode */
if (Config::get('demo_mode')) { break; }
+
+ if (!Core::form_verify('delete_catalog')) {
+ access_denied();
+ exit;
+ }
/* Delete the sucker, we don't need to check perms as thats done above */
- Catalog::delete($_REQUEST['catalog_id']);
+ Catalog::delete($_GET['catalog_id']);
$next_url = Config::get('web_path') . '/admin/index.php';
show_confirmation(_('Catalog Deleted'),_('The Catalog and all associated records have been deleted'),$nexturl);
break;
+ case 'show_delete_catalog':
+ $catalog_id = scrub_in($_GET['catalog_id']);
+
+ $next_url = Config::get('web_path') . '/admin/catalog.php?action=delete_catalog';
+ show_confirmation(_('Catalog Delete'),_('Confirm Deletion Request'),$nexturl,1,'delete_catalog');
+ break;
case 'remove_disabled':
if (conf('demo_mode')) { break; }