mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
23 lines
671 B
PHP
23 lines
671 B
PHP
|
<?php
|
||
|
|
||
|
global $config;
|
||
|
|
||
|
$graph_array['height'] = "100";
|
||
|
$graph_array['width'] = "215";
|
||
|
$graph_array['to'] = $now;
|
||
|
|
||
|
$periods = array('day', 'week', 'month', 'year');
|
||
|
|
||
|
foreach($periods as $period) {
|
||
|
$graph_array['from'] = $config[$period];
|
||
|
$graph_array_zoom = $graph_array;
|
||
|
$graph_array_zoom['height'] = "150";
|
||
|
$graph_array_zoom['width'] = "400";
|
||
|
|
||
|
$link = $config['base_url'] . "/graphs/" . $graph_array['id'] . "/" . $graph_array['type'] . "/" . $graph_array['from'] . "/" . $config['now'] . "/";
|
||
|
|
||
|
echo(overlib_link($link, generate_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL));
|
||
|
}
|
||
|
|
||
|
?>
|