diff --git a/html/includes/device-summary-vert.inc.php b/html/includes/device-summary-vert.inc.php new file mode 100644 index 000000000..7a2086bf6 --- /dev/null +++ b/html/includes/device-summary-vert.inc.php @@ -0,0 +1,59 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SummaryDevicesPortsServices
Up
Down
Ignored
Disabled/Shutdown
Total
+
diff --git a/html/pages/front/default.php b/html/pages/front/default.php index c18636310..5cb434407 100644 --- a/html/pages/front/default.php +++ b/html/pages/front/default.php @@ -11,7 +11,7 @@ echo("
echo('
-
+
'); echo('
'); @@ -121,10 +121,17 @@ echo('
'); echo('
'); echo('
'); echo(' -
+
'); -include_once("includes/device-summary-horiz.inc.php"); +if ($config['vertical_summary']) +{ + include_once("includes/device-summary-vert.inc.php"); +} +else +{ + include_once("includes/device-summary-horiz.inc.php"); +} echo('
diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 61d8700b7..1256d42db 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -110,6 +110,7 @@ $config['page_refresh'] = "300"; // Refresh the page every xx seconds, 0 to $config['front_page'] = "pages/front/default.php"; $config['front_page_settings']['top']['ports'] = 10; $config['front_page_settings']['top']['devices'] = 10; +$config['vertical_summary'] = 0; // Enable to use vertical summary on front page instead of horizontal $config['top_ports'] = 1; // This enables the top X ports box $config['top_devices'] = 1; // This enables the top X devices box $config['page_title_prefix'] = "";