blob: 3d1c0e60121ffdc2353ed2ef8b20cb7139e0455c (
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
|
<%
local form = ...
local data = form.option
local service = form.service
local config = form.service.config
local srv1fill = ""
local srv2fill = "disabled"
if service.status == "running" then
srv1fill = "disabled"
srv2fill = ""
end
local ifthen = function( variable, value, result )
if variable == value then
io.write( result )
end
end
%>
<h1>Content Filter (<% io.write( service.name ) %>)</h1>
<form action="" method="POST">
<p><pre class=error><% io.write( service.cfgerr ) %></pre></p>
<p>These parameters define the interface and port that Dansguardian uses to accept connections.</p>
<textarea name="config"><% io.write( service.config ) %></textarea>
<input class="text" type="hidden" name="name" value="<% io.write( service.name ) %>">
<h3>Save Changes</h3>
<dl><dt>Save the content of the above box</dt><dd><input class="submit" type="submit" name="cmd" value="save"></dd></dl>
</form>
|