summaryrefslogtreecommitdiffstats
path: root/shorewall-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-10 13:40:16 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-10 13:40:16 +0000
commit654032c27bce388045a78fd61af8f3228d1c334f (patch)
treec1174834b5324295c0cec1d3b0d8ed16e00f5fad /shorewall-controller.lua
parent7461680e0b260c680c39afd3e3687fd43a0d2e38 (diff)
downloadacf-shorewall-654032c27bce388045a78fd61af8f3228d1c334f.tar.bz2
acf-shorewall-654032c27bce388045a78fd61af8f3228d1c334f.tar.xz
Renamed tab and reorganized first page
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@531 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-controller.lua')
-rw-r--r--shorewall-controller.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua
index 9e16912..6b47dbb 100644
--- a/shorewall-controller.lua
+++ b/shorewall-controller.lua
@@ -4,7 +4,7 @@ module(..., package.seeall)
-- We use the self.conf table because it already has prefix,controller,etc
-- The redir code is defined in the application error handler (acf-controller)
local list_redir = function (self)
- self.conf.action = "read"
+ self.conf.action = "status"
self.conf.type = "redir"
error (self.conf)
end
@@ -28,7 +28,7 @@ check = function(self)
end
-read = function(self)
+status = function(self)
if self.clientdata.cmd == "check" then
self.conf.action = "check"
self.conf.type = "redir"
@@ -37,7 +37,7 @@ read = function(self)
if self.clientdata.cmd == "restart" then
return ( {programstats = self.model:restart_service(), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller } )
end
- return ( {programstats = self.model:get_status(), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller } )
+ return ( {status = self.model:get_status(), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller } )
end
advanced = function(self)