Projet

Général

Profil

« Précédent | Suivant » 

Révision 2b5c9e58

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "vpn_openvpn_server.php" XHTML

Add CDATA section to SCRIPTS
Add SUMMARY to TABLES
Remove unordered list for tabs
Close INPUT and IMG tags and add ALT to IMG
Update HTML Boolean operators
Move TFOOT between THEAD and TBODY (quirk of HTML!)
Add dummy row to end of TBODY but don't display it
Deprecate Ampersand in Anchor tags
Move NOWRAP into CLASS statement

Voir les différences:

usr/local/www/vpn_openvpn_server.php
470 470
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
471 471
<?php include("fbegin.inc"); ?>
472 472
<script type="text/javascript">
473
<!--
473
//<![CDATA[
474 474

  
475 475
function mode_change() {
476 476
	index = document.iform.mode.selectedIndex;
......
706 706
			break;
707 707
	}
708 708
}
709
//-->
709
//]]>
710 710
</script>
711 711
<?php
712 712
if (!$savemsg)
......
717 717
if ($savemsg)
718 718
	print_info_box_np($savemsg);
719 719
?>
720
<table width="100%" border="0" cellpadding="0" cellspacing="0">
720
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="vpn openvpn server">
721 721
	<tr>
722 722
		<td class="tabnavtbl">
723
			<ul id="tabnav">
724 723
			<?php 
725 724
				$tab_array = array();
726 725
				$tab_array[] = array(gettext("Server"), true, "vpn_openvpn_server.php");
......
730 729
				add_package_tabs("OpenVPN", $tab_array);
731 730
				display_top_tabs($tab_array);
732 731
			?>
733
			</ul>
734 732
		</td>
735 733
	</tr>    
736 734
	<tr>
......
739 737
			<?php if($act=="new" || $act=="edit"): ?>
740 738

  
741 739
			<form action="vpn_openvpn_server.php" method="post" name="iform" id="iform" onsubmit="presubmit()">
742
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
740
				<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="general information">
743 741
					<tr>
744 742
						<td colspan="2" valign="top" class="listtopic"><?=gettext("General information"); ?></td>
745 743
					</tr>
746 744
					<tr>
747 745
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Disabled"); ?></td>
748 746
						<td width="78%" class="vtable">
749
							<table border="0" cellpadding="0" cellspacing="0">
747
							<table border="0" cellpadding="0" cellspacing="0" summary="enable disable server">
750 748
								<tr>
751 749
									<td>
752 750
										<?php set_checked($pconfig['disable'],$chk); ?>
753
										<input name="disable" type="checkbox" value="yes" <?=$chk;?>/>
751
										<input name="disable" type="checkbox" value="yes" <?=$chk;?> />
754 752
									</td>
755 753
									<td>
756 754
										&nbsp;
......
771 769
								foreach ($openvpn_server_modes as $name => $desc):
772 770
									$selected = "";
773 771
									if ($pconfig['mode'] == $name)
774
										$selected = "selected";
772
										$selected = "selected=\"selected\"";
775 773
							?>
776 774
								<option value="<?=$name;?>" <?=$selected;?>><?=$desc;?></option>
777 775
							<?php endforeach; ?>
......
781 779
					<tr id="authmodetr" style="display:none">
782 780
                                                <td width="22%" valign="top" class="vncellreq"><?=gettext("Backend for authentication");?></td>
783 781
                                                        <td width="78%" class="vtable">
784
                                                        <select name='authmode[]' id='authmode' class="formselect" multiple="true" size="<?php echo count($auth_servers); ?>">
782
                                                        <select name='authmode[]' id='authmode' class="formselect" multiple="multiple" size="<?php echo count($auth_servers); ?>">
785 783
							<?php $authmodes = explode(",", $pconfig['authmode']); ?>
786 784
                                                        <?php
787 785
								$auth_servers = auth_get_authserver_list();
788 786
                                                                foreach ($auth_servers as $auth_server):
789 787
                                                                        $selected = "";
790 788
                                                                        if (in_array($auth_server['name'], $authmodes))
791
                                                                                $selected = "selected";
789
                                                                                $selected = "selected=\"selected\"";
792 790
                                                        ?>
793 791
                                                                <option value="<?=$auth_server['name'];?>" <?=$selected;?>><?=$auth_server['name'];?></option>
794 792
                                                        <?php 	endforeach; ?>
......
803 801
								foreach ($openvpn_prots as $prot):
804 802
									$selected = "";
805 803
									if ($pconfig['protocol'] == $prot)
806
										$selected = "selected";
804
										$selected = "selected=\"selected\"";
807 805
							?>
808 806
								<option value="<?=$prot;?>" <?=$selected;?>><?=$prot;?></option>
809 807
							<?php endforeach; ?>
......
819 817
                                                                       $selected = "";
820 818
                                                                       if (! empty($pconfig['dev_mode'])) {
821 819
                                                                               if ($pconfig['dev_mode'] == $device)
822
                                                                                       $selected = "selected";
820
                                                                                       $selected = "selected=\"selected\"";
823 821
                                                                       } else {
824 822
                                                                               if ($device == "tun")
825
                                                                                       $selected = "selected";
823
                                                                                       $selected = "selected=\"selected\"";
826 824
                                                                       }
827 825
                                                        ?>
828 826
                                                                <option value="<?=$device;?>" <?=$selected;?>><?=$device;?></option>
......
857 855
									foreach ($interfaces as $iface => $ifacename):
858 856
										$selected = "";
859 857
										if ($iface == $pconfig['interface'])
860
											$selected = "selected";
858
											$selected = "selected=\"selected\"";
861 859
								?>
862 860
									<option value="<?=$iface;?>" <?=$selected;?>>
863 861
										<?=htmlspecialchars($ifacename);?>
......
869 867
					<tr>
870 868
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Local port");?></td>
871 869
						<td width="78%" class="vtable">
872
							<input name="local_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['local_port']);?>"/>
870
							<input name="local_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['local_port']);?>" />
873 871
						</td>
874 872
					</tr>
875 873
					<tr> 
876 874
						<td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td>
877 875
						<td width="78%" class="vtable"> 
878
							<input name="description" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['description']);?>">
876
							<input name="description" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['description']);?>" />
879 877
							<br />
880 878
							<?=gettext("You may enter a description here for your reference (not parsed)"); ?>.
881 879
						</td>
......
889 887
					<tr id="tls">
890 888
						<td width="22%" valign="top" class="vncellreq"><?=gettext("TLS Authentication"); ?></td>
891 889
						<td width="78%" class="vtable">
892
							<table border="0" cellpadding="2" cellspacing="0">
890
							<table border="0" cellpadding="2" cellspacing="0" summary="tls authentication">
893 891
								<tr>
894 892
									<td>
895 893
										<?php set_checked($pconfig['tlsauth_enable'],$chk); ?>
896
										<input name="tlsauth_enable" id="tlsauth_enable" type="checkbox" value="yes" <?=$chk;?> onClick="tlsauth_change()">
894
										<input name="tlsauth_enable" id="tlsauth_enable" type="checkbox" value="yes" <?=$chk;?> onclick="tlsauth_change()" />
897 895
									</td>
898 896
									<td>
899 897
										<span class="vexpl">
......
903 901
								</tr>
904 902
							</table>
905 903
							<?php if (!$pconfig['tls']): ?>
906
							<table border="0" cellpadding="2" cellspacing="0" id='tlsauth_opts'>
904
							<table border="0" cellpadding="2" cellspacing="0" id="tlsauth_opts" summary="tls authentication options">
907 905
								<tr>
908 906
									<td>
909 907
										<?php set_checked($pconfig['autotls_enable'],$chk); ?>
910
										<input name="autotls_enable" id="autotls_enable" type="checkbox" value="yes" <?=$chk;?> onClick="autotls_change()">
908
										<input name="autotls_enable" id="autotls_enable" type="checkbox" value="yes" <?=$chk;?> onclick="autotls_change()" />
911 909
									</td>
912 910
									<td>
913 911
										<span class="vexpl">
......
917 915
								</tr>
918 916
							</table>
919 917
							<?php endif; ?>
920
							<table border="0" cellpadding="2" cellspacing="0" id='autotls_opts'>
918
							<table border="0" cellpadding="2" cellspacing="0" id="autotls_opts" summary="tls authentication key">
921 919
								<tr>
922 920
									<td>
923 921
										<textarea name="tls" cols="65" rows="7" class="formpre"><?=htmlspecialchars($pconfig['tls']);?></textarea>
......
937 935
								foreach ($a_ca as $ca):
938 936
									$selected = "";
939 937
									if ($pconfig['caref'] == $ca['refid'])
940
										$selected = "selected";
938
										$selected = "selected=\"selected\"";
941 939
							?>
942 940
								<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
943 941
							<?php endforeach; ?>
......
961 959
									if ($ca) {
962 960
										$caname = " (CA: {$ca['descr']})";
963 961
										if ($pconfig['crlref'] == $crl['refid'])
964
											$selected = "selected";
962
											$selected = "selected=\"selected\"";
965 963
									}
966 964
							?>
967 965
								<option value="<?=$crl['refid'];?>" <?=$selected;?>><?=$crl['descr'] . $caname;?></option>
......
987 985
								if ($ca)
988 986
									$caname = " (CA: {$ca['descr']})";
989 987
								if ($pconfig['certref'] == $cert['refid'])
990
									$selected = "selected";
988
									$selected = "selected=\"selected\"";
991 989
								if (cert_in_use($cert['refid']))
992 990
									$inuse = " *In Use";
993 991
								if (is_cert_revoked($cert))
......
1007 1005
							<select name="dh_length" class="formselect">
1008 1006
								<?php
1009 1007
									foreach ($openvpn_dh_lengths as $length):
1010
									$selected = '';
1008
									$selected = "";
1011 1009
									if ($length == $pconfig['dh_length'])
1012
										$selected = ' selected';
1010
										$selected = " selected=\"selected\"";
1013 1011
								?>
1014 1012
								<option<?=$selected?>><?=$length;?></option>
1015 1013
								<?php endforeach; ?>
......
1023 1021
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Shared Key"); ?></td>
1024 1022
						<td width="78%" class="vtable">
1025 1023
							<?php if (!$pconfig['shared_key']): ?>
1026
							<table border="0" cellpadding="2" cellspacing="0">
1024
							<table border="0" cellpadding="2" cellspacing="0" summary="shared key">
1027 1025
								<tr>
1028 1026
									<td>
1029 1027
										<?php set_checked($pconfig['autokey_enable'],$chk); ?>
1030
										<input name="autokey_enable" type="checkbox" value="yes" <?=$chk;?> onClick="autokey_change()">
1028
										<input name="autokey_enable" type="checkbox" value="yes" <?=$chk;?> onclick="autokey_change()" />
1031 1029
									</td>
1032 1030
									<td>
1033 1031
										<span class="vexpl">
......
1037 1035
								</tr>
1038 1036
							</table>
1039 1037
							<?php endif; ?>
1040
							<table border="0" cellpadding="2" cellspacing="0" id='autokey_opts'>
1038
							<table border="0" cellpadding="2" cellspacing="0" id="autokey_opts" summary="shared key">
1041 1039
								<tr>
1042 1040
									<td>
1043 1041
										<textarea name="shared_key" cols="65" rows="7" class="formpre"><?=htmlspecialchars($pconfig['shared_key']);?></textarea>
......
1055 1053
								<?php
1056 1054
									$cipherlist = openvpn_get_cipherlist();
1057 1055
									foreach ($cipherlist as $name => $desc):
1058
									$selected = '';
1056
									$selected = "";
1059 1057
									if ($name == $pconfig['crypto'])
1060
										$selected = ' selected';
1058
										$selected = " selected=\"selected\"";
1061 1059
								?>
1062 1060
								<option value="<?=$name;?>"<?=$selected?>>
1063 1061
									<?=htmlspecialchars($desc);?>
......
1073 1071
								<?php
1074 1072
									$digestlist = openvpn_get_digestlist();
1075 1073
									foreach ($digestlist as $name => $desc):
1076
									$selected = '';
1074
									$selected = "";
1077 1075
									if ($name == $pconfig['digest'])
1078
										$selected = ' selected';
1076
										$selected = " selected=\"selected\"";
1079 1077
								?>
1080 1078
								<option value="<?=$name;?>"<?=$selected?>>
1081 1079
									<?=htmlspecialchars($desc);?>
......
1091 1089
								<?php
1092 1090
									$engines = openvpn_get_engines();
1093 1091
									foreach ($engines as $name => $desc):
1094
									$selected = '';
1092
									$selected = "";
1095 1093
									if ($name == $pconfig['engine'])
1096
										$selected = ' selected';
1094
										$selected = " selected=\"selected\"";
1097 1095
								?>
1098 1096
								<option value="<?=$name;?>"<?=$selected?>>
1099 1097
									<?=htmlspecialchars($desc);?>
......
1105 1103
					<tr id="cert_depth">
1106 1104
						<td width="22%" valign="top" class="vncell"><?=gettext("Certificate Depth"); ?></td>
1107 1105
						<td width="78%" class="vtable">
1108
							<table border="0" cellpadding="2" cellspacing="0">
1106
							<table border="0" cellpadding="2" cellspacing="0" summary="certificate depth">
1109 1107
							<tr><td>
1110 1108
							<select name="cert_depth" class="formselect">
1111 1109
								<option value="">Do Not Check</option>
1112 1110
								<?php
1113 1111
									foreach ($openvpn_cert_depths as $depth => $depthdesc):
1114
									$selected = '';
1112
									$selected = "";
1115 1113
									if ($depth == $pconfig['cert_depth'])
1116
										$selected = ' selected';
1114
										$selected = " selected=\"selected\"";
1117 1115
								?>
1118 1116
								<option value="<?= $depth ?>" <?= $selected ?>><?= $depthdesc ?></option>
1119 1117
								<?php endforeach; ?>
......
1130 1128
					<tr id="strictusercn">
1131 1129
						<td width="22%" valign="top" class="vncell"><?=gettext("Strict User/CN Matching"); ?></td>
1132 1130
						<td width="78%" class="vtable">
1133
							<table border="0" cellpadding="2" cellspacing="0">
1131
							<table border="0" cellpadding="2" cellspacing="0" summary="strict user/cn matching">
1134 1132
								<tr>
1135 1133
									<td>
1136 1134
										<?php set_checked($pconfig['strictusercn'],$chk); ?>
1137
										<input name="strictusercn" type="checkbox" value="yes" <?=$chk;?>/>
1135
										<input name="strictusercn" type="checkbox" value="yes" <?=$chk;?> />
1138 1136
									</td>
1139 1137
									<td>
1140 1138
										<span class="vexpl">
......
1154 1152
					<tr>
1155 1153
						<td width="22%" valign="top" class="vncellreq" id="ipv4_tunnel_network"><?=gettext("IPv4 Tunnel Network"); ?></td>
1156 1154
						<td width="78%" class="vtable">
1157
							<input name="tunnel_network" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_network']);?>">
1155
							<input name="tunnel_network" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_network']);?>" />
1158 1156
							<br />
1159 1157
							<?=gettext("This is the IPv4 virtual network used for private " .
1160 1158
							"communications between this server and client " .
......
1168 1166
					<tr>
1169 1167
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Tunnel Network"); ?></td>
1170 1168
						<td width="78%" class="vtable">
1171
							<input name="tunnel_networkv6" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_networkv6']);?>">
1169
							<input name="tunnel_networkv6" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_networkv6']);?>" />
1172 1170
							<br />
1173 1171
							<?=gettext("This is the IPv6 virtual network used for private " .
1174 1172
							"communications between this server and client " .
......
1182 1180
					<tr id="serverbridge_dhcp">
1183 1181
						<td width="22%" valign="top" class="vncell"><?=gettext("Bridge DHCP"); ?></td>
1184 1182
						<td width="78%" class="vtable">
1185
							<table border="0" cellpadding="2" cellspacing="0">
1183
							<table border="0" cellpadding="2" cellspacing="0" summary="bridge dhcp">
1186 1184
								<tr>
1187 1185
									<td>
1188 1186
										<?php set_checked($pconfig['serverbridge_dhcp'],$chk); ?>
1189
										<input name="serverbridge_dhcp" type="checkbox" value="yes" <?=$chk;?> onchange='tuntap_change()' />
1187
										<input name="serverbridge_dhcp" type="checkbox" value="yes" <?=$chk;?> onchange="tuntap_change()" />
1190 1188
									</td>
1191 1189
									<td>
1192 1190
										<span class="vexpl">
......
1213 1211
									foreach ($serverbridge_interface as $iface => $ifacename):
1214 1212
										$selected = "";
1215 1213
										if ($iface == $pconfig['serverbridge_interface'])
1216
											$selected = "selected";
1214
											$selected = "selected=\"selected\"";
1217 1215
								?>
1218 1216
									<option value="<?=$iface;?>" <?=$selected;?>>
1219 1217
										<?=htmlspecialchars($ifacename);?>
......
1231 1229
					<tr id="serverbridge_dhcp_start">
1232 1230
						<td width="22%" valign="top" class="vncell"><?=gettext("Server Bridge DHCP Start"); ?></td>
1233 1231
						<td width="78%" class="vtable">
1234
							<input name="serverbridge_dhcp_start" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['serverbridge_dhcp_start']);?>">
1232
							<input name="serverbridge_dhcp_start" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['serverbridge_dhcp_start']);?>" />
1235 1233
							<br />
1236 1234
							<?=gettext("When using tap mode as a multi-point server, " .
1237 1235
							"you may optionally supply a DHCP range to use on the " .
......
1244 1242
					<tr id="serverbridge_dhcp_end">
1245 1243
						<td width="22%" valign="top" class="vncell"><?=gettext("Server Bridge DHCP End"); ?></td>
1246 1244
						<td width="78%" class="vtable">
1247
							<input name="serverbridge_dhcp_end" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['serverbridge_dhcp_end']);?>">
1245
							<input name="serverbridge_dhcp_end" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['serverbridge_dhcp_end']);?>" />
1248 1246
							<br />
1249 1247
						</td>
1250 1248
					</tr>
1251 1249
					<tr id="gwredir_opts">
1252 1250
						<td width="22%" valign="top" class="vncell"><?=gettext("Redirect Gateway"); ?></td>
1253 1251
						<td width="78%" class="vtable">
1254
							<table border="0" cellpadding="2" cellspacing="0">
1252
							<table border="0" cellpadding="2" cellspacing="0" summary="redirect gateway">
1255 1253
								<tr>
1256 1254
									<td>
1257 1255
										<?php set_checked($pconfig['gwredir'],$chk); ?>
1258
										<input name="gwredir" type="checkbox" value="yes" <?=$chk;?> onClick="gwredir_change()"/>
1256
										<input name="gwredir" type="checkbox" value="yes" <?=$chk;?> onclick="gwredir_change()" />
1259 1257
									</td>
1260 1258
									<td>
1261 1259
										<span class="vexpl">
......
1269 1267
					<tr id="local_optsv4">
1270 1268
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv4 Local Network/s"); ?></td>
1271 1269
						<td width="78%" class="vtable">
1272
							<input name="local_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_network']);?>">
1270
							<input name="local_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_network']);?>" />
1273 1271
							<br />
1274 1272
							<?=gettext("These are the IPv4 networks that will be accessible " .
1275 1273
							"from the remote endpoint. Expressed as a comma-separated list of one or more CIDR ranges. " .
......
1282 1280
					<tr id="local_optsv6">
1283 1281
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Local Network/s"); ?></td>
1284 1282
						<td width="78%" class="vtable">
1285
							<input name="local_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_networkv6']);?>">
1283
							<input name="local_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_networkv6']);?>" />
1286 1284
							<br />
1287 1285
							<?=gettext("These are the IPv6 networks that will be accessible " .
1288 1286
							"from the remote endpoint. Expressed as a comma-separated list of one or more IP/PREFIX. " .
......
1295 1293
					<tr id="remote_optsv4">
1296 1294
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv4 Remote Network/s"); ?></td>
1297 1295
						<td width="78%" class="vtable">
1298
							<input name="remote_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_network']);?>">
1296
							<input name="remote_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_network']);?>" />
1299 1297
							<br />
1300 1298
							<?=gettext("These are the IPv4 networks that will be routed through " .
1301 1299
							"the tunnel, so that a site-to-site VPN can be " .
......
1309 1307
					<tr id="remote_optsv6">
1310 1308
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Remote Network/s"); ?></td>
1311 1309
						<td width="78%" class="vtable">
1312
							<input name="remote_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_networkv6']);?>">
1310
							<input name="remote_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_networkv6']);?>" />
1313 1311
							<br />
1314 1312
							<?=gettext("These are the IPv6 networks that will be routed through " .
1315 1313
							"the tunnel, so that a site-to-site VPN can be " .
......
1323 1321
					<tr>
1324 1322
						<td width="22%" valign="top" class="vncell"><?=gettext("Concurrent connections");?></td>
1325 1323
						<td width="78%" class="vtable">
1326
							<input name="maxclients" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['maxclients']);?>"/>
1324
							<input name="maxclients" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['maxclients']);?>" />
1327 1325
							<br />
1328 1326
							<?=gettext("Specify the maximum number of clients allowed to concurrently connect to this server"); ?>.
1329 1327
						</td>
......
1334 1332
							<select name="compression" class="formselect">
1335 1333
								<?php
1336 1334
									foreach ($openvpn_compression_modes as $cmode => $cmodedesc):
1337
									$selected = '';
1335
									$selected = "";
1338 1336
									if ($cmode == $pconfig['compression'])
1339
										$selected = ' selected';
1337
										$selected = " selected=\"selected\"";
1340 1338
								?>
1341 1339
								<option value="<?= $cmode ?>" <?= $selected ?>><?= $cmodedesc ?></option>
1342 1340
								<?php endforeach; ?>
......
1348 1346
					<tr>
1349 1347
						<td width="22%" valign="top" class="vncell"><?=gettext("Type-of-Service"); ?></td>
1350 1348
						<td width="78%" class="vtable">
1351
							<table border="0" cellpadding="2" cellspacing="0">
1349
							<table border="0" cellpadding="2" cellspacing="0" summary="type-of-service">
1352 1350
								<tr>
1353 1351
									<td>
1354 1352
										<?php set_checked($pconfig['passtos'],$chk); ?>
1355
										<input name="passtos" type="checkbox" value="yes" <?=$chk;?>>
1353
										<input name="passtos" type="checkbox" value="yes" <?=$chk;?> />
1356 1354
									</td>
1357 1355
									<td>
1358 1356
										<span class="vexpl">
......
1366 1364
					<tr id="inter_client_communication">
1367 1365
						<td width="22%" valign="top" class="vncell"><?=gettext("Inter-client communication"); ?></td>
1368 1366
						<td width="78%" class="vtable">
1369
							<table border="0" cellpadding="2" cellspacing="0">
1367
							<table border="0" cellpadding="2" cellspacing="0" summary="inter-client communication">
1370 1368
								<tr>
1371 1369
									<td>
1372 1370
										<?php set_checked($pconfig['client2client'],$chk); ?>
1373
										<input name="client2client" type="checkbox" value="yes" <?=$chk;?>/>
1371
										<input name="client2client" type="checkbox" value="yes" <?=$chk;?> />
1374 1372
									</td>
1375 1373
									<td>
1376 1374
										<span class="vexpl">
......
1384 1382
					<tr id="duplicate_cn">
1385 1383
						<td width="22%" valign="top" class="vncell"><?=gettext("Duplicate Connections"); ?></td>
1386 1384
						<td width="78%" class="vtable">
1387
							<table border="0" cellpadding="2" cellspacing="0">
1385
							<table border="0" cellpadding="2" cellspacing="0" summary="duplicate connection">
1388 1386
								<tr>
1389 1387
									<td>
1390 1388
										<?php set_checked($pconfig['duplicate_cn'],$chk); ?>
1391
										<input name="duplicate_cn" type="checkbox" value="yes" <?=$chk;?>/>
1389
										<input name="duplicate_cn" type="checkbox" value="yes" <?=$chk;?> />
1392 1390
									</td>
1393 1391
									<td>
1394 1392
										<span class="vexpl">
......
1401 1399
					</tr>
1402 1400
				</table>
1403 1401

  
1404
				<table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts">
1402
				<table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts" summary="client settings">
1405 1403
					<tr>
1406 1404
						<td colspan="2" class="list" height="12"></td>
1407 1405
					</tr>
......
1411 1409
					<tr>
1412 1410
						<td width="22%" valign="top" class="vncell"><?=gettext("Dynamic IP"); ?></td>
1413 1411
						<td width="78%" class="vtable">
1414
							<table border="0" cellpadding="2" cellspacing="0">
1412
							<table border="0" cellpadding="2" cellspacing="0" summary="dynamic ip">
1415 1413
								<tr>
1416 1414
									<td>
1417 1415
										<?php set_checked($pconfig['dynamic_ip'],$chk); ?>
1418
										<input name="dynamic_ip" type="checkbox" id="dynamic_ip" value="yes" <?=$chk;?>/>
1416
										<input name="dynamic_ip" type="checkbox" id="dynamic_ip" value="yes" <?=$chk;?> />
1419 1417
									</td>
1420 1418
									<td>
1421 1419
										<span class="vexpl">
......
1429 1427
					<tr>
1430 1428
						<td width="22%" valign="top" class="vncell"><?=gettext("Address Pool"); ?></td>
1431 1429
						<td width="78%" class="vtable">
1432
							<table border="0" cellpadding="2" cellspacing="0">
1430
							<table border="0" cellpadding="2" cellspacing="0" summary="address pool">
1433 1431
								<tr>
1434 1432
									<td>
1435 1433
										<?php set_checked($pconfig['pool_enable'],$chk); ?>
1436
										<input name="pool_enable" type="checkbox" id="pool_enable" value="yes" <?=$chk;?>/>
1434
										<input name="pool_enable" type="checkbox" id="pool_enable" value="yes" <?=$chk;?> />
1437 1435
									</td>
1438 1436
									<td>
1439 1437
										<span class="vexpl">
......
1447 1445
					<tr id="topology_subnet_opt">
1448 1446
						<td width="22%" valign="top" class="vncell"><?=gettext("Topology"); ?></td>
1449 1447
						<td width="78%" class="vtable">
1450
							<table border="0" cellpadding="2" cellspacing="0">
1448
							<table border="0" cellpadding="2" cellspacing="0" summary="topology">
1451 1449
								<tr>
1452 1450
									<td>
1453 1451
										<?php set_checked($pconfig['topology_subnet'],$chk); ?>
1454
										<input name="topology_subnet" type="checkbox" id="topology_subnet" value="yes" <?=$chk;?>/>
1452
										<input name="topology_subnet" type="checkbox" id="topology_subnet" value="yes" <?=$chk;?> />
1455 1453
									</td>
1456 1454
									<td>
1457 1455
										<span class="vexpl">
......
1472 1470
					<tr>
1473 1471
						<td width="22%" valign="top" class="vncell"><?=gettext("DNS Default Domain"); ?></td>
1474 1472
						<td width="78%" class="vtable">
1475
							<table border="0" cellpadding="2" cellspacing="0">
1473
							<table border="0" cellpadding="2" cellspacing="0" summary="dns default domain">
1476 1474
								<tr>
1477 1475
									<td>
1478 1476
										<?php set_checked($pconfig['dns_domain_enable'],$chk); ?>
1479
										<input name="dns_domain_enable" type="checkbox" id="dns_domain_enable" value="yes" <?=$chk;?> onClick="dns_domain_change()">
1477
										<input name="dns_domain_enable" type="checkbox" id="dns_domain_enable" value="yes" <?=$chk;?> onclick="dns_domain_change()" />
1480 1478
									</td>
1481 1479
									<td>
1482 1480
										<span class="vexpl">
......
1485 1483
									</td>
1486 1484
								</tr>
1487 1485
							</table>
1488
							<table border="0" cellpadding="2" cellspacing="0" id="dns_domain_data">
1486
							<table border="0" cellpadding="2" cellspacing="0" id="dns_domain_data" summary="dns domain data">
1489 1487
								<tr>
1490 1488
									<td>
1491
										<input name="dns_domain" type="text" class="formfld unknown" id="dns_domain" size="30" value="<?=htmlspecialchars($pconfig['dns_domain']);?>">
1489
										<input name="dns_domain" type="text" class="formfld unknown" id="dns_domain" size="30" value="<?=htmlspecialchars($pconfig['dns_domain']);?>" />
1492 1490
									</td>
1493 1491
								</tr>
1494 1492
							</table>
......
1497 1495
					<tr>
1498 1496
						<td width="22%" valign="top" class="vncell"><?=gettext("DNS Servers"); ?></td>
1499 1497
						<td width="78%" class="vtable">
1500
							<table border="0" cellpadding="2" cellspacing="0">
1498
							<table border="0" cellpadding="2" cellspacing="0" summary="dns servers">
1501 1499
								<tr>
1502 1500
									<td>
1503 1501
										<?php set_checked($pconfig['dns_server_enable'],$chk); ?>
1504
										<input name="dns_server_enable" type="checkbox" id="dns_server_enable" value="yes" <?=$chk;?> onClick="dns_server_change()">
1502
										<input name="dns_server_enable" type="checkbox" id="dns_server_enable" value="yes" <?=$chk;?> onclick="dns_server_change()" />
1505 1503
									</td>
1506 1504
									<td>
1507 1505
										<span class="vexpl">
......
1510 1508
									</td>
1511 1509
								</tr>
1512 1510
							</table>
1513
							<table border="0" cellpadding="2" cellspacing="0" id="dns_server_data">
1511
							<table border="0" cellpadding="2" cellspacing="0" id="dns_server_data" summary="dns servers">
1514 1512
								<tr>
1515 1513
									<td>
1516 1514
										<span class="vexpl">
1517 1515
											<?=gettext("Server"); ?> #1:&nbsp;
1518 1516
										</span>
1519
										<input name="dns_server1" type="text" class="formfld unknown" id="dns_server1" size="20" value="<?=htmlspecialchars($pconfig['dns_server1']);?>">
1517
										<input name="dns_server1" type="text" class="formfld unknown" id="dns_server1" size="20" value="<?=htmlspecialchars($pconfig['dns_server1']);?>" />
1520 1518
									</td>
1521 1519
								</tr>
1522 1520
								<tr>
......
1524 1522
										<span class="vexpl">
1525 1523
											<?=gettext("Server"); ?> #2:&nbsp;
1526 1524
										</span>
1527
										<input name="dns_server2" type="text" class="formfld unknown" id="dns_server2" size="20" value="<?=htmlspecialchars($pconfig['dns_server2']);?>">
1525
										<input name="dns_server2" type="text" class="formfld unknown" id="dns_server2" size="20" value="<?=htmlspecialchars($pconfig['dns_server2']);?>" />
1528 1526
									</td>
1529 1527
								</tr>
1530 1528
								<tr>
......
1532 1530
										<span class="vexpl">
1533 1531
											<?=gettext("Server"); ?> #3:&nbsp;
1534 1532
										</span>
1535
										<input name="dns_server3" type="text" class="formfld unknown" id="dns_server3" size="20" value="<?=htmlspecialchars($pconfig['dns_server3']);?>">
1533
										<input name="dns_server3" type="text" class="formfld unknown" id="dns_server3" size="20" value="<?=htmlspecialchars($pconfig['dns_server3']);?>" />
1536 1534
									</td>
1537 1535
								</tr>
1538 1536
								<tr>
......
1540 1538
										<span class="vexpl">
1541 1539
											<?=gettext("Server"); ?> #4:&nbsp;
1542 1540
										</span>
1543
										<input name="dns_server4" type="text" class="formfld unknown" id="dns_server4" size="20" value="<?=htmlspecialchars($pconfig['dns_server4']);?>">
1541
										<input name="dns_server4" type="text" class="formfld unknown" id="dns_server4" size="20" value="<?=htmlspecialchars($pconfig['dns_server4']);?>" />
1544 1542
									</td>
1545 1543
								</tr>
1546 1544
							</table>
......
1549 1547
					<tr>
1550 1548
						<td width="22%" valign="top" class="vncell"><?=gettext("NTP Servers"); ?></td>
1551 1549
						<td width="78%" class="vtable">
1552
							<table border="0" cellpadding="2" cellspacing="0">
1550
							<table border="0" cellpadding="2" cellspacing="0" summary="ntp servers">
1553 1551
								<tr>
1554 1552
									<td>
1555 1553
										<?php set_checked($pconfig['ntp_server_enable'],$chk); ?>
1556
										<input name="ntp_server_enable" type="checkbox" id="ntp_server_enable" value="yes" <?=$chk;?> onClick="ntp_server_change()">
1554
										<input name="ntp_server_enable" type="checkbox" id="ntp_server_enable" value="yes" <?=$chk;?> onclick="ntp_server_change()" />
1557 1555
									</td>
1558 1556
									<td>
1559 1557
										<span class="vexpl">
......
1562 1560
									</td>
1563 1561
								</tr>
1564 1562
							</table>
1565
							<table border="0" cellpadding="2" cellspacing="0" id="ntp_server_data">
1563
							<table border="0" cellpadding="2" cellspacing="0" id="ntp_server_data" summary="ntp servers">
1566 1564
								<tr>
1567 1565
									<td>
1568 1566
										<span class="vexpl">
1569 1567
											<?=gettext("Server"); ?> #1:&nbsp;
1570 1568
										</span>
1571
										<input name="ntp_server1" type="text" class="formfld unknown" id="ntp_server1" size="20" value="<?=htmlspecialchars($pconfig['ntp_server1']);?>">
1569
										<input name="ntp_server1" type="text" class="formfld unknown" id="ntp_server1" size="20" value="<?=htmlspecialchars($pconfig['ntp_server1']);?>" />
1572 1570
									</td>
1573 1571
								</tr>
1574 1572
								<tr>
......
1576 1574
										<span class="vexpl">
1577 1575
											<?=gettext("Server"); ?> #2:&nbsp;
1578 1576
										</span>
1579
										<input name="ntp_server2" type="text" class="formfld unknown" id="ntp_server2" size="20" value="<?=htmlspecialchars($pconfig['ntp_server2']);?>">
1577
										<input name="ntp_server2" type="text" class="formfld unknown" id="ntp_server2" size="20" value="<?=htmlspecialchars($pconfig['ntp_server2']);?>" />
1580 1578
									</td>
1581 1579
								</tr>
1582 1580
							</table>
......
1585 1583
					<tr>
1586 1584
						<td width="22%" valign="top" class="vncell"><?=gettext("NetBIOS Options"); ?></td>
1587 1585
						<td width="78%" class="vtable">
1588
							<table border="0" cellpadding="2" cellspacing="0">
1586
							<table border="0" cellpadding="2" cellspacing="0" summary="netboios options">
1589 1587
								<tr>
1590 1588
									<td>
1591 1589
										<?php set_checked($pconfig['netbios_enable'],$chk); ?>
1592
										<input name="netbios_enable" type="checkbox" id="netbios_enable" value="yes" <?=$chk;?> onClick="netbios_change()">
1590
										<input name="netbios_enable" type="checkbox" id="netbios_enable" value="yes" <?=$chk;?> onclick="netbios_change()" />
1593 1591
									</td>
1594 1592
									<td>
1595 1593
										<span class="vexpl">
......
1600 1598
							</table>
1601 1599
							<?=gettext("If this option is not set, all NetBIOS-over-TCP/IP options (including WINS) will be disabled"); ?>.
1602 1600
							<br />
1603
							<table border="0" cellpadding="2" cellspacing="0" id="netbios_data">
1601
							<table border="0" cellpadding="2" cellspacing="0" id="netbios_data" summary="netboios options">
1604 1602
								<tr>
1605 1603
									<td>
1606 1604
										<br />
......
1612 1610
											foreach ($netbios_nodetypes as $type => $name):
1613 1611
												$selected = "";
1614 1612
												if ($pconfig['netbios_ntype'] == $type)
1615
													$selected = "selected";
1613
													$selected = "selected=\"selected\"";
1616 1614
										?>
1617 1615
											<option value="<?=$type;?>" <?=$selected;?>><?=$name;?></option>
1618 1616
										<?php endforeach; ?>
......
1630 1628
										<span class="vexpl">
1631 1629
											<?=gettext("Scope ID"); ?>:&nbsp;
1632 1630
										</span>
1633
										<input name="netbios_scope" type="text" class="formfld unknown" id="netbios_scope" size="30" value="<?=htmlspecialchars($pconfig['netbios_scope']);?>">
1631
										<input name="netbios_scope" type="text" class="formfld unknown" id="netbios_scope" size="30" value="<?=htmlspecialchars($pconfig['netbios_scope']);?>" />
1634 1632
										<br />
1635 1633
										<?=gettext("A NetBIOS Scope	ID provides an extended naming " .
1636 1634
										"service for	NetBIOS over TCP/IP. The NetBIOS " .
......
1645 1643
					<tr id="wins_opts">
1646 1644
						<td width="22%" valign="top" class="vncell"><?=gettext("WINS Servers"); ?></td>
1647 1645
						<td width="78%" class="vtable">
1648
							<table border="0" cellpadding="2" cellspacing="0">
1646
							<table border="0" cellpadding="2" cellspacing="0" summary="wins servers">
1649 1647
								<tr>
1650 1648
									<td>
1651 1649
										<?php set_checked($pconfig['wins_server_enable'],$chk); ?>
1652
										<input name="wins_server_enable" type="checkbox" id="wins_server_enable" value="yes" <?=$chk;?> onClick="wins_server_change()">
1650
										<input name="wins_server_enable" type="checkbox" id="wins_server_enable" value="yes" <?=$chk;?> onclick="wins_server_change()" />
1653 1651
									</td>
1654 1652
									<td>
1655 1653
										<span class="vexpl">
......
1658 1656
									</td>
1659 1657
								</tr>
1660 1658
							</table>
1661
							<table border="0" cellpadding="2" cellspacing="0" id="wins_server_data">
1659
							<table border="0" cellpadding="2" cellspacing="0" id="wins_server_data" summary="wins servers">
1662 1660
								<tr>
1663 1661
									<td>
1664 1662
										<span class="vexpl">
1665 1663
											<?=gettext("Server"); ?> #1:&nbsp;
1666 1664
										</span>
1667
										<input name="wins_server1" type="text" class="formfld unknown" id="wins_server1" size="20" value="<?=htmlspecialchars($pconfig['wins_server1']);?>">
1665
										<input name="wins_server1" type="text" class="formfld unknown" id="wins_server1" size="20" value="<?=htmlspecialchars($pconfig['wins_server1']);?>" />
1668 1666
									</td>
1669 1667
								</tr>
1670 1668
								<tr>
......
1672 1670
										<span class="vexpl">
1673 1671
											<?=gettext("Server"); ?> #2:&nbsp;
1674 1672
										</span>
1675
										<input name="wins_server2" type="text" class="formfld unknown" id="wins_server2" size="20" value="<?=htmlspecialchars($pconfig['wins_server2']);?>">
1673
										<input name="wins_server2" type="text" class="formfld unknown" id="wins_server2" size="20" value="<?=htmlspecialchars($pconfig['wins_server2']);?>" />
1676 1674
									</td>
1677 1675
								</tr>
1678 1676
							</table>
......
1681 1679
					<tr>
1682 1680
						<td width="22%" valign="top" class="vncell"><?=gettext("Client Management Port"); ?></td>
1683 1681
						<td width="78%" class="vtable">
1684
							<table border="0" cellpadding="2" cellspacing="0">
1682
							<table border="0" cellpadding="2" cellspacing="0" summary="client management port">
1685 1683
								<tr>
1686 1684
									<td>
1687 1685
										<?php set_checked($pconfig['client_mgmt_port_enable'],$chk); ?>
1688
										<input name="client_mgmt_port_enable" type="checkbox" id="client_mgmt_port_enable" value="yes" <?=$chk;?> onClick="client_mgmt_port_change()">
1686
										<input name="client_mgmt_port_enable" type="checkbox" id="client_mgmt_port_enable" value="yes" <?=$chk;?> onclick="client_mgmt_port_change()" />
1689 1687
									</td>
1690 1688
									<td>
1691 1689
										<span class="vexpl">
......
1694 1692
									</td>
1695 1693
								</tr>
1696 1694
							</table>
1697
							<table border="0" cellpadding="2" cellspacing="0" id="client_mgmt_port_data">
1695
							<table border="0" cellpadding="2" cellspacing="0" id="client_mgmt_port_data" summary="client management port">
1698 1696
								<tr>
1699 1697
									<td>
1700
										<input name="client_mgmt_port" type="text" class="formfld unknown" id="client_mgmt_port" size="30" value="<?=htmlspecialchars($pconfig['client_mgmt_port']);?>">
1698
										<input name="client_mgmt_port" type="text" class="formfld unknown" id="client_mgmt_port" size="30" value="<?=htmlspecialchars($pconfig['client_mgmt_port']);?>" />
1701 1699
									</td>
1702 1700
								</tr>
1703 1701
							</table>
......
1705 1703
					</tr>
1706 1704
				</table>
1707 1705

  
1708
				<table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts">
1706
				<table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts" summary="advance configuration">
1709 1707
					<tr>
1710 1708
						<td colspan="2" class="list" height="12"></td>
1711 1709
					</tr>
......
1715 1713
					<tr>
1716 1714
						<td width="22%" valign="top" class="vncell"><?=gettext("Advanced"); ?></td>
1717 1715
						<td width="78%" class="vtable">
1718
							<table border="0" cellpadding="2" cellspacing="0">
1716
							<table border="0" cellpadding="2" cellspacing="0" summary="advance configuration">
1719 1717
								<tr>
1720 1718
									<td>
1721 1719
										<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=htmlspecialchars($pconfig['custom_options']);?></textarea><br />
......
1729 1727
				</table>
1730 1728

  
1731 1729
				<br />
1732
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
1730
				<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="icons">
1733 1731
					<tr>
1734 1732
						<td width="22%" valign="top">&nbsp;</td>
1735 1733
						<td width="78%"> 
1736
							<input name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"> 
1737
							<input name="act" type="hidden" value="<?=$act;?>">
1734
							<input name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> 
1735
							<input name="act" type="hidden" value="<?=$act;?>" />
1738 1736
							<?php if (isset($id) && $a_server[$id]): ?>
1739
							<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>">
1737
							<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
1740 1738
							<?php endif; ?>
1741 1739
						</td>
1742 1740
					</tr>
......
1745 1743

  
1746 1744
			<?php else: ?>
1747 1745

  
1748
			<table class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0">
1746
			<table class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="list">
1749 1747
				<thead>
1750 1748
				<tr>
1751 1749
					<td width="10%" class="listhdrr"><?=gettext("Disabled"); ?></td>
......
1755 1753
					<td width="10%" class="list"></td>
1756 1754
				</tr>
1757 1755
				</thead>
1756
				<tfoot>
1757
				<tr>
1758
					<td class="list" colspan="4"></td>
1759
					<td class="list">
1760
						<a href="vpn_openvpn_server.php?act=new"><img src="./themes/<?=$g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add server"); ?>" width="17" height="17" border="0" alt="add" />
1761
						</a>
1762
					</td>
1763
				</tr>
1764
				</tfoot>
1758 1765
				<tbody>
1759 1766
				<?php
1760 1767
					$i = 0;
......
1764 1771
							$disabled = "YES";
1765 1772
				?>
1766 1773
				<tr>
1767
					<td class="listlr" ondblclick="document.location='vpn_openvpn_server.php?act=edit&id=<?=$i;?>'">
1774
					<td class="listlr" ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'">
1768 1775
						<?=$disabled;?>
1769 1776
					</td>
1770
					<td class="listr" ondblclick="document.location='vpn_openvpn_server.php?act=edit&id=<?=$i;?>'">
1777
					<td class="listr" ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'">
1771 1778
						<?=htmlspecialchars($server['protocol']);?> / <?=htmlspecialchars($server['local_port']);?>
1772 1779
					</td>
1773
					<td class="listr" ondblclick="document.location='vpn_openvpn_server.php?act=edit&id=<?=$i;?>'">
1780
					<td class="listr" ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'">
1774 1781
						<?=htmlspecialchars($server['tunnel_network']);?><br />
1775 1782
						<?=htmlspecialchars($server['tunnel_networkv6']);?><br />
1776 1783
					</td>
1777
					<td class="listbg" ondblclick="document.location='vpn_openvpn_server.php?act=edit&id=<?=$i;?>'">
1784
					<td class="listbg" ondblclick="document.location='vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>'">
1778 1785
						<?=htmlspecialchars($server['description']);?>
1779 1786
					</td>
1780
					<td valign="middle" nowrap class="list">
1781
						<a href="vpn_openvpn_server.php?act=edit&id=<?=$i;?>">
1782
							<img src="./themes/<?=$g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("edit server"); ?>" width="17" height="17" border="0">
1787
					<td valign="middle" class="list nowrap">
1788
						<a href="vpn_openvpn_server.php?act=edit&amp;id=<?=$i;?>">
1789
							<img src="./themes/<?=$g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("edit server"); ?>" width="17" height="17" border="0" alt="edit" />
1783 1790
						</a>
1784 1791
						&nbsp;
1785
						<a href="vpn_openvpn_server.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this server?"); ?>')">
1786
							<img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("delete server"); ?>" width="17" height="17" border="0">
1792
						<a href="vpn_openvpn_server.php?act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this server?"); ?>')">
1793
							<img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("delete server"); ?>" width="17" height="17" border="0" alt="delete" />
1787 1794
						</a>
1788 1795
					</td>
1789 1796
				</tr>
......
1791 1798
					$i++;
1792 1799
					endforeach;
1793 1800
				?>
1801
				<tr style="dispaly:none;"><td></td></tr>
1794 1802
				</tbody>
1795
				<tfoot>
1796
				<tr>
1797
					<td class="list" colspan="4"></td>
1798
					<td class="list">
1799
						<a href="vpn_openvpn_server.php?act=new"><img src="./themes/<?=$g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add server"); ?>" width="17" height="17" border="0">
1800
						</a>
1801
					</td>
1802
				</tr>
1803
				</tfoot>
1804 1803
			</table>
1805 1804

  
1806 1805
			<?=gettext("Additional OpenVPN servers can be added here.");?>
......
1811 1810
	</tr>
1812 1811
</table>
1813 1812
<script type="text/javascript">
1814
<!--
1813
//<![CDATA[
1815 1814
mode_change();
1816 1815
autokey_change();
1817 1816
tlsauth_change();
......
1823 1822
ntp_server_change();
1824 1823
netbios_change();
1825 1824
tuntap_change();
1826
//-->
1825
//]]>
1827 1826
</script>
1828
</body>
1829 1827
<?php include("fend.inc"); ?>
1830

  
1828
</body>
1829
</html>
1831 1830
<?php
1832 1831

  
1833 1832
/* local utility functions */
1834 1833

  
1835 1834
function set_checked($var,& $chk) {
1836 1835
    if($var)
1837
        $chk = 'checked';
1836
        $chk = "checked=\"checked\"";
1838 1837
    else
1839
        $chk = '';
1838
        $chk = "";
1840 1839
}
1841 1840

  
1842 1841
?>

Formats disponibles : Unified diff