diff options
author | gnhb <gnoahb@gmail.com> | 2010-06-07 22:42:31 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-06-07 22:42:31 +0700 |
commit | 3a906378cb8094c4fcf1c6ad7421199670ad8e70 (patch) | |
tree | 69585d4fde4c329b28faee925fddea7af96c3c91 /usr/local/www/interfaces_ppps_edit.php | |
parent | ebdbdbc26b7b60e9a9bf9226ea3cc3306095f669 (diff) | |
download | pfsense-3a906378cb8094c4fcf1c6ad7421199670ad8e70.zip pfsense-3a906378cb8094c4fcf1c6ad7421199670ad8e70.tar.gz |
Initial support for DCHP+PPtP/L2tP. DHCP + PPPoE is supported too.
Must create an OPTx interface and set to DHCP for DHCP+PPPoE.
Diffstat (limited to 'usr/local/www/interfaces_ppps_edit.php')
-rw-r--r-- | usr/local/www/interfaces_ppps_edit.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php index 4254fde..694b54a 100644 --- a/usr/local/www/interfaces_ppps_edit.php +++ b/usr/local/www/interfaces_ppps_edit.php @@ -314,10 +314,7 @@ if ($_POST) { if (!empty($_POST['apn'])){ $ppp['apn'] = $_POST['apn']; - if (!empty($_POST['apnum'])) - $ppp['apnum'] = $_POST['apnum']; - else - $ppp['apnum'] = "1"; + $ppp['apnum'] = $_POST['apnum']; } else { unset($ppp['apn']); unset($ppp['apnum']); @@ -509,7 +506,7 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp" echo " value=\"{$key}\" >" . htmlspecialchars($opt) . "</option>"; } ?> - </select> + </select> </td> </tr> <tr name="interface" id="interface" > @@ -685,7 +682,7 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp" <br/> <span class="vexpl"><?= gettext("Hint: this field can usually be left empty"); ?></span> </td> </tr> - <tr> + <tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>"> <td width="22%" valign="top" class="vncell"><?=gettext("Periodic reset");?></td> <td width="78%" class="vtable"> <table id="presetwrap" cellspacing="0" cellpadding="0" width="100%"> @@ -850,14 +847,14 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp" <td width="22%" id="mtulabel<?=$i;?>" valign="top" class="vncell"> MTU</td> <td width="78%" class="vtable"> <input name="mtu[]" id="mtu<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mtu'][$i]);?>"> - <br> <span class="vexpl">Set MTU for each link if links have different bandwidths, otherwise, mtu will default to 1492.</span> + <br> <span class="vexpl">MTU will default to 1492.</span> </td> </tr> <tr> <td width="22%" id="mrulabel<?=$i;?>" valign="top" class="vncell"> MRU</td> <td width="78%" class="vtable"> <input name="mru[]" id="mru<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mru'][$i]);?>"> - <br> <span class="vexpl">Set MRU for each link if links have different bandwidths, otherwise, mru will default to 1492.</span> + <br> <span class="vexpl">MRU will default to 1492.</span> </td> </tr> </table |