delete_domain.php
author rejo
Sat, 14 Apr 2007 11:37:27 +0000
changeset 2 9a485c41cfcf
parent 1 58094faf794d
child 3 64525a2eb098
permissions -rw-r--r--
[feladat @ 3] First set of changes to provide translation framework.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     1
<?php
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     2
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     3
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     4
// | PowerAdmin								|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     5
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     6
// | Copyright (c) 1997-2002 The PowerAdmin Team			|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     7
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     8
// | This source file is subject to the license carried by the overal	|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     9
// | program PowerAdmin as found on http://poweradmin.sf.net		|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    10
// | The PowerAdmin program falls under the QPL License:		|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    11
// | http://www.trolltech.com/developer/licensing/qpl.html		|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    12
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    13
// | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl>	|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    14
// |          Sjeemz <sjeemz <AT> sjeemz <DOT> nl>			|
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    15
// +--------------------------------------------------------------------+
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    16
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    17
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    18
// $Id: delete_domain.php,v 1.6 2002/12/18 01:13:10 azurazu Exp $
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    19
//
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    20
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    21
require_once("inc/toolkit.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    22
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    23
if (!level(5))
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    24
{
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    25
        error(ERR_LEVEL_5);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    26
        
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    27
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    28
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    29
if ($_GET["id"]) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    30
        if ($_GET["confirm"] == '0') {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    31
                clean_page("index.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    32
        } elseif ($_GET["confirm"] == '1') {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    33
                delete_domain($_GET["id"]);
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    34
                clean_page("index.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    35
        }
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    36
        include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    37
        $info = get_domain_info_from_id($_GET["id"]);
2
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    38
        ?><H2><? echo _('Delete domain'); ?> "<?= $info["name"] ?>"</H2>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    39
        <? echo _('Owner'); ?>: <?= $info["owner"] ?><BR>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    40
        <? echo _('Number of records in zone'); ?>: <?= $info["numrec"] ?><BR><BR>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    41
        <FONT CLASS="warning"><? echo _('Are you sure'); ?>?</FONT><BR><BR>
9a485c41cfcf [feladat @ 3]
rejo
parents: 1
diff changeset
    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'); ?>">
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    43
        <?
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    44
} elseif ($_GET["edit"]) {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    45
        include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    46
} else {
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    47
        include_once("inc/header.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    48
        die("Nothing to do!");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    49
}
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    50
include_once("inc/footer.inc.php");