summaryrefslogtreecommitdiffstats
path: root/dnscache-status-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-04-09 15:00:48 +0000
committerMika Havela <mika.havela@gmail.com>2008-04-09 15:00:48 +0000
commit2cc08d53216abf6203ed971cdb3a88b410a45f08 (patch)
treeab9e71466726bd8b30d3005b33ac016db09d9822 /dnscache-status-html.lsp
parent3a375213b849440bd10c1de12467d3b2d09d4d2e (diff)
downloadacf-dnscache-2cc08d53216abf6203ed971cdb3a88b410a45f08.tar.bz2
acf-dnscache-2cc08d53216abf6203ed971cdb3a88b410a45f08.tar.xz
Cleaning up the code and activating all visible functions (show/expert/logfile)
git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@983 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dnscache-status-html.lsp')
-rw-r--r--dnscache-status-html.lsp17
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>
+