migrate towards new URL format. slowly.

git-svn-id: http://www.observium.org/svn/observer/trunk@2491 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-17 19:14:44 +00:00
parent ab8471158c
commit 95a287baa7
10 changed files with 200 additions and 160 deletions
+8 -3
View File
@@ -13,9 +13,16 @@ if ($ports['total'])
$graph_array['legend'] = "no";
$graph = generate_graph_tag($graph_array);
$link_array = $graph_array;
$link_array['page'] = "graphs";
unset($link_array['height'], $link_array['width']);
$link = generate_url($link_array);
$content = "<div class=list-large>".$device['hostname']." - Device Traffic</div>";
$content .= "<div style=\'width: 850px\'>";
$graph_array['legend'] = "yes";
$graph_array['legend'] = "no";
$graph_array['width'] = "340";
$graph_array['from'] = $config['time']['day'];
$content .= generate_graph_tag($graph_array);
@@ -27,8 +34,6 @@ if ($ports['total'])
$content .= generate_graph_tag($graph_array);
$content .= "</div>";
$link = $config['base_url'] . "/graphs/" . $graph_array['id'] . "/" . $graph_array['type'] . "/" . $day . "/" . $config['now'] . "/";
echo(overlib_link($link, $graph, $content, NULL));
echo(' <div style="height: 5px;"></div>');