diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-01-05 12:09:46 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-01-05 12:09:46 +0000 |
commit | 5f95212d11555694d279145a1f6f5164b823c7a1 (patch) | |
tree | c4fceb3745ca7822ee38a88e66ba6a769a75b2df /includes/theme.inc | |
parent | db0c9420a32586e795ec046f0a5c7b2137151b54 (diff) | |
download | brdo-5f95212d11555694d279145a1f6f5164b823c7a1.tar.gz brdo-5f95212d11555694d279145a1f6f5164b823c7a1.tar.bz2 |
Added a dynamic "administrate" link to the account box.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index e8b69c1d6..6aae3d6e6 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -27,6 +27,11 @@ function theme_account($theme) { $content .= "<LI><A HREF=\"account.php?op=edit&topic=user\">edit your information</A></LI>\n"; $content .= "<LI><A HREF=\"account.php?op=edit&topic=site\">edit your preferences</A></LI>\n"; $content .= "<LI><A HREF=\"account.php?op=edit&topic=content\">edit site content</A></LI>\n"; + if (($user->id) && ($user->permissions == 1 || $user->id == 1)) { + $content .= "<P>\n"; + $content .= "<LI><A HREF=\"admin.php\">administrate " . $site_name . "</A></LI>\n"; + } + $content .= " $content .= "<P>\n"; if (ksort($menu)) { foreach ($menu as $link=>$url) $content .= "<LI><A HREF=\"$url\">$link</A></LI>\n"; |