diff options
Diffstat (limited to 'dnscache-status-html.lsp')
-rw-r--r-- | dnscache-status-html.lsp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/dnscache-status-html.lsp b/dnscache-status-html.lsp index c70ea95..b23ad5a 100644 --- a/dnscache-status-html.lsp +++ b/dnscache-status-html.lsp @@ -21,18 +21,9 @@ displayinfo(myform,tags,"viewonly") <H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2> <DL> <? -local tags ={ "bgpstats", "iproute", } -for k,v in pairs(tags) do - local myform = form.status[v] - if (myform) then - 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>\n") - io.write("\t\t<PRE>"..myform.value.."</PRE>\n") - io.write("\t\t</DD>\n") - end -end +local myform = form.status +local tags = { "ip", "cachesize", } +displayinfo(myform,tags,"viewonly") ?> - </DL> + |