summaryrefslogtreecommitdiffstats
path: root/dansguardian-controller.lua
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-28 16:16:40 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-28 16:16:40 +0000
commitd778aa11d469fa8c415c471dfae92272da14d83b (patch)
tree580449643ce311c4991e940397e98d1105648e83 /dansguardian-controller.lua
parent63e86a0669837c3845db1eb581f58ba388705ced (diff)
downloadacf-squid-d778aa11d469fa8c415c471dfae92272da14d83b.tar.bz2
acf-squid-d778aa11d469fa8c415c471dfae92272da14d83b.tar.xz
/acf/squid: further updates to the dansguardian config
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@382 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dansguardian-controller.lua')
-rw-r--r--dansguardian-controller.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/dansguardian-controller.lua b/dansguardian-controller.lua
index 3259f8c..73813e1 100644
--- a/dansguardian-controller.lua
+++ b/dansguardian-controller.lua
@@ -154,3 +154,19 @@ edit = function( self )
return ( cfe ({ option = option, service = service }) )
end
+category = function( self )
+
+ local option = { script = ENV["SCRIPT_NAME"],
+ prefix = self.conf.prefix,
+ controller = self.conf.controller,
+ action = self.conf.action,
+ extra = ""
+ }
+
+ local service = { message="", status="", config="" }
+
+ service.config = self.model.get_categories()
+
+ return ( cfe ({ option = option, service = service }) )
+end
+