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-status-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-status-html.lsp')
l---------[-rw-r--r--] | openvpn-status-html.lsp | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/openvpn-status-html.lsp b/openvpn-status-html.lsp index 8cbe657..b2f8480 100644..120000 --- a/openvpn-status-html.lsp +++ b/openvpn-status-html.lsp @@ -1,37 +1 @@ -<% local view = ... %> -<h1>SYSTEM INFO</h1> - -<dl> -<dt>Program version</dt> -<DD><%= view.version %></DD> -</dl> - -<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2> - -<H3>Available configs (Click on config-name to see details)</H3> -<TABLE> - <TR style="background:#eee;font-weight:bold;vertical-align:top;"> - <TD class="header">Config</TD> - <TD class="header">Type</TD> - <TD class="header">Status</TD> - <TD class="header">Connected<BR>Clients</TD> - <TD class="header">Notes</TD> - </TR> - -<% for i = 1, table.maxn(view.conflistfiles) do %> - <TR > - <TD><%= html.link{value = view.url .. "/" .. view.conflistfiles[i].type .. "_config?name=" .. view.conflistfiles[i].name , label=view.conflistfiles[i].name } %></TD> - <TD><%= view.conflistfiles[i].type %></TD> - <TD><%= view.conflistfiles[i].status %></TD> - <TD><% if ( view.conflistfiles[i].type == "server" ) then %><% if ( view.conflistfiles[i].clients > 0 ) then %><%= html.link{value = view.url .. "/status_info?name=" .. view.conflistfiles[i].name , label=view.conflistfiles[i].clients } %><% else %><%= view.conflistfiles[i].clients %><% end %><% end %></TD> - <TD style="color:red"><i><%= view.conflistfiles[i].err %></i></TD> - </TR> -<% end %> - -<% if (#view.conflistfiles == 0) then %> - <TR> - <TD colspan=3>(No existing config-files)</TD> - </TR> -<% end %> -</TABLE> - +../status-html.lsp
\ No newline at end of file |