dansguardian-general-html.lsp 1.93 KB
Newer Older
Ted Trask's avatar
Ted Trask committed
1
<% local form, viewlibrary, page_info, session = ...
2
htmlviewfunctions = require("htmlviewfunctions")
3
%>
4

Ted Trask's avatar
Ted Trask committed
5
<% if viewlibrary and viewlibrary.dispatch_component then
6 7
	viewlibrary.dispatch_component("status")
end %>
8

9
<% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Configuration"}), page_info) %>
10
<%
11
	htmlviewfunctions.displayformstart(form, page_info)
12 13 14 15
	for field,val in pairs(form.value) do
		val.name = field
	end
%>
16

17
<% local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="General"}), page_info, htmlviewfunctions.incrementheader(header_level)) %>
18 19 20 21
<p>
These parameters define the interface and port that Dansguardian uses to accept connections.
</p>

22
<%
23 24
	htmlviewfunctions.displayformitem(form.value.filterip)
	htmlviewfunctions.displayformitem(form.value.filterport)
25
%>
26

27 28
<% htmlviewfunctions.displaysectionend(header_level2) %>
<% htmlviewfunctions.displaysectionstart(cfe({label="Proxy service"}), page_info, header_level2) %>
29 30 31 32
<p>
These parameters define the ip address and port that Dansguardian should forward requests on to.
</p>

33
<%
34 35
	htmlviewfunctions.displayformitem(form.value.proxyip)
	htmlviewfunctions.displayformitem(form.value.proxyport)
36
%>
37

38 39
<% htmlviewfunctions.displaysectionend(header_level2) %>
<% htmlviewfunctions.displaysectionstart(cfe({label="Filter Actions"}), page_info, header_level2) %>
40
<p>
Ted Trask's avatar
Ted Trask committed
41 42
These parameters define how sensitive the filter is, and where to redirect requests if the content filter
determines that the content is inappropriate. The "naughtynesslimit" is more sensitive the lower it is set.
43 44 45
The author recommends 50 for "young children", 100 for "older children" and 160 for "young adults".
</p>

46
<%
47 48
	htmlviewfunctions.displayformitem(form.value.accessdeniedaddress)
	htmlviewfunctions.displayformitem(form.value.naughtynesslimit)
49
%>
50

51
<% htmlviewfunctions.displaysectionend(header_level2) %>
52
<% htmlviewfunctions.displayformend(form) %>
53
<% htmlviewfunctions.displaysectionend(header_level) %>