. require_once("../inc/boinc_db.inc"); require_once("../inc/util.inc"); require_once("../inc/host.inc"); check_get_args(array("hostid")); $user = get_logged_in_user(); page_head(tra("Updating computer credit")); $hostid = get_int("hostid"); $host = BoincHost::lookup_id($hostid); if (!$host || $host->userid != $user->id) { error_page(We have no record of that computer"); } host_update_credit($hostid); echo "
".tra("Host credit updated"); page_tail(); ?>