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 | |
| 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
| -rw-r--r-- | application/controllers/ResourceController.php | 5 | ||||
| -rw-r--r-- | public/.htaccess | 3 |
2 files changed, 8 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(); } diff --git a/public/.htaccess b/public/.htaccess index 1a7fb83..c1ef5e5 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,3 +1,6 @@ +Deny from all +Allow from 132.230.0.0/255.255.0.0 + RewriteEngine On RewriteRule ^(media) - [L] |
