delete_domain.php
changeset 13 2ff220cfde13
parent 3 64525a2eb098
child 37 b785e54690ce
equal deleted inserted replaced
12:7be4525290cc 13:2ff220cfde13
     1 <?php
     1 <?php
     2 
       
     3 // +--------------------------------------------------------------------+
       
     4 // | PowerAdmin								|
       
     5 // +--------------------------------------------------------------------+
       
     6 // | Copyright (c) 1997-2002 The PowerAdmin Team			|
       
     7 // +--------------------------------------------------------------------+
       
     8 // | This source file is subject to the license carried by the overal	|
       
     9 // | program PowerAdmin as found on http://poweradmin.sf.net		|
       
    10 // | The PowerAdmin program falls under the QPL License:		|
       
    11 // | http://www.trolltech.com/developer/licensing/qpl.html		|
       
    12 // +--------------------------------------------------------------------+
       
    13 // | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl>	|
       
    14 // |          Sjeemz <sjeemz <AT> sjeemz <DOT> nl>			|
       
    15 // +--------------------------------------------------------------------+
       
    16 
       
    17 //
       
    18 // $Id: delete_domain.php,v 1.6 2002/12/18 01:13:10 azurazu Exp $
       
    19 //
       
    20 
     2 
    21 require_once("inc/toolkit.inc.php");
     3 require_once("inc/toolkit.inc.php");
    22 
     4 
    23 if (!level(5))
     5 if (!level(5))
    24 {
     6 {
    33                 delete_domain($_GET["id"]);
    15                 delete_domain($_GET["id"]);
    34                 clean_page("index.php");
    16                 clean_page("index.php");
    35         }
    17         }
    36         include_once("inc/header.inc.php");
    18         include_once("inc/header.inc.php");
    37         $info = get_domain_info_from_id($_GET["id"]);
    19         $info = get_domain_info_from_id($_GET["id"]);
    38         ?><H2><? echo _('Delete domain'); ?> "<?= $info["name"] ?>"</H2>
    20         ?><h2><? echo _('Delete zone'); ?> "<? echo $info["name"] ?>"</h2>
    39         <? echo _('Owner'); ?>: <?= $info["owner"] ?><BR>
       
    40         <? echo _('Number of records in zone'); ?>: <?= $info["numrec"] ?><BR><BR>
       
    41         <FONT CLASS="warning"><? echo _('Are you sure?'); ?></FONT><BR><BR>
       
    42         <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'); ?>">
       
    43         <?
    21         <?
       
    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 	<?
    44 } elseif ($_GET["edit"]) {
    44 } elseif ($_GET["edit"]) {
    45         include_once("inc/header.inc.php");
    45         include_once("inc/header.inc.php");
    46 } else {
    46 } else {
    47         include_once("inc/header.inc.php");
    47         include_once("inc/header.inc.php");
    48         die("Nothing to do!");
    48         die("Nothing to do!");