41 clean_page("edit.php?id=".$_GET["domain"]); |
41 clean_page("edit.php?id=".$_GET["domain"]); |
42 } |
42 } |
43 include_once("inc/header.inc.php"); |
43 include_once("inc/header.inc.php"); |
44 ?> |
44 ?> |
45 |
45 |
46 <h2><? echo _('Delete record'); ?> "<? |
46 <h2><?php echo _('Delete record'); ?> "<?php |
47 $data = get_record_from_id($_GET["id"]); |
47 $data = get_record_from_id($_GET["id"]); |
48 print $data["name"]." IN ".$data["type"]." ".$data["content"]; |
48 print $data["name"]." IN ".$data["type"]." ".$data["content"]; |
49 ?>"</h2><? |
49 ?>"</h2><?php |
50 if (($data["type"] == "NS" && $data["name"] == get_domain_name_from_id($_GET["domain"])) || $data["type"] == "SOA") { |
50 if (($data["type"] == "NS" && $data["name"] == get_domain_name_from_id($_GET["domain"])) || $data["type"] == "SOA") { |
51 print "<font class=\"warning\">" . _('You are trying to delete a record that is needed for this zone to work.') . "</font><br>"; |
51 print "<font class=\"warning\">" . _('You are trying to delete a record that is needed for this zone to work.') . "</font><br>"; |
52 } |
52 } |
53 ?><br><font class="warning"><? echo _('Are you sure?'); ?></font><br><br> |
53 ?><br><font class="warning"><?php echo _('Are you sure?'); ?></font><br><br> |
54 <input type="button" class="button" OnClick="location.href='<? echo $_SERVER["REQUEST_URI"] ?>&confirm=1'" value="<? echo _('Yes'); ?>"> |
54 <input type="button" class="button" OnClick="location.href='<?php echo $_SERVER["REQUEST_URI"] ?>&confirm=1'" value="<?php echo _('Yes'); ?>"> |
55 <input type="button" class="button" OnClick="location.href='<? echo $_SERVER["REQUEST_URI"] ?>&confirm=0'" value="<? echo _('No'); ?>"> |
55 <input type="button" class="button" OnClick="location.href='<?php echo $_SERVER["REQUEST_URI"] ?>&confirm=0'" value="<?php echo _('No'); ?>"> |
56 <? |
56 <?php |
57 } else { |
57 } else { |
58 include_once("inc/header.inc.php"); |
58 include_once("inc/header.inc.php"); |
59 echo _('Nothing to do!'); |
59 echo _('Nothing to do!'); |
60 } |
60 } |
61 include_once("inc/footer.inc.php"); |
61 include_once("inc/footer.inc.php"); |