summaryrefslogtreecommitdiffstats
path: root/dnscache-logfile-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-04-09 14:17:52 +0000
committerMika Havela <mika.havela@gmail.com>2008-04-09 14:17:52 +0000
commit3a375213b849440bd10c1de12467d3b2d09d4d2e (patch)
treea967a6257be924f33548b9b474f20fd42c170022 /dnscache-logfile-html.lsp
parenta4f26a1ccdcefbe461c5f4eb495c04e4fc1107d8 (diff)
downloadacf-dnscache-3a375213b849440bd10c1de12467d3b2d09d4d2e.tar.bz2
acf-dnscache-3a375213b849440bd10c1de12467d3b2d09d4d2e.tar.xz
Moving/renaming the files.
git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@982 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dnscache-logfile-html.lsp')
-rw-r--r--dnscache-logfile-html.lsp31
1 files changed, 31 insertions, 0 deletions
diff --git a/dnscache-logfile-html.lsp b/dnscache-logfile-html.lsp
new file mode 100644
index 0000000..aa0b6e5
--- /dev/null
+++ b/dnscache-logfile-html.lsp
@@ -0,0 +1,31 @@
+<? local form = ... ?>
+<?
+require("viewfunctions")
+?>
+
+<H1>SYSTEM INFO</H1>
+<DL>
+<?
+local myform = form.status
+local tags = { "status", "version", "autostart", }
+displayinfo(myform,tags,"viewonly")
+?>
+</DL>
+
+<form name="myform" action="" method="POST">
+<h1>LOGFILE</h1>
+<h2>Details</h2>
+<DL>
+<?
+local myform = form.logfile
+local tags = { "filename", "filesize", "mtime", "sumerrors", }
+displayinfo(myform,tags,"viewonly")
+?>
+</DL>
+
+<H3>FILE CONTENT</H3>
+<?
+io.write(html.form[myform.filecontent.type](myform.filecontent))
+?>
+
+</form>