From: hickert Date: Tue, 7 Mar 2006 13:23:26 +0000 (+0000) Subject: Added filename to getkiosk header X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c10d1b618eaf92e4245ae4cf24a50c63ac381926;p=gosa.git Added filename to getkiosk header git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2818 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/getkiosk.php b/html/getkiosk.php index f4a41e263..bd8d0e8e7 100644 --- a/html/getkiosk.php +++ b/html/getkiosk.php @@ -32,12 +32,16 @@ function getkiosk ($id) } $display = file_get_contents($id); + + $nn = preg_replace("/^.*\//","",$id); + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); header("Cache-Control: post-check=0, pre-check=0"); header("Content-type: application/octet-stream"); + header("Content-Disposition: attachment; filename=".$nn); echo $display; }