diff options
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> <? |