aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/index.php b/index.php
index 18d8313..41e710f 100644
--- a/index.php
+++ b/index.php
@@ -11,8 +11,7 @@ $h = array();
11# show all categorized hosts 11# show all categorized hosts
12if (is_array($CONFIG['cat'])) { 12if (is_array($CONFIG['cat'])) {
13 foreach($CONFIG['cat'] as $cat => $hosts) { 13 foreach($CONFIG['cat'] as $cat => $hosts) {
14 printf("<h2>%s</h2>\n", $cat); 14 host_summary($cat, $hosts);
15 host_summary($hosts);
16 $h = array_merge($h, $hosts); 15 $h = array_merge($h, $hosts);
17 } 16 }
18} 17}
@@ -24,8 +23,7 @@ $uhosts = array_diff($chosts, $h);
24 23
25# show all uncategorized hosts 24# show all uncategorized hosts
26if ($uhosts) { 25if ($uhosts) {
27 echo "<h2>uncategorized</h2>\n"; 26 host_summary('uncategorized', $uhosts);
28 host_summary($uhosts);
29} 27}
30 28
31html_end(); 29html_end();