Project

General

Profile

« Previous | Next » 

Revision 98f43e13

Added by Scott Ullrich over 16 years ago

Cleanup all HTML formatting. At this point the entire file has been
reformatted. No functional changes (yet).

View differences:

usr/local/www/interfaces.php
733 733
</head>
734 734
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
735 735
<?php include("fbegin.inc"); ?>
736
            <form action="interfaces.php" method="post" name="iform" id="iform">
736
<form action="interfaces.php" method="post" name="iform" id="iform">
737 737
<?php if ($input_errors) print_input_errors($input_errors); ?>
738 738
<?php if (file_exists($d_landirty_path)): ?><p>
739 739
<?php print_info_box_np(gettext("The {$wancfg['descr']} configuration has been changed.<p>You must apply the changes in order for them to take effect.<p>Don't forget to adjust the DHCP Server range if needed before applying."));?><br />
740 740
<?php endif; ?>
741 741
<?php if ($savemsg) print_info_box($savemsg); ?>
742
              <table width="100%" border="0" cellpadding="6" cellspacing="0">
743
                <tr>
744
                  <td colspan="2" valign="top" class="listtopic">General configuration</td>
745
                </tr>
746
<?php if ($if != "wan" && $if != "lan"): ?>
747
                <tr>
748
                  <td width="22%" valign="top" class="vtable">&nbsp;</td>
749
                  <td width="78%" class="vtable">
750
                        <input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable'] == true) echo "checked"; ?> onClick="show_allcfg(this);">
751
                    <strong>Enable Interface</strong></td>
752
                </tr>
753
<?php endif; ?>
742
		<table width="100%" border="0" cellpadding="6" cellspacing="0">
743
			<tr>
744
				<td colspan="2" valign="top" class="listtopic">General configuration</td>
745
		</tr>
746
		<?php if ($if != "wan" && $if != "lan"): ?>
747
			<tr>
748
				<td width="22%" valign="top" class="vtable">&nbsp;</td>
749
				<td width="78%" class="vtable">
750
					<input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable'] == true) echo "checked"; ?> onClick="show_allcfg(this);">
751
					<strong>Enable Interface</strong>
752
				</td>
753
				</tr>
754
		<?php endif; ?>
754 755
		<tr style="display:none;" name="allcfg" id="allcfg">
755 756
		<td colspan="2"> 
756
		<table width="100%" border="0" cellpadding="6" cellspacing="0">
757
                <tr>
758
                  <td width="22%" valign="top" class="vncell">Description</td>
759
                  <td width="78%" class="vtable">
760
                    <input name="descr" type="text" class="formfld unknown" id="descr" size="30" value="<?=htmlspecialchars($pconfig['descr']);?>">
761
                                        <br> <span class="vexpl">Enter a description (name) for the interface here.</span>
762
                  </td>
763
                </tr>
764
                <tr>
765
                  <td valign="middle" class="vncell"><strong>Type</strong></td>
766
                  <td class="vtable"> <select name="type" onChange="updateType(this.value);" class="formselect" id="type">
767
                      <?php 
768
			foreach ($types as $key => $opt) { 
769
	                      echo "<option onClick=\"updateType('{$key}');\"";
770
			      if ($key == $pconfig['type']) 
771
				echo " selected";
772
			      echo " value=\"{$key}\" >" . htmlspecialchars($opt);
773
	                      echo "</option>";
774
                      } ?>
775
                    </select></td>
776
                </tr>
777
                <tr>
778
                  <td valign="top" class="vncell">MAC address</td>
779
                  <td class="vtable"> <input name="spoofmac" type="text" class="formfld unknown" id="spoofmac" size="30" value="<?=htmlspecialchars($pconfig['spoofmac']);?>">
780
		    <?php
781
			$ip = getenv('REMOTE_ADDR');
782
			$mac = `/usr/sbin/arp -an | grep {$ip} | cut -d" " -f4`;
783
			$mac = str_replace("\n","",$mac);
784
		    ?>
785
		    <a OnClick="document.forms[0].spoofmac.value='<?=$mac?>';" href="#">Copy my MAC address</a>
786
		    <br>
787
                    This field can be used to modify (&quot;spoof&quot;) the MAC
788
                    address of the WAN interface<br>
789
                    (may be required with some cable connections)<br>
790
                    Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx
791
                    or leave blank</td>
792
                </tr>
793
                <tr>
794
                  <td valign="top" class="vncell">MTU</td>
795
                  <td class="vtable"> <input name="mtu" type="text" class="formfld unknown" id="mtu" size="8" value="<?=htmlspecialchars($pconfig['mtu']);?>">
796
                    <br>
797
                    If you enter a value in this field, then MSS clamping for
798
                    TCP connections to the value entered above minus 40 (TCP/IP
799
                    header size) will be in effect. If you leave this field blank,
800
                    an MTU of 1500 bytes will be assumed.</td>
801
                </tr>
802
		<tr style="display:none;" name="none" id="none">
757
		<tr>
758
			<td width="22%" valign="top" class="vncell">Description</td>
759
			<td width="78%" class="vtable">
760
				<input name="descr" type="text" class="formfld unknown" id="descr" size="30" value="<?=htmlspecialchars($pconfig['descr']);?>">
761
				<br><span class="vexpl">Enter a description (name) for the interface here.</span>
762
			</td>
803 763
		</tr>
804
		<tr style="display:none;" name="static" id="static">
805
		<td colspan="2">
806
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
807 764
		<tr>
808
                  <td colspan="2" valign="top" class="listtopic">Static IP configuration</td>
809
                </tr>
810
                <tr>
811
                  <td width="22%" valign="top" class="vncellreq">IP address</td>
812
                  <td width="78%" class="vtable"> <input name="ipaddr" type="text" class="formfld unknown" id="ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipaddr']);?>">
813
                    /
814
                    <select name="subnet" class="formselect" id="subnet">
815
			<?php
816
			for ($i = 32; $i > 0; $i--) {
817
				if($i <> 31) {
818
					echo "<option value=\"{$i}\" ";
819
					if ($i == $pconfig['subnet']) echo "selected";
820
					echo ">" . $i . "</option>";
821
				}
822
			}
765
		<td valign="middle" class="vncell"><strong>Type</strong></td>
766
		<td class="vtable"> 
767
			<select name="type" onChange="updateType(this.value);" class="formselect" id="type">
768
			<?php 
769
				foreach ($types as $key => $opt) { 
770
					echo "<option onClick=\"updateType('{$key}');\"";
771
					if ($key == $pconfig['type']) 
772
						echo " selected";
773
					echo " value=\"{$key}\" >" . htmlspecialchars($opt);
774
					echo "</option>";
775
			    } 
823 776
			?>
824
                    </select></td>
825
                </tr><?php if (isset($wancfg['ispointtopoint'])): ?>
826
                <tr>
827
                  <td width="22%" valign="top" class="vncellreq">Point-to-point IP address </td>
828
                  <td width"78%" class="vtable">
829
                    <input name="pointtopoint" type="text" class="formfld unknown" id="pointtopoint" size="20" value="<?=htmlspecialchars($pconfig['pointtopoint']);?>">
830
                  </td>
831
                </tr><?php endif; ?>
832
                <tr>
833
                  <td width="22%" valign="top" class="vncellreq">Gateway</td>
834
                  <td width="78%" class="vtable"><select name="gateway" class="formselect" id="gateway">
835
					<option value="none" selected>None</option>
836
			<?php
837
			if(count($a_gateways) > 0) {
838
				foreach ($a_gateways as $gateway) {
839
					if($gateway['interface'] == $if) {
777
			</select>
778
		</td>
779
	</tr>
780
	<tr>
781
		<td valign="top" class="vncell">MAC address</td>
782
		<td class="vtable">
783
			<input name="spoofmac" type="text" class="formfld unknown" id="spoofmac" size="30" value="<?=htmlspecialchars($pconfig['spoofmac']);?>">
784
		    <?php
785
				$ip = getenv('REMOTE_ADDR');
786
				$mac = `/usr/sbin/arp -an | grep {$ip} | cut -d" " -f4`;
787
				$mac = str_replace("\n","",$mac);
840 788
			?>
841
					<option value="<?=$gateway['name'];?>" <?php if ($gateway['name'] == $pconfig['gateway']) echo "selected"; ?>>
842
					<?=htmlspecialchars($gateway['name']);?>
843
					</option>
844
			<?php
789
			<a OnClick="document.forms[0].spoofmac.value='<?=$mac?>';" href="#">Copy my MAC address</a>
790
			<br>
791
			This field can be used to modify (&quot;spoof&quot;) the MAC
792
			address of the WAN interface<br>
793
			(may be required with some cable connections)<br>
794
			Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx
795
			or leave blank
796
		</td>
797
	</tr>
798
	<tr>
799
		<td valign="top" class="vncell">MTU</td>
800
		<td class="vtable"> 
801
			<input name="mtu" type="text" class="formfld unknown" id="mtu" size="8" value="<?=htmlspecialchars($pconfig['mtu']);?>">
802
			<br>
803
			If you enter a value in this field, then MSS clamping for
804
			TCP connections to the value entered above minus 40 (TCP/IP
805
			header size) will be in effect. If you leave this field blank,
806
			an MTU of 1500 bytes will be assumed.
807
		</td>
808
	</tr>
809
	<tr style="display:none;" name="none" id="none">
810
	</tr>
811
	<tr style="display:none;" name="static" id="static">
812
	<td colspan="2">
813
	<table width="100%" border="0" cellpadding="6" cellspacing="0">
814
	<tr>
815
		<td colspan="2" valign="top" class="listtopic">Static IP configuration</td>
816
	</tr>
817
	<tr>
818
		<td width="22%" valign="top" class="vncellreq">IP address</td>
819
		<td width="78%" class="vtable"> 
820
			<input name="ipaddr" type="text" class="formfld unknown" id="ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipaddr']);?>">
821
			/
822
			<select name="subnet" class="formselect" id="subnet">
823
				<?php
824
				for ($i = 32; $i > 0; $i--) {
825
					if($i <> 31) {
826
						echo "<option value=\"{$i}\" ";
827
						if ($i == $pconfig['subnet']) echo "selected";
828
						echo ">" . $i . "</option>";
845 829
					}
846 830
				}
847
			}
848
			?>
831
				?>
832
			</select>
833
		</td>
834
	</tr>
835
	<?php if (isset($wancfg['ispointtopoint'])): ?>
836
	<tr>
837
		<td width="22%" valign="top" class="vncellreq">Point-to-point IP address </td>
838
		<td width"78%" class="vtable">
839
			<input name="pointtopoint" type="text" class="formfld unknown" id="pointtopoint" size="20" value="<?=htmlspecialchars($pconfig['pointtopoint']);?>">
840
		</td>
841
	</tr>
842
	<?php endif; ?>
843
	<tr>
844
		<td width="22%" valign="top" class="vncellreq">Gateway</td>
845
		<td width="78%" class="vtable">
846
			<select name="gateway" class="formselect" id="gateway">
847
				<option value="none" selected>None</option>
848
				<?php
849
				if(count($a_gateways) > 0) {
850
					foreach ($a_gateways as $gateway) {
851
						if($gateway['interface'] == $if) {
852
				?>
853
						<option value="<?=$gateway['name'];?>" <?php if ($gateway['name'] == $pconfig['gateway']) echo "selected"; ?>>
854
						<?=htmlspecialchars($gateway['name']);?>
855
						</option>
856
				<?php
857
						}
858
					}
859
				}
860
				?>
849 861
			</select>
850 862
			<br/>
851 863
			Select a existing Gateway from the list or add one on the <a href="/system_gateways.php">Gateways</a> page<br>
852
                  </td>
853
                </tr>
864
		</td>
865
	</tr>
854 866
	</table>
855 867
	</td>
856 868
	</tr>
857
		<tr style="display:none;" name="dhcp" id="dhcp">
869
	<tr style="display:none;" name="dhcp" id="dhcp">
858 870
		<td colspan="2">
859
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
860
                <tr>
861
                  <td colspan="2" valign="top" class="listtopic">DHCP client configuration</td>
862
                </tr>
863
                <tr>
864
                  <td width="22%" valign="top" class="vncell">Hostname</td>
865
                  <td width="78%" class="vtable"> <input name="dhcphostname" type="text" class="formfld unknown" id="dhcphostname" size="40" value="<?=htmlspecialchars($pconfig['dhcphostname']);?>">
866
                    <br>
867
                    The value in this field is sent as the DHCP client identifier
868
                    and hostname when requesting a DHCP lease. Some ISPs may require
869
                    this (for client identification).</td>
870
                </tr>
871
                <tr>
872
                  <td width="22%" valign="top" class="vncellreq">Alias IP address</td>
873
                  <td width="78%" class="vtable"> <input name="alias-address" type="text" class="formfld unknown" id="alias-address" size="20" value="<?=htmlspecialchars($pconfig['alias-address']);?>">
874
                    <select name="alias-subnet" class="formselect" id="alias-subnet">
875
			<?php
876
			for ($i = 32; $i > 0; $i--) {
877
				if($i <> 31) {
878
					echo "<option value=\"{$i}\" ";
879
					if ($i == $pconfig['alias-subnet']) echo "selected";
880
					echo ">" . $i . "</option>";
881
				}
882
			}
883
			?>
884
                    </select>
885
                    The value in this field is used as a fixed alias IP address by the
886
		    DHCP client.</td>
887
                </tr>
888
	</table>
889
	</td>
871
			<table width="100%" border="0" cellpadding="6" cellspacing="0">
872
				<tr>
873
					<td colspan="2" valign="top" class="listtopic">DHCP client configuration</td>
874
				</tr>
875
				<tr>
876
					<td width="22%" valign="top" class="vncell">Hostname</td>
877
					<td width="78%" class="vtable">
878
						<input name="dhcphostname" type="text" class="formfld unknown" id="dhcphostname" size="40" value="<?=htmlspecialchars($pconfig['dhcphostname']);?>">
879
						<br>
880
						The value in this field is sent as the DHCP client identifier
881
						and hostname when requesting a DHCP lease. Some ISPs may require
882
						this (for client identification).
883
					</td>
884
				</tr>
885
				<tr>
886
					<td width="22%" valign="top" class="vncellreq">Alias IP address</td>
887
					<td width="78%" class="vtable"> 
888
						<input name="alias-address" type="text" class="formfld unknown" id="alias-address" size="20" value="<?=htmlspecialchars($pconfig['alias-address']);?>">
889
						<select name="alias-subnet" class="formselect" id="alias-subnet">
890
							<?php
891
							for ($i = 32; $i > 0; $i--) {
892
								if($i <> 31) {
893
									echo "<option value=\"{$i}\" ";
894
									if ($i == $pconfig['alias-subnet']) echo "selected";
895
									echo ">" . $i . "</option>";
896
								}
897
							}
898
							?>
899
						</select>
900
						The value in this field is used as a fixed alias IP address by the
901
						DHCP client.
902
					</td>
903
				</tr>
904
			</table>
905
		</td>
890 906
	</tr>
891
                <tr style="display:none;" name="pppoe" id="pppoe">
907
	<tr style="display:none;" name="pppoe" id="pppoe">
892 908
		<td colspan="2">
893
	<table width="100%" border="0" cellpadding="6" cellspacing="0">
894
                <tr>
895
                  <td colspan="2" valign="top" class="listtopic">PPPoE configuration</td>
896
                </tr>
897
		<tr>
898
                  <td width="22%" valign="top" class="vncellreq">Username</td>
899
                  <td width="78%" class="vtable"><input name="pppoe_username" type="text" class="formfld user" id="pppoe_username" size="20" value="<?=htmlspecialchars($pconfig['pppoe_username']);?>">
900
                  </td>
901
                </tr>
902
                <tr>
903
                  <td width="22%" valign="top" class="vncellreq">Password</td>
904
                  <td width="78%" class="vtable"><input name="pppoe_password" type="password" class="formfld pwd" id="pppoe_password" size="20" value="<?=htmlspecialchars($pconfig['pppoe_password']);?>">
905
                  </td>
906
                </tr>
907
                <tr>
908
                  <td width="22%" valign="top" class="vncell">Service name</td>
909
                  <td width="78%" class="vtable"><input name="provider" type="text" class="formfld unknown" id="provider" size="20" value="<?=htmlspecialchars($pconfig['provider']);?>">
910
                    <br> <span class="vexpl">Hint: this field can usually be left
911
                    empty</span></td>
912
                </tr>
913
                <tr>
914
                  <td width="22%" valign="top" class="vncell">Dial on demand</td>
915
                  <td width="78%" class="vtable"><input name="pppoe_dialondemand" type="checkbox" id="pppoe_dialondemand" value="enable" <?php if ($pconfig['pppoe_dialondemand']) echo "checked"; ?>" >
916
                    <strong>Enable Dial-On-Demand mode</strong><br>
917
		    This option causes the interface to operate in dial-on-demand mode, allowing you to have a <i>virtual full time</i> connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.</td>
918
                </tr>
919
                <tr>
920
                  <td width="22%" valign="top" class="vncell">Idle timeout</td>
921
                  <td width="78%" class="vtable">
922
                    <input name="pppoe_idletimeout" type="text" class="formfld unknown" id="pppoe_idletimeout" size="8" value="<?=htmlspecialchars($pconfig['pppoe_idletimeout']);?>"> 
923
seconds<br>If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.</td>
924
                </tr>
925
                <tr>
926
                  <td width="22%" valign="top" class="vncell"><?=gettext("Periodic reset");?></td>
927
                  <td width="78%" class="vtable">
928
                    <input name="pppoe_preset" type="checkbox" id="pppoe_preset" value="yes" <?php if ($pconfig['pppoe_preset']) echo "checked=\"checked\""; ?> onclick="Effect.toggle('presetwrap', 'appear', { duration: 1.0 });" />
929
                    <?= gettext("enable periodic PPPoE resets"); ?>
930
                    <br />
931
                    <?php if ($pconfig['pppoe_preset']): ?>
932
                    <table id="presetwrap" cellspacing="0" cellpadding="0" width="100%">
933
                    <?php else: ?>
934
                    <table id="presetwrap" cellspacing="0" cellpadding="0" width="100%" style="display: none;">
935
                    <?php endif; ?>
936
                      <tr>
937
                        <td align="left" valign="top">
938
                          <p style="margin: 4px; padding: 4px 0 4px 0; width: 94%;">
939
                            <input name="pppoe_pr_type" type="radio" id="pppoe_pr_custom" value="custom" <?php if ($pconfig['pppoe_pr_custom']) echo "checked=\"checked\""; ?> onclick="if (this.checked) { Effect.Appear('pppoecustomwrap', { duration: 1.0 }); Effect.Fade('pppoepresetwrap', { duration: 1.0 }); }" /> 
940
                            <?= gettext("provide a custom reset time"); ?>
941
                            <br />
942
                            <input name="pppoe_pr_type" type="radio" id="pppoe_pr_preset" value="preset" <?php if ($pconfig['pppoe_pr_preset']) echo "checked=\"checked\""; ?> onclick="if (this.checked) { Effect.Appear('pppoepresetwrap', { duration: 1.0 }); Effect.Fade('pppoecustomwrap', { duration: 1.0 }); }" /> 
943
                            <?= gettext("select reset time from a preset"); ?>
944
                          </p>
945
                          <?php if ($pconfig['pppoe_pr_custom']): ?>
946
                          <p style="margin: 2px; padding: 4px; width: 94%;" id="pppoecustomwrap">
947
                          <?php else: ?>
948
                          <p style="margin: 2px; padding: 4px; width: 94%; display: none;" id="pppoecustomwrap">
949
                          <?php endif; ?>
950
                            <input type="text" name="pppoe_resethour" class="fd_incremental_inp_range_0_23 fd_increment_1 fd_classname_dec_buttonDec fd_classname_inc_buttonInc" maxlength="2" id="pppoe_resethour" value="<?= $pconfig['pppoe_resethour']; ?>" size="3" /> 
951
                            <?= gettext("hour (0-23)"); ?><br />
952
                            <input type="text" name="pppoe_resetminute" class="fd_incremental_inp_range_0_59 fd_increment_1 fd_classname_dec_buttonDec fd_classname_inc_buttonInc" maxlength="2" id="pppoe_resetminute" value="<?= $pconfig['pppoe_resetminute']; ?>" size="3" /> 
953
                            <?= gettext("minute (0-59)"); ?><br />
954
                            <input name="pppoe_resetdate" type="text" class="w8em format-m-d-y highlight-days-67" id="pppoe_resetdate" maxlength="10" size="10" value="<?=htmlspecialchars($pconfig['pppoe_resetdate']);?>" /> 
955
                            <?= gettext("reset at a specific date (mm/dd/yyyy)"); ?>
956
                            <br />&nbsp;<br />
957
                            <span class="red"><strong>Note: </strong></span>
958
                            If you leave the date field empty, the reset will be executed each day at the time you did specify using the minutes and hour field.
959
                          </p>
960
                          <?php if ($pconfig['pppoe_pr_preset']): ?>
961
                          <p style="margin: 2px; padding: 4px; width: 94%;" id="pppoepresetwrap">
962
                          <?php else: ?>
963
                          <p style="margin: 2px; padding: 4px; width: 94%; display: none;" id="pppoepresetwrap">
964
                          <?php endif; ?>
965
                            <input name="pppoe_pr_preset_val" type="radio" id="pppoe_monthly" value="monthly" <?php if ($pconfig['pppoe_monthly']) echo "checked=\"checked\""; ?> /> 
966
                            <?= gettext("reset at each month ('0 0 1 * *')"); ?>
967
                            <br />
968
                            <input name="pppoe_pr_preset_val" type="radio" id="pppoe_weekly" value="weekly" <?php if ($pconfig['pppoe_weekly']) echo "checked=\"checked\""; ?> /> 
969
                            <?= gettext("reset at each week ('0 0 * * 0')"); ?>
970
                            <br />
971
                            <input name="pppoe_pr_preset_val" type="radio" id="pppoe_daily" value="daily" <?php if ($pconfig['pppoe_daily']) echo "checked=\"checked\""; ?> /> 
972
                            <?= gettext("reset at each day ('0 0 * * *')"); ?>
973
                            <br />
974
                            <input name="pppoe_pr_preset_val" type="radio" id="pppoe_hourly" value="hourly" <?php if ($pconfig['pppoe_hourly']) echo "checked=\"checked\""; ?> /> 
975
                            <?= gettext("reset at each hour ('0 * * * *')"); ?>
976
                          </p>
977
                        </td>
978
                      </tr>
979
                    </table>
980
                  </td>
981
                </tr>                
982
	</table>
909
			<table width="100%" border="0" cellpadding="6" cellspacing="0">
910
				<tr>
911
					<td colspan="2" valign="top" class="listtopic">PPPoE configuration</td>
912
				</tr>
913
				<tr>
914
					<td width="22%" valign="top" class="vncellreq">Username</td>
915
					<td width="78%" class="vtable"><input name="pppoe_username" type="text" class="formfld user" id="pppoe_username" size="20" value="<?=htmlspecialchars($pconfig['pppoe_username']);?>">
916
					</td>
917
				</tr>
918
				<tr>
919
					<td width="22%" valign="top" class="vncellreq">Password</td>
920
					<td width="78%" class="vtable">
921
						<input name="pppoe_password" type="password" class="formfld pwd" id="pppoe_password" size="20" value="<?=htmlspecialchars($pconfig['pppoe_password']);?>">
922
					</td>
923
				</tr>
924
				<tr>
925
					<td width="22%" valign="top" class="vncell">Service name</td>
926
					<td width="78%" class="vtable"><input name="provider" type="text" class="formfld unknown" id="provider" size="20" value="<?=htmlspecialchars($pconfig['provider']);?>">
927
						<br> <span class="vexpl">Hint: this field can usually be left empty</span>
928
					</td>
929
				</tr>
930
				<tr>
931
					<td width="22%" valign="top" class="vncell">Dial on demand</td>
932
					<td width="78%" class="vtable">
933
						<input name="pppoe_dialondemand" type="checkbox" id="pppoe_dialondemand" value="enable" <?php if ($pconfig['pppoe_dialondemand']) echo "checked"; ?>" >
934
						<strong>Enable Dial-On-Demand mode</strong><br>
935
		    			This option causes the interface to operate in dial-on-demand mode, allowing you to have a <i>virtual full time</i> connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.
936
					</td>
937
				</tr>
938
				<tr>
939
					<td width="22%" valign="top" class="vncell">Idle timeout</td>
940
					<td width="78%" class="vtable">
941
						<input name="pppoe_idletimeout" type="text" class="formfld unknown" id="pppoe_idletimeout" size="8" value="<?=htmlspecialchars($pconfig['pppoe_idletimeout']);?>"> seconds<br>If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.
942
					</td>
943
				</tr>
944
				<tr>
945
					<td width="22%" valign="top" class="vncell"><?=gettext("Periodic reset");?></td>
946
					<td width="78%" class="vtable">
947
						<input name="pppoe_preset" type="checkbox" id="pppoe_preset" value="yes" <?php if ($pconfig['pppoe_preset']) echo "checked=\"checked\""; ?> onclick="Effect.toggle('presetwrap', 'appear', { duration: 1.0 });" />
948
						<?= gettext("enable periodic PPPoE resets"); ?>
949
						<br />
950
						<?php if ($pconfig['pppoe_preset']): ?>
951
							<table id="presetwrap" cellspacing="0" cellpadding="0" width="100%">
952
						<?php else: ?>
953
							<table id="presetwrap" cellspacing="0" cellpadding="0" width="100%" style="display: none;">
954
						<?php endif; ?>
955
								<tr>
956
								<td align="left" valign="top">
957
									<p style="margin: 4px; padding: 4px 0 4px 0; width: 94%;">
958
									<input name="pppoe_pr_type" type="radio" id="pppoe_pr_custom" value="custom" <?php if ($pconfig['pppoe_pr_custom']) echo "checked=\"checked\""; ?> onclick="if (this.checked) { Effect.Appear('pppoecustomwrap', { duration: 1.0 }); Effect.Fade('pppoepresetwrap', { duration: 1.0 }); }" /> 
959
									<?= gettext("provide a custom reset time"); ?>
960
									<br />
961
									<input name="pppoe_pr_type" type="radio" id="pppoe_pr_preset" value="preset" <?php if ($pconfig['pppoe_pr_preset']) echo "checked=\"checked\""; ?> onclick="if (this.checked) { Effect.Appear('pppoepresetwrap', { duration: 1.0 }); Effect.Fade('pppoecustomwrap', { duration: 1.0 }); }" /> 
962
									<?= gettext("select reset time from a preset"); ?>
963
									</p>
964
									<?php if ($pconfig['pppoe_pr_custom']): ?>
965
										<p style="margin: 2px; padding: 4px; width: 94%;" id="pppoecustomwrap">
966
									<?php else: ?>
967
										<p style="margin: 2px; padding: 4px; width: 94%; display: none;" id="pppoecustomwrap">
968
									<?php endif; ?>
969
									<input type="text" name="pppoe_resethour" class="fd_incremental_inp_range_0_23 fd_increment_1 fd_classname_dec_buttonDec fd_classname_inc_buttonInc" maxlength="2" id="pppoe_resethour" value="<?= $pconfig['pppoe_resethour']; ?>" size="3" /> 
970
									<?= gettext("hour (0-23)"); ?><br />
971
									<input type="text" name="pppoe_resetminute" class="fd_incremental_inp_range_0_59 fd_increment_1 fd_classname_dec_buttonDec fd_classname_inc_buttonInc" maxlength="2" id="pppoe_resetminute" value="<?= $pconfig['pppoe_resetminute']; ?>" size="3" /> 
972
									<?= gettext("minute (0-59)"); ?><br />
973
									<input name="pppoe_resetdate" type="text" class="w8em format-m-d-y highlight-days-67" id="pppoe_resetdate" maxlength="10" size="10" value="<?=htmlspecialchars($pconfig['pppoe_resetdate']);?>" /> 
974
									<?= gettext("reset at a specific date (mm/dd/yyyy)"); ?>
975
									<br />&nbsp;<br />
976
									<span class="red"><strong>Note: </strong></span>
977
									If you leave the date field empty, the reset will be executed each day at the time you did specify using the minutes and hour field.
978
									</p>
979
									<?php if ($pconfig['pppoe_pr_preset']): ?>
980
										<p style="margin: 2px; padding: 4px; width: 94%;" id="pppoepresetwrap">
981
									<?php else: ?>
982
										<p style="margin: 2px; padding: 4px; width: 94%; display: none;" id="pppoepresetwrap">
983
									<?php endif; ?>
984
									<input name="pppoe_pr_preset_val" type="radio" id="pppoe_monthly" value="monthly" <?php if ($pconfig['pppoe_monthly']) echo "checked=\"checked\""; ?> /> 
985
									<?= gettext("reset at each month ('0 0 1 * *')"); ?>
986
									<br />
987
									<input name="pppoe_pr_preset_val" type="radio" id="pppoe_weekly" value="weekly" <?php if ($pconfig['pppoe_weekly']) echo "checked=\"checked\""; ?> /> 
988
									<?= gettext("reset at each week ('0 0 * * 0')"); ?>
989
									<br />
990
									<input name="pppoe_pr_preset_val" type="radio" id="pppoe_daily" value="daily" <?php if ($pconfig['pppoe_daily']) echo "checked=\"checked\""; ?> /> 
991
									<?= gettext("reset at each day ('0 0 * * *')"); ?>
992
									<br />
993
									<input name="pppoe_pr_preset_val" type="radio" id="pppoe_hourly" value="hourly" <?php if ($pconfig['pppoe_hourly']) echo "checked=\"checked\""; ?> /> 
994
									<?= gettext("reset at each hour ('0 * * * *')"); ?>
995
									</p>
996
								</td>
997
							</tr>
998
						</table>
999
					</td>
1000
				</tr>                
1001
			</table>
983 1002
		</td>
984
		</tr>
985
		<tr style="display:none;" name="pptp" id="pptp">
1003
	</tr>
1004
	<tr style="display:none;" name="pptp" id="pptp">
986 1005
		<td colspan="2">
987
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
988
                <tr>
989
                  <td colspan="2" valign="top" class="listtopic">PPTP configuration</td>
990
                </tr>
991
                <tr>
992
                  <td width="22%" valign="top" class="vncellreq">Username</td>
993
                  <td width="78%" class="vtable"><input name="pptp_username" type="text" class="formfld user" id="pptp_username" size="20" value="<?=htmlspecialchars($pconfig['pptp_username']);?>">
994
                  </td>
995
                </tr>
996
                <tr>
997
                  <td width="22%" valign="top" class="vncellreq">Password</td>
998
                  <td width="78%" class="vtable"><input name="pptp_password" type="text" class="formfld pwd" id="pptp_password" size="20" 
999
value="<?=htmlspecialchars($pconfig['pptp_password']);?>">
1000
                  </td>
1001
                </tr>
1002
                <tr>
1003
                  <td width="22%" width="100" valign="top" class="vncellreq">Local IP address</td>
1004
                  <td width="78%" class="vtable"> <input name="pptp_local" type="text" class="formfld unknown" id="pptp_local" size="20" 
1005
value="<?=htmlspecialchars($pconfig['pptp_local']);?>">
1006
                    /
1007
                    <select name="pptp_subnet" class="formselect" id="pptp_subnet">
1008
                      <?php for ($i = 31; $i > 0; $i--): ?>
1009
                      <option value="<?=$i;?>" <?php if ($i == $pconfig['pptp_subnet']) echo "selected"; ?>>
1010
                      <?=$i;?>
1011
                      </option>
1012
                      <?php endfor; ?>
1013
                    </select></td>
1014
                </tr>
1015
                <tr>
1016
                  <td width="22%" width="100" valign="top" class="vncellreq">Remote IP address</td>
1017
                  <td width="78%" class="vtable"> <input name="pptp_remote" type="text" class="formfld unknown" id="pptp_remote" size="20" value="<?=htmlspecialchars($pconfig['pptp_remote']);?>">
1018
                  </td>
1019
                </tr>
1020
                <tr>
1021
                  <td width="22%" valign="top" class="vncell">Dial on demand</td>
1022
                  <td width="78%" class="vtable"><input name="pptp_dialondemand" type="checkbox" id="pptp_dialondemand" value="enable" <?php if ($pconfig['pptp_dialondemand']) echo "checked"; ?>" >
1023
                    <strong>Enable Dial-On-Demand mode</strong><br>
1024
		    This option causes the interface to operate in dial-on-demand mode, allowing you to have a <i>virtual full time</i> connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.</td>
1025
                </tr>
1026
                <tr>
1027
                  <td width="22%" valign="top" class="vncell">Idle timeout</td>
1028
                  <td width="78%" class="vtable">
1029
                    <input name="pptp_idletimeout" type="text" class="formfld unknown" id="pptp_idletimeout" size="8" value="<?=htmlspecialchars($pconfig['pptp_idletimeout']);?>"> 
1030
seconds<br>If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.</td>
1031
                </tr>
1006
			<table width="100%" border="0" cellpadding="6" cellspacing="0">
1007
				<tr>
1008
					<td colspan="2" valign="top" class="listtopic">PPTP configuration</td>
1009
				</tr>
1010
				<tr>
1011
					<td width="22%" valign="top" class="vncellreq">Username</td>
1012
					<td width="78%" class="vtable"><input name="pptp_username" type="text" class="formfld user" id="pptp_username" size="20" value="<?=htmlspecialchars($pconfig['pptp_username']);?>">
1013
					</td>
1014
				</tr>
1015
				<tr>
1016
					<td width="22%" valign="top" class="vncellreq">Password</td>
1017
					<td width="78%" class="vtable">
1018
						<input name="pptp_password" type="text" class="formfld pwd" id="pptp_password" size="20" value="<?=htmlspecialchars($pconfig['pptp_password']);?>">
1019
					</td>
1020
				</tr>
1021
				<tr>
1022
					<td width="22%" width="100" valign="top" class="vncellreq">Local IP address</td>
1023
					<td width="78%" class="vtable"> 
1024
						<input name="pptp_local" type="text" class="formfld unknown" id="pptp_local" size="20"  value="<?=htmlspecialchars($pconfig['pptp_local']);?>">
1025
						/
1026
					<select name="pptp_subnet" class="formselect" id="pptp_subnet">
1027
					<?php for ($i = 31; $i > 0; $i--): ?>
1028
						<option value="<?=$i;?>" <?php if ($i == $pconfig['pptp_subnet']) echo "selected"; ?>>
1029
					<?=$i;?>
1030
				</option>
1031
				<?php endfor; ?>
1032
			</select>
1033
		</td>
1034
	</tr>
1035
	<tr>
1036
		<td width="22%" width="100" valign="top" class="vncellreq">Remote IP address</td>
1037
		<td width="78%" class="vtable"> <input name="pptp_remote" type="text" class="formfld unknown" id="pptp_remote" size="20" value="<?=htmlspecialchars($pconfig['pptp_remote']);?>">
1038
	</td>
1039
	</tr>
1040
	<tr>
1041
		<td width="22%" valign="top" class="vncell">Dial on demand</td>
1042
		<td width="78%" class="vtable">
1043
			<input name="pptp_dialondemand" type="checkbox" id="pptp_dialondemand" value="enable" <?php if ($pconfig['pptp_dialondemand']) echo "checked"; ?>" >
1044
			<strong>Enable Dial-On-Demand mode</strong><br>
1045
			This option causes the interface to operate in dial-on-demand mode, allowing you to have a <i>virtual full time</i> connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.
1046
		</td>
1047
	</tr>
1048
	<tr>
1049
		<td width="22%" valign="top" class="vncell">Idle timeout</td>
1050
		<td width="78%" class="vtable">
1051
			<input name="pptp_idletimeout" type="text" class="formfld unknown" id="pptp_idletimeout" size="8" value="<?=htmlspecialchars($pconfig['pptp_idletimeout']);?>"> seconds<br>If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature.
1052
		</td>
1053
	</tr>
1032 1054
	</table>
1033 1055
	</td>
1034 1056
	</tr>
......
1039 1061
			<input name="Submit" type="submit" class="formbtn" value="Save">
1040 1062
		</td>
1041 1063
	</tr>
1042
        <?php
1064
	<?php
1043 1065
		/* Wireless interface? */
1044 1066
		if (isset($wancfg['wireless'])):
1045 1067
	?>
1046
                <tr>
1047
                  <td colspan="2" valign="top" height="16"></td>
1048
		</tr>
1049
                <tr>
1050
                  <td colspan="2" valign="top" class="listtopic">Wireless configuration</td>
1068
	<tr>
1069
		<td colspan="2" valign="top" height="16"></td>
1070
	</tr>
1071
	<tr>
1072
		<td colspan="2" valign="top" class="listtopic">Wireless configuration</td>
1051 1073
		</tr>
1052 1074
		<tr>
1053 1075
			<td valign="top" class="vncellreq">Standard</td>
......
1121 1143
			<br/>
1122 1144
			(this might create problems for some clients). </td>
1123 1145
		</tr>
1124
                <tr>
1146
		<tr>
1125 1147
			<td valign="top" class="vncellreq">Transmit power</td>
1126 1148
			<td class="vtable">
1127 1149
			<select name="txpower" class="formselect" id="txpower">
1128
			<?
1150
				<?
1129 1151
				for($x = 99; $x > 0; $x--) {
1130 1152
					if($pconfig["txpower"] == $x)
1131 1153
						$SELECTED = " SELECTED";
......
1133 1155
						$SELECTED = "";
1134 1156
					echo "<option {$SELECTED}>{$x}</option>\n";
1135 1157
				}
1136
			?>
1158
				?>
1137 1159
			</select><br/>
1138 1160
			Note: Typically only a few discreet power settings are available and the driver will use the setting closest to the specified value.  Not all adaptors support changing the transmit power setting.
1139 1161
			</td>
1140 1162
		</tr>
1141
                <tr>
1163
		<tr>
1142 1164
			<td valign="top" class="vncellreq">Channel</td>
1143
			<td class="vtable"><select name="channel" class="formselect" id="channel">
1144
				<option <? if ($pconfig['channel'] == 0) echo "selected"; ?> value="0">Auto</option>
1145
				<?php
1146
				foreach($wl_modes as $wl_standard => $wl_channels) {
1147
					if($wl_standard == "11g") { $wl_standard = "11b/g"; }
1148
					foreach($wl_channels as $wl_channel) {
1149
						echo "<option ";
1150
						if ($pconfig['channel'] == "$wl_channel") {
1151
							echo "selected ";
1165
			<td class="vtable">
1166
				<select name="channel" class="formselect" id="channel">
1167
					<option <? if ($pconfig['channel'] == 0) echo "selected"; ?> value="0">Auto</option>
1168
					<?php
1169
					foreach($wl_modes as $wl_standard => $wl_channels) {
1170
						if($wl_standard == "11g") { $wl_standard = "11b/g"; }
1171
						foreach($wl_channels as $wl_channel) {
1172
							echo "<option ";
1173
							if ($pconfig['channel'] == "$wl_channel") {
1174
								echo "selected ";
1175
							}
1176
							echo "value=\"$wl_channel\">$wl_standard - $wl_channel</option>\n";
1152 1177
						}
1153
						echo "value=\"$wl_channel\">$wl_standard - $wl_channel</option>\n";
1154 1178
					}
1155
				}
1156
				?>
1157
			</select>
1158
			<br/>
1159
			Note: Not all channels may be supported by your card
1179
					?>
1180
				</select>
1181
				<br/>
1182
				Note: Not all channels may be supported by your card
1183
			</td>
1160 1184
		</tr>
1161 1185
		<tr>
1162 1186
			<td valign="top" class="vncell">Distance setting</td>
......
1172 1196
			<strong>Enable WEP</strong>
1173 1197
			<table border="0" cellspacing="0" cellpadding="0">
1174 1198
		<tr>
1175
                        <td>&nbsp;</td>
1176
                        <td>&nbsp;</td>
1177
                        <td>&nbsp;TX key&nbsp;</td>
1199
			<td>&nbsp;</td>
1200
			<td>&nbsp;</td>
1201
			<td>&nbsp;TX key&nbsp;</td>
1178 1202
		</tr>
1179 1203
		<tr>
1180
                        <td>Key 1:&nbsp;&nbsp;</td>
1181
                        <td> <input name="key1" type="text" class="formfld unknown" id="key1" size="30" value="<?=htmlspecialchars($pconfig['key1']);?>"></td>
1182
                        <td align="center"> <input name="txkey" type="radio" value="1" <? if ($pconfig['txkey'] == 1) echo "checked";?>></td>
1204
			<td>Key 1:&nbsp;&nbsp;</td>
1205
			<td> <input name="key1" type="text" class="formfld unknown" id="key1" size="30" value="<?=htmlspecialchars($pconfig['key1']);?>"></td>
1206
			<td align="center"> <input name="txkey" type="radio" value="1" <? if ($pconfig['txkey'] == 1) echo "checked";?>></td>
1183 1207
		</tr>
1184 1208
		<tr>
1185
                        <td>Key 2:&nbsp;&nbsp;</td>
1186
                        <td> <input name="key2" type="text" class="formfld unknown" id="key2" size="30" value="<?=htmlspecialchars($pconfig['key2']);?>"></td>
1187
                        <td align="center"> <input name="txkey" type="radio" value="2" <? if ($pconfig['txkey'] == 2) echo "checked";?>></td>
1209
			<td>Key 2:&nbsp;&nbsp;</td>
1210
			<td><input name="key2" type="text" class="formfld unknown" id="key2" size="30" value="<?=htmlspecialchars($pconfig['key2']);?>"></td>
1211
			<td align="center"> <input name="txkey" type="radio" value="2" <? if ($pconfig['txkey'] == 2) echo "checked";?>></td>
1188 1212
		</tr>
1189 1213
		<tr>
1190
                        <td>Key 3:&nbsp;&nbsp;</td>
1191
                        <td> <input name="key3" type="text" class="formfld unknown" id="key3" size="30" value="<?=htmlspecialchars($pconfig['key3']);?>"></td>
1192
                        <td align="center"> <input name="txkey" type="radio" value="3" <? if ($pconfig['txkey'] == 3) echo "checked";?>></td>
1214
			<td>Key 3:&nbsp;&nbsp;</td>
1215
			<td> <input name="key3" type="text" class="formfld unknown" id="key3" size="30" value="<?=htmlspecialchars($pconfig['key3']);?>"></td>
1216
			<td align="center"> <input name="txkey" type="radio" value="3" <? if ($pconfig['txkey'] == 3) echo "checked";?>></td>
1193 1217
		</tr>
1194 1218
		<tr>
1195
                        <td>Key 4:&nbsp;&nbsp;</td>
1196
                        <td> <input name="key4" type="text" class="formfld unknown" id="key4" size="30" value="<?=htmlspecialchars($pconfig['key4']);?>"></td>
1197
                        <td align="center"> <input name="txkey" type="radio" value="4" <? if ($pconfig['txkey'] == 4) echo "checked";?>></td>
1219
			<td>Key 4:&nbsp;&nbsp;</td>
1220
			<td><input name="key4" type="text" class="formfld unknown" id="key4" size="30" value="<?=htmlspecialchars($pconfig['key4']);?>"></td>
1221
			<td align="center"> <input name="txkey" type="radio" value="4" <? if ($pconfig['txkey'] == 4) echo "checked";?>></td>
1198 1222
		</tr>
1199
			</table>
1200
			<br/>
1201
			40 (64) bit keys may be entered as 5 ASCII characters or 10 hex digits preceded by '0x'.<br/>
1202
			104 (128) bit keys may be entered as 13 ASCII characters or 26 hex digits preceded by '0x'.
1203
		   	</td>
1204
                </tr>
1205
                <tr>
1206
			<td valign="top" class="vncell">WPA</td>
1207
			<td class="vtable"><input name="wpa_enable" type="checkbox" class="formfld" id="wpa_enable" value="yes" <? if ($pconfig['wpa_enable']) echo "checked"; ?>>
1223
	</table>
1224
	<br/>
1225
	40 (64) bit keys may be entered as 5 ASCII characters or 10 hex digits preceded by '0x'.<br/>
1226
	104 (128) bit keys may be entered as 13 ASCII characters or 26 hex digits preceded by '0x'.
1227
	</td>
1228
	</tr>
1229
	<tr>
1230
		<td valign="top" class="vncell">WPA</td>
1231
		<td class="vtable"><input name="wpa_enable" type="checkbox" class="formfld" id="wpa_enable" value="yes" <? if ($pconfig['wpa_enable']) echo "checked"; ?>>
1208 1232
			<strong>Enable WPA</strong>
1209 1233
			<br/><br/>
1210 1234
			<table border="0" cellspacing="0" cellpadding="0">
1211
			<tr>
1212
                        <td>&nbsp;</td>
1213
                        <td>&nbsp;WPA Pre Shared Key&nbsp;</td>
1214
			</tr>
1215
			<tr>
1216
			<td>PSK:&nbsp;&nbsp;</td>
1217
			<td><input name="passphrase" type="text" class="formfld unknown" id="passphrase" size="66" value="<?=htmlspecialchars($pconfig['passphrase']);?>"></td>
1218
			</tr>
1235
				<tr>
1236
					<td>&nbsp;</td>
1237
					<td>&nbsp;WPA Pre Shared Key&nbsp;</td>
1238
				</tr>
1239
				<tr>
1240
					<td>PSK:&nbsp;&nbsp;</td>
1241
					<td><input name="passphrase" type="text" class="formfld unknown" id="passphrase" size="66" value="<?=htmlspecialchars($pconfig['passphrase']);?>"></td>
1242
				</tr>
1219 1243
			</table>
1220 1244
			<br/>Passphrase must be from 8 to 63 chars.
1221
			</td>
1222
	        </tr>
1245
		</td>
1246
	</tr>
1223 1247
		<tr>
1224 1248
			<td valign="top" class="vncell">WPA Mode</td>
1225
			<td class="vtable"><select name="wpa_mode" class="formselect" id="wpa_mode">
1226
			<option <? if ($pconfig['wpa_mode'] == '1') echo "selected";?> value="1">WPA</option>
1227
			<option <? if ($pconfig['wpa_mode'] == '2') echo "selected";?> value="2">WPA2</option>
1228
			<option <? if ($pconfig['wpa_mode'] == '3') echo "selected";?> value="3">Both</option>
1249
			<td class="vtable">
1250
			<select name="wpa_mode" class="formselect" id="wpa_mode">
1251
				<option <? if ($pconfig['wpa_mode'] == '1') echo "selected";?> value="1">WPA</option>
1252
				<option <? if ($pconfig['wpa_mode'] == '2') echo "selected";?> value="2">WPA2</option>
1253
				<option <? if ($pconfig['wpa_mode'] == '3') echo "selected";?> value="3">Both</option>
1229 1254
			</select>
1230 1255
			</td>
1231 1256
		</tr>
1232 1257
		<tr>
1233 1258
			<td valign="top" class="vncell">WPA Key Management Mode</td>
1234
			<td class="vtable"><select name="wpa_key_mgmt" class="formselect" id="wpa_key_mgmt">
1235
			<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-PSK') echo "selected";?> value="WPA-PSK">Pre Shared Key</option>
1236
			<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-EAP') echo "selected";?> value="WPA-EAP">Extensible Authentication Protocol</option>
1237
			<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-PSK WPA-EAP') echo "selected";?> value="WPA-PSK WPA-EAP">Both</option>
1238
 			</select>
1239
			</td>
1240
		</tr>
1241
		<? /*
1242
		<tr>
1243
			<td valign="top" class="vncell">Enable MAC Filtering</td>
1244
			<td class="vtable"><input name="mac_acl_enable" type="checkbox" value="yes" class="formfld" id="mac_acl_enable" <? if ($pconfig['mac_acl_enable']) echo "checked"; ?>>
1245
			Setting this option will enable the use of a mac filterlist to allow/deny association based on mac address
1246
			<br/><br/>
1247
			<select name="macaddr_acl" class="formselect" id="macaddr_acl">
1248
                        <option <? if ($pconfig['macaddr_acl'] == '0') echo "selected";?> value="0">Allow</option>
1249
			<option <? if ($pconfig['macaddr_acl'] == '1') echo "selected";?> value="1">Deny</option>
1250
			<option <? if ($pconfig['macaddr_acl'] == '2') echo "selected";?> value="2">Radius</option>
1251
			</select>
1252
			<br/><br/>
1253
			Setting this to "Allow" will allow all clients in not in deny list, while "Deny" will deny all clients not in allow list.
1254
			Radius will cause allow and deny list to be searched and then query radius.</br>
1259
			<td class="vtable">
1260
				<select name="wpa_key_mgmt" class="formselect" id="wpa_key_mgmt">
1261
					<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-PSK') echo "selected";?> value="WPA-PSK">Pre Shared Key</option>
1262
					<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-EAP') echo "selected";?> value="WPA-EAP">Extensible Authentication Protocol</option>
1263
					<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-PSK WPA-EAP') echo "selected";?> value="WPA-PSK WPA-EAP">Both</option>
1264
 				</select>
1255 1265
			</td>
1256 1266
		</tr>
1257
		*/ ?>
1258 1267
		<tr>
1259 1268
			<td valign="top" class="vncell">Authentication</td>
1260
			<td class="vtable"><select name="auth_algs" class="formselect" id="auth_algs">
1261
			<option <? if ($pconfig['auth_algs'] == '1') echo "selected";?> value="1">Open System Authentication</option>
1262
			<option <? if ($pconfig['auth_algs'] == '2') echo "selected";?> value="2">Shared Key Authentication</option>
1263
			<option <? if ($pconfig['auth_algs'] == '3') echo "selected";?> value="3">Both</option>
1264
			</select>
1265
			<br/>Note: Shared Key Authentication requires WEP.</br>
1269
			<td class="vtable">
1270
				<select name="auth_algs" class="formselect" id="auth_algs">
1271
					<option <? if ($pconfig['auth_algs'] == '1') echo "selected";?> value="1">Open System Authentication</option>
1272
					<option <? if ($pconfig['auth_algs'] == '2') echo "selected";?> value="2">Shared Key Authentication</option>
1273
					<option <? if ($pconfig['auth_algs'] == '3') echo "selected";?> value="3">Both</option>
1274
				</select>
1275
				<br/>Note: Shared Key Authentication requires WEP.</br>
1266 1276
			</td>
1267 1277
		</tr>
1268 1278
		<tr>
1269 1279
			<td valign="top" class="vncell">WPA Pairwise</td>
1270
			<td class="vtable"><select name="wpa_pairwise" class="formselect" id="wpa_pairwise">
1271
			<option <? if ($pconfig['wpa_pairwise'] == 'CCMP TKIP') echo "selected";?> value="CCMP TKIP">Both</option>
1272
			<option <? if ($pconfig['wpa_pairwise'] == 'CCMP') echo "selected";?> value="CCMP">AES</option>
1273
			<option <? if ($pconfig['wpa_pairwise'] == 'TKIP') echo "selected";?> value="TKIP">TKIP</option>
1274
			</select>
1280
			<td class="vtable">
1281
				<select name="wpa_pairwise" class="formselect" id="wpa_pairwise">
1282
					<option <? if ($pconfig['wpa_pairwise'] == 'CCMP TKIP') echo "selected";?> value="CCMP TKIP">Both</option>
1283
					<option <? if ($pconfig['wpa_pairwise'] == 'CCMP') echo "selected";?> value="CCMP">AES</option>
1284
					<option <? if ($pconfig['wpa_pairwise'] == 'TKIP') echo "selected";?> value="TKIP">TKIP</option>
1285
				</select>
1275 1286
			</td>
1276 1287
		</tr>
1277 1288
		<tr>
......
1299 1310
			</td>
1300 1311
		</tr>
1301 1312
	<? endif; ?>
1302
                <tr>
1303
                        <td colspan="2" valign="top" height="10"></td>
1304
                </tr>
1305
                <tr>
1306
                  <td colspan="2" valign="top" class="listtopic">Other</td>
1307
                </tr>
1308
                <tr>
1309
                        <td width="22%" valign="top" class="vncell">FTP Helper</td>
1310
                        <td width="78%" class="vtable">
1311
                                <input name="disableftpproxy" type="checkbox" id="disableftpp
1312
roxy" value="yes" <?php if ($pconfig['disableftpproxy']) echo "checked"; ?> />
1313
                                <strong>Disable the userland FTP-Proxy application</strong>
1314
                                <br />
1315
                        </td>
1316
                </tr>
1317
                <tr>
1318
                  <td height="16" colspan="2" valign="top"></td>
1319
                </tr>
1320
                <tr>
1321
                  <td valign="middle">&nbsp;</td>
1322
                  <td class="vtable"><a name="rfc1918"></a> <input name="blockpriv" type="checkbox" id="blockpriv" value="yes" <?php if ($pconfig['blockpriv']) echo "checked"; ?>>
1323
                    <strong>Block private networks</strong><br>
1324
                    When set, this option blocks traffic from IP addresses that
1325
                    are reserved for private<br>
1326
                    networks as per RFC 1918 (10/8, 172.16/12, 192.168/16) as
1327
                    well as loopback addresses<br>
1328
                    (127/8). You should generally leave this option turned on,
1329
                    unless your WAN network<br>
1330
                    lies in such a private address space, too.</td>
1331
                </tr>
1332
                <tr>
1333
                  <td valign="middle">&nbsp;</td>
1334
                  <td class="vtable"> <input name="blockbogons" type="checkbox" id="blockbogons" value="yes" <?php if ($pconfig['blockbogons']) echo "checked"; ?>>
1335
                    <strong>Block bogon networks</strong><br>
1336
                    When set, this option blocks traffic from IP addresses that
1337
                    are reserved (but not RFC 1918) or not yet assigned by IANA.<br>
1338
                    Bogons are prefixes that should never appear in the Internet routing table, and obviously should not appear as the source address in any packets you receive.</td>
1313
	<tr>
1314
		<td colspan="2" valign="top" height="10"></td>
1315
	</tr>
1316
	<tr>
1317
		<td colspan="2" valign="top" class="listtopic">Other</td>
1318
	</tr>
1319
	<tr>
1320
		<td width="22%" valign="top" class="vncell">FTP Helper</td>
1321
		<td width="78%" class="vtable">
1322
			<input name="disableftpproxy" type="checkbox" id="disableftpproxy" value="yes" <?php if ($pconfig['disableftpproxy']) echo "checked"; ?> />
1323
			<strong>Disable the userland FTP-Proxy application</strong>
1324
			<br />
1325
		</td>
1326
	</tr>
1327
	<tr>
1328
		<td height="16" colspan="2" valign="top"></td>
1329
	</tr>
1330
	<tr>
1331
		<td valign="middle">&nbsp;</td>
1332
		<td class="vtable"><a name="rfc1918"></a> <input name="blockpriv" type="checkbox" id="blockpriv" value="yes" <?php if ($pconfig['blockpriv']) echo "checked"; ?>>
1333
			<strong>Block private networks</strong><br>
1334
			When set, this option blocks traffic from IP addresses that
1335
			are reserved for private<br>
1336
			networks as per RFC 1918 (10/8, 172.16/12, 192.168/16) as
1337
			well as loopback addresses<br>
1338
			(127/8). You should generally leave this option turned on,
1339
			unless your WAN network<br>
1340
			lies in such a private address space, too.</td>
1339 1341
		</tr>
1340
    </tr>
1342
		<tr>
1343
			<td valign="middle">&nbsp;</td>
1344
			<td class="vtable"> <input name="blockbogons" type="checkbox" id="blockbogons" value="yes" <?php if ($pconfig['blockbogons']) echo "checked"; ?>>
1345
				<strong>Block bogon networks</strong><br>
1346
				When set, this option blocks traffic from IP addresses that
1347
				are reserved (but not RFC 1918) or not yet assigned by IANA.<br>
1348
				Bogons are prefixes that should never appear in the Internet routing table, and obviously should not appear as the source address in any packets you receive.</td>
1349
		</tr>
1350
	</tr>
1341 1351
	<tr>
1342 1352
	<td width="100" valign="top">
1343
			&nbsp;
1353
		&nbsp;
1344 1354
	</td>
1345 1355
	<td>
1346 1356
		<br/>
......
1349 1359
	</td>
1350 1360
	</tr>
1351 1361
	</table>
1352
  </td>
1362
	</td>
1353 1363
</table>
1354 1364
</form>
1355 1365
<script language="JavaScript">

Also available in: Unified diff