+ function confirm_delete_city($name, $id = null) {
+ if (! check_admin(1, "delete a city")) return;
+
+ if (isset($id)) $city = get_city_by_id($id);
+ else $city = get_city_by_name($name);
+ if (! $city) return false;
+
+ echo "<h3>Confirm deletion</h3>\n";
+ echo "<p>You must confirm deletion of city " . $city->getName() . ": " . $city->getDeleteLink(true) . "</p>\n";
+ }
+