blob: d5d3ec3b2ad35a34d1af4334c898d2cd91cadeaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<? local pageinfo , mainmenu, submenu, viewtable, session = ...
html=require("html") ?>
Status: 200 OK
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="<?= viewtable.logfile.name ?>"
<? if (session.id) then
io.write( html.cookie.set("sessionid", session.id) )
else
io.write (html.cookie.unset("sessionid"))
end
-- headers separated by a blank line
io.write ("\n")
local func = haserl.loadfile(viewtable.logfile.value)
func (viewtable)
?>
|