diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/wizards/setup_wizard.xml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index 3f5c3de..0a60bdb 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -323,11 +323,17 @@ </field> </fields> <stepsubmitbeforesave> - if($_POST['selectedtype'] == "Static") { } else { - $_POST['ipaddress'] = $_POST['selectedtype']; - $config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype']; - write_config(); - } + <![CDATA[ + if($_POST['selectedtype'] == "Static") { + + } else { + $_POST['ipaddress'] = $_POST['selectedtype']; + $config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype']; + write_config(); + if(!$config['interfaces']['lan']) + Header("/wizard.php?xml=setup_wizard.xml&stepid=5&next=Next"); + } + ]]> </stepsubmitbeforesave> </step> <step> |