Files
librenms-librenms/includes/html/front/boxes.inc.php
T

33 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/*
2013-11-26 14:35:23 +10:00
* LibreNMS front page graphs
*
2015-06-14 18:00:21 +10:00
* Author: Paul Gear
* Copyright (c) 2013 Gear Consulting Pty Ltd <http://libertysys.com.au/>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
2013-11-26 14:35:23 +10:00
2015-07-13 20:10:26 +02:00
echo '
<div class="cycle-slideshow"
2015-07-13 20:10:26 +02:00
data-cycle-fx="fade"
data-cycle-timeout="10000"
data-cycle-slides="> div"
style="clear: both">
';
2013-11-26 14:35:23 +10:00
2019-06-23 00:29:12 -05:00
foreach (get_matching_files(\LibreNMS\Config::get('html_dir') . '/includes/front/', '/^top_.*\.php$/') as $file) {
if (($file == 'top_ports.inc.php' && \LibreNMS\Config::get('top_ports') == 0) || ($file == 'top_device_bits.inc.php' && \LibreNMS\Config::get('top_devices') == 0)) {
2016-08-18 20:28:22 -05:00
} else {
2015-07-13 20:10:26 +02:00
echo "<div class=box>\n";
include_once $file;
echo "</div>\n";
}
2013-11-26 14:35:23 +10:00
}
2015-07-13 20:10:26 +02:00
echo "</div>\n";