diff options
author | Zach LeBar <zach@zachlebar.com> | 2012-04-03 18:57:11 +0000 |
---|---|---|
committer | Zach LeBar <zach@zachlebar.com> | 2012-04-03 18:57:11 +0000 |
commit | 6692843935d8e831750a23cea4547de105b0c50b (patch) | |
tree | 11c3e9405f7cd5f101a9a9d6bd0c8b5c11b81a48 /clamsmtp-model.lua | |
parent | dfcc407cee428c9b237a37467b966d3ce736e391 (diff) | |
download | acf-clamsmtp-master.tar.bz2 acf-clamsmtp-master.tar.xz |
Removing the use of controllerfunctions.lua and using the new 'handle_form()' found in acf_www-controller.lua. Also using 'handle_form()' in place of 'redirect_to_referrer()'.
Diffstat (limited to 'clamsmtp-model.lua')
-rw-r--r-- | clamsmtp-model.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clamsmtp-model.lua b/clamsmtp-model.lua index 06e69e6..832b13f 100644 --- a/clamsmtp-model.lua +++ b/clamsmtp-model.lua @@ -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() |