mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
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
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user