mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3262
This commit is contained in:
parent
00c54bac9d
commit
7914d8d19e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue