From 3459e6bf19a13f35e419b0adabf8c3456a0a5025 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 25 Nov 2008 19:27:55 +0000 Subject: 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. git-svn-id: svn://svn.alpinelinux.org/acf/openvpn/trunk@1611 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openvpn-statusinfo-html.lsp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'openvpn-statusinfo-html.lsp') 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 = ... %> - - +

Status

Connected clients

@@ -12,19 +11,17 @@ Bytes
Received Bytes
Sent -<% for i = 1, table.maxn(view.clientlist) do %> +<% for i in ipairs(view.value) do %> - <%= view.clientlist[i].CN %> - <%= view.clientlist[i].VIRTADDR %> - <%= view.clientlist[i].REALADDR %> - <%= view.clientlist[i].BYTESRCV %> - <%= view.clientlist[i].BYTESSND %> + <%= view.value[i].CN %> + <%= view.value[i].VIRTADDR %> + <%= view.value[i].REALADDR %> + <%= view.value[i].BYTESRCV %> + <%= view.value[i].BYTESSND %> - <%= view.clientlist[i].CONN %> + <%= view.value[i].CONN %> <% end %> - - -- cgit v1.2.3