- Add explicity leading path to URLs in a 'show user' function that is

called from one of the ops pages.  Janus, I used URL_BASE rather
      than MASTER_URL (what's the distinction?).  Please confirm this.

svn path=/trunk/boinc/; revision=6589
This commit is contained in:
Bruce Allen 2005-07-10 04:13:15 +00:00
parent b36aafd00c
commit 430eab985e
2 changed files with 13 additions and 3 deletions

View File

@ -9080,3 +9080,13 @@ Rom 8 July 2005
boinc_guirpc_test.vcproj
boinc_ss.vcproj
upper_case.vcproj
Bruce 10 July 2005
- Add explicity leading path to URLs in a 'show user' function that is
called from one of the ops pages. Janus, I used URL_BASE rather
than MASTER_URL (what's the distinction?). Please confirm this.
html/
inc/
user.inc

View File

@ -104,17 +104,17 @@ function show_user_summary_public($user) {
show_credit($user);
if ($user->teamid && ($team = lookup_team($user->teamid))) {
row2("Team", "<a href=team_display.php?teamid=$team->id>$team->name</a>");
row2("Team", "<a href=".URL_BASE."team_display.php?teamid=$team->id>$team->name</a>");
} else {
row2("Team", "None");
}
if ($user->show_hosts) {
row2("Computers", "<a href=hosts_user.php?userid=$user->id>View</a>");
row2("Computers", "<a href=".URL_BASE."hosts_user.php?userid=$user->id>View</a>");
} else {
row2("Computers", "hidden");
}
if ($user->posts) {
row2("Message board posts", "<a href=forum_user_posts.php?userid=$user->id>$user->posts</a>");
row2("Message board posts", "<a href=".URL_BASE."forum_user_posts.php?userid=$user->id>$user->posts</a>");
}
}