diff options
Diffstat (limited to 'shorewall-check-html.lsp')
-rw-r--r-- | shorewall-check-html.lsp | 41 |
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)) +--]] +?> |