summaryrefslogtreecommitdiffstats
path: root/ipsectools-status-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-09-04 12:17:34 +0000
committerMika Havela <mika.havela@gmail.com>2008-09-04 12:17:34 +0000
commit9d959fdbace25ac2a7f28149793d3fce7000bea1 (patch)
tree7aee412a041e44c1323d074c25e74756c0696db2 /ipsectools-status-html.lsp
parent4de7eb4012b329dd4b2c3413cc86e54bcb7e5a06 (diff)
downloadacf-ipsec-tools-9d959fdbace25ac2a7f28149793d3fce7000bea1.tar.bz2
acf-ipsec-tools-9d959fdbace25ac2a7f28149793d3fce7000bea1.tar.xz
Removing some details from the statuspage so it gets cleaner and not so technical
git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1445 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'ipsectools-status-html.lsp')
-rw-r--r--ipsectools-status-html.lsp25
1 files changed, 11 insertions, 14 deletions
diff --git a/ipsectools-status-html.lsp b/ipsectools-status-html.lsp
index 83e1474..447f007 100644
--- a/ipsectools-status-html.lsp
+++ b/ipsectools-status-html.lsp
@@ -1,6 +1,10 @@
-<% local form = ... %>
-<%
+<% 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>
@@ -13,34 +17,27 @@ displayinfo(myform,tags,"viewonly")
</DL>
<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
-<H3>Phase1 and Phase2 information</H3>
<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("<DT><IMG SRC='/skins/static/tango/16x16/status/network-")
+ 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'] .. "</DT>")
- io.write("<DD><TABLE>\n")
- io.write("<TR><TD COLSPAN=2 CLASS='header'>Phase1 details</TD></TR>")
- local tags = {"Created","Source", "St", "S", "E",}
+ 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("<TR><TD COLSPAN=2 CLASS='header' STYLE='padding-left:15px;'>Phase2 details</TD></TR>")
- for k1,v1 in pairs(v['Phase2']['option']) do
- io.write("<TR><TD STYLE='padding-left:15px;' COLSPAN=2><PRE>" .. (v1['value'] or "") .. "</PRE>")
- io.write("</TD></TR>")
- end
- io.write("</TABLE></DD>")
+ io.write("</TABLE>")
end
end
%>