aboutsummaryrefslogtreecommitdiffstats
path: root/admin/picture_modify.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-09-13 01:06:34 +0000
committerrvelices <rv-github@modusoptimus.com>2007-09-13 01:06:34 +0000
commit98c804aba2dae42e0f3685990a9f505176102f08 (patch)
tree1b32a9a46cfeafb70aab1a8bd6deb01f54513d44 /admin/picture_modify.php
parent69d0dae55d52338e5ef96074e2af2215a93b63fa (diff)
feature 731: permissions at image level
- possibility to change image level from picture_modify - language change "Public" to "---" - possibility to sort users by level on user_list page git-svn-id: http://piwigo.org/svn/trunk@2090 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/picture_modify.php')
-rw-r--r--admin/picture_modify.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index 052b03330..f40bae137 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -75,6 +75,7 @@ if (isset($_POST['submit']) and count($page['errors']) == 0 and !is_adviser())
$data{'id'} = $_GET['image_id'];
$data{'name'} = $_POST['name'];
$data{'author'} = $_POST['author'];
+ $data['level'] = $_POST['level'];
if ($conf['allow_html_descriptions'])
{
@@ -274,6 +275,20 @@ if ($row['has_high'] == 'true')
);
}
+// image level options
+$blockname = 'level_option';
+$selected_level = isset($_POST['level']) ? $_POST['level'] : $row['level'];
+foreach ($conf['available_permission_levels'] as $level)
+{
+ $template->assign_block_vars(
+ $blockname,
+ array(
+ 'VALUE' => $level,
+ 'CONTENT' => l10n( sprintf('Level %d', $level) ),
+ 'SELECTED' => ($level==$selected_level ? 'selected="selected"' : ''),
+ ));
+}
+
// creation date
unset($day, $month, $year);