diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2008-01-16 14:47:54 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2008-01-16 14:47:54 +0000 |
commit | d3179cb78a9e75faffeba5a92d3f43a4872338a4 (patch) | |
tree | 836b3f481f479202d8ba25be0acbe38a6fff95d0 /squid-controller.lua | |
parent | 56913d3a094479fcb6093c7c2cde3c8fb94ed5bb (diff) | |
download | acf-squid-d3179cb78a9e75faffeba5a92d3f43a4872338a4.tar.bz2 acf-squid-d3179cb78a9e75faffeba5a92d3f43a4872338a4.tar.xz |
unification of the different squid-views
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@591 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-controller.lua')
-rw-r--r-- | squid-controller.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/squid-controller.lua b/squid-controller.lua index f6a90f2..1c093db 100644 --- a/squid-controller.lua +++ b/squid-controller.lua @@ -102,6 +102,8 @@ end authentication = function( self ) + local info = { status = { value = "stopped" }, version = { value = self.model.get_squid_version() }, srvctrl = { value = srvctrl} }; + local option = { script = ENV["SCRIPT_NAME"], prefix = self.conf.prefix, controller = self.conf.controller, @@ -139,9 +141,10 @@ authentication = function( self ) end service.status = self.model.get_status() + info.status.value = service.status service.config, service.error = self.model.get_basic_config() - return ( cfe ({ option = option, service = service }) ) + return ( cfe ({ option = option, service = service, info = info }) ) end advanced = function( self ) @@ -197,6 +200,8 @@ end ntlm = function( self ) + local info = { status = { value = "stopped" }, version = { value = self.model.get_winbind_version() }, srvctrl = { value = srvctrl} }; + local option = { script = ENV["SCRIPT_NAME"], prefix = self.conf.prefix, controller = self.conf.controller, @@ -219,9 +224,10 @@ ntlm = function( self ) end service.status = self.model.get_status_winbindd() + info.status.value = service.status service.config = self.model.get_winbindd_config() - return ( cfe ({ option = option, service = service }) ) + return ( cfe ({ option = option, service = service, info = info }) ) end saccess = function( self ) |