summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-12-23 22:27:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-12-23 22:27:16 +0000
commit9e9a6bd12d6fedcffdcce7bdf9d8c154ffd3625a (patch)
tree9a77518e77e3a516ebaad9a885bccdadd44946de /usr
parentdd627071c8d466abe1fc55196c7d5d76aa124358 (diff)
downloadpfsense-9e9a6bd12d6fedcffdcce7bdf9d8c154ffd3625a.zip
pfsense-9e9a6bd12d6fedcffdcce7bdf9d8c154ffd3625a.tar.gz
Correct value cases and simplify setting of type.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/wizards/setup_wizard.xml16
1 files changed, 5 insertions, 11 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index 0e35173..875fe2b 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -1762,18 +1762,18 @@
</option>
<option>
<name>PPPoE</name>
- <value>PPPoE</value>
+ <value>pppoe</value>
<enablefields>pppoeusername,pppoepassword,pppoeservicename,pppoedialondemand,pppoeidletimeout</enablefields>
</option>
<option>
<name>PPTP</name>
- <value>PPTP</value>
+ <value>pptp</value>
<enablefields>pptpusername,pptppassword,pptplocalipaddress,pptplocalsubnet,pptpremoteipaddress,pptpdialondemand,pptpidletimeout
</enablefields>
</option>
<option>
<name>BigPond</name>
- <value>BigPond</value>
+ <value>bigpond</value>
<enablefields>bigpondusername,bigpondpassword,bigpondauthenticationserver,bigpondauthenticationdomain,bigpondminheartbeatinterval</enablefields>
</option>
</options>
@@ -2196,14 +2196,8 @@
</option>
</options>
<stepsubmitbeforesave>
- if($_POST['selectedtype'] == "DHCP") {
- $_POST['ipaddress'] = "dhcp";
- } else if($_POST['selectedtype'] == "PPPoE") {
- $_POST['ipaddress'] = "pppoe";
- } else if($_POST['selectedtype'] == "PPTP") {
- $_POST['ipaddress'] = "pptp";
- } else if($_POST['selectedtype'] == "BigPond") {
- $_POST['ipaddress'] = "bigpond";
+ if(!$_POST['selectedtype'] == "Static") {
+ $_POST['ipaddress'] = $_POST['selectedtype'];
}
</stepsubmitbeforesave>
</field>
OpenPOWER on IntegriCloud