summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-06-08 22:39:03 +0700
committergnhb <gnoahb@gmail.com>2010-06-08 22:39:03 +0700
commit513b762e7ab6cebf58b8334677687b368bb7e4d2 (patch)
tree366d2c7eb2da081b72d018f0323e833c88677a62 /usr/local/www/interfaces.php
parent8256f324086c5c85f02663aa729f6bb52aed827a (diff)
downloadpfsense-513b762e7ab6cebf58b8334677687b368bb7e4d2.zip
pfsense-513b762e7ab6cebf58b8334677687b368bb7e4d2.tar.gz
Add check for required fields for PPP connections.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 4d6c4c4..dfff30d 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -371,6 +371,11 @@ if ($_POST) {
$reqdfieldsn = explode(",", "IP address,Subnet bit count,Gateway");
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
break;
+ case "ppp":
+ $reqdfields = explode(" ", "port phone");
+ $reqdfieldsn = explode(",", "Modem Port,Phone Number");
+ do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
+ break;
case "PPPoE":
if ($_POST['pppoe_dialondemand']) {
$reqdfields = explode(" ", "pppoe_username pppoe_password pppoe_dialondemand pppoe_idletimeout");
@@ -1096,7 +1101,6 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "ppp" =
<br><span class="vexpl">Enter a description (name) for the interface here.</span>
</td>
</tr>
- <? if(!$wancfg['serialport']): ?>
<tr>
<td valign="middle" class="vncell"><strong>Type</strong></td>
<td class="vtable">
@@ -1113,7 +1117,6 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "ppp" =
</select>
</td>
</tr>
- <?php endif; ?>
<tr>
<td valign="top" class="vncell">MAC address</td>
<td class="vtable">
OpenPOWER on IntegriCloud