diff options
Diffstat (limited to 'shorewall-check-html.lsp')
-rw-r--r-- | shorewall-check-html.lsp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/shorewall-check-html.lsp b/shorewall-check-html.lsp index 0378928..a31b947 100644 --- a/shorewall-check-html.lsp +++ b/shorewall-check-html.lsp @@ -2,20 +2,24 @@ <h1>Firewall configuration</h1> -<h2>SHOREWALL CHECK RESULT</h2> -<textarea name="checkresult" style="width:100%;height:400px;"><?= view.check.result ?></textarea> +<h2>MENU</h2> -<h2>SHOW CONFIG FILES</h2> +<dt><?= html.link{value = view.url .. "/", label="Home" } ?></dt> +<dd>Go back to start page</dd> -<dt><?= html.link{value = view.url .. "/list", label="View all files/configs" } ?></dt> +<dt><?= html.link{value = view.url .. "/advanced", label="Advanced" } ?></dt> <dd>Provide a autogenerated list of files in '/etc/shorewall'.</dd> + +<h2>SHOREWALL CHECK RESULT</h2> +<textarea name="checkresult" style="width:100%;height:400px;"><?= view.check.result ?></textarea> + <h2>MANAGEMENT</h2> <dt>Preform check of configs</dt> <dd><form name="check" action="" method="POST"><input type=submit name="cmd" value="check" style="width:100px"></form></dd> -<dt>Preform restart of firewall</dt> +<dt>Preform fw restart</dt> <dd><form name="check" action="<? io.write(view.url .. "/read") ?>" method="POST"><input type=submit name="cmd" value="restart" style="width:100px"></form><? if (view.check.restart) then io.write(view.programstats.restart) end ?></dd> <? |