Enhanced results.php

Ananas
Ananas
Joined: 22 Jan 05
Posts: 272
Credit: 2500681
RAC: 0
Topic 191328

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();
}

}

Bernd Machenschalk
Bernd Machenschalk
Moderator
Administrator
Joined: 15 Oct 04
Posts: 4317
Credit: 250800267
RAC: 34053

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.