From bee67e07734c54bcc42926b5d0cc32706277ef43 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 8 May 2008 07:35:04 +0000 Subject: List current configuration on status-page git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@1112 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dnscache-status-html.lsp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'dnscache-status-html.lsp') diff --git a/dnscache-status-html.lsp b/dnscache-status-html.lsp index b23ad5a..a57a3c6 100644 --- a/dnscache-status-html.lsp +++ b/dnscache-status-html.lsp @@ -25,5 +25,25 @@ local myform = form.status local tags = { "ip", "cachesize", } displayinfo(myform,tags,"viewonly") ?> + +" .. myform.label .. "\n") +io.write("\t\t
\n") +for k,v in pairs(myform.value or {}) do + io.write("\t\t\t") + io.write("\n\t\t\t\n") + for k1,v1 in pairs(myform.option[v]) do + io.write("\n\t\t\t
" .. v .. "
"..v1) + end + + io.write("\t\t\t
") +end +io.write("\t\t
\n") +?> + + -- cgit v1.2.3