From 5f95212d11555694d279145a1f6f5164b823c7a1 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 5 Jan 2001 12:09:46 +0000 Subject: [PATCH] Added a dynamic "administrate" link to the account box. --- includes/theme.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/theme.inc b/includes/theme.inc index e8b69c1d6e6..6aae3d6e66f 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -27,6 +27,11 @@ function theme_account($theme) { $content .= "
  • edit your information
  • \n"; $content .= "
  • edit your preferences
  • \n"; $content .= "
  • edit site content
  • \n"; + if (($user->id) && ($user->permissions == 1 || $user->id == 1)) { + $content .= "

    \n"; + $content .= "

  • administrate " . $site_name . "
  • \n"; + } + $content .= " $content .= "

    \n"; if (ksort($menu)) { foreach ($menu as $link=>$url) $content .= "

  • $link
  • \n";