From bea45c89b62c779dd56383e82b0fbb9bd76696df Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 10 Feb 2012 10:52:07 +0000 Subject: feature 2564: redesign on photo administration screen. * one screen with several tabs (for now: properties + coi) * double select boxes for album associations and representation have been converted to simple multiple select boxes with jQuery Chosen * more details about the photo in an introduction text git-svn-id: http://piwigo.org/svn/trunk@13077 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'admin.php') diff --git a/admin.php b/admin.php index 74a88911d..4b914eae9 100644 --- a/admin.php +++ b/admin.php @@ -132,6 +132,18 @@ if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page } } +// ?page=photo-1234-properties is an clean alias of +// ?page=photo&image_id=1234&tab=properties +if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches)) +{ + $_GET['page'] = 'photo'; + $_GET['image_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')) @@ -236,6 +248,7 @@ if ( 'album', // delete cat; public/private; lock/unlock, permissions 'cat_move', // ?only POST 'cat_options', // ?only POST; public/private; lock/unlock + 'photo', 'picture_modify', // ?only POST; associate/dissociate 'user_perm', 'group_perm', -- cgit v1.2.3