From 2cd340bd57a18162170975528ba5ebe36c17abe5 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 25 Mar 2009 15:29:47 +0000 Subject: [PATCH] updates git-svn-id: http://www.observium.org/svn/observer/trunk@383 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-interface.inc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/html/includes/print-interface.inc b/html/includes/print-interface.inc index 8fa7e0ae5..0d394423b 100644 --- a/html/includes/print-interface.inc +++ b/html/includes/print-interface.inc @@ -5,7 +5,7 @@ $interface['device_id'] = $device['device_id']; $interface['hostname'] = $device['hostname']; - if(!$_GET['type']) { $_GET['type'] = "bits"; } + if(!$graph_type) { $graph_type = "bits"; } $if_id = $interface['interface_id']; @@ -26,7 +26,6 @@ } else { $error_img = ""; } # $graph_url = "graph.php?if=$if_id&from=$twoday&to=$now&width=400&height=120&type=bits"; - echo(" "); @@ -210,19 +209,19 @@ echo(""); // If we're showing graphs, generate the graph and print the img tags if($dographs && is_file($config['rrd_dir'] . "/" . $hostname . "/". $ifIndex . ".rrd")) { - $type = $_GET['type']; + $type = $graph_type; - $daily_traffic = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$day&to=$now&width=210&height=100"; - $daily_url = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$day&to=$now&width=500&height=150"; + $daily_traffic = "graph.php?if=$if_id&type=" . $graph_type . "&from=$day&to=$now&width=210&height=100"; + $daily_url = "graph.php?if=$if_id&type=" . $graph_type . "&from=$day&to=$now&width=500&height=150"; - $weekly_traffic = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$week&to=$now&width=210&height=100"; - $weekly_url = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$week&to=$now&width=500&height=150"; + $weekly_traffic = "graph.php?if=$if_id&type=" . $graph_type . "&from=$week&to=$now&width=210&height=100"; + $weekly_url = "graph.php?if=$if_id&type=" . $graph_type . "&from=$week&to=$now&width=500&height=150"; - $monthly_traffic = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$month&to=$now&width=210&height=100"; - $monthly_url = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$month&to=$now&width=500&height=150"; + $monthly_traffic = "graph.php?if=$if_id&type=" . $graph_type . "&from=$month&to=$now&width=210&height=100"; + $monthly_url = "graph.php?if=$if_id&type=" . $graph_type . "&from=$month&to=$now&width=500&height=150"; - $yearly_traffic = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$year&to=$now&width=210&height=100"; - $yearly_url = "graph.php?if=$if_id&type=" . $_GET['type'] . "&from=$year&to=$now&width=500&height=150"; + $yearly_traffic = "graph.php?if=$if_id&type=" . $graph_type . "&from=$year&to=$now&width=210&height=100"; + $yearly_url = "graph.php?if=$if_id&type=" . $graph_type . "&from=$year&to=$now&width=500&height=150"; echo("");