diff options
author | Mika Havela <mika.havela@gmail.com> | 2007-11-29 20:10:01 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2007-11-29 20:10:01 +0000 |
commit | d344c8b256dea3891578341906bb8d20ec6a83f8 (patch) | |
tree | 6ab28576b3364c2401bc39d4419252d6eced3b1e /openvpn-server_config-html.lsp | |
parent | 2fc04ea00f5a35d751455ab4c70a032749408d0b (diff) | |
download | acf-openvpn-d344c8b256dea3891578341906bb8d20ec6a83f8.tar.bz2 acf-openvpn-d344c8b256dea3891578341906bb8d20ec6a83f8.tar.xz |
Reorganazing code
git-svn-id: svn://svn.alpinelinux.org/acf/openvpn/trunk@390 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openvpn-server_config-html.lsp')
-rw-r--r-- | openvpn-server_config-html.lsp | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/openvpn-server_config-html.lsp b/openvpn-server_config-html.lsp index 9a26db7..fc60ec2 100644 --- a/openvpn-server_config-html.lsp +++ b/openvpn-server_config-html.lsp @@ -2,39 +2,52 @@ <html> <body> <h1>Server 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>Server settings</h2> <dt>Mode</dt> <dd>server</dd> <dt>User device</dt> -<dd><?= view.config.device ?></dd> +<dd><?= view.config.dev ?></dd> <dt>Listens on</dt> -<dd><?= view.config.loca ?>:<?= view.config.port ?> (<?= view.config.proto ?>)</dd> +<dd><?= view.config["local"] ?>:<?= view.config.port ?> (<?= 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>Connected clients status</h3> <dt>Last status was recorded</dt> -<dd><?= view.config.lastdatechangetxt ?> (This was <b><?= view.config.lastdatechangediff ?></b> ago)</dd> +<dd><?= view.config.client_lastupdate ?> (This was <b><?= view.config.client_lastdatechangediff ?></b> ago)</dd> <dt>Maximum clients</dt> -<dd><?= view.config.maxclients ?></dd> +<dd><?= view.config["max-clients"] ?></dd> <dt>Connected clients</dt> -<dd><? if ( view.config.clients > 0 ) then ?><?= html.link{value = view.url .. "/status_info?name=" .. view.config.name , label=view.config.clients } ?><? else ?><?= view.config.clients ?><? end ?></dd> +<dd><? if ( view.config.client_count > 0 ) then ?><?= html.link{value = view.url .. "/status_info?name=" .. view.config.linkname , label=view.config.client_count } ?><? else ?><?= view.config.client_count ?><? end ?></dd> <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> @@ -68,6 +81,6 @@ <dd><?= html.link{value = view.url .. "/pem_info?name=" .. view.config.crl , label=view.config.crl } ?></dd> <? end ?> - +<? --]] ?> </body> </html> |