equal
deleted
inserted
replaced
|
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["master_ip"]) { |
|
12 if ($_GET["confirm"] == '0') { |
|
13 clean_page("index.php"); |
|
14 } elseif ($_GET["confirm"] == '1') { |
|
15 delete_supermaster($_GET["master_ip"]); |
|
16 clean_page("index.php"); |
|
17 } |
|
18 include_once("inc/header.inc.php"); |
|
19 $info = get_supermaster_info_from_ip($_GET["master_ip"]); |
|
20 ?> |
|
21 <h2><? echo _('Delete supermaster'); ?> "<? echo $_GET["master_ip"] ?>"</h2> |
|
22 <? echo _('Hostname in NS record'); ?>: <? echo $info["ns_name"] ?><br> |
|
23 <? echo _('Account'); ?>: <? echo $info["account"] ?><br><br> |
|
24 <font class="warning"><? echo _('Are you sure?'); ?></font><br><br> |
|
25 <input type="button" class="button" OnClick="location.href='<? echo $_SERVER["REQUEST_URI"] ?>&confirm=1'" value="<? echo _('Yes'); ?>"> |
|
26 <input type="button" class="button" OnClick="location.href='<? echo $_SERVER["REQUEST_URI"] ?>&confirm=0'" value="<? echo _('No'); ?>"> |
|
27 <? |
|
28 } else { |
|
29 include_once("inc/header.inc.php"); |
|
30 die("Nothing to do!"); |
|
31 } |
|
32 include_once("inc/footer.inc.php"); |