summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-26 23:05:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-26 23:05:03 +0000
commit0543e1e9b260de5ab2625bfe53609e8ec6774fb4 (patch)
tree6a4bbfdbf4e00889c6902889723e6b3cf2375633
parenta651b0f6c33b17bbfb7de3fd5cfc4882c88c03ba (diff)
downloadpfsense-0543e1e9b260de5ab2625bfe53609e8ec6774fb4.zip
pfsense-0543e1e9b260de5ab2625bfe53609e8ec6774fb4.tar.gz
Revert old code
-rwxr-xr-xusr/local/www/graph.php3
-rw-r--r--usr/local/www/ifstats.php6
-rwxr-xr-xusr/local/www/status_graph.php2
3 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php
index b4c7683..b931839 100755
--- a/usr/local/www/graph.php
+++ b/usr/local/www/graph.php
@@ -40,7 +40,8 @@ $ifname=@$_GET["ifname"]?$_GET["ifname"]:"Interface $ifnum"; //Interface name t
$scale_type="up"; //Autoscale default setup : "up" = only increase scale; "follow" = increase and decrease scale according to current graphed datas
$nb_plot=120; //NB plot in graph
$time_interval=1; //Refresh time Interval
-$fetch_link = "ifstats.cgi?$ifnum";
+
+$fetch_link = "ifstats.php?if={$ifnum}";
//SVG attributes
$attribs['axis']='fill="black" stroke="black"';
diff --git a/usr/local/www/ifstats.php b/usr/local/www/ifstats.php
index 8785ef1..96e7acd 100644
--- a/usr/local/www/ifstats.php
+++ b/usr/local/www/ifstats.php
@@ -39,10 +39,8 @@
$ifinfo['hwif'] = $config['interfaces'][$if]['if'];
if(!$ifinfo['hwif'])
$ifinfo['hwif'] = $if;
- if ($if == "wan" || $if == "ng0")
- $ifinfo['if'] = get_real_wan_interface();
- else
- $ifinfo['if'] = $ifinfo['hwif'];
+
+ $ifinfo['if'] = $ifinfo['hwif'];
/* run netstat to determine link info */
$linkinfo = "";
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php
index fcdc731..a1d26ef 100755
--- a/usr/local/www/status_graph.php
+++ b/usr/local/www/status_graph.php
@@ -48,7 +48,7 @@ if ($_GET['if']) {
$curif = $_GET['if'];
$ifnum = $config['interfaces'][$curif]['if'];
} else {
- $curif = "wan";
+ $curif = "WAN";
$ifnum = get_real_wan_interface();
}
OpenPOWER on IntegriCloud