2004-02-04 22:26:45 +00:00
|
|
|
<?php
|
2005-02-08 04:38:31 +00:00
|
|
|
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
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();
|
2004-02-04 22:26:45 +00:00
|
|
|
?>
|