mirror of https://github.com/BOINC/boinc.git
Merge pull request #5206 from BOINC/dpa_venue
This commit is contained in:
commit
2d7e82b2f4
|
@ -30,24 +30,24 @@ $hostid = get_int("hostid");
|
||||||
|
|
||||||
$host = BoincHost::lookup_id($hostid);
|
$host = BoincHost::lookup_id($hostid);
|
||||||
if (!$host) {
|
if (!$host) {
|
||||||
error_page("No such host");
|
error_page("No such computer");
|
||||||
}
|
}
|
||||||
if ($host->userid != $user->id) {
|
if ($host->userid != $user->id) {
|
||||||
error_page("Not your host");
|
error_page("Not your computer");
|
||||||
}
|
}
|
||||||
|
|
||||||
$retval = $host->update("venue='$venue'");
|
$retval = $host->update("venue='$venue'");
|
||||||
if ($retval) {
|
if ($retval) {
|
||||||
page_head(tra("Host venue updated"));
|
page_head(tra("Computer venue updated"));
|
||||||
if ($venue == '') {
|
if ($venue == '') {
|
||||||
$venue = '('.tra("none").')';
|
$venue = '('.tra("none").')';
|
||||||
}
|
}
|
||||||
echo "
|
echo "
|
||||||
".tra("The venue of this host has been set to %1.", "<b>$venue</b>")."
|
".tra("The venue of this computer has been set to %1.", "<b>$venue</b>")."
|
||||||
<p>
|
<p>
|
||||||
".tra("This change will take effect the next time the host communicates with this project.")."
|
".tra("Preference changes will take effect when the computer communicates with this project.")."
|
||||||
<p>
|
<p>
|
||||||
<a href=show_host_detail.php?hostid=$hostid>".tra("Return to host page")."</a>.
|
<a href=show_host_detail.php?hostid=$hostid>".tra("Return to computer page")."</a>.
|
||||||
";
|
";
|
||||||
page_tail();
|
page_tail();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue