23 include_once("inc/header.inc.php"); |
23 include_once("inc/header.inc.php"); |
24 |
24 |
25 if (!level(5)) |
25 if (!level(5)) |
26 { |
26 { |
27 ?> |
27 ?> |
28 <h3><? echo _('Oops!'); ?></h3> |
28 <h3><?php echo _('Oops!'); ?></h3> |
29 <p><? echo _('You are not allowed to add supermasters with your current access level!'); ?></p> |
29 <p><?php echo _('You are not allowed to add supermasters with your current access level!'); ?></p> |
30 <? |
30 <?php |
31 } |
31 } |
32 else |
32 else |
33 { |
33 { |
34 |
34 |
35 $supermasters = get_supermasters(0); |
35 $supermasters = get_supermasters(0); |
36 $num_supermasters = ($supermasters == -1) ? 0 : count($supermasters); |
36 $num_supermasters = ($supermasters == -1) ? 0 : count($supermasters); |
37 ?> |
37 ?> |
38 |
38 |
39 <h3><? printf(_('List all %s supermasters'), $num_supermasters); ?></h3> |
39 <h3><?php printf(_('List all %s supermasters'), $num_supermasters); ?></h3> |
40 <table> |
40 <table> |
41 <tr> |
41 <tr> |
42 <th> </td> |
42 <th> </td> |
43 <th><? echo _('IP address of supermaster'); ?></td> |
43 <th><?php echo _('IP address of supermaster'); ?></td> |
44 <th><? echo _('Hostname in NS record'); ?></td> |
44 <th><?php echo _('Hostname in NS record'); ?></td> |
45 <th><? echo _('Account'); ?></td> |
45 <th><?php echo _('Account'); ?></td> |
46 </tr> |
46 </tr> |
47 <? |
47 <?php |
48 if ($num_supermasters == 0) |
48 if ($num_supermasters == 0) |
49 { |
49 { |
50 ?> |
50 ?> |
51 <tr> |
51 <tr> |
52 <td class="n"> </td> |
52 <td class="n"> </td> |
53 <td class="n" colspan="3"> |
53 <td class="n" colspan="3"> |
54 <? echo _('No supermasters in this listing, sorry.'); ?> |
54 <?php echo _('No supermasters in this listing, sorry.'); ?> |
55 </td> |
55 </td> |
56 </tr> |
56 </tr> |
57 <? |
57 <?php |
58 } |
58 } |
59 else |
59 else |
60 { |
60 { |
61 foreach ($supermasters as $c) |
61 foreach ($supermasters as $c) |
62 { |
62 { |
63 ?> |
63 ?> |
64 <tr> |
64 <tr> |
65 <td class="n"> |
65 <td class="n"> |
66 <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> |
66 <a href="delete_supermaster.php?master_ip=<?php echo $c["master_ip"] ?>"><img src="images/delete.gif" title="<?php print _('Delete supermaster') . ' ' . $c["master_ip"]; ?>" alt="[ <?php echo _('Delete supermaster'); ?> ]"></a> |
67 </td> |
67 </td> |
68 <td class="y"><? echo $c["master_ip"] ?></td> |
68 <td class="y"><?php echo $c["master_ip"] ?></td> |
69 <td class="y"><? echo $c["ns_name"] ?></td> |
69 <td class="y"><?php echo $c["ns_name"] ?></td> |
70 <td class="y"><? echo $c["account"] ?></td> |
70 <td class="y"><?php echo $c["account"] ?></td> |
71 </tr> |
71 </tr> |
72 <? |
72 <?php |
73 } |
73 } |
74 } |
74 } |
75 ?> |
75 ?> |
76 </table> |
76 </table> |
77 <? |
77 <?php |
78 } |
78 } |
79 |
79 |
80 include_once("inc/footer.inc.php"); |
80 include_once("inc/footer.inc.php"); |
81 ?> |
81 ?> |