diff options
Diffstat (limited to 'dansguardian-edit-html.lsp')
-rw-r--r-- | dansguardian-edit-html.lsp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dansguardian-edit-html.lsp b/dansguardian-edit-html.lsp new file mode 100644 index 0000000..d74ea5d --- /dev/null +++ b/dansguardian-edit-html.lsp @@ -0,0 +1,34 @@ +<? + 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:600px"><? io.write( service.config ) ?></textarea></td></tr> +</table><br> +<input type="hidden" name="name" value="<? io.write( service.name ) ?>"> + +<input type="submit" name="cmd" value="save" style="width:100px"><br> +</form> + |