From 0543e1e9b260de5ab2625bfe53609e8ec6774fb4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 26 Feb 2006 23:05:03 +0000 Subject: Revert old code --- usr/local/www/graph.php | 3 ++- usr/local/www/ifstats.php | 6 ++---- usr/local/www/status_graph.php | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'usr/local') 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(); } -- cgit v1.1