summaryrefslogtreecommitdiffstats
path: root/openntpd-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openntpd-status-html.lsp')
-rw-r--r--openntpd-status-html.lsp18
1 files changed, 18 insertions, 0 deletions
diff --git a/openntpd-status-html.lsp b/openntpd-status-html.lsp
index 5612f57..43b4a35 100644
--- a/openntpd-status-html.lsp
+++ b/openntpd-status-html.lsp
@@ -2,22 +2,39 @@
<h1>SYSTEM INFO</h1>
+<dl>
<dt>Program status</dt>
<DD><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></DD>
+</dl>
+<dl>
<dt>Program version</dt>
<dd><?= view.status.version ?></dd>
+</dl>
<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
+<? --[[ ?>
+<dl>
<dt>Configured as server (listens)</dt>
<dd><? io.write(view.status.listenstate) ?></dd>
+</dl>
+<? --]] ?>
+<dl>
+<dt>Sets time directly at startup</dt>
+<dd><? if (view.status.setstimeonstartup) then io.write("Yes") else io.write("No") end ?></dd>
+</dl>
+
+<dl>
<dt>Current time</dt>
<dd><? io.write(view.status.date) ?></dd>
+</dl>
+<dl>
<dt>Previous time adjustment</dt>
<dd><? io.write(view.status.timechanged) ?></dd>
+</dl>
<?
--[[ DEBUG INFORMATION
@@ -25,3 +42,4 @@ require("debugs")
io.write(debugs.variables(view))
--]]
?>
+