I'd like to see this in results.php (bold lines) :
db_init();
$hostid = get_int("hostid", true);
$userid = get_int("userid", true);
$offset = get_int("offset", true);
$invalid = get_int ("invalid", true);
if (!$offset) $offset=0;
if ($hostid) {
$host = lookup_host($hostid);
$type = "computer";
$clause = "hostid=$hostid";
} else {
$user = get_logged_in_user();
if ($userid != $user->id) {
error_page("No access");
}
$type = "user";
$clause = "userid=$userid";
if ($invalid) {
$clause .= " AND validate_state=2 OR (received_time IS NOT NULL AND report_deadline<".date();
}
}
Copyright © 2024 Einstein@Home. All rights reserved.
Enhanced results.php
)
We're running plain vanilla BOINC code for the web pages (with as few exceptions as possible), so this should probably be requested to the BOINC developers / forums.
BM
BM