mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@2340 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -5,18 +5,18 @@ global $config;
|
||||
if(!$graph_array['height']) { $graph_array['height'] = "100"; }
|
||||
if(!$graph_array['width']) { $graph_array['width'] = "215"; }
|
||||
|
||||
$graph_array['to'] = $now;
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
|
||||
$periods = array('day', 'week', 'month', 'year');
|
||||
|
||||
foreach ($periods as $period)
|
||||
{
|
||||
$graph_array['from'] = $config[$period];
|
||||
$graph_array['from'] = $config['time'][$period];
|
||||
$graph_array_zoom = $graph_array;
|
||||
$graph_array_zoom['height'] = "150";
|
||||
$graph_array_zoom['width'] = "400";
|
||||
|
||||
$link = "graphs/" . $graph_array['id'] . "/" . $graph_array['type'] . "/" . $graph_array['from'] . "/" . $config['now'] . "/";
|
||||
$link = "graphs/" . $graph_array['id'] . "/" . $graph_array['type'] . "/" . $graph_array['from'] . "/" . $config['to'] . "/";
|
||||
|
||||
echo(overlib_link($link, generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL));
|
||||
}
|
||||
|
Reference in New Issue
Block a user