blob: 0378928c27d67e9a4c9c0bff7b6641eb7a0dadf9 (
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
26
27
|
<? local view = ... ?>
<h1>Firewall configuration</h1>
<h2>SHOREWALL CHECK RESULT</h2>
<textarea name="checkresult" style="width:100%;height:400px;"><?= view.check.result ?></textarea>
<h2>SHOW CONFIG FILES</h2>
<dt><?= html.link{value = view.url .. "/list", label="View all files/configs" } ?></dt>
<dd>Provide a autogenerated list of files in '/etc/shorewall'.</dd>
<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>
<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>
<?
--[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]
?>
|