13
+ − 1
<?php
+ − 2
require_once ( "inc/i18n.inc.php" );
+ − 3
require_once ( "inc/toolkit.inc.php" );
+ − 4
include_once ( "inc/header.inc.php" );
+ − 5
+ − 6
if ( ! level ( 5 ))
+ − 7
{
+ − 8
?>
+ − 9
<h3> <? echo _ ( 'Oops!' ); ?> </h3>
+ − 10
<p> <? echo _ ( 'You are not allowed to add supermasters with your current access level!' ); ?> </p>
+ − 11
<?
+ − 12
}
+ − 13
else
+ − 14
{
+ − 15
+ − 16
$supermasters = get_supermasters ( 0 );
15
+ − 17
$num_supermasters = ( $supermasters == - 1 ) ? 0 : count ( $supermasters );
13
+ − 18
?>
+ − 19
+ − 20
<h3> <? printf ( _ ( 'List all %s supermasters' ), $num_supermasters ); ?> </h3>
+ − 21
<table>
+ − 22
<tr>
+ − 23
<th> </td>
+ − 24
<th> <? echo _ ( 'IP address of supermaster' ); ?> </td>
+ − 25
<th> <? echo _ ( 'Hostname in NS record' ); ?> </td>
+ − 26
<th> <? echo _ ( 'Account' ); ?> </td>
+ − 27
</tr>
+ − 28
<?
+ − 29
if ( $num_supermasters == 0 )
+ − 30
{
+ − 31
?>
+ − 32
<tr>
+ − 33
<td class= "n" > </td>
+ − 34
<td class= "n" colspan= "3" >
+ − 35
<? echo _ ( 'No supermasters in this listing, sorry.' ); ?>
+ − 36
</td>
+ − 37
</tr>
+ − 38
<?
+ − 39
}
+ − 40
else
+ − 41
{
+ − 42
foreach ( $supermasters as $c )
+ − 43
{
+ − 44
?>
+ − 45
<tr>
+ − 46
<td class= "n" >
+ − 47
<a href= "delete_supermaster.php?master_ip= <? echo $c [ "master_ip" ] ?> " ><img src= "images/delete.gif" title= " <? print _ ( 'Delete supermaster' ) . ' ' . $c [ "master_ip" ]; ?> " alt= "[ <? echo _ ( 'Delete supermaster' ); ?> ]" ></a>
+ − 48
</td>
+ − 49
<td class= "y" > <? echo $c [ "master_ip" ] ?> </td>
+ − 50
<td class= "y" > <? echo $c [ "ns_name" ] ?> </td>
+ − 51
<td class= "y" > <? echo $c [ "account" ] ?> </td>
+ − 52
</tr>
+ − 53
<?
+ − 54
}
+ − 55
}
+ − 56
?>
+ − 57
</table>
+ − 58
<?
+ − 59
}
+ − 60
+ − 61
include_once ( "inc/footer.inc.php" );
+ − 62
?>