From 6692843935d8e831750a23cea4547de105b0c50b Mon Sep 17 00:00:00 2001 From: Zach LeBar Date: Tue, 3 Apr 2012 18:57:11 +0000 Subject: Fixing acf-clamsmtp to work with changes made to acf-core. 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()'. --- clamsmtp-model.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'clamsmtp-model.lua') 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() -- cgit v1.2.3