diff options
Diffstat (limited to 'openntpd-logfile-html.lsp')
-rw-r--r-- | openntpd-logfile-html.lsp | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/openntpd-logfile-html.lsp b/openntpd-logfile-html.lsp index 15daa91..23f732e 100644 --- a/openntpd-logfile-html.lsp +++ b/openntpd-logfile-html.lsp @@ -1,37 +1,7 @@ -<% local form = ... +<% local data, viewlibrary = ... require("viewfunctions") %> -<% ---[[ DEBUG INFORMATION -io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") -io.write(html.cfe_unpack(form)) -io.write("</span>") ---]] -%> - -<H1>SYSTEM INFO</H1> -<DL> -<% -local myform = form.status -local tags = { "status", "version", "autostart", } -displayinfo(myform,tags,"viewonly") -%> -</DL> - -<% local myform = form.logfile %> -<form name="myform" action="" method="POST"> -<h1>LOGFILE</h1> -<h2>Details</h2> -<DL> -<% -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> +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", {name="/var/log/messages", grep="ntpd"}) +end %> |