2003-03-06 00:42:18 +00:00
|
|
|
<?php
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
2003-03-06 00:42:18 +00:00
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2003-03-06 00:42:18 +00:00
|
|
|
|
2005-02-15 22:29:32 +00:00
|
|
|
$venue = get_venue("venue");
|
|
|
|
$hostid = get_int("hostid");
|
2003-03-06 00:42:18 +00:00
|
|
|
|
2005-02-15 22:29:32 +00:00
|
|
|
$host = lookup_host($hostid);
|
2003-03-06 00:42:18 +00:00
|
|
|
if (!$host) {
|
2005-02-15 22:29:32 +00:00
|
|
|
error_page("No such host");
|
2003-03-06 00:42:18 +00:00
|
|
|
}
|
|
|
|
if ($host->userid != $user->id) {
|
2005-02-15 22:29:32 +00:00
|
|
|
error_page("Not your host");
|
2003-03-06 00:42:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$retval = mysql_query("update host set venue='$venue' where id = $hostid");
|
|
|
|
if ($retval) {
|
2004-10-01 07:49:01 +00:00
|
|
|
page_head("Host venue updated");
|
|
|
|
echo "
|
|
|
|
The venue of this host has been set to <b>$venue</b>.
|
|
|
|
<p>
|
|
|
|
This change will take effect the next time
|
|
|
|
the host requests work from the server,
|
|
|
|
or when you Update this project from
|
|
|
|
the BOINC Manager on the host.
|
|
|
|
<p>
|
|
|
|
<a href=show_host_detail.php?hostid=$hostid>Return to host page</a>.
|
|
|
|
";
|
|
|
|
page_tail();
|
2003-03-06 00:42:18 +00:00
|
|
|
} else {
|
|
|
|
db_error_page();
|
|
|
|
}
|
|
|
|
?>
|