summaryrefslogtreecommitdiffstats
path: root/shorewall-check-html.lsp
blob: 6e3939984b54c3ccdb4520987edebf12f05adbc8 (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
28
29
30
31
32
33
34
35
36
37
38
<% local form, viewlibrary = ... 
require("viewfunctions")
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
io.write(html.cfe_unpack(view))
io.write("</span>")
--]]
%>

<% if viewlibrary and viewlibrary.dispatch_component then
	viewlibrary.dispatch_component("statusbasic")
end %>

<H1>CONFIGURATION</H1>
<% local myform = form.config %>

<H2>CHECK CONFIGURATION</H2>
<% 
io.write(html.form[form.config.checkresult.type](form.config.checkresult))
%>

<form name="management" action="" method="POST">
<%
-- Management buttons
local myform = form.management
local tags = { "restart" }
if (myform) then
	io.write("<H1>MANAGEMENT</H1>\n<DL>")
	displaymanagement(myform,tags)
	io.write("</DL>")
end
%>
</form>

<% if viewlibrary and viewlibrary.dispatch_component then
	viewlibrary.dispatch_component("startstop")
end %>