blob: fe6205c94e17b05ce25b8fd60e60dcbf442db916 (
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
|
<?
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">
<pre style="color: #ff2020;"><? io.write( service.cfgerr ) ?></pre><br>
These parameters define the interface and port that Dansguardian uses to accept connections.<br><br>
<table>
<tr><td><textarea name="config" style="width:100%"><? io.write( service.config ) ?></textarea></td></tr>
</table><br>
<input class="text" type="hidden" name="name" value="<? io.write( service.name ) ?>">
<h3>Save Changes</h3>
<dt>Save the content of the above box</dt><dd><input class="submit" type="submit" name="cmd" value="save" style="width:100px"></dd>
</form>
|