$reqdfieldsn=array(gettext("Link Interface(s)"),gettext("Username"),gettext("Password"),gettext("Local IP address"),gettext("Subnet"),gettext("Remote IP address"),gettext("Dial on demand"),gettext("Idle timeout value"));
$reqdfieldsn=array(gettext("Link Interface(s)"),gettext("Username"),gettext("Password"),gettext("Local IP address"),gettext("Subnet"),gettext("Remote IP address"));
$reqdfieldsn=array(gettext("Link Interface(s)"),gettext("Username"),gettext("Password"),gettext("Local IP address"),gettext("Subnet"),gettext("Remote IP address"),gettext("Dial on demand"),gettext("Idle timeout value"));
$reqdfieldsn=array(gettext("Link Interface(s)"),gettext("Username"),gettext("Password"),gettext("Local IP address"),gettext("Subnet"),gettext("Remote IP address"));
$input_errors[]=gettext("A valid PPPoE reset month must be specified (1-12) in the Custom PPPoE Periodic reset fields.");
if($date_nums[1]<1||$date_nums[1]>31)
$input_errors[]=gettext("A valid PPPoE reset day of month must be specified (1-31) in the Custom PPPoE Periodic reset fields. No checks are done on valid # of days per month");
if($date_nums[2]<date("Y"))
$input_errors[]=gettext("A valid PPPoE reset year must be specified. Don't select a year in the past!");
<br/><spanclass="vexpl"><?=gettext("You may enter a description here for your reference. Description will appear in the \"Interfaces Assign\" select lists.");?></span>
<inputtype="checkbox"value="on"id="null_service"name="null_service"<?=!empty($pconfig['null_service'])?"checked=\"checked\"":"";?>/><?=gettext("Configure a NULL Service name");?>
</tr>
<divclass="hidden"for="help_for_provider">
<?=gettext("Hint: this field can usually be left empty. Service name will not be configured if this field is empty. Check the \"Configure NULL\" box to configure a blank Service name.");?>
<inputtype="checkbox"value="on"id="null_service"name="null_service"<?phpif(isset($pconfig['null_service']))echo"checked=\"checked\"";?>/><?=gettext("Configure a NULL Service name");?>
<tdwidth="78%">
<br/><spanclass="vexpl"><?=gettext("Hint: this field can usually be left empty. Service name will not be configured if this field is empty. Check the \"Configure NULL\" box to configure a blank Service name.");?></span>
<inputname="gateway[]"type="text"class="form-control unknown"id="gateway<?=$j;?>"size="20"value="<?=htmlspecialchars($pconfig['gateway'][$j]);?>"/><?=gettext("IP Address OR Hostname");?>
<?=gettext("Note: Defaults to 1 if you set APN above. Ignored if you set no APN above.");?>
<br/><spanclass="vexpl"><?=gettext("This option causes the interface to operate in dial-on-demand mode. Do NOT enable if you want your link to be always up. ".
<divclass="hidden"for="help_for_pin-wait">
"The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.");?></span>
<?=gettext("Note: Time to wait for SIM to discover network after PIN is sent to SIM (seconds).");?>
<inputname="idletimeout"type="text"class="form-control unknown"id="idletimeout"size="12"value="<?=htmlspecialchars($pconfig['idletimeout']);?>"/><?=gettext("(seconds) Default is 0, which disables the timeout feature.");?>
<td>
<br/><spanclass="vexpl"><?=gettext("If no incoming or outgoing packets are transmitted for the entered number of seconds the connection is brought down.");?>
<br/><?=gettext("When the idle timeout occurs, if the dial-on-demand option is enabled, mpd goes back into dial-on-demand mode. Otherwise, the interface is brought down and all associated routes removed.");?></span>
<divclass="hidden"for="help_for_initstr">
</td>
<?=gettext("Note: Enter the modem initialization string here. Do NOT include the \"AT\"".
</tr>
" string at the beginning of the command. Many modern USB 3G modems don't need an initialization string.");?>
<inputtype="checkbox"value="on"id="vjcomp"name="vjcomp"<?phpif(isset($pconfig['vjcomp']))echo"checked=\"checked\"";?>/> <?=gettext("Disable vjcomp(compression) (auto-negotiated by default).");?>
<trstyle="display:none"class="act_show_advanced">
<br/><spanclass="vexpl"><?=gettext("This option enables Van Jacobson TCP header compression, which saves several bytes per TCP data packet. ".
<inputtype="checkbox"value="on"id="tcpmssfix"name="tcpmssfix"<?phpif(isset($pconfig['tcpmssfix']))echo"checked=\"checked\"";?>/> <?=gettext("Disable tcpmssfix (enabled by default).");?>
<trstyle="display:none"class="act_show_advanced">
<br/><spanclass="vexpl"><?=gettext("This option causes mpd to adjust incoming and outgoing TCP SYN segments so that the requested maximum segment size is not greater than the amount ".
"allowed by the interface MTU. This is necessary in many setups to avoid problems caused by routers that drop ICMP Datagram Too Big messages. Without these messages, ".
<td>
"the originating machine sends data, it passes the rogue router then hits a machine that has an MTU that is not big enough for the data. Because the IP Don't Fragment option is set, ".
"this machine sends an ICMP Datagram Too Big message back to the originator and drops the packet. The rogue router drops the ICMP message and the originator never ".
<?=gettext("Enable persistent logging of connection uptime.");?>
"gets to discover that it must reduce the fragment size or drop the IP Don't Fragment option from its outgoing data.");?></span>
<divclass="hidden"for="help_for_uptime">
</td>
<?=gettext("This option causes cumulative uptime to be recorded and displayed on the Status Interfaces page.");?>
<inputtype="checkbox"value="on"id="shortseq"name="shortseq"<?phpif(isset($pconfig['shortseq']))echo"checked=\"checked\"";?>/> <?=gettext("Disable shortseq (auto-negotiated by default).");?>
</table>
<br/><spanclass="vexpl"><?=gettext("This option is only meaningful if multi-link PPP is negotiated. It proscribes shorter multi-link fragment headers, saving two bytes on every frame. ".
<!-- Advanced (all) -->
"It is not necessary to disable this for connections that are not multi-link.");?></span>
<inputtype="checkbox"value="on"id="acfcomp"name="acfcomp"<?phpif(isset($pconfig['acfcomp']))echo"checked=\"checked\"";?>/> <?=gettext("Disable acfcomp (compression) (auto-negotiated by default).");?>
<?=gettext("Enable Dial-on-Demand mode");?>
<br/><spanclass="vexpl"><?=gettext("Address and control field compression. This option only applies to asynchronous link types. It saves two bytes per frame.");?></span>
<divclass="hidden"for="help_for_ondemand">
</td>
<?=gettext("This option causes the interface to operate in dial-on-demand mode. Do NOT enable if you want your link to be always up. ".
</tr>
"The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.");?></span>
<br/><?=gettext("When the idle timeout occurs, if the dial-on-demand option is enabled, mpd goes back into dial-on-demand mode. Otherwise, the interface is brought down and all associated routes removed.");?>
<?=gettext("Disable tcpmssfix (enabled by default).");?>
<br/><spanclass="vexpl"><?=gettext("MTU will default to 1492.");?></span>
<divclass="hidden"for="help_for_tcpmssfix">
</td>
<?=gettext("This option causes mpd to adjust incoming and outgoing TCP SYN segments so that the requested maximum segment size is not greater than the amount ".
</tr>
"allowed by the interface MTU. This is necessary in many setups to avoid problems caused by routers that drop ICMP Datagram Too Big messages. Without these messages, ".
<tr>
"the originating machine sends data, it passes the rogue router then hits a machine that has an MTU that is not big enough for the data. Because the IP Don't Fragment option is set, ".
"this machine sends an ICMP Datagram Too Big message back to the originator and drops the packet. The rogue router drops the ICMP message and the originator never ".
<tdwidth="78%"class="vtable">
"gets to discover that it must reduce the fragment size or drop the IP Don't Fragment option from its outgoing data.");?>
<?=gettext("Disable shortseq (auto-negotiated by default).");?>
<br/><spanclass="vexpl"><?=gettext("Set ONLY for MLPPP connections.");?> MRRU <?=gettext("will be auto-negotiated by default.");?></span>
<divclass="hidden"for="help_for_shortseq">
</td>
<?=gettext("This option is only meaningful if multi-link PPP is negotiated. It proscribes shorter multi-link fragment headers, saving two bytes on every frame. ".
</tr>
"It is not necessary to disable this for connections that are not multi-link.");?>
<li><?=gettext("Bandwidth");?> : <?=gettext("Set ONLY for MLPPP connections and ONLY when links have different bandwidths.");?></li>
<li><?=gettext("MTU");?> : <?=gettext("MTU will default to 1492.");?></li>
<li><?=gettext("MRU");?> : <?=gettext("MRU");?><?=gettext("will be auto-negotiated by default.");?></li>
<li><?=gettext("MRRU");?> : <?=gettext("Set ONLY for MLPPP connections.");?><?=gettext("MRRU");?><?=gettext("will be auto-negotiated by default.");?></li>