1
|
1 |
<?php |
|
2 |
|
|
3 |
require_once("inc/toolkit.inc.php"); |
|
4 |
|
|
5 |
if (!level(5)) |
|
6 |
{ |
|
7 |
error(ERR_LEVEL_5); |
|
8 |
|
|
9 |
} |
|
10 |
|
|
11 |
if ($_GET["id"]) { |
|
12 |
if ($_GET["confirm"] == '0') { |
|
13 |
clean_page("index.php"); |
|
14 |
} elseif ($_GET["confirm"] == '1') { |
|
15 |
delete_domain($_GET["id"]); |
|
16 |
clean_page("index.php"); |
|
17 |
} |
|
18 |
include_once("inc/header.inc.php"); |
|
19 |
$info = get_domain_info_from_id($_GET["id"]); |
13
|
20 |
?><h2><? echo _('Delete zone'); ?> "<? echo $info["name"] ?>"</h2> |
1
|
21 |
<? |
13
|
22 |
if($info["owner"]) |
|
23 |
{ |
|
24 |
print (_('Owner') . ": " . $info["owner"] . "<br>"); |
|
25 |
} |
|
26 |
print (_('Type') . ": " . strtolower($info["type"]) . "<br>"); |
|
27 |
print (_('Number of records in zone') . ": " . $info["numrec"] . "<br>"); |
|
28 |
if($info["type"] == "SLAVE") |
|
29 |
{ |
|
30 |
$slave_master = get_domain_slave_master($_GET["id"]); |
|
31 |
if(supermaster_exists($slave_master)) |
|
32 |
{ |
|
33 |
print ("<font class=\"warning\">"); |
|
34 |
printf(_('You are about to delete a slave zone of which the master nameserver, %s, is a supermaster. Deleting the zone now, will result in temporary removal only. Whenever the supermaster sends a notification for this zone, it will be added again!'), $slave_master); |
|
35 |
print ("</font><br>"); |
|
36 |
} |
|
37 |
} |
|
38 |
?> |
|
39 |
<font class="warning"><? echo _('Are you sure?'); ?></font> |
|
40 |
<br><br> |
|
41 |
<input type="button" class="button" OnClick="location.href='<? echo $_SERVER["REQUEST_URI"] ?>&confirm=1'" value="<? echo _('Yes'); ?>"> |
|
42 |
<input type="button" class="button" OnClick="location.href='<? echo $_SERVER["REQUEST_URI"] ?>&confirm=0'" value="<? echo _('No'); ?>"> |
|
43 |
<? |
1
|
44 |
} elseif ($_GET["edit"]) { |
|
45 |
include_once("inc/header.inc.php"); |
|
46 |
} else { |
|
47 |
include_once("inc/header.inc.php"); |
|
48 |
die("Nothing to do!"); |
|
49 |
} |
|
50 |
include_once("inc/footer.inc.php"); |