summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-15 15:57:50 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-15 15:57:50 +0000
commit4242abb8243fca998301ff494cb04219ef2419d5 (patch)
tree970083ec2b81fb8ea5b56daf9d1a61f839d151be
parentcd8a0fb6f76896cd6173be462ed3a818c946492a (diff)
downloadacf-shorewall-4242abb8243fca998301ff494cb04219ef2419d5.tar.bz2
acf-shorewall-4242abb8243fca998301ff494cb04219ef2419d5.tar.xz
Forgot to add the confirmation-view-file.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@578 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--shorewall-confirmation-html.lsp56
1 files changed, 56 insertions, 0 deletions
diff --git a/shorewall-confirmation-html.lsp b/shorewall-confirmation-html.lsp
new file mode 100644
index 0000000..d416763
--- /dev/null
+++ b/shorewall-confirmation-html.lsp
@@ -0,0 +1,56 @@
+<? local view = ... ?>
+
+<h1>SYSTEM INFO</h1>
+
+<DL>
+<dt>Program status</dt>
+<DD><?= view.status.status ?></DD>
+</DL>
+
+<DL>
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+</DL>
+
+<h1>SECURITY CONFIRMATION</h1>
+
+<h2>Are you sure you want to preform the previous action?</h2>
+<P>You should be aware that a wrong-configured firewall combined with wrong action could lead to lost communication.</P>
+<P>If you know what you are doing, you can safely confirm you action below.</P>
+<P>If you are not sure what you are doing, you should go back and check your configurations and maybe do a 'check config' to see status on your configurations.</P>
+
+<DL>
+<DT>Undo and go back</dt>
+<DD><form name="undo" action="<?= view.url ?>" method="POST">
+<input type=submit class="submit" name="confirm" value="Back">
+</form></DD>
+</DL>
+
+<dl>
+<dt>Preform check of configs</dt>
+<dd><form name="check" action="<?= view.url .. "/check" ?>" method="POST"><input type=submit name="check" value="check" class="submit"></form></dd>
+</dl>
+
+<? if (view.previousaction) then ?>
+ <DL>
+ <dt>Confirm action</dt>
+ <DD>
+ <form name="confirm" action="" method="POST">
+ <input type=submit class="submit" name="confirm" value="<?= view.previousaction ?>">
+ </form>
+ </DD>
+ </DL>
+<? elseif (view.startstop) and (view.startstop.cmdresult) then ?>
+ <DL>
+ <DT>Result of previous action</DT>
+ <DD><pre><?= view.startstop.cmdresult ?></pre></DD>
+ </DL>
+<? end ?>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>
+