diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-01 21:59:26 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-01 21:59:26 +0000 |
commit | c6558f487e6449d9400270575e0a5b28fb5a31a4 (patch) | |
tree | eb228d690155ed04a0ca876d56dd7a7a4d3c503d /clamsmtp-controller.lua | |
download | acf-clamsmtp-c6558f487e6449d9400270575e0a5b28fb5a31a4.tar.bz2 acf-clamsmtp-c6558f487e6449d9400270575e0a5b28fb5a31a4.tar.xz |
Added clamav and clamsmtp controllers with basic functionality.
git-svn-id: svn://svn.alpinelinux.org/acf/clamsmtp/trunk@1661 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'clamsmtp-controller.lua')
-rw-r--r-- | clamsmtp-controller.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/clamsmtp-controller.lua b/clamsmtp-controller.lua new file mode 100644 index 0000000..f3d4848 --- /dev/null +++ b/clamsmtp-controller.lua @@ -0,0 +1,22 @@ +module(..., package.seeall) + +-- Load libraries +require("controllerfunctions") + +default_action = "status" + +function status(self) + return self.model.getstatus() +end + +function startstop(self) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata) +end + +function details(self) + return self.model.getstatusdetails() +end + +function expert(self) + return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit ClamSMTP Config", "Configuration Set") +end |