summaryrefslogtreecommitdiffstats
path: root/shorewall-check-html.lsp
blob: 0fcfa0e77fcf24dea6b4d653b1aaad878fe74bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<? local view = ... ?>

<h1>Firewall configuration</h1>

<h2>MENU</h2>

<dt><?= html.link{value = view.url .. "/", label="Home" } ?></dt>
<dd>Go back to start page</dd>

<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 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>