blob: 02c3e7848917bb28cea882aa27e34f2b172e36ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<? local pageinfo , 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)
?>
|