diff options
author | Zach LeBar <zach@zachlebar.com> | 2012-04-03 15:53:28 +0000 |
---|---|---|
committer | Zach LeBar <zach@zachlebar.com> | 2012-04-03 15:53:28 +0000 |
commit | 74cd43acdab91246edf4acaf5f646eed2063f39e (patch) | |
tree | d9770ea58ec57b03bfb21ba6e672dae49d995e0a /clamav-model.lua | |
parent | 445ef74cdd43627330172f33b01a00f5681e7d9c (diff) | |
download | acf-clamav-master.tar.bz2 acf-clamav-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 'clamav-model.lua')
-rw-r--r-- | clamav-model.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/clamav-model.lua b/clamav-model.lua index 6735e1b..20d1885 100644 --- a/clamav-model.lua +++ b/clamav-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() @@ -43,8 +47,8 @@ function getfilelist() return cfe({ type="list", value=listed_files, label="ClamAV File List" }) end -function getfiledetails(filename) - return modelfunctions.getfiledetails(filename, filelist) +function getfiledetails(clientdata) + return modelfunctions.getfiledetails(clientdata.filename, filelist) end function updatefiledetails(filedetails) |