Revision c6667396
Added by Marcus Brown almost 15 years ago
usr/local/www/interfaces_ppps_edit.php | ||
---|---|---|
106 | 106 |
$pconfig['gateway'] = explode(",",$a_ppps[$id]['gateway']); |
107 | 107 |
case "pppoe": |
108 | 108 |
$pconfig['provider'] = $a_ppps[$id]['provider']; |
109 |
if (isset($a_ppps[$id]['provider']) and empty($a_ppps[$id]['provider'])) |
|
110 |
$pconfig['null_service'] = true; |
|
109 | 111 |
/* ================================================ */ |
110 | 112 |
/* = force a connection reset at a specific time? = */ |
111 | 113 |
/* ================================================ */ |
... | ... | |
315 | 317 |
$ppp['provider'] = $_POST['provider']; |
316 | 318 |
else |
317 | 319 |
unset($ppp['provider']); |
320 |
$ppp['provider'] = $_POST['null_service'] ? true : false; |
|
318 | 321 |
if (!empty($_POST['pppoe-reset-type'])) |
319 | 322 |
$ppp['pppoe-reset-type'] = $_POST['pppoe-reset-type']; |
320 | 323 |
else |
... | ... | |
586 | 589 |
<table width="100%" border="0" cellpadding="6" cellspacing="0"> |
587 | 590 |
<tr> |
588 | 591 |
<td width="22%" valign="top" class="vncell"><?= gettext("Service name"); ?></td> |
589 |
<td width="78%" class="vtable"><input name="provider" type="text" class="formfld unknown" id="provider" size="20" value="<?=htmlspecialchars($pconfig['provider']);?>"> |
|
590 |
<br/> <span class="vexpl"><?= gettext("Hint: this field can usually be left empty"); ?></span> |
|
592 |
<td width="78%" class="vtable"><input name="provider" type="text" class="formfld unknown" id="provider" size="20" value="<?=htmlspecialchars($pconfig['provider']);?>"> |
|
593 |
<input type="checkbox" value="on" id="null_service" name="null_service" <?php if (isset($pconfig['provider']) and empty($pconfig['provider'])) echo "checked"; ?>> <?= gettext("Configure a NULL Service name"); ?> |
|
594 |
<br/> <span class="vexpl"><?= gettext("Hint: this field can usually be left empty. If empty Service name will not be configured. Check the \"Configure NULL\" box to configure a blank Service name."); ?></span> |
|
591 | 595 |
</td> |
592 | 596 |
</tr> |
593 | 597 |
<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>"> |
... | ... | |
748 | 752 |
<td width="22%" id="bwlabel<?=$i;?>" valign="top"class="vncell"> <?=gettext("Bandwidth");?></td> |
749 | 753 |
<td width="78%" class="vtable"> |
750 | 754 |
<br/><input name="bandwidth[]" id="bandwidth<?=$i;?>" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['bandwidth'][$i]);?>"> |
751 |
<br/> <span class="vexpl"><?=gettext("Set Bandwidth for each link ONLY for MLPPP connections and ONLY when links have different bandwidths.");?></span>
|
|
755 |
<br/> <span class="vexpl"><?=gettext("Set ONLY for MLPPP connections and ONLY when links have different bandwidths.");?></span> |
|
752 | 756 |
</td> |
753 | 757 |
</tr> |
754 | 758 |
<tr> |
... | ... | |
762 | 766 |
<td width="22%" id="mrulabel<?=$i;?>" valign="top" class="vncell"> <?=gettext("MRU"); ?></td> |
763 | 767 |
<td width="78%" class="vtable"> |
764 | 768 |
<input name="mru[]" id="mru<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mru'][$i]);?>"> |
765 |
<br> <span class="vexpl"><?=gettext("MRU will be auto-negotiated by default.");?></span>
|
|
769 |
<br> <span class="vexpl">MRU <?=gettext("will be auto-negotiated by default.");?></span>
|
|
766 | 770 |
</td> |
767 | 771 |
</tr> |
768 | 772 |
<tr> |
769 | 773 |
<td width="22%" id="mrrulabel<?=$i;?>" valign="top" class="vncell"> <?=gettext("MRRU"); ?></td> |
770 | 774 |
<td width="78%" class="vtable"> |
771 | 775 |
<input name="mrru[]" id="mrru<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mrru'][$i]);?>"> |
772 |
<br> <span class="vexpl"><?=gettext("MRRU will be auto-negotiated by default.");?></span>
|
|
776 |
<br> <span class="vexpl"><?=gettext("Set ONLY for MLPPP connections.");?> MRRU <?=gettext("will be auto-negotiated by default.");?></span>
|
|
773 | 777 |
</td> |
774 | 778 |
</tr> |
775 | 779 |
</table |
Also available in: Unified diff
Add a checkbox to explicitly configure a null Service name for PPPoE.
See: http://forum.pfsense.org/index.php/topic,27461.0.html