diff options
Diffstat (limited to 'clamav-controller.lua')
-rw-r--r-- | clamav-controller.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clamav-controller.lua b/clamav-controller.lua index 20baa25..0cb3f25 100644 --- a/clamav-controller.lua +++ b/clamav-controller.lua @@ -17,6 +17,10 @@ function details(self) return self.model.getstatusdetails() end +function listfiles(self) + return self.model.getfilelist() +end + function expert(self) - return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit ClamAV Config", "Configuration Set") + return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit ClamAV File", "File Saved") end |