13
+ − 1
<?php
+ − 2
47
+ − 3
/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ − 4
* See <https://rejo.zenger.nl/poweradmin> for more details.
+ − 5
*
+ − 6
* Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ − 7
*
+ − 8
* This program is free software: you can redistribute it and/or modify
+ − 9
* it under the terms of the GNU General Public License as published by
+ − 10
* the Free Software Foundation, either version 3 of the License, or
+ − 11
* (at your option) any later version.
+ − 12
*
+ − 13
* This program is distributed in the hope that it will be useful,
+ − 14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
+ − 15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ − 16
* GNU General Public License for more details.
+ − 17
*
+ − 18
* You should have received a copy of the GNU General Public License
+ − 19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
+ − 20
*/
+ − 21
13
+ − 22
require_once ( "inc/toolkit.inc.php" );
+ − 23
+ − 24
if ( ! level ( 5 ))
+ − 25
{
+ − 26
error ( ERR_LEVEL_5 );
+ − 27
+ − 28
}
+ − 29
+ − 30
if ( $_GET [ "master_ip" ]) {
+ − 31
if ( $_GET [ "confirm" ] == '0' ) {
+ − 32
clean_page ( "index.php" );
+ − 33
} elseif ( $_GET [ "confirm" ] == '1' ) {
+ − 34
delete_supermaster ( $_GET [ "master_ip" ]);
+ − 35
clean_page ( "index.php" );
+ − 36
}
+ − 37
include_once ( "inc/header.inc.php" );
+ − 38
$info = get_supermaster_info_from_ip ( $_GET [ "master_ip" ]);
+ − 39
?>
+ − 40
<h2> <? echo _ ( 'Delete supermaster' ); ?> " <? echo $_GET [ "master_ip" ] ?> "</h2>
+ − 41
<? echo _ ( 'Hostname in NS record' ); ?> : <? echo $info [ "ns_name" ] ?> <br>
+ − 42
<? echo _ ( 'Account' ); ?> : <? echo $info [ "account" ] ?> <br><br>
+ − 43
<font class="warning"> <? echo _ ( 'Are you sure?' ); ?> </font><br><br>
+ − 44
<input type="button" class="button" OnClick="location.href=' <? echo $_SERVER [ "REQUEST_URI" ] ?> &confirm=1'" value=" <? echo _ ( 'Yes' ); ?> ">
+ − 45
<input type="button" class="button" OnClick="location.href=' <? echo $_SERVER [ "REQUEST_URI" ] ?> &confirm=0'" value=" <? echo _ ( 'No' ); ?> ">
+ − 46
<?
+ − 47
} else {
+ − 48
include_once ( "inc/header.inc.php" );
48
+ − 49
echo _ ( 'Nothing to do!' );
13
+ − 50
}
+ − 51
include_once ( "inc/footer.inc.php" );