summaryrefslogtreecommitdiffstats
path: root/shorewall-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'shorewall-status-html.lsp')
-rw-r--r--shorewall-status-html.lsp30
1 files changed, 30 insertions, 0 deletions
diff --git a/shorewall-status-html.lsp b/shorewall-status-html.lsp
new file mode 100644
index 0000000..4af95f6
--- /dev/null
+++ b/shorewall-status-html.lsp
@@ -0,0 +1,30 @@
+<? local view = ... ?>
+
+<h1>SYSTEM INFO</h1>
+
+<h2>SYSTEM INFO</h2>
+
+<dt>Program status</dt>
+<DD><?= view.status.status ?></DD>
+
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+
+<H3>PROGRAM SPECIFIC OPTIONS/INFORMATION</H3>
+<dt>Program reports</dt>
+<dd><?= view.status.state ?></dd>
+
+<? --[[ ?>
+<dt>Preform check of configs</dt>
+<dd><form name="check" action="" method="POST"><input type="submit" name="cmd" value="check" class="submit"></form></dd>
+
+<dt>Preform fw restart</dt>
+<dd><form name="restart" action="" method="POST"><input type="submit" name="cmd" value="restart" class="submit"></form><? if (view.programstats.restart) then io.write(view.programstats.restart) end ?></dd>
+<? --]] ?>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>