summaryrefslogtreecommitdiffstats
path: root/dansguardian-edit-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'dansguardian-edit-html.lsp')
-rw-r--r--dansguardian-edit-html.lsp35
1 files changed, 35 insertions, 0 deletions
diff --git a/dansguardian-edit-html.lsp b/dansguardian-edit-html.lsp
new file mode 100644
index 0000000..fe6205c
--- /dev/null
+++ b/dansguardian-edit-html.lsp
@@ -0,0 +1,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>
+