mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #100 from laf/issue-94
Top X boxes can now be switched off
This commit is contained in:
@@ -20,11 +20,18 @@ echo('
|
|||||||
data-cycle-slides="> div">
|
data-cycle-slides="> div">
|
||||||
');
|
');
|
||||||
|
|
||||||
foreach (get_matching_files($config['html_dir']."/includes/front/", "/^top_.*\.php$/") as $file) {
|
foreach (get_matching_files($config['html_dir']."/includes/front/", "/^top_.*\.php$/") as $file)
|
||||||
|
{
|
||||||
|
if(($file == 'top_ports.inc.php' && $config['top_ports'] == 0) || ($file == 'top_device_bits.inc.php' && $config['top_devices'] == 0))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
echo("<div class=box>\n");
|
echo("<div class=box>\n");
|
||||||
include_once($file);
|
include_once($file);
|
||||||
echo("</div>\n");
|
echo("</div>\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
echo("</div>\n");
|
echo("</div>\n");
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ $config['page_refresh'] = "300"; // Refresh the page every xx seconds, 0 to
|
|||||||
$config['front_page'] = "pages/front/default.php";
|
$config['front_page'] = "pages/front/default.php";
|
||||||
$config['front_page_settings']['top']['ports'] = 10;
|
$config['front_page_settings']['top']['ports'] = 10;
|
||||||
$config['front_page_settings']['top']['devices'] = 10;
|
$config['front_page_settings']['top']['devices'] = 10;
|
||||||
|
$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'] = "";
|
$config['page_title_prefix'] = "";
|
||||||
$config['page_title_suffix'] = $config['project_name'];
|
$config['page_title_suffix'] = $config['project_name'];
|
||||||
$config['timestamp_format'] = 'd-m-Y H:i:s';
|
$config['timestamp_format'] = 'd-m-Y H:i:s';
|
||||||
|
|||||||
Reference in New Issue
Block a user