From ae6a63bee0d834888c3b30b5bcc4df2216173c75 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 1 Feb 2012 23:03:35 +0000 Subject: feature 2561: redesign on album administration screen. * only one form on the screen and several tabs * simpler URL pattern : page=album-123-properties / page=album-123-sort_order / page=album-123-permissions * action to associate all photos of an album to another (new) virtual album was removed. This can be easily done with the new Batch Manager * notification by email on an album still has to be moved on a new dedicated tab * action icons (jump to album, manage photos, manage sub-albums, delete album...) replaced by plain text links git-svn-id: http://piwigo.org/svn/trunk@13013 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'admin.php') diff --git a/admin.php b/admin.php index b99f72b40..edb2827ba 100644 --- a/admin.php +++ b/admin.php @@ -120,6 +120,18 @@ if (isset($_GET['page']) and preg_match('/^plugin-([^-]*)(?:-(.*))?$/', $_GET['p } } +// ?page=album-134-properties is an clean alias of +// ?page=album&cat_id=134&tab=properties +if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches)) +{ + $_GET['page'] = 'album'; + $_GET['cat_id'] = $matches[1]; + if (isset($matches[2])) + { + $_GET['tab'] = $matches[2]; + } +} + if (isset($_GET['page']) and preg_match('/^[a-z_]*$/', $_GET['page']) and is_file(PHPWG_ROOT_PATH.'admin/'.$_GET['page'].'.php')) -- cgit v1.2.3