summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-10 05:19:37 +0000
committerBill Marquette <billm@pfsense.org>2005-03-10 05:19:37 +0000
commit88f66e13fc2e8b28b5371145034a77e8d0db27f8 (patch)
tree98ec59c841badcbc25575368cba5e995f8a5fa07 /usr
parent2f948e1c2af0c877bcc0770fb7101805234c2831 (diff)
downloadpfsense-88f66e13fc2e8b28b5371145034a77e8d0db27f8.zip
pfsense-88f66e13fc2e8b28b5371145034a77e8d0db27f8.tar.gz
Move default gateway out of wan config to system config (leave in gui though)
Remove scheduler config from interfaces Bump config file version to 1.5
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php6
-rwxr-xr-xusr/local/www/interfaces_wan.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index a4fa794..7d93de9 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -68,7 +68,7 @@ if ($wancfg['ipaddr'] == "dhcp") {
$pconfig['type'] = "Static";
$pconfig['ipaddr'] = $wancfg['ipaddr'];
$pconfig['subnet'] = $wancfg['subnet'];
- $pconfig['gateway'] = $wancfg['gateway'];
+ $pconfig['gateway'] = $config['system']['gateway'];
$pconfig['pointtopoint'] = $wancfg['pointtopoint'];
}
@@ -175,7 +175,7 @@ if ($_POST) {
unset($wancfg['ipaddr']);
unset($wancfg['subnet']);
- unset($wancfg['gateway']);
+ unset($config['system']['gateway']);
unset($wancfg['pointtopoint']);
unset($wancfg['dhcphostname']);
unset($config['pppoe']['username']);
@@ -199,7 +199,7 @@ if ($_POST) {
if ($_POST['type'] == "Static") {
$wancfg['ipaddr'] = $_POST['ipaddr'];
$wancfg['subnet'] = $_POST['subnet'];
- $wancfg['gateway'] = $_POST['gateway'];
+ $config['system']['gateway'] = $_POST['gateway'];
if (isset($wancfg['ispointtopoint']))
$wancfg['pointtopoint'] = $_POST['pointtopoint'];
} else if ($_POST['type'] == "DHCP") {
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index a4fa794..7d93de9 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -68,7 +68,7 @@ if ($wancfg['ipaddr'] == "dhcp") {
$pconfig['type'] = "Static";
$pconfig['ipaddr'] = $wancfg['ipaddr'];
$pconfig['subnet'] = $wancfg['subnet'];
- $pconfig['gateway'] = $wancfg['gateway'];
+ $pconfig['gateway'] = $config['system']['gateway'];
$pconfig['pointtopoint'] = $wancfg['pointtopoint'];
}
@@ -175,7 +175,7 @@ if ($_POST) {
unset($wancfg['ipaddr']);
unset($wancfg['subnet']);
- unset($wancfg['gateway']);
+ unset($config['system']['gateway']);
unset($wancfg['pointtopoint']);
unset($wancfg['dhcphostname']);
unset($config['pppoe']['username']);
@@ -199,7 +199,7 @@ if ($_POST) {
if ($_POST['type'] == "Static") {
$wancfg['ipaddr'] = $_POST['ipaddr'];
$wancfg['subnet'] = $_POST['subnet'];
- $wancfg['gateway'] = $_POST['gateway'];
+ $config['system']['gateway'] = $_POST['gateway'];
if (isset($wancfg['ispointtopoint']))
$wancfg['pointtopoint'] = $_POST['pointtopoint'];
} else if ($_POST['type'] == "DHCP") {
OpenPOWER on IntegriCloud