From 0a48e4442a522ce296e28541e9d83ab44d4fcd09 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Mon, 23 Jul 2007 08:25:03 +0000 Subject: Fix botched config path and variables --- usr/local/www/interfaces.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr/local/www/interfaces.php') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 723dbd8..380b07f 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -134,7 +134,7 @@ $pconfig['bigpond_authdomain'] = $config['bigpond']['authdomain']; $pconfig['bigpond_minheartbeatinterval'] = $config['bigpond']['minheartbeatinterval']; $pconfig['dhcphostname'] = $wancfg['dhcphostname']; -$pconfig['rrdgateway'] = $wancfg['rrdgateway']; +$pconfig['use_rrd_gateway'] = $wancfg['use_rrd_gateway']; if ($wancfg['ipaddr'] == "dhcp") { $pconfig['type'] = "DHCP"; @@ -256,7 +256,7 @@ if ($_POST) { if (($_POST['pppoe_idletimeout'] != "") && !is_numericint($_POST['pppoe_idletimeout'])) { $input_errors[] = "The idle timeout value must be an integer."; } - if (($_POST['rrdgateway'] && !is_ipaddr($_POST['rrdgateway']))) { + if (($_POST['use_rrd_gateway'] && !is_ipaddr($_POST['use_rrd_gateway']))) { $input_errors[] = "A valid monitor IP address must be specified."; } if ($_POST['pppoe_resethour'] <> "" && !is_numericint($_POST['pppoe_resethour']) && @@ -351,8 +351,8 @@ if ($_POST) { } /* per interface rrd gateway monitor helper */ - if($_POST['rrdgateway'] <> "") { - $wancfg['rrdgateway'] = $_POST['rrdgateway']; + if($_POST['use_rrd_gateway'] <> "") { + $wancfg['use_rrd_gateway'] = $_POST['use_rrd_gateway']; } if ($_POST['type'] == "Static") { @@ -985,7 +985,7 @@ function show_mon_config() { - Show Monitor IP configuration