user host info page: when giving IP data, show both private

AND external IP (only for owner of host machine)

svn path=/trunk/boinc/; revision=9245
This commit is contained in:
Bruce Allen 2006-01-16 12:36:14 +00:00
parent 25ce5f8069
commit d68c82518a
2 changed files with 4 additions and 0 deletions

View File

@ -495,8 +495,11 @@ David 15 Jan 2006
Bruce 16 Jan 2006
- ops page: add external IP to data shown for host
- user host info page: when giving IP data, show both private
AND external IP (only for owner of host machine).
html/
inc/
db_ops.inc
host.inc

View File

@ -37,6 +37,7 @@ function show_host($host, $private, $ipprivate) {
if ($private) {
if ($ipprivate) {
row2("IP address", "$host->last_ip_addr<br>(same the last $host->nsame_ip_addr times)");
if (strcmp($host->last_ip_addr, $host->external_ip_addr)) row2("External IP address", $host->external_ip_addr);
} else {
row2("IP address", "<a href=show_host_detail.php?hostid=$host->id&ipprivate=1>Show IP address</a>");
}