26 } elseif ($_GET["confirm"] == '1') { |
26 } elseif ($_GET["confirm"] == '1') { |
27 delete_record($_GET["id"]); |
27 delete_record($_GET["id"]); |
28 clean_page("edit.php?id=".$_GET["domain"]); |
28 clean_page("edit.php?id=".$_GET["domain"]); |
29 } |
29 } |
30 include_once("inc/header.inc.php"); |
30 include_once("inc/header.inc.php"); |
31 ?><H2>Delete record "<? |
31 ?><H2><? echo _('Delete record'); ?> "<? |
32 $data = get_record_from_id($_GET["id"]); |
32 $data = get_record_from_id($_GET["id"]); |
33 print $data["name"]." IN ".$data["type"]." ".$data["content"]; |
33 print $data["name"]." IN ".$data["type"]." ".$data["content"]; |
34 ?>"</H2><? |
34 ?>"</H2><? |
35 if (($data["type"] == "NS" && $data["name"] == get_domain_name_from_id($_GET["domain"])) || $data["type"] == "SOA") { |
35 if (($data["type"] == "NS" && $data["name"] == get_domain_name_from_id($_GET["domain"])) || $data["type"] == "SOA") { |
36 print "<FONT CLASS=\"warning\">You are trying to delete a record that is needed for this zone to work.</FONT><BR>"; |
36 print "<FONT CLASS=\"warning\">" . ('You are trying to delete a record that is needed for this zone to work.') . "</FONT><BR>"; |
37 } |
37 } |
38 ?><BR><FONT CLASS="warning">Are you sure?</FONT><BR><BR> |
38 ?><BR><FONT CLASS="warning"><? echo _('Are you sure?'); ?></FONT><BR><BR> |
39 <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=1'" VALUE="Yes"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=0'" VALUE="No"> |
39 <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=1'" VALUE="<? echo _('Yes'); ?>"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=0'" VALUE="<? echo _('No'); ?>"> |
40 <? |
40 <? |
41 } else { |
41 } else { |
42 include_once("inc/header.inc.php"); |
42 include_once("inc/header.inc.php"); |
43 die("Nothing to do!"); |
43 die("Nothing to do!"); |
44 } |
44 } |