diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-09-23 15:36:59 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-09-23 15:36:59 +0000 |
commit | 6cb727c05b7562dd7eb428da8494f09210e3dac0 (patch) | |
tree | d67ff29ab2e9c7867a98db41472950646de094e9 /ipsectools-status-html.lsp | |
parent | 7fc71cd1135d13ce1cb5192f7909c52f427725df (diff) | |
download | acf-ipsec-tools-6cb727c05b7562dd7eb428da8494f09210e3dac0.tar.bz2 acf-ipsec-tools-6cb727c05b7562dd7eb428da8494f09210e3dac0.tar.xz |
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
Diffstat (limited to 'ipsectools-status-html.lsp')
l---------[-rw-r--r--] | ipsectools-status-html.lsp | 45 |
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 |