summaryrefslogtreecommitdiffstats
path: root/openntpd-status-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-10 14:52:47 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-10 14:52:47 +0000
commit116d2438209781f88faaac07a48fb801852247e7 (patch)
tree9703faa647d038ad0f7e0675ca27d808871ea706 /openntpd-status-html.lsp
parent705ca5ef914ce16ee099d7687c541934962ea067 (diff)
downloadacf-openntpd-116d2438209781f88faaac07a48fb801852247e7.tar.bz2
acf-openntpd-116d2438209781f88faaac07a48fb801852247e7.tar.xz
Changing tabnames and first page info
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@536 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openntpd-status-html.lsp')
-rw-r--r--openntpd-status-html.lsp29
1 files changed, 29 insertions, 0 deletions
diff --git a/openntpd-status-html.lsp b/openntpd-status-html.lsp
new file mode 100644
index 0000000..d1211c5
--- /dev/null
+++ b/openntpd-status-html.lsp
@@ -0,0 +1,29 @@
+<? local view = ... ?>
+
+<h1>SYSTEM INFO</h1>
+
+<h2>SYSTEM INFO</h2>
+
+<dt>Program status</dt>
+<DD><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></DD>
+
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+
+<H3>PROGRAM SPECIFIC OPTIONS/INFORMATION</H3>
+
+<dt>Configured as server (listens)</dt>
+<dd><? io.write(view.status.listenstate) ?></dd>
+
+<dt>Current time</dt>
+<dd><? io.write(view.status.date) ?></dd>
+
+<dt>Previous time adjustment</dt>
+<dd><? io.write(view.status.timechanged) ?></dd>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>