delete_supermaster.php
changeset 13 2ff220cfde13
child 37 b785e54690ce
equal deleted inserted replaced
12:7be4525290cc 13:2ff220cfde13
       
     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");