summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/controllers/ResourceController.php
diff options
context:
space:
mode:
authormichael pereira2011-03-16 16:35:15 +0100
committermichael pereira2011-03-16 16:35:15 +0100
commit26deb7a640aea0653dae33f9b9d36f552b58c07d (patch)
tree3d8c62cdd4906322cf518e618479b061ccf41e8d /application/modules/dev/controllers/ResourceController.php
parentDefault KCL wird jetzt automatisch geupdated (diff)
downloadpbs2-26deb7a640aea0653dae33f9b9d36f552b58c07d.tar.gz
pbs2-26deb7a640aea0653dae33f9b9d36f552b58c07d.tar.xz
pbs2-26deb7a640aea0653dae33f9b9d36f552b58c07d.zip
KCLAppend hinzugefuegt, KCL fertig :-)
Diffstat (limited to 'application/modules/dev/controllers/ResourceController.php')
-rw-r--r--application/modules/dev/controllers/ResourceController.php21
1 files changed, 13 insertions, 8 deletions
diff --git a/application/modules/dev/controllers/ResourceController.php b/application/modules/dev/controllers/ResourceController.php
index defab76..653b70d 100644
--- a/application/modules/dev/controllers/ResourceController.php
+++ b/application/modules/dev/controllers/ResourceController.php
@@ -97,14 +97,19 @@ class dev_ResourceController extends Zend_Controller_Action
$bme = new Application_Model_BootMenuEntries();
$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();
- }
+ 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');
+
+ if($bme->getKcl() != null)
+ $result = $bme->getKcl() . " " . $bme->getKclappend();
+ else
+ $result = $bme->getKclappend();
+
+ echo $result;
+
}