. require_once("../inc/boinc_db.inc"); require_once("../inc/xml.inc"); xml_header(); $db = BoincDb::get(); if (!$db) xml_error($retval); $auth = BoincDb::escape_string(get_str("account_key")); $user = BoincUser::lookup("authenticator='$auth'"); if (!$user) { xml_error(-136); } $hostid = get_int("hostid"); $host = BoincHost::lookup_id($hostid); if (!$host || $host->userid != $user->id) { xml_error(-136); } $venue = BoincDb::escape_string(get_str("venue")); $result = $host->update("venue='$venue'"); if ($result) { echo " "; } else { xml_error(-1, "database error"); } ?>