From d8e946ab28c25431f8154b1865c33d6b58564e51 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Tue, 11 Aug 2009 08:14:02 +0000 Subject: Creating a (modified) view-file for starting/stopping the various openvpn-processes --- openvpn-startstop-html.lsp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 openvpn-startstop-html.lsp diff --git a/openvpn-startstop-html.lsp b/openvpn-startstop-html.lsp new file mode 100755 index 0000000..5e2179c --- /dev/null +++ b/openvpn-startstop-html.lsp @@ -0,0 +1,37 @@ +<% local data, viewlibrary, page_info = ... %> +<% +---[[ +io.write("

DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(data)) +io.write("
") +--]] +%> +

Management

+<% +--[[ +%> +<% if data.value.result then %> +

Previous action result

+<% if data.value.result.value ~= "" then %> +

<%= string.gsub(html.html_escape(data.value.result.value), "\n", "
") %>

+<% end if data.value.result.errtxt then %> +

<%= string.gsub(html.html_escape(data.value.result.errtxt), "\n", "
") %>

+<% end end %> +<% +--]] +%> +
+
Process to be managed
+
<%= data.service %>
+
+
+
" method="POST"> +
Program control-panel
+
+<% for i,act in ipairs(data.value.actions.value) do %> + +<% end %> + +
+
+
-- cgit v1.2.3