From 4837cd73c1d79b17af443e0335cc04259505cd23 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 7 May 2008 15:10:35 +0000 Subject: Saving work for today. Sketching on a idea on howto edit categories (now showing if a category exists but is not configured to be used/activated in the main config). git-svn-id: svn://svn.alpinelinux.org/acf/dansguardian/trunk@1109 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dansguardian-category-html.lsp | 75 ++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 47 deletions(-) (limited to 'dansguardian-category-html.lsp') diff --git a/dansguardian-category-html.lsp b/dansguardian-category-html.lsp index 1edcc71..66c972d 100644 --- a/dansguardian-category-html.lsp +++ b/dansguardian-category-html.lsp @@ -37,61 +37,42 @@ displayinfo(myform,tags,"viewonly") ?> -

General Information

-

DansGuardian is web content filtering software. It works as a web proxy, -making web requests in behalf of the client, and inspecting the returned -content before passing on to the client. DansGuardian uses phraselists to -identify harmful content. This means that updated "blacklists" are -generally not necessary. DansGuardian must be used in combination with a -"smart proxy", such as squid. -This page lets you manually add/remove categories for DansGuardian.

+

Modify Categories

-

This process runs as a service. When you make and save changes, the configuration -files for the service are changed. However, the changes will not be applied -until you restart the service.

- -

Categories

-

Add Category

-

-To add a category, or to add a file to an existing category, please fill in the corresponding information below. -(Due to a limitation with DansGuardian, all categories must be lowercase.) -

-
-
Category name
-
Category files
weighted banned exception
- -
- -

-

- -

Delete Category

-

-Select the categories you wish to delete. Please note that this deletes the category, but does not -delete the link in the corresponding phraselist above. You will also need to edit the phraselist file -above if you delete a category. -

+

Category list

-
Categories available
(please check the ones you want to delete) " .. v .. "\n" ) - end -?> -
- "..v.name.."\n") + io.write("
") + if (v.option) then + for k1,v1 in pairs(v.option) do + io.write("" ) +-- for k2,v2 in pairs(v1) do + --io.write(html.form(v1.type(v1))) +-- io.write("") +-- end + io.write("\n") + end + io.write("\n" ) + end + io.write("
".. v1.name .. "[ Edit ]") +-- io.write("[ " ..html.link(v2) .. " ] ") +-- io.write(tostring(v2)) +-- io.write("
") +--io.write( "
" .. v .. "\n" ) +end ?>
+

MANAGEMENT

-- cgit v1.2.3