summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-07-23 08:25:03 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-07-23 08:25:03 +0000
commit0a48e4442a522ce296e28541e9d83ab44d4fcd09 (patch)
treedde93bc596a3aa662a0f8066ffa35371b3b79e5d /usr
parentaa4ab704c39ff2d18efe6dd98f1fa02e210ef2c7 (diff)
downloadpfsense-0a48e4442a522ce296e28541e9d83ab44d4fcd09.zip
pfsense-0a48e4442a522ce296e28541e9d83ab44d4fcd09.tar.gz
Fix botched config path and variables
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php10
-rwxr-xr-xusr/local/www/interfaces_opt.php8
-rwxr-xr-xusr/local/www/interfaces_wan.php10
3 files changed, 14 insertions, 14 deletions
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() {
<input type="button" onClick="show_mon_config()" value="Advanced"></input> - Show Monitor IP configuration</a>
</div>
<div id="showmon" style="display:none">
- <input name="rrdgateway" type="text" id="rrdgateway" value="<?php echo ($wancfg['rrdgateway']) ; ?>" />
+ <input name="use_rrd_gateway" type="text" id="use_rrd_gateway" value="<?php echo ($wancfg['use_rrd_gateway']) ; ?>" />
<strong>Alternative monitor IP</strong> <br />
Enter a alternative address here to be used to monitor the link. This is used for the
quality RRD graphs as well as the load balancer entries. Use this if the gateway does not respond
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index e29583e..6125797 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -72,7 +72,7 @@ if (isset($optcfg['wireless'])) {
if ($optcfg['ipaddr'] == "dhcp") {
$pconfig['type'] = "DHCP";
$pconfig['dhcphostname'] = $optcfg['dhcphostname'];
- $pconfig['rrdgateway'] = $optcfg['rrdgateway'];
+ $pconfig['use_rrd_gateway'] = $optcfg['use_rrd_gateway'];
} else {
$pconfig['type'] = "Static";
$pconfig['ipaddr'] = $optcfg['ipaddr'];
@@ -209,8 +209,8 @@ if ($_POST) {
$optcfg['enable'] = $_POST['enable'] ? true : false;
/* per interface rrd gateway monitor helper */
- if($_POST['rrdgateway'] <> "") {
- $wancfg['rrdgateway'] = $_POST['rrdgateway'];
+ if($_POST['use_rrd_gateway'] <> "") {
+ $optcfg['use_rrd_gateway'] = $_POST['use_rrd_gateway'];
}
if ($_POST['type'] == "Static") {
@@ -417,7 +417,7 @@ function show_mon_config() {
<input type="button" onClick="show_mon_config()" value="Advanced"></input> - Show Monitor IP configuration
</div>
<div id="showmon" style="display:none">
- <input name="rrdgateway" type="text" id="rrdgateway" value="<?php echo ($wancfg['rrdgateway']) ; ?>" />
+ <input name="use_rrd_gateway" type="text" id="use_rrd_gateway" value="<?php echo ($optcfg['use_rrd_gateway']) ; ?>" />
<strong>Alternative monitor IP</strong> <br />
Enter a alternative address here to be used to monitor the link. This is used for the
quality RRD graphs as well as the load balancer entries. Use this if the gateway does not respond
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index 723dbd8..380b07f 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.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() {
<input type="button" onClick="show_mon_config()" value="Advanced"></input> - Show Monitor IP configuration</a>
</div>
<div id="showmon" style="display:none">
- <input name="rrdgateway" type="text" id="rrdgateway" value="<?php echo ($wancfg['rrdgateway']) ; ?>" />
+ <input name="use_rrd_gateway" type="text" id="use_rrd_gateway" value="<?php echo ($wancfg['use_rrd_gateway']) ; ?>" />
<strong>Alternative monitor IP</strong> <br />
Enter a alternative address here to be used to monitor the link. This is used for the
quality RRD graphs as well as the load balancer entries. Use this if the gateway does not respond
OpenPOWER on IntegriCloud