Skip to content

Commit

Permalink
Merge pull request #5206 from BOINC/dpa_venue
Browse files Browse the repository at this point in the history
  • Loading branch information
AenBleidd authored Apr 22, 2023
2 parents a9bb2e2 + 9574ae9 commit 2d7e82b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions html/user/host_venue_action.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@

$host = BoincHost::lookup_id($hostid);
if (!$host) {
error_page("No such host");
error_page("No such computer");
}
if ($host->userid != $user->id) {
error_page("Not your host");
error_page("Not your computer");
}

$retval = $host->update("venue='$venue'");
if ($retval) {
page_head(tra("Host venue updated"));
page_head(tra("Computer venue updated"));
if ($venue == '') {
$venue = '('.tra("none").')';
}
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>
".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>
<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();
} else {
Expand Down

0 comments on commit 2d7e82b

Please sign in to comment.