summaryrefslogtreecommitdiffstats
path: root/shorewall-check-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-15 13:44:22 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-15 13:44:22 +0000
commit91f600e62d83f942e722dd18e7c42c244557a610 (patch)
treeb1374d3109b9140da0f0fecde2a8d739e091f9b3 /shorewall-check-html.lsp
parent880d1fbbed5e15454383dccf7c3497a8772df118 (diff)
downloadacf-shorewall-91f600e62d83f942e722dd18e7c42c244557a610.tar.bz2
acf-shorewall-91f600e62d83f942e722dd18e7c42c244557a610.tar.xz
Created a confirmation when you start/stop/restart the firewall.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@572 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-check-html.lsp')
-rw-r--r--shorewall-check-html.lsp41
1 files changed, 35 insertions, 6 deletions
diff --git a/shorewall-check-html.lsp b/shorewall-check-html.lsp
index c41480a..e470d44 100644
--- a/shorewall-check-html.lsp
+++ b/shorewall-check-html.lsp
@@ -1,16 +1,45 @@
<? local view = ... ?>
-<h1>Firewall configuration</h1>
+<h1>SYSTEM INFO</h1>
-<h2>SHOREWALL CHECK RESULT</h2>
+<dt>Program status</dt>
+<DD><?= view.status.status ?></DD>
+
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+
+<h1>CONFIGURATION</h1>
+
+<h2>CHECK CONFIG</h2>
<textarea name="checkresult"><?= view.check.result ?></textarea>
-<h2>MANAGEMENT</h2>
+<H1>MANAGEMENT</H1>
+<dl>
<dt>Preform check of configs</dt>
-<dd><form name="check" action="" method="POST"><input type=submit name="cmd" value="check" class="submit"></form></dd>
+<dd><form name="check" action="" method="POST"><input type=submit name="check" value="check" class="submit"></form></dd>
+</dl>
+
+<dl>
+<dt>Program controll-panel</dt>
+<dd><form name="cmd" action="<?= view.confirm_url ?>" method="POST">
+<input type=submit class="submit" name="cmd" value="start">
+<input type=submit class="submit" name="cmd" value="stop">
+<input type=submit class="submit" name="cmd" value="restart">
+</form></dd>
+</dl>
-<dt>Preform fw restart</dt>
-<dd><form name="check" action="<? io.write(view.url .. "/read") ?>" method="POST"><input type=submit name="cmd" value="restart" class="submit"></form><? if (view.check.restart) then io.write(view.programstats.restart) end ?></dd>
+<? if (view.startstop) and (view.startstop.cmdresult) then ?>
+<dl>
+<dt>Previous action result</dt>
+<dd><pre><?= view.startstop.cmdresult?></pre></dd>
+</dl>
+<? end ?>
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>