diff options
| author | Simon | 2011-03-10 21:09:05 +0100 |
|---|---|---|
| committer | Simon | 2011-03-10 21:09:05 +0100 |
| commit | 38f401c0106c021eafdbdca0b169a18ce1c078b1 (patch) | |
| tree | c8e50f8dd98dcfa56d4933ebc4e450625e9d7ae2 /application/controllers/ResourceController.php | |
| parent | verschleierung der primary keys (diff) | |
| download | pbs2-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.php | 5 |
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(); } |
