summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
authorSimon2011-03-10 21:09:05 +0100
committerSimon2011-03-10 21:09:05 +0100
commit38f401c0106c021eafdbdca0b169a18ce1c078b1 (patch)
treec8e50f8dd98dcfa56d4933ebc4e450625e9d7ae2 /application/controllers/ResourceController.php
parentverschleierung der primary keys (diff)
downloadpbs2-38f401c0106c021eafdbdca0b169a18ce1c078b1.tar.gz
pbs2-38f401c0106c021eafdbdca0b169a18ce1c078b1.tar.xz
pbs2-38f401c0106c021eafdbdca0b169a18ce1c078b1.zip
kcl auch als file senden & Server für Testbetrieb nur vom Uni-Netz erreichbar
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index b70c589..92be437 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -102,6 +102,11 @@ class ResourceController extends Zend_Controller_Action
$bmemapper->find($bmeID,$bme);
if($bme->getKcl() != null){
+ header('Content-Type: text/html');
+ $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $HTTP_USER_AGENT) == 'IE') ? 'inline' : 'attachment';
+ header('Content-Disposition: ' . $content_disp . '; filename="kcl.txt"');
+ header('Pragma: no-cache');
+ header('Expires: 0');
echo $bme->getKcl();
}