summaryrefslogtreecommitdiffstats
path: root/template-logfiles-download-html.lsp
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@tetrasec.net>2007-11-16 15:15:31 +0000
committerNathan Angelacos <nangel@tetrasec.net>2007-11-16 15:15:31 +0000
commitdd24702ccfae41029a29f68d74c9f8ae107e224b (patch)
tree0e27bfeb86ef4a3c721f4bc03b70a73da21636f3 /template-logfiles-download-html.lsp
parent9ea737ed766fddb721f1edb1e22781a12c5c07c5 (diff)
downloadacf-alpine-baselayout-dd24702ccfae41029a29f68d74c9f8ae107e224b.tar.bz2
acf-alpine-baselayout-dd24702ccfae41029a29f68d74c9f8ae107e224b.tar.xz
Add new template
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@320 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'template-logfiles-download-html.lsp')
-rw-r--r--template-logfiles-download-html.lsp19
1 files changed, 19 insertions, 0 deletions
diff --git a/template-logfiles-download-html.lsp b/template-logfiles-download-html.lsp
new file mode 100644
index 0000000..a77f341
--- /dev/null
+++ b/template-logfiles-download-html.lsp
@@ -0,0 +1,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)
+
+ ?>