From 529553e13a8aeec8c5aef5f0d44415d08c854212 Mon Sep 17 00:00:00 2001 From: Zach LeBar Date: Thu, 22 Mar 2012 13:13:27 +0000 Subject: Changed amavis-controller.lua to use new handle_form() functions found in acf_www-controller.lua instead of the controllerfunctions.lua version and also instead of redirect_to_referrer(). Made corresponding changes to amavis-model.lua to make everything work. --- amavis-model.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'amavis-model.lua') diff --git a/amavis-model.lua b/amavis-model.lua index d3d9ce0..2d7fce8 100644 --- a/amavis-model.lua +++ b/amavis-model.lua @@ -16,8 +16,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