diff options
Diffstat (limited to 'openvpn-client_config-html.lsp')
-rw-r--r-- | openvpn-client_config-html.lsp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/openvpn-client_config-html.lsp b/openvpn-client_config-html.lsp index 68576d9..e80388a 100644 --- a/openvpn-client_config-html.lsp +++ b/openvpn-client_config-html.lsp @@ -2,22 +2,34 @@ <html> <body> <h1>Client config '<?= view.config.name ?>'</h1> + +<? ---[[ DEBUG INFORMATION...?> +<h2>DEUB INFO</h2> +<? +for a,b in pairs(view.config) do +print ("<b>" .. a .. "</b>: >" .. b .. "<<BR>") +end +?> +<? --]] ?> + + +<? ---[[ ?> <h2>Client settings</h2> <dt>Mode</dt> <dd>client</dd> <dt>User device</dt> -<dd><?= view.config.device ?></dd> +<dd><?= view.config.dev ?></dd> <dt>Remote server</dt> -<dd><?= view.config.remote ?> (<?= view.config.proto ?>)</dd> +<dd><?= view.config.remote ?>:<?= view.config.remoteport ?> (<?= view.config.proto ?>)</dd> <dt>Logfile</dt> -<dd><? if ( view.config.log ) then ?><?= html.link{value = view.url .. "/logfile?name=" .. view.config.name , label=view.config.log } ?><? else ?>Syslog<? end ?> (Verbosity level: <?= view.config.verb ?>)</dd> +<dd><? if ( view.config.log ) then ?><?= html.link{value = view.url .. "/logfile?name=" .. view.config.linkname , label=view.config.log } ?><? else ?>Syslog<? end ?> (Verbosity level: <?= view.config.verb ?>)</dd> <dt>View/Modify configfile</dt> -<dd><?= html.link{value = view.url .. "/unknown_config?name=" .. view.config.name , label=view.config.longname } ?></dd> +<dd><?= html.link{value = view.url .. "/unknown_config?name=" .. view.config.linkname , label=view.config.name } ?></dd> <h3>Client properties</h3> @@ -33,7 +45,7 @@ <h2>Startup options</h2> <dt>Process running</dt> -<dd><input type="checkbox" disabled <? if (view.config.status ~= "") then io.write("checked='yes'") end ?>></dd> +<dd><input type="checkbox" disabled <? if (view.config.status_isrunning ~= "") then io.write("checked='yes'") end ?>></dd> <h2>Certificate files</h2> @@ -61,7 +73,7 @@ <dt>CRL Verify File</dt> <dd><?= html.link{value = view.url .. "/pem_info?name=" .. view.config.crl , label=view.config.crl } ?> (client side)</dd> <? end ?> - +<? --]] ?> </body> </html> |