diff options
Diffstat (limited to 'weblog-controller.lua')
-rw-r--r-- | weblog-controller.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/weblog-controller.lua b/weblog-controller.lua index b801740..716df58 100644 --- a/weblog-controller.lua +++ b/weblog-controller.lua @@ -80,20 +80,6 @@ function downloadlogview(self) return file end -function downloadselected(self) - thisdate=os.date() - self.conf.viewtype = "stream" - local retval = viewselected(self) - local file = cfe({ type="longtext", value="", label="Weblog-resnet-selected-"..thisdate..".tab" }) - local content = {"clientuserid\tclientip\tlogdatetime\turi\tbytes\treason\tscore\treason\tbadyesno\tdeniedyesno\tbypassyesno"} - for i,log in ipairs(retval.value.log.value) do - content[#content+1] = string.format("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t", - log.clientuserid, log.clientip, log.logdatetime, log.uri, log.bytes, log.reason, log.score or "0", log.reason, log.badyesno, log.deniedyesno, log.bypassyesno ) - end - file.value = table.concat(content, "\n") - return file -end - function checkselected(self) return controllerfunctions.handle_form(self, self.model.geteditselected, self.model.editselected, self.clientdata, "Submit", "Submit select update", "Select fields updated") end @@ -102,10 +88,6 @@ function clearselected(self) return self:redirect_to_referrer(self.model.clearselected()) end -function viewselected(self) - return self.model.getweblog(self.clientdata.activelog, self.clientdata.clientuserid, self.clientdata.starttime, self.clientdata.endtime, self.clientdata.clientip, self.clientdata.badyesno, self.clientdata.deniedyesno, self.clientdata.bypassyesno, self.clientdata.score, self.clientdata.urisearch, self.clientdata.sortby, self.clientdata.getselected, clientdata.focus) -end - function viewusagestats(self) return self.model.getusagestats() end |