diff options
Diffstat (limited to 'openvpn-read-html.lsp')
-rw-r--r-- | openvpn-read-html.lsp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/openvpn-read-html.lsp b/openvpn-read-html.lsp new file mode 100644 index 0000000..521e6b3 --- /dev/null +++ b/openvpn-read-html.lsp @@ -0,0 +1,36 @@ +<? local view = ... ?> +<? --[[ Notes + conflistfiles = Filename on config-files + test + ]]-- ?> +<html> +<body> +<h1>General</h1> +<h2>Available configs</h2> +<TABLE BORDER=0 WIDTH="100%"> + <TR style="background:#eee;font-weight:bold;vertical-align:top;"> + <TD WIDTH=100>Config</TD> + <TD WIDTH=70>Type</TD> + <TD WIDTH=70>Status</TD> + <TD>Connected Clients</TD> + </TR> + +<? for i = 1, table.maxn(view.conflistfiles) do ?> + <TR > + <TD><a href=""><?= view.conflistfiles[i].value ?></a></TD> + <TD><?= view.conflistfiles[i].type ?></TD> + <TD><?= view.conflistfiles[i].init ?></TD> + <TD>xxx</TD> + </TR> +<? end ?> +</TABLE> + +<h2>System info</h2> + +<dt>Program version</dt> +<dd>OpenVPN ver.x.x.x</dd> + + + +</body> +</html> |