userid != $user->id) { error_page("We have no record of that computer"); } page_head("Merge computers"); $t = time_str($host->create_time); echo " Sometimes BOINC assigns separate identities to the same computer by mistake. You can correct this by merging old identities with the newest one.

"; $all_hosts = BoincHost::enum("userid=$user->id"); $nhosts = 1; $hosts = array(); foreach ($all_hosts as $host2) { if ($host->id == $host2->id) continue; if (!hosts_compatible($host, $host2)) continue; $hosts[] = $host2; $nhosts++; if ($nhosts==500) break; } if ($nhosts == 1) { echo "
No hosts are eligible for merging with this one."; page_tail(); exit(); } echo "

Check the computers that are the same as $host->domain_name (created $t, computer ID $host->id):

"; start_table(); row_heading_array(array("", "name", "created", "computer ID")); $i = 1; foreach ($hosts as $host2) { $t = time_str($host2->create_time); $x = $host2->domain_name; if ($x == "") { $x = "[no hostname]"; } row_array(array( "id>", $x, "$t", "$host2->id" )); $i++; } end_table(); echo "

Select all

Unselect all

"; page_tail(); ?>