diff -r c72d6d51f3d3 -r c255196bc447 list_supermasters.php
--- a/list_supermasters.php Wed Mar 12 20:45:56 2008 +0000
+++ b/list_supermasters.php Tue Mar 25 22:45:31 2008 +0000
@@ -22,60 +22,41 @@
require_once("inc/toolkit.inc.php");
include_once("inc/header.inc.php");
-if (!level(5))
-{
-?>
-
-
-
+$supermasters = get_supermasters();
-
-
-" . _('List all supermasters') . "\n";
+echo " \n";
+echo " \n";
+echo " | \n";
+echo " " . _('IP address of supermaster') . " | \n";
+echo " " . _('Hostname in NS record') . " | \n";
+echo " " . _('Account') . " | \n";
+echo "
\n";
+if ($num_supermasters == "0") {
+ echo " \n";
+ echo " | \n";
+ echo " \n";
+ echo " " . _('No supermasters in this listing, sorry.') . "\n";
+ echo " | \n";
+ echo "
\n";
+} else {
+ foreach ($supermasters as $c) {
+ echo " \n";
+ if ($perm_sm_edit == "1") {
+ echo " | \n";
+ } else {
+ echo " | \n";
+ }
+ echo " " . $c['master_ip'] . " | \n";
+ echo " " . $c['ns_name'] . " | \n";
+ echo " " . $c['account'] . " | \n";
+ echo "
\n";
+ }
}
+echo "
\n";
include_once("inc/footer.inc.php");
?>