From 6cb727c05b7562dd7eb428da8494f09210e3dac0 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 23 Sep 2008 15:36:59 +0000 Subject: Modified ipsectools to use new libraries and lsp files. git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1483 ab2d0c66-481e-0410-8bed-d214d4d58bed --- ipsectools-details-html.lsp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ipsectools-details-html.lsp (limited to 'ipsectools-details-html.lsp') diff --git a/ipsectools-details-html.lsp b/ipsectools-details-html.lsp new file mode 100644 index 0000000..b16da64 --- /dev/null +++ b/ipsectools-details-html.lsp @@ -0,0 +1,41 @@ +<% local data, viewlibrary = ... +require("viewfunctions") +--[[ DEBUG INFORMATION +io.write("

DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(data)) +io.write("
") +--]] +%> + +<% viewlibrary.dispatch_component("status") %> + +

<%= data.label %>

+
+<% +if not data.value.show_isakmp or #data.value.show_isakmp.value == 0 then + io.write("No status details available") +else + for i,entry in pairs(data.value.show_isakmp.value) do + if (type(entry) == "table") and (entry.Destination) and (entry.Destination.value) and (#entry.Destination.value > 0) then + io.write("

".. entry.Destination.value .. "

") + io.write("\n") + local tags = {"Created","Source","Destination", "St", "Phase2details"} + for j,tag in pairs(tags) do + io.write("") + end + io.write("
" .. + (entry[tag].label or "") .. ""..(entry[tag].value or "")) + if (entry[tag].descr) and (#entry[tag].descr > 0) then io.write(" (".. entry[tag].descr .. ")") end + io.write("
") + end + end +end +--displayitem(data.value.ip_xfrm_policy) +%> +
-- cgit v1.2.3