diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-26 23:05:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-26 23:05:03 +0000 |
commit | 0543e1e9b260de5ab2625bfe53609e8ec6774fb4 (patch) | |
tree | 6a4bbfdbf4e00889c6902889723e6b3cf2375633 /usr/local/www | |
parent | a651b0f6c33b17bbfb7de3fd5cfc4882c88c03ba (diff) | |
download | pfsense-0543e1e9b260de5ab2625bfe53609e8ec6774fb4.zip pfsense-0543e1e9b260de5ab2625bfe53609e8ec6774fb4.tar.gz |
Revert old code
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/graph.php | 3 | ||||
-rw-r--r-- | usr/local/www/ifstats.php | 6 | ||||
-rwxr-xr-x | usr/local/www/status_graph.php | 2 |
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(); } |