diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-11-25 19:27:55 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-11-25 19:27:55 +0000 |
commit | 3459e6bf19a13f35e419b0adabf8c3456a0a5025 (patch) | |
tree | 9330301f44a88ee2f3cb8b5d0271204294aa99c6 /openvpn-statusinfo-html.lsp | |
parent | 99b9d1c5e938d818ca3e78a1f37d6a80da4b88f1 (diff) | |
download | acf-openvpn-3459e6bf19a13f35e419b0adabf8c3456a0a5025.tar.bz2 acf-openvpn-3459e6bf19a13f35e419b0adabf8c3456a0a5025.tar.xz |
Rewrite of openvpn to use cfes and new style. Added ability to edit/create/delete configs. Combined three view functions into one. Added a new status and moved old status to listconfigs. Still needs work, including ability to start/stop/restart.v0.3.0
git-svn-id: svn://svn.alpinelinux.org/acf/openvpn/trunk@1611 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openvpn-statusinfo-html.lsp')
-rw-r--r-- | openvpn-statusinfo-html.lsp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/openvpn-statusinfo-html.lsp b/openvpn-statusinfo-html.lsp index 000000f..e6f85b5 100644 --- a/openvpn-statusinfo-html.lsp +++ b/openvpn-statusinfo-html.lsp @@ -1,6 +1,5 @@ <% local view = ... %> -<html> -<body> + <h1>Status</h1> <h2>Connected clients</h2> @@ -12,19 +11,17 @@ <TD>Bytes<BR>Received</TD> <TD>Bytes<BR>Sent</TD> </TR> -<% for i = 1, table.maxn(view.clientlist) do %> +<% for i in ipairs(view.value) do %> <TR> - <TD><%= view.clientlist[i].CN %></TD> - <TD><%= view.clientlist[i].VIRTADDR %></TD> - <TD><%= view.clientlist[i].REALADDR %></TD> - <TD><%= view.clientlist[i].BYTESRCV %></TD> - <TD><%= view.clientlist[i].BYTESSND %></TD> + <TD><%= view.value[i].CN %></TD> + <TD><%= view.value[i].VIRTADDR %></TD> + <TD><%= view.value[i].REALADDR %></TD> + <TD><%= view.value[i].BYTESRCV %></TD> + <TD><%= view.value[i].BYTESSND %></TD> </TR> <TR> - <TD COLSPAN=5 style="border-bottom: 1px solid #ccc;"><%= view.clientlist[i].CONN %></TD> + <TD COLSPAN=5 style="border-bottom: 1px solid #ccc;"><%= view.value[i].CONN %></TD> </TR> <% end %> </TABLE> -</body> -</html> |