diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-14 19:30:29 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-14 19:30:29 +0000 |
commit | 6f3662eb2e408ef2e281626f52419bc966d638cd (patch) | |
tree | 67403c1d48ab4dc9a5c147ffe452c77fe1c42f6d /openntpd-status-html.lsp | |
parent | acba7201c5e2680a092dee1314cfa70cc85896ce (diff) | |
download | acf-openntpd-6f3662eb2e408ef2e281626f52419bc966d638cd.tar.bz2 acf-openntpd-6f3662eb2e408ef2e281626f52419bc966d638cd.tar.xz |
Cleaned up the code. Moved functions to library instead (to be able to reuse code)
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@569 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openntpd-status-html.lsp')
-rw-r--r-- | openntpd-status-html.lsp | 18 |
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)) --]] ?> + |