diff options
Diffstat (limited to 'config/openvpn-client-export/vpn_openvpn_export_shared.php')
-rw-r--r-- | config/openvpn-client-export/vpn_openvpn_export_shared.php | 74 |
1 files changed, 38 insertions, 36 deletions
diff --git a/config/openvpn-client-export/vpn_openvpn_export_shared.php b/config/openvpn-client-export/vpn_openvpn_export_shared.php index d2a555e7..e20a8383 100644 --- a/config/openvpn-client-export/vpn_openvpn_export_shared.php +++ b/config/openvpn-client-export/vpn_openvpn_export_shared.php @@ -151,9 +151,9 @@ include("head.inc"); <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> -<script language="JavaScript"> - var viscosityAvailable = false; -<!-- +<script type="text/javascript"> +//<![CDATA[ +var viscosityAvailable = false; var servers = new Array(); <?php foreach ($ras_server as $sindex => $server): ?> @@ -215,15 +215,15 @@ function download_begin(act) { var dlurl; dlurl = "/vpn_openvpn_export_shared.php?act=" + act; - dlurl += "&srvid=" + servers[index][0]; - dlurl += "&useaddr=" + useaddr; + dlurl += "&srvid=" + servers[index][0]; + dlurl += "&useaddr=" + useaddr; if (useproxy) { - dlurl += "&proxy_addr=" + proxyaddr; - dlurl += "&proxy_port=" + proxyport; - dlurl += "&proxy_authtype=" + proxyauth; + dlurl += "&proxy_addr=" + proxyaddr; + dlurl += "&proxy_port=" + proxyport; + dlurl += "&proxy_authtype=" + proxyauth; if (useproxypass) { - dlurl += "&proxy_user=" + proxyuser; - dlurl += "&proxy_password=" + proxypass; + dlurl += "&proxy_user=" + proxyuser; + dlurl += "&proxy_password=" + proxypass; } } @@ -245,9 +245,9 @@ function server_changed() { cell0.className = "listlr"; cell0.innerHTML = "Other Shared Key OS Client"; cell1.className = "listr"; - cell1.innerHTML = "<a href='javascript:download_begin(\"skconf\")'>Configuration</a>"; - cell1.innerHTML += "<br/>"; - cell1.innerHTML += "<a href='javascript:download_begin(\"skzipconf\")'>Configuration archive</a>"; + cell1.innerHTML = "<a href='javascript:download_begin(\"skconf\")'>Configuration<\/a>"; + cell1.innerHTML += "<br\/>"; + cell1.innerHTML += "<a href='javascript:download_begin(\"skzipconf\")'>Configuration archive<\/a>"; } } @@ -269,7 +269,7 @@ function useproxy_changed(obj) { $(obj.id + '_opts').hide(); } } -//--> +//]]> </script> <?php if ($input_errors) @@ -277,7 +277,7 @@ function useproxy_changed(obj) { if ($savemsg) print_info_box($savemsg); ?> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> +<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="openvpn export shared"> <tr> <td> <?php @@ -295,11 +295,11 @@ function useproxy_changed(obj) { <tr> <td id="mainarea"> <div class="tabcont"> - <table width="100%" border="0" cellpadding="6" cellspacing="0"> + <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area"> <tr> <td width="22%" valign="top" class="vncellreq">Shared Key Server</td> <td width="78%" class="vtable"> - <select name="server" id="server" class="formselect" onChange="server_changed()"> + <select name="server" id="server" class="formselect" onchange="server_changed()"> <?php foreach($ras_server as & $server): ?> <option value="<?=$server['sindex'];?>"><?=$server['name'];?></option> <?php endforeach; ?> @@ -309,10 +309,10 @@ function useproxy_changed(obj) { <tr> <td width="22%" valign="top" class="vncell">Host Name Resolution</td> <td width="78%" class="vtable"> - <table border="0" cellpadding="2" cellspacing="0"> + <table border="0" cellpadding="2" cellspacing="0" summary="host name resolution"> <tr> <td> - <select name="useaddr" id="useaddr" class="formselect" onChange="useaddr_changed(this)"> + <select name="useaddr" id="useaddr" class="formselect" onchange="useaddr_changed(this)"> <option value="serveraddr" >Interface IP Address</option> <option value="serverhostname" >Installation hostname</option> <?php if (is_array($config['dyndnses']['dyndns'])): ?> @@ -323,7 +323,7 @@ function useproxy_changed(obj) { <option value="other">Other</option> </select> <br /> - <div style="display:none;" name="HostName" id="HostName"> + <div style="display:none;" id="HostName"> <input name="useaddr_hostname" id="useaddr_hostname" /> <span class="vexpl"> Enter the hostname or IP address the client will use to connect to this server. @@ -337,10 +337,10 @@ function useproxy_changed(obj) { <tr> <td width="22%" valign="top" class="vncell">Use HTTP Proxy</td> <td width="78%" class="vtable"> - <table border="0" cellpadding="2" cellspacing="0"> + <table border="0" cellpadding="2" cellspacing="0" summary="http proxy"> <tr> <td> - <input name="useproxy" id="useproxy" type="checkbox" value="yes" onClick="useproxy_changed(this)"> + <input name="useproxy" id="useproxy" type="checkbox" value="yes" onclick="useproxy_changed(this)" /> </td> <td> @@ -350,9 +350,9 @@ function useproxy_changed(obj) { </td> </tr> </table> - <table border="0" cellpadding="2" cellspacing="0" id="useproxy_opts" style="display:none"> + <table border="0" cellpadding="2" cellspacing="0" id="useproxy_opts" style="display:none" summary="user options"> <tr> - <td align="right" width='25%'> + <td align="right" width="25%"> <span class="vexpl"> IP Address : </span> @@ -362,21 +362,21 @@ function useproxy_changed(obj) { </td> </tr> <tr> - <td align="right" width='25%'> + <td align="right" width="25%"> <span class="vexpl"> Port : </span> + </td> <td> <input name="proxyport" id="proxyport" class="formfld unknown" size="5" value="" /> </td> </tr> - <br /> <tr> <td width="25%"> - + <br /> </td> <td> - <select name="useproxypass" id="useproxypass" class="formselect" onChange="useproxy_changed(this)"> + <select name="useproxypass" id="useproxypass" class="formselect" onchange="useproxy_changed(this)"> <option value="none">none</option> <option value="basic">basic</option> <option value="ntlm">ntlm</option> @@ -385,7 +385,7 @@ function useproxy_changed(obj) { Choose HTTP proxy authentication if any. </span> <br /> - <table border="0" cellpadding="2" cellspacing="0" id="useproxypass_opts" style="display:none"> + <table border="0" cellpadding="2" cellspacing="0" id="useproxypass_opts" style="display:none" summary="name and password"> <tr> <td align="right" width="25%"> <span class="vexpl"> @@ -411,6 +411,7 @@ function useproxy_changed(obj) { <span class="vexpl"> Confirm : </span> + </td> <td> <input name="proxyconf" id="proxyconf" type="password" class="formfld pwd" size="20" value="" /> </td> @@ -428,26 +429,27 @@ function useproxy_changed(obj) { <td colspan="2" valign="top" class="listtopic">Client Configuration Packages</td> </tr> </table> - <table width="100%" id="clients" width="100%" border="0" cellpadding="0" cellspacing="0"> + <table width="100%" id="clients" border="0" cellpadding="0" cellspacing="0" summary="heading"> <tr> <td width="25%" class="listhdrr"><?=gettext("Client Type");?></td> <td width="50%" class="listhdrr"><?=gettext("Export");?></td> </tr> </table> - <table width="100%" width="100%" border="0" cellpadding="5" cellspacing="10"> + <table width="100%" border="0" cellpadding="5" cellspacing="10" summary="note"> <tr> <td align="right" valign="top" width="5%"><?= gettext("NOTE:") ?></td> - <td><?= gettext("NOTE: These are shared key configurations for use in site-to-site tunnels with other routers. Shared key tunnels are not normally used for remote access connections to end users.") ?></td> + <td><?= gettext("These are shared key configurations for use in site-to-site tunnels with other routers. Shared key tunnels are not normally used for remote access connections to end users.") ?></td> </tr> </table> </div> </td> </tr> </table> -<script language="JavaScript"> -<!-- +<script type="text/javascript"> +//<![CDATA[ server_changed(); -//--> +//]]> </script> -</body> <?php include("fend.inc"); ?> +</body> +</html> |