From d778aa11d469fa8c415c471dfae92272da14d83b Mon Sep 17 00:00:00 2001 From: Andreas Brodmann Date: Wed, 28 Nov 2007 16:16:40 +0000 Subject: /acf/squid: further updates to the dansguardian config git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@382 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dansguardian-controller.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'dansguardian-controller.lua') 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 + -- cgit v1.2.3