delete_domain.php
changeset 1 58094faf794d
child 2 9a485c41cfcf
equal deleted inserted replaced
0:2cd8c1649ba9 1:58094faf794d
       
     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 
       
    21 require_once("inc/toolkit.inc.php");
       
    22 
       
    23 if (!level(5))
       
    24 {
       
    25         error(ERR_LEVEL_5);
       
    26         
       
    27 }
       
    28 
       
    29 if ($_GET["id"]) {
       
    30         if ($_GET["confirm"] == '0') {
       
    31                 clean_page("index.php");
       
    32         } elseif ($_GET["confirm"] == '1') {
       
    33                 delete_domain($_GET["id"]);
       
    34                 clean_page("index.php");
       
    35         }
       
    36         include_once("inc/header.inc.php");
       
    37         $info = get_domain_info_from_id($_GET["id"]);
       
    38         ?><H2>Delete domain "<?= $info["name"] ?>"</H2>
       
    39         Owner: <?= $info["owner"] ?><BR>
       
    40         Number of records in zone: <?= $info["numrec"] ?><BR><BR>
       
    41         <FONT CLASS="warning">Are you sure?</FONT><BR><BR>
       
    42         <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=1'" VALUE="Yes"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=0'" VALUE="No">
       
    43         <?
       
    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");