diff options
Diffstat (limited to 'application/controllers/ResourceController.php')
| -rw-r--r-- | application/controllers/ResourceController.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php index 4a3d9fc..f6b63e2 100644 --- a/application/controllers/ResourceController.php +++ b/application/controllers/ResourceController.php @@ -16,7 +16,7 @@ class ResourceController extends Zend_Controller_Action //TODO Error Messages if something failed $alpha = $this->_request->getParam('alpha'); - if($alpha != ""){ + if($alpha != "0"){ $alphasessionID = $alpha; $result = $sm->findBy(array('alphasessionID' => $alphasessionID),true); # print_a($result); @@ -74,6 +74,8 @@ class ResourceController extends Zend_Controller_Action header("Content-Length: ".filesize(getcwd()."/".$initname)); passthru( "cat ".$initname); + }else{ + header('HTTP/1.0 404 Not Found'); } } @@ -126,6 +128,8 @@ class ResourceController extends Zend_Controller_Action chdir("../resources/config/$configID/"); passthru( "cat default.tgz"); } + }else{ + header('HTTP/1.0 404 Not Found'); } } @@ -149,7 +153,10 @@ class ResourceController extends Zend_Controller_Action header("Content-Length: ".filesize(getcwd()."/".$kernelname)); passthru( "cat ". $kernelname); + }else{ + header('HTTP/1.0 404 Not Found'); } + } public function getkclAction() |
