equal
deleted
inserted
replaced
|
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); |
|
17 $num_supermasters = count($supermasters); |
|
18 if ($supermasters < 0) |
|
19 { |
|
20 $num_supermasters = "0"; |
|
21 } |
|
22 else |
|
23 { |
|
24 $num_supermasters = count($supermasters); |
|
25 } |
|
26 |
|
27 ?> |
|
28 |
|
29 <h3><? printf(_('List all %s supermasters'), $num_supermasters); ?></h3> |
|
30 <table> |
|
31 <tr> |
|
32 <th> </td> |
|
33 <th><? echo _('IP address of supermaster'); ?></td> |
|
34 <th><? echo _('Hostname in NS record'); ?></td> |
|
35 <th><? echo _('Account'); ?></td> |
|
36 </tr> |
|
37 <? |
|
38 if ($num_supermasters == 0) |
|
39 { |
|
40 ?> |
|
41 <tr> |
|
42 <td class="n"> </td> |
|
43 <td class="n" colspan="3"> |
|
44 <? echo _('No supermasters in this listing, sorry.'); ?> |
|
45 </td> |
|
46 </tr> |
|
47 <? |
|
48 } |
|
49 else |
|
50 { |
|
51 foreach ($supermasters as $c) |
|
52 { |
|
53 ?> |
|
54 <tr> |
|
55 <td class="n"> |
|
56 <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> |
|
57 </td> |
|
58 <td class="y"><? echo $c["master_ip"] ?></td> |
|
59 <td class="y"><? echo $c["ns_name"] ?></td> |
|
60 <td class="y"><? echo $c["account"] ?></td> |
|
61 </tr> |
|
62 <? |
|
63 } |
|
64 } |
|
65 ?> |
|
66 </table> |
|
67 <? |
|
68 } |
|
69 |
|
70 include_once("inc/footer.inc.php"); |
|
71 ?> |