From 588a183b0e58f09932ffef35cc0003cca2313aba Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 9 Oct 2005 23:40:41 +0000 Subject: Move wan gateway to interfaces->wan->gateway --- usr/local/www/interfaces_wan.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/local/www/interfaces_wan.php') diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index 2872587..7c25a47 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -71,7 +71,7 @@ if ($wancfg['ipaddr'] == "dhcp") { $pconfig['type'] = "Static"; $pconfig['ipaddr'] = $wancfg['ipaddr']; $pconfig['subnet'] = $wancfg['subnet']; - $pconfig['gateway'] = $config['system']['gateway']; + $pconfig['gateway'] = $config['interfaces']['wan']['gateway']; $pconfig['pointtopoint'] = $wancfg['pointtopoint']; } @@ -191,7 +191,7 @@ if ($_POST) { unset($wancfg['ipaddr']); unset($wancfg['subnet']); - unset($config['system']['gateway']); + unset($config['interfaces']['wan']['gateway']); unset($wancfg['pointtopoint']); unset($wancfg['dhcphostname']); unset($config['pppoe']['username']); @@ -215,7 +215,7 @@ if ($_POST) { if ($_POST['type'] == "Static") { $wancfg['ipaddr'] = $_POST['ipaddr']; $wancfg['subnet'] = $_POST['subnet']; - $config['system']['gateway'] = $_POST['gateway']; + $config['interfaces']['wan']['gateway'] = $_POST['gateway']; if (isset($wancfg['ispointtopoint'])) $wancfg['pointtopoint'] = $_POST['pointtopoint']; } else if ($_POST['type'] == "DHCP") { -- cgit v1.1