Projet

Général

Profil

« Précédent | Suivant » 

Révision 770f29c4

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "vpn_openvpn_client.php" XHTML

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

Voir les différences:

usr/local/www/vpn_openvpn_client.php
327 327
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
328 328
<?php include("fbegin.inc"); ?>
329 329
<script type="text/javascript">
330
<!--
330
//<![CDATA[
331 331

  
332 332
function mode_change() {
333 333
	index = document.iform.mode.selectedIndex;
......
390 390
		document.getElementById("autotls_opts").style.display="none";
391 391
}
392 392

  
393
//-->
393
//]]>
394 394
</script>
395 395
<?php
396 396
if (!$savemsg)
......
401 401
if ($savemsg)
402 402
	print_info_box($savemsg);
403 403
?>
404
<table width="100%" border="0" cellpadding="0" cellspacing="0">
404
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="vpn openvpn client">
405 405
 	<tr>
406 406
		<td class="tabnavtbl">
407
			<ul id="tabnav">
408 407
			<?php 
409 408
				$tab_array = array();
410 409
				$tab_array[] = array(gettext("Server"), false, "vpn_openvpn_server.php");
......
414 413
				add_package_tabs("OpenVPN", $tab_array);
415 414
				display_top_tabs($tab_array);
416 415
			?>
417
			</ul>
418 416
		</td>
419 417
	</tr>    
420 418
	<tr>
......
423 421
			<?php if($act=="new" || $act=="edit"): ?>
424 422

  
425 423
			<form action="vpn_openvpn_client.php" method="post" name="iform" id="iform" onsubmit="presubmit()">
426
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
424
				<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="general information">
427 425
					<tr>
428 426
						<td colspan="2" valign="top" class="listtopic"><?=gettext("General information"); ?></td>
429 427
					</tr>
430 428
					<tr>
431 429
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Disabled"); ?></td>
432 430
						<td width="78%" class="vtable">
433
							<table border="0" cellpadding="0" cellspacing="0">
431
							<table border="0" cellpadding="0" cellspacing="0" summary="enable disable client">
434 432
								<tr>
435 433
									<td>
436 434
										<?php set_checked($pconfig['disable'],$chk); ?>
437
										<input name="disable" type="checkbox" value="yes" <?=$chk;?>/>
435
										<input name="disable" type="checkbox" value="yes" <?=$chk;?> />
438 436
									</td>
439 437
									<td>
440 438
										&nbsp;
......
450 448
					<tr>
451 449
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Server Mode");?></td>
452 450
						<td width="78%" class="vtable">
453
							<select name='mode' id='mode' class="formselect" onchange='mode_change()'>
451
							<select name="mode" id="mode" class="formselect" onchange="mode_change()">
454 452
							<?php
455 453
								foreach ($openvpn_client_modes as $name => $desc):
456 454
									$selected = "";
457 455
									if ($pconfig['mode'] == $name)
458
										$selected = "selected";
456
										$selected = "selected=\"selected\"";
459 457
							?>
460 458
								<option value="<?=$name;?>" <?=$selected;?>><?=$desc;?></option>
461 459
							<?php endforeach; ?>
......
470 468
								foreach ($openvpn_prots as $prot):
471 469
									$selected = "";
472 470
									if ($pconfig['protocol'] == $prot)
473
										$selected = "selected";
471
										$selected = "selected=\"selected\"";
474 472
							?>
475 473
								<option value="<?=$prot;?>" <?=$selected;?>><?=$prot;?></option>
476 474
							<?php endforeach; ?>
......
485 483
                                                                foreach ($openvpn_dev_mode as $mode):
486 484
                                                                        $selected = "";
487 485
                                                                        if ($pconfig['dev_mode'] == $mode)
488
                                                                                $selected = "selected";
486
                                                                                $selected = "selected=\"selected\"";
489 487
                                                        ?>
490 488
                                                                <option value="<?=$mode;?>" <?=$selected;?>><?=$mode;?></option>
491 489
                                                        <?php endforeach; ?>
......
519 517
									foreach ($interfaces as $iface => $ifacename):
520 518
										$selected = "";
521 519
										if ($iface == $pconfig['interface'])
522
											$selected = "selected";
520
											$selected = "selected=\"selected\"";
523 521
								?>
524 522
									<option value="<?=$iface;?>" <?=$selected;?>>
525 523
										<?=htmlspecialchars($ifacename);?>
......
531 529
					<tr>
532 530
						<td width="22%" valign="top" class="vncell"><?=gettext("Local port");?></td>
533 531
						<td width="78%" class="vtable">
534
							<input name="local_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['local_port']);?>"/>
532
							<input name="local_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['local_port']);?>" />
535 533
							<br />
536 534
							<?=gettext("Set this option if you would like to bind to a specific port. Leave this blank or enter 0 for a random dynamic port."); ?>
537 535
						</td>
......
539 537
					<tr>
540 538
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Server host or address");?></td>
541 539
						<td width="78%" class="vtable">
542
							<input name="server_addr" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['server_addr']);?>"/>
540
							<input name="server_addr" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['server_addr']);?>" />
543 541
						</td>
544 542
					</tr>
545 543
					<tr>
546 544
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Server port");?></td>
547 545
						<td width="78%" class="vtable">
548
							<input name="server_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['server_port']);?>"/>
546
							<input name="server_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['server_port']);?>" />
549 547
						</td>
550 548
					</tr>
551 549
					<tr>
552 550
						<td width="22%" valign="top" class="vncell"><?=gettext("Proxy host or address");?></td>
553 551
						<td width="78%" class="vtable">
554
							<input name="proxy_addr" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['proxy_addr']);?>"/>
552
							<input name="proxy_addr" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['proxy_addr']);?>" />
555 553
						</td>
556 554
					</tr>
557 555
					<tr>
558 556
						<td width="22%" valign="top" class="vncell"><?=gettext("Proxy port");?></td>
559 557
						<td width="78%" class="vtable">
560
							<input name="proxy_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['proxy_port']);?>"/>
558
							<input name="proxy_port" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['proxy_port']);?>" />
561 559
						</td>
562 560
					</tr>
563 561
					<tr>
564 562
						<td width="22%" valign="top" class="vncell"><?=gettext("Proxy authentication extra options");?></td>
565 563
						<td width="78%" class="vtable">
566
							<table border="0" cellpadding="2" cellspacing="0">
564
							<table border="0" cellpadding="2" cellspacing="0" summary="proxy authentication">
567 565
								<tr>
568 566
                                                                        <td align="right" width="25%">
569 567
                                                                                <span class="vexpl">
......
571 569
                                                                                </span>
572 570
                                                                        </td>
573 571
                                                                        <td>
574
										<select name="proxy_authtype" id="proxy_authtype" class="formfld select" onChange="useproxy_changed()">
575
											<option value="none" <?php if ($pconfig['proxy_authtype'] == "none") echo "selected"; ?>><?=gettext("none"); ?></option>
576
											<option value="basic" <?php if ($pconfig['proxy_authtype'] == "basic") echo "selected"; ?>><?=gettext("basic"); ?></option>
577
											<option value="ntlm" <?php if ($pconfig['proxy_authtype'] == "ntlm") echo "selected"; ?>><?=gettext("ntlm"); ?></option>
572
										<select name="proxy_authtype" id="proxy_authtype" class="formfld select" onchange="useproxy_changed()">
573
											<option value="none" <?php if ($pconfig['proxy_authtype'] == "none") echo "selected=\"selected\""; ?>><?=gettext("none"); ?></option>
574
											<option value="basic" <?php if ($pconfig['proxy_authtype'] == "basic") echo "selected=\"selected\""; ?>><?=gettext("basic"); ?></option>
575
											<option value="ntlm" <?php if ($pconfig['proxy_authtype'] == "ntlm") echo "selected=\"selected\""; ?>><?=gettext("ntlm"); ?></option>
578 576
										</select>
579 577
									</td>
580 578
								</tr>
581 579
							</table>
582 580
							<br />
583
							 <table border="0" cellpadding="2" cellspacing="0" id="proxy_authtype_opts" style="display:none">
581
							 <table border="0" cellpadding="2" cellspacing="0" id="proxy_authtype_opts" style="display:none" summary="proxy authentication options">
584 582
                                                                <tr>
585 583
                                                                        <td align="right" width="25%">
586 584
                                                                                <span class="vexpl">
......
607 605
					<tr>
608 606
						<td width="22%" valign="top" class="vncell"><?=gettext("Server host name resolution"); ?></td>
609 607
						<td width="78%" class="vtable">
610
							<table border="0" cellpadding="2" cellspacing="0">
608
							<table border="0" cellpadding="2" cellspacing="0" summary="server host name resolution">
611 609
								<tr>
612 610
									<td>
613 611
										<?php set_checked($pconfig['resolve_retry'],$chk); ?>
614
										<input name="resolve_retry" type="checkbox" value="yes" <?=$chk;?>>
612
										<input name="resolve_retry" type="checkbox" value="yes" <?=$chk;?> />
615 613
									</td>
616 614
									<td>
617 615
										<span class="vexpl">
......
628 626
					<tr> 
629 627
						<td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td>
630 628
						<td width="78%" class="vtable"> 
631
							<input name="description" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['description']);?>">
629
							<input name="description" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['description']);?>" />
632 630
							<br />
633 631
							<?=gettext("You may enter a description here for your reference (not parsed)"); ?>.
634 632
						</td>
......
643 641
						<td width="22%" valign="top" class="vncell"><?=gettext("User name/pass"); ?></td>
644 642
						<td width="78%" class="vtable">
645 643
							<?=gettext("Leave empty when no user name and password are needed."); ?>
646
							<br>
647
							<table border="0" cellpadding="2" cellspacing="0">
644
							<br/>
645
							<table border="0" cellpadding="2" cellspacing="0" summary="user name password">
648 646
								<tr>
649 647
									<td align="right" width="25%">
650 648
									<span class="vexpl">
......
674 672
					<tr id="tls">
675 673
						<td width="22%" valign="top" class="vncellreq"><?=gettext("TLS Authentication"); ?></td>
676 674
						<td width="78%" class="vtable">
677
							<table border="0" cellpadding="2" cellspacing="0">
675
							<table border="0" cellpadding="2" cellspacing="0" summary="tls authentication">
678 676
								<tr>
679 677
									<td>
680 678
										<?php set_checked($pconfig['tlsauth_enable'],$chk); ?>
681
										<input name="tlsauth_enable" id="tlsauth_enable" type="checkbox" value="yes" <?=$chk;?> onClick="tlsauth_change()">
679
										<input name="tlsauth_enable" id="tlsauth_enable" type="checkbox" value="yes" <?=$chk;?> onclick="tlsauth_change()" />
682 680
									</td>
683 681
									<td>
684 682
										<span class="vexpl">
......
688 686
								</tr>
689 687
							</table>
690 688
							<?php if (!$pconfig['tls']): ?>
691
							<table border="0" cellpadding="2" cellspacing="0" id='tlsauth_opts'>
689
							<table border="0" cellpadding="2" cellspacing="0" id="tlsauth_opts" summary="tls authentication options">
692 690
								<tr>
693 691
									<td>
694 692
										<?php set_checked($pconfig['autotls_enable'],$chk); ?>
695
										<input name="autotls_enable" id="autotls_enable" type="checkbox" value="yes" <?=$chk;?> onClick="autotls_change()">
693
										<input name="autotls_enable" id="autotls_enable" type="checkbox" value="yes" <?=$chk;?> onclick="autotls_change()" />
696 694
									</td>
697 695
									<td>
698 696
										<span class="vexpl">
......
702 700
								</tr>
703 701
							</table>
704 702
							<?php endif; ?>
705
							<table border="0" cellpadding="2" cellspacing="0" id='autotls_opts'>
703
							<table border="0" cellpadding="2" cellspacing="0" id="autotls_opts" summary="tls authentication options">
706 704
								<tr>
707 705
									<td>
708 706
										<textarea name="tls" cols="65" rows="7" class="formpre"><?=htmlspecialchars($pconfig['tls']);?></textarea>
......
722 720
								foreach ($a_ca as $ca):
723 721
									$selected = "";
724 722
									if ($pconfig['caref'] == $ca['refid'])
725
										$selected = "selected";
723
										$selected = "selected=\"selected\"";
726 724
							?>
727 725
								<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
728 726
							<?php endforeach; ?>
......
747 745
								if ($ca)
748 746
									$caname = " (CA: {$ca['descr']})";
749 747
								if ($pconfig['certref'] == $cert['refid'])
750
									$selected = "selected";
748
									$selected = "selected=\"selected\"";
751 749
								if (cert_in_use($cert['refid']))
752 750
									$inuse = " *In Use";
753 751
								if (is_cert_revoked($cert))
......
765 763
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Shared Key"); ?></td>
766 764
						<td width="78%" class="vtable">
767 765
							<?php if (!$pconfig['shared_key']): ?>
768
							<table border="0" cellpadding="2" cellspacing="0">
766
							<table border="0" cellpadding="2" cellspacing="0" summary="shared key">
769 767
								<tr>
770 768
									<td>
771 769
										<?php set_checked($pconfig['autokey_enable'],$chk); ?>
772
										<input name="autokey_enable" type="checkbox" value="yes" <?=$chk;?> onClick="autokey_change()">
770
										<input name="autokey_enable" type="checkbox" value="yes" <?=$chk;?> onclick="autokey_change()" />
773 771
									</td>
774 772
									<td>
775 773
										<span class="vexpl">
......
779 777
								</tr>
780 778
							</table>
781 779
							<?php endif; ?>
782
							<table border="0" cellpadding="2" cellspacing="0" id='autokey_opts'>
780
							<table border="0" cellpadding="2" cellspacing="0" id="autokey_opts" summary="shared key options">
783 781
								<tr>
784 782
									<td>
785 783
										<textarea name="shared_key" cols="65" rows="7" class="formpre"><?=htmlspecialchars($pconfig['shared_key']);?></textarea>
......
797 795
								<?php
798 796
									$cipherlist = openvpn_get_cipherlist();
799 797
									foreach ($cipherlist as $name => $desc):
800
									$selected = '';
798
									$selected = "";
801 799
									if ($name == $pconfig['crypto'])
802
										$selected = ' selected';
800
										$selected = " selected=\"selected\"";
803 801
								?>
804 802
								<option value="<?=$name;?>"<?=$selected?>>
805 803
									<?=htmlspecialchars($desc);?>
......
815 813
								<?php
816 814
									$digestlist = openvpn_get_digestlist();
817 815
									foreach ($digestlist as $name => $desc):
818
									$selected = '';
816
									$selected = "";
819 817
									if ($name == $pconfig['digest'])
820
										$selected = ' selected';
818
										$selected = " selected=\"selected\"";
821 819
								?>
822 820
								<option value="<?=$name;?>"<?=$selected?>>
823 821
									<?=htmlspecialchars($desc);?>
......
833 831
								<?php
834 832
									$engines = openvpn_get_engines();
835 833
									foreach ($engines as $name => $desc):
836
									$selected = '';
834
									$selected = "";
837 835
									if ($name == $pconfig['engine'])
838
										$selected = ' selected';
836
										$selected = " selected=\"selected\"";
839 837
								?>
840 838
								<option value="<?=$name;?>"<?=$selected?>>
841 839
									<?=htmlspecialchars($desc);?>
......
853 851
					<tr>
854 852
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv4 Tunnel Network"); ?></td>
855 853
						<td width="78%" class="vtable">
856
							<input name="tunnel_network" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_network']);?>">
854
							<input name="tunnel_network" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_network']);?>" />
857 855
							<br />
858 856
							<?=gettext("This is the virtual network used for private " .
859 857
							"communications between this client and the " .
......
867 865
					<tr>
868 866
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Tunnel Network"); ?></td>
869 867
						<td width="78%" class="vtable">
870
							<input name="tunnel_networkv6" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_networkv6']);?>">
868
							<input name="tunnel_networkv6" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_networkv6']);?>" />
871 869
							<br />
872 870
							<?=gettext("This is the IPv6 virtual network used for private " .
873 871
							"communications between this client and the " .
......
881 879
					<tr>
882 880
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv4 Remote Network/s"); ?></td>
883 881
						<td width="78%" class="vtable">
884
							<input name="remote_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_network']);?>">
882
							<input name="remote_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_network']);?>" />
885 883
							<br />
886 884
							<?=gettext("These are the IPv4 networks that will be routed through " .
887 885
							"the tunnel, so that a site-to-site VPN can be " .
......
895 893
					<tr>
896 894
						<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Remote Network/s"); ?></td>
897 895
						<td width="78%" class="vtable">
898
							<input name="remote_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_networkv6']);?>">
896
							<input name="remote_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_networkv6']);?>" />
899 897
							<br />
900 898
							<?=gettext("These are the IPv6 networks that will be routed through " .
901 899
							"the tunnel, so that a site-to-site VPN can be " .
......
909 907
					<tr>
910 908
						<td width="22%" valign="top" class="vncell"><?=gettext("Limit outgoing bandwidth");?></td>
911 909
						<td width="78%" class="vtable">
912
							<input name="use_shaper" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['use_shaper']);?>"/>
910
							<input name="use_shaper" type="text" class="formfld unknown" size="5" value="<?=htmlspecialchars($pconfig['use_shaper']);?>" />
913 911
							<br />
914 912
							<?=gettext("Maximum outgoing bandwidth for this tunnel. " .
915 913
							"Leave empty for no limit. The input value has " .
......
923 921
							<select name="compression" class="formselect">
924 922
								<?php
925 923
									foreach ($openvpn_compression_modes as $cmode => $cmodedesc):
926
									$selected = '';
924
									$selected = "";
927 925
									if ($cmode == $pconfig['compression'])
928
										$selected = ' selected';
926
										$selected = " selected=\"selected\"";
929 927
								?>
930 928
								<option value="<?= $cmode ?>" <?= $selected ?>><?= $cmodedesc ?></option>
931 929
								<?php endforeach; ?>
......
937 935
					<tr>
938 936
						<td width="22%" valign="top" class="vncell"><?=gettext("Type-of-Service"); ?></td>
939 937
						<td width="78%" class="vtable">
940
							<table border="0" cellpadding="2" cellspacing="0">
938
							<table border="0" cellpadding="2" cellspacing="0" summary="type-of-service">
941 939
								<tr>
942 940
									<td>
943 941
										<?php set_checked($pconfig['passtos'],$chk); ?>
944
										<input name="passtos" type="checkbox" value="yes" <?=$chk;?>>
942
										<input name="passtos" type="checkbox" value="yes" <?=$chk;?> />
945 943
									</td>
946 944
									<td>
947 945
										<span class="vexpl">
......
954 952
					</tr>
955 953
				</table>
956 954

  
957
				<table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts">
955
				<table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts" summary="advance configuration">
958 956
					<tr>
959 957
						<td colspan="2" class="list" height="12"></td>
960 958
					</tr>
......
964 962
					<tr>
965 963
						<td width="22%" valign="top" class="vncell"><?=gettext("Advanced"); ?></td>
966 964
						<td width="78%" class="vtable">
967
							<table border="0" cellpadding="2" cellspacing="0">
965
							<table border="0" cellpadding="2" cellspacing="0" summary="advance configuration">
968 966
								<tr>
969 967
									<td>
970 968
										<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=htmlspecialchars($pconfig['custom_options']);?></textarea><br />
......
978 976
				</table>
979 977

  
980 978
				<br />
981
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
979
				<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="icons">
982 980
					<tr>
983 981
						<td width="22%" valign="top">&nbsp;</td>
984 982
						<td width="78%"> 
985
							<input name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"> 
986
							<input name="act" type="hidden" value="<?=$act;?>">
983
							<input name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> 
984
							<input name="act" type="hidden" value="<?=$act;?>" />
987 985
							<?php if (isset($id) && $a_client[$id]): ?>
988
							<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>">
986
							<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
989 987
							<?php endif; ?>
990 988
						</td>
991 989
					</tr>
......
994 992

  
995 993
			<?php else: ?>
996 994

  
997
			<table class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0">
995
			<table class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="list of openvpn clients">
998 996
				<thead>
999 997
				<tr>
1000 998
					<td width="10%" class="listhdrr"><?=gettext("Disabled"); ?></td>
......
1004 1002
					<td width="10%" class="list"></td>
1005 1003
				</tr>
1006 1004
				</thead>
1005
				<tfoot>
1006
				<tr>
1007
					<td class="list" colspan="4"></td>
1008
					<td class="list">
1009
						<a href="vpn_openvpn_client.php?act=new"><img src="./themes/<?=$g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add client"); ?>" width="17" height="17" border="0" alt="add" />
1010
						</a>
1011
					</td>
1012
				</tr>
1013
				<tr>
1014
					<td colspan="4">
1015
						<p>
1016
							<?=gettext("Additional OpenVPN clients can be added here.");?>
1017
						</p>
1018
					</td>
1019
				</tr>
1020
				</tfoot>
1007 1021
				<tbody>
1008 1022
				<?php
1009 1023
					$i = 0;
......
1013 1027
							$disabled = "YES";
1014 1028
						$server = "{$client['server_addr']}:{$client['server_port']}";
1015 1029
				?>
1016
				<tr ondblclick="document.location='vpn_openvpn_client.php?act=edit&id=<?=$i;?>'">
1030
				<tr ondblclick="document.location='vpn_openvpn_client.php?act=edit&amp;id=<?=$i;?>'">
1017 1031
					<td class="listlr">
1018 1032
						<?=$disabled;?>
1019 1033
					</td>
......
1026 1040
					<td class="listbg">
1027 1041
						<?=htmlspecialchars($client['description']);?>
1028 1042
					</td>
1029
					<td valign="middle" nowrap class="list">
1030
						<a href="vpn_openvpn_client.php?act=edit&id=<?=$i;?>">
1031
							<img src="./themes/<?=$g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("edit client"); ?>" width="17" height="17" border="0">
1043
					<td valign="middle" class="list nowrap">
1044
						<a href="vpn_openvpn_client.php?act=edit&amp;id=<?=$i;?>">
1045
							<img src="./themes/<?=$g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("edit client"); ?>" width="17" height="17" border="0" alt="edit" />
1032 1046
						</a>
1033 1047
						&nbsp;
1034
						<a href="vpn_openvpn_client.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?"); ?>')">
1035
							<img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("delete client"); ?>" width="17" height="17" border="0">
1048
						<a href="vpn_openvpn_client.php?act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?"); ?>')">
1049
							<img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("delete client"); ?>" width="17" height="17" border="0" alt="delete" />
1036 1050
						</a>
1037 1051
					</td>
1038 1052
				</tr>
......
1040 1054
					$i++;
1041 1055
					endforeach;
1042 1056
				?>
1057
				<tr style="dispaly:none;"><td></td></tr>
1043 1058
				</tbody>
1044
				<tfoot>
1045
				<tr>
1046
					<td class="list" colspan="4"></td>
1047
					<td class="list">
1048
						<a href="vpn_openvpn_client.php?act=new"><img src="./themes/<?=$g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add client"); ?>" width="17" height="17" border="0">
1049
						</a>
1050
					</td>
1051
				</tr>
1052
				<tr>
1053
					<td colspan="4">
1054
						<p>
1055
							<?=gettext("Additional OpenVPN clients can be added here.");?>
1056
						</p>
1057
					</td>
1058
				</tr>
1059
				</tfoot>
1060 1059
			</table>
1061 1060

  
1062 1061
			<?php endif; ?>
......
1065 1064
	</tr>
1066 1065
</table>
1067 1066
<script type="text/javascript">
1068
<!--
1067
//<![CDATA[
1069 1068
mode_change();
1070 1069
autokey_change();
1071 1070
tlsauth_change();
1072 1071
useproxy_changed();
1073
//-->
1072
//]]>
1074 1073
</script>
1075
</body>
1076 1074
<?php include("fend.inc"); ?>
1075
</body>
1076
</html>
1077 1077

  
1078 1078
<?php
1079 1079

  
......
1081 1081

  
1082 1082
function set_checked($var,& $chk) {
1083 1083
    if($var)
1084
        $chk = 'checked';
1084
        $chk = "checked=\"checked\"";
1085 1085
    else
1086
        $chk = '';
1086
        $chk = "";
1087 1087
}
1088 1088

  
1089 1089
?>

Formats disponibles : Unified diff