blob: 4ec6f5aab6a124d00af3d6342bbec8902869ff3f (
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(pageinfo.viewfile)
func (viewtable)
?>
|