summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc5
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";