add click to zoom to soem graphs, and new per-graphtype auth.inc.php to authenticate graphs and click-to-zoom pages.

git-svn-id: http://www.observium.org/svn/observer/trunk@1473 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-25 14:21:05 +00:00
parent 7a586e0e4f
commit 82e30b206b
21 changed files with 268 additions and 317 deletions
+5 -2
View File
@@ -7,7 +7,7 @@ if($ports['total']) {
$graph_array['height'] = "100";
$graph_array['width'] = "490";
$graph_array['to'] = $now;
$graph_array['device'] = $device['device_id'];
$graph_array['id'] = $device['device_id'];
$graph_array['type'] = "device_bits";
$graph_array['from'] = $day;
$graph_array['legend'] = "no";
@@ -28,7 +28,10 @@ if($ports['total']) {
$content .= generate_graph_tag($graph_array);
$content .= "</div>";
echo(overlib_link($_SERVER['REQUEST_URI'], $graph, $content, NULL));
$link = $config['base_url'] . "/graphs/" . $graph_array['id'] . "/" . $graph_array['type'] . "/" . $graph_array['day'] . "/" . $config['now'] . "/";
echo(overlib_link($link, $graph, $content, NULL));
echo(' <div style="height: 5px;"></div>');