Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -4,37 +4,34 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage web
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @package observium
* @subpackage web
* @copyright (C) Adam Armstrong
*
*/
$g_i = 0;
foreach ($datas as $type)
{
if ($type != "overview")
{
$filename = $config['html_dir'] . '/pages/routing/overview/'.$type.'.inc.php';
if (is_file($filename))
{
$g_i++;
$row_colour = !is_intnum($g_i / 2) ? OBS_COLOUR_LIST_A : OBS_COLOUR_LIST_B;
foreach ($datas as $type) {
if ($type != "overview") {
$filename = $config['html_dir'] . '/pages/routing/overview/' . $type . '.inc.php';
if (is_file($filename)) {
$g_i++;
$row_colour = !is_intnum($g_i / 2) ? OBS_COLOUR_LIST_A : OBS_COLOUR_LIST_B;
echo('<div style="background-color: '.$row_colour.';">');
echo('<div style="padding:4px 0px 0px 8px;"><span class=graphhead>'.$type_text[$type].'</span>');
echo('<div style="background-color: ' . $row_colour . ';">');
echo('<div style="padding:4px 0px 0px 8px;"><span class=graphhead>' . $type_text[$type] . '</span>');
include($filename);
include($filename);
echo('</div>');
echo('</div>');
} else {
$graph_title = $type_text[$type];
$graph_type = "device_".$type;
echo('</div>');
echo('</div>');
} else {
$graph_title = $type_text[$type];
$graph_type = "device_" . $type;
include($config['html_dir'] . "/includes/print-device-graph.php");
include($config['html_dir'] . "/includes/print-device-graph.php");
}
}
}
}
// EOF