summaryrefslogtreecommitdiffstats
path: root/dovecot-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:11:53 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:11:53 +0000
commit51de0ea690a7b5d213479b6d0e7b69b38846ad1d (patch)
tree64e0dd8e24b0cee586f47e214e6cff43eefb1e93 /dovecot-model.lua
parent89f62735d20f0efc08e2bf95667ede23f7bae3ea (diff)
downloadacf-dovecot-51de0ea690a7b5d213479b6d0e7b69b38846ad1d.tar.bz2
acf-dovecot-51de0ea690a7b5d213479b6d0e7b69b38846ad1d.tar.xz
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'dovecot-model.lua')
-rw-r--r--dovecot-model.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/dovecot-model.lua b/dovecot-model.lua
index 06dc180..f85b795 100644
--- a/dovecot-model.lua
+++ b/dovecot-model.lua
@@ -2,8 +2,8 @@ module(..., package.seeall)
-- Load libraries
require("modelfunctions")
-require("fs")
-require("format")
+fs = require("acf.fs")
+format = require("acf.format")
-- Set variables
local configfile = "/etc/dovecot/dovecot.conf"
@@ -18,8 +18,12 @@ local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
-- ################################################################################
-- PUBLIC FUNCTIONS
-function startstop_service(action)
- return modelfunctions.startstop_service(processname, action)
+function get_startstop(clientdata)
+ return modelfunctions.get_startstop(processname)
+end
+
+function startstop_service(startstop, action)
+ return modelfunctions.startstop_service(startstop, action)
end
function getstatus()