+ function confirm_delete_contact($name, $id = null, &$city_id = null) {
+ if (! check_admin(1, "delete a contact")) return;
+
+ if (isset($id)) $contact = get_contact_by_id($id);
+ else $contact = get_contact_by_name($name);
+ if (! $contact) return false;
+
+ echo "<h3>Confirm deletion</h3>\n";
+ echo "<p>You must confirm deletion of contact " . $contact->getDisplayname() . ": " . $contact->getDeleteLink(true) . "</p>\n";
+ }
+