summaryrefslogtreecommitdiffstats
path: root/chrony-logfile-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'chrony-logfile-html.lsp')
-rw-r--r--chrony-logfile-html.lsp31
1 files changed, 31 insertions, 0 deletions
diff --git a/chrony-logfile-html.lsp b/chrony-logfile-html.lsp
new file mode 100644
index 0000000..aa0b6e5
--- /dev/null
+++ b/chrony-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>