aboutsummaryrefslogtreecommitdiffstats
path: root/admin/maintenance.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-03-16 22:58:16 +0000
committerrub <rub@piwigo.org>2006-03-16 22:58:16 +0000
commit9b521760af7639310742d7817c4fb91b88471c5c (patch)
tree9260a834a927131ba184de330d4f8ecdfaafdcef /admin/maintenance.php
parent5980db248ab4cc05e8596e07d7efc31048bcb8e8 (diff)
Step 7 improvement issue 0000301:
o can attribute status <= current user o define mode adviser => buttons disabled (gray on IE, not on FF) => truncated actions => display info mode adviser git-svn-id: http://piwigo.org/svn/trunk@1085 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/maintenance.php36
1 files changed, 26 insertions, 10 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php
index 0a5c3cd22..c7caf8e50 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -98,16 +98,32 @@ $template->set_filenames(array('maintenance'=>'admin/maintenance.tpl'));
$start_url = PHPWG_ROOT_PATH.'admin.php?page=maintenance&amp;action=';
-$template->assign_vars(
- array(
- 'U_MAINT_CATEGORIES' => $start_url.'categories',
- 'U_MAINT_IMAGES' => $start_url.'images',
- 'U_MAINT_HISTORY' => $start_url.'history',
- 'U_MAINT_SESSIONS' => $start_url.'sessions',
- 'U_MAINT_FEEDS' => $start_url.'feeds',
- 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=maintenance',
- )
- );
+if (!is_adviser())
+{
+ $template->assign_vars(
+ array(
+ 'U_MAINT_CATEGORIES' => $start_url.'categories',
+ 'U_MAINT_IMAGES' => $start_url.'images',
+ 'U_MAINT_HISTORY' => $start_url.'history',
+ 'U_MAINT_SESSIONS' => $start_url.'sessions',
+ 'U_MAINT_FEEDS' => $start_url.'feeds',
+ 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=maintenance',
+ )
+ );
+}
+else
+{
+ $template->assign_vars(
+ array(
+ 'U_MAINT_CATEGORIES' => $start_url,
+ 'U_MAINT_IMAGES' => $start_url,
+ 'U_MAINT_HISTORY' => $start_url,
+ 'U_MAINT_SESSIONS' => $start_url,
+ 'U_MAINT_FEEDS' => $start_url,
+ 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=maintenance',
+ )
+ );
+}
// +-----------------------------------------------------------------------+
// | sending html code |