diff options
| -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] |
