summaryrefslogtreecommitdiffstats
path: root/template-logfiles-download-html.lsp
blob: a77f3417efb438927260c6b5170cc0a0ba37482b (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="Mika-send-me-the-filename.txt" 
<? 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) 
  
  ?>