2004-02-04 22:26:45 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2004-02-04 22:26:45 +00:00
|
|
|
|
|
|
|
require_once("../inc/db.inc");
|
2005-02-08 04:38:31 +00:00
|
|
|
require_once("../inc/util_ops.inc");
|
2004-02-04 22:26:45 +00:00
|
|
|
|
2005-02-09 18:09:26 +00:00
|
|
|
// activate/deactivate script
|
|
|
|
if (1) {
|
|
|
|
echo "
|
|
|
|
This script needs to be activated before it can be run.
|
|
|
|
Once you understand what the script does you can change the
|
|
|
|
if (1) to if (0) at the top of the file to activate it.
|
|
|
|
Be sure to deactivate the script after using it to make sure
|
|
|
|
it is not accidentally run.
|
|
|
|
";
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2004-02-04 22:26:45 +00:00
|
|
|
db_init();
|
|
|
|
$hostid = $_GET["hostid"];
|
|
|
|
|
|
|
|
if (!$hostid) {
|
|
|
|
echo "no host ID\n";
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
2005-02-08 04:38:31 +00:00
|
|
|
mysql_query("update host set rpc_time=0 where id='$hostid'");
|
|
|
|
echo "Host RPC time cleared for hostid: $hostid\n";
|
2004-02-04 22:26:45 +00:00
|
|
|
|
2005-02-08 04:38:31 +00:00
|
|
|
admin_page_tail();
|
2008-08-05 22:43:14 +00:00
|
|
|
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
2004-02-04 22:26:45 +00:00
|
|
|
?>
|