summaryrefslogtreecommitdiffstats
path: root/amavis-controller.lua
diff options
context:
space:
mode:
authorZach LeBar <zach@zachlebar.com>2012-03-22 13:13:27 +0000
committerZach LeBar <zach@zachlebar.com>2012-03-22 13:13:27 +0000
commita393dcb009069572f91bb390eff97d375cbea053 (patch)
tree038447919be5e44437429ca854e68ee1358cbea6 /amavis-controller.lua
parenta30b97b092520b2cf6665eccd9a4978a182d6723 (diff)
downloadacf-amavisd-new-a393dcb009069572f91bb390eff97d375cbea053.tar.bz2
acf-amavisd-new-a393dcb009069572f91bb390eff97d375cbea053.tar.xz
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 vmail-model.lua to make everything work.
Diffstat (limited to 'amavis-controller.lua')
-rw-r--r--amavis-controller.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/amavis-controller.lua b/amavis-controller.lua
index a7bc988..0648aac 100644
--- a/amavis-controller.lua
+++ b/amavis-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,9 +7,9 @@ function status(self)
end
function startstop(self)
- return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata)
+ return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
end
function expert(self)
- return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Amavis Config", "Configuration Set")
+ return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Amavis Config", "Configuration Set")
end