diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-03-27 15:14:06 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-03-27 15:14:06 +0000 |
commit | 21e2053e9a09638f9af7a0861a0faf33351c5129 (patch) | |
tree | 6a92f157bc7cf3c125dd73be201f818d3e8e3672 /ipsec-tools-status-html.lsp | |
parent | 3142bc1bcec3ab55677cdb2cdadf5cf23d15f4b4 (diff) | |
download | acf-ipsec-tools-21e2053e9a09638f9af7a0861a0faf33351c5129.tar.bz2 acf-ipsec-tools-21e2053e9a09638f9af7a0861a0faf33351c5129.tar.xz |
Added information on autostart sequence.
Shows information on 'racoonctl show-sa [isakmp|esp|ah].
git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@849 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'ipsec-tools-status-html.lsp')
-rw-r--r-- | ipsec-tools-status-html.lsp | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/ipsec-tools-status-html.lsp b/ipsec-tools-status-html.lsp index f3acbb4..34b1248 100644 --- a/ipsec-tools-status-html.lsp +++ b/ipsec-tools-status-html.lsp @@ -29,20 +29,51 @@ end <DL> <? local myform = form.status -local tags = { "status", "version", } +local tags = { "status", "version", "autostart", } informationform(myform,tags) ?> </DL> -<? ---[[ ?> <H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2> <DL> <? ---local myform = form.status ---local tags = { "stats", } ---informationform(myform,tags) +local myform = form.status.show_isakmp +io.write("\t<DT") +if (#myform.errtxt > 0) then io.write(" class='error'") end +io.write(">" .. myform.label .. "</DT>\n") + +io.write("\t\t<DD><PRE>" .. myform.value .. "</PRE>\n") +if (myform.descr) and (#myform.descr > 0) then io.write("\t\t<P CLASS='descr'>" .. string.gsub(myform.descr, "\n", "<BR>") .. "</P>\n") end +if (#myform.errtxt > 0) then io.write("\t\t<P CLASS='error'>" .. string.gsub(myform.errtxt, "\n", "<BR>") .. "</P>\n") end +io.write("\t\t</DD>\n") + +?> +<? +local myform = form.status.show_esp +io.write("\t<DT") +if (#myform.errtxt > 0) then io.write(" class='error'") end +io.write(">" .. myform.label .. "</DT>\n") + +io.write("\t\t<DD><PRE>" .. myform.value .. "</PRE>\n") +if (myform.descr) and (#myform.descr > 0) then io.write("\t\t<P CLASS='descr'>" .. string.gsub(myform.descr, "\n", "<BR>") .. "</P>\n") end +if (#myform.errtxt > 0) then io.write("\t\t<P CLASS='error'>" .. string.gsub(myform.errtxt, "\n", "<BR>") .. "</P>\n") end +io.write("\t\t</DD>\n") + ?> -<? --]] ?> +<? +local myform = form.status.show_ah +io.write("\t<DT") +if (#myform.errtxt > 0) then io.write(" class='error'") end +io.write(">" .. myform.label .. "</DT>\n") + +io.write("\t\t<DD><PRE>" .. myform.value .. "</PRE>\n") +if (myform.descr) and (#myform.descr > 0) then io.write("\t\t<P CLASS='descr'>" .. string.gsub(myform.descr, "\n", "<BR>") .. "</P>\n") end +if (#myform.errtxt > 0) then io.write("\t\t<P CLASS='error'>" .. string.gsub(myform.errtxt, "\n", "<BR>") .. "</P>\n") end +io.write("\t\t</DD>\n") + +?> + +</DL> <? |