*** empty log message ***

svn path=/trunk/boinc/; revision=3262
This commit is contained in:
David Anderson 2004-04-14 21:27:48 +00:00
parent 00c54bac9d
commit 7914d8d19e
1 changed files with 3 additions and 5 deletions

View File

@ -17,11 +17,8 @@
if ($hostid) { if ($hostid) {
$host = lookup_host($hostid); $host = lookup_host($hostid);
// if (!$host || $host->userid != $user->id) {
// echo "No access";
// exit();
// }
$type = "host"; $type = "host";
$link = "<a href=show_host_detail.php?hostid=$hostid>host $hostid</a>";
$clause = "hostid=$hostid"; $clause = "hostid=$hostid";
} else { } else {
if ($userid != $user->id) { if ($userid != $user->id) {
@ -29,10 +26,11 @@
exit(); exit();
} }
$type = "user"; $type = "user";
$link = "user";
$clause = "userid=$userid"; $clause = "userid=$userid";
} }
page_head("Results for $type"); page_head("Results for $type");
echo "<h3>Results for $type</h3>\n"; echo "<h3>Results for $link</h3>\n";
result_table_start(true, false, true); result_table_start(true, false, true);
$i = 0; $i = 0;
$query = "select * from result where $clause order by id desc limit $offset,".($results_per_page+1); $query = "select * from result where $clause order by id desc limit $offset,".($results_per_page+1);