aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-02-10 10:52:07 +0000
committerplegall <plg@piwigo.org>2012-02-10 10:52:07 +0000
commitbea45c89b62c779dd56383e82b0fbb9bd76696df (patch)
tree9fd2a99b54f475273eda65ca2890acaf73ce3b82 /admin.php
parent62bfdd3f97eee2ad6136f98a9c322c3660541b9e (diff)
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
Diffstat (limited to '')
-rw-r--r--admin.php13
1 files changed, 13 insertions, 0 deletions
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',