Commit 5f95212d authored by Steven Wittens's avatar Steven Wittens
Browse files

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

parent db0c9420
......@@ -27,6 +27,11 @@ function menu($name, $module) {
$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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment