summaryrefslogtreecommitdiffstats
path: root/ipsectools-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'ipsectools-status-html.lsp')
l---------[-rw-r--r--]ipsectools-status-html.lsp45
1 files changed, 1 insertions, 44 deletions
diff --git a/ipsectools-status-html.lsp b/ipsectools-status-html.lsp
index 447f007..b2f8480 100644..120000
--- a/ipsectools-status-html.lsp
+++ b/ipsectools-status-html.lsp
@@ -1,44 +1 @@
-<% local form = ...
-require("viewfunctions")
---[[ DEBUG INFORMATION
-io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
-io.write(html.cfe_unpack(form))
-io.write("</span>")
---]]
-%>
-
-<H1>SYSTEM INFO</H1>
-<DL>
-<%
-local myform = form.status
-local tags = { "status", "version", "autostart", }
-displayinfo(myform,tags,"viewonly")
-%>
-</DL>
-
-<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
-<DL>
-<%
-local myform = form.status.show_isakmp.option
-for k,v in pairs(myform) do
- if (type(v) == "table") and (v.Destination) and (v.Destination.value) and (#v.Destination.value > 0) then
- io.write("<H3><IMG SRC='/skins/static/tango/16x16/status/network-")
- if (tonumber(v['St']['value']) < 9) then
- io.write("error")
- else
- io.write("idle")
- end
- io.write(".png' width='16' height='16'> ".. v['Destination']['value'] .. "</H3>")
- io.write("<TABLE>\n")
- local tags = {"Created","Source","Destination", "St", "Phase2details"}
- for k1,v1 in pairs(tags) do
- io.write("<TR><TD STYLE='font-weight:bold;width:120px;border:none;'>" ..
- (v[v1]['label'] or "") .. "</TD><TD STYLE='border:none;'>"..(v[v1]['value'] or ""))
- if (v[v1]['descr']) and (#v[v1]['descr'] > 0) then io.write(" (".. v[v1]['descr'] .. ")") end
- io.write("</TD></TR>")
- end
- io.write("</TABLE>")
- end
-end
-%>
-</DL>
+../status-html.lsp \ No newline at end of file