Added a dynamic "administrate" link to the account box.

3-00
Steven Wittens 2001-01-05 12:09:46 +00:00
parent db0c9420a3
commit 5f95212d11
1 changed files with 5 additions and 0 deletions

View File

@ -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=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=site\">edit your preferences</A></LI>\n";
$content .= "<LI><A HREF=\"account.php?op=edit&topic=content\">edit site content</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"; $content .= "<P>\n";
if (ksort($menu)) { if (ksort($menu)) {
foreach ($menu as $link=>$url) $content .= "<LI><A HREF=\"$url\">$link</A></LI>\n"; foreach ($menu as $link=>$url) $content .= "<LI><A HREF=\"$url\">$link</A></LI>\n";