summaryrefslogtreecommitdiffstats
path: root/openntpd-read-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openntpd-read-html.lsp')
-rw-r--r--openntpd-read-html.lsp17
1 files changed, 13 insertions, 4 deletions
diff --git a/openntpd-read-html.lsp b/openntpd-read-html.lsp
index 5c88cbc..08c5336 100644
--- a/openntpd-read-html.lsp
+++ b/openntpd-read-html.lsp
@@ -7,15 +7,15 @@
<dt>Program version</dt>
<dd><? io.write(view.filecontent.version) ?></dd>
-<dt>Process running or not</dt>
+<dt>Process status</dt>
<dd><? io.write(view.filecontent.status) ?></dd>
<dt>Current time</dt>
<dd><? io.write(view.filecontent.date) ?></dd>
-<? --[[ ?>
+<? ---[[ ?>
<dt>TimeZone</dt>
-<dd>xxx</dd>
+<dd><? io.write(view.filecontent.timezone) ?></dd>
<? --]] ?>
<h2>NTPD SETTINGS</h2>
@@ -64,8 +64,17 @@ for i = 1, table.maxn(view.filecontent.listen) do ?>
<dd><input type="text" name="" value=""> <input type="submit" value="Add"></dd>
+<h2>MANAGEMENT</h2>
+
+<dt>Start NTPD</dt>
+<dd><form name="check" action="" method="POST"><input type=submit name="cmd" value="start" style="width:100px"></form><? if (view.startup.status) then io.write(view.startup.status) end ?></dd>
+
+<dt>Stop NTPD</dt>
+<dd><form name="restart" action="" method="POST"><input type=submit name="cmd" value="stop" style="width:100px"></form><? if (view.shutdown.status) then io.write(view.shutdown.status) end ?></dd>
+
+
<?
---[[ DEBUG INFORMATION
+---[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]