summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authormichael pereira2011-07-11 00:51:43 +0200
committermichael pereira2011-07-11 00:51:43 +0200
commite01348134e7d44de9471c4d76659cab41a6c9952 (patch)
treebba0e9343e6b7ed80fd57b7623fef01ae481357f /application/controllers
parentSession fuer ipxe (diff)
downloadpbs2-e01348134e7d44de9471c4d76659cab41a6c9952.tar.gz
pbs2-e01348134e7d44de9471c4d76659cab41a6c9952.tar.xz
pbs2-e01348134e7d44de9471c4d76659cab41a6c9952.zip
Session und Filter fuer ipxe Bootmenu
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/ResourceController.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index b81403f..c1eaa65 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -574,59 +574,8 @@ class ResourceController extends Zend_Controller_Action
$path = "http://" . $_SERVER['SERVER_NAME'] . $path;
return $path;
}
-
- public function getvesamenuAction(){
- if(is_dir("../resources/ipxe/")){
- header('Content-Type: application/octet-stream');
- $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
- header('Content-Disposition: ' . $content_disp . '; filename="vesamenu.c32"');
- header('Pragma: no-cache');
- header('Expires: 0');
- chdir("../resources/ipxe/");
-
- header("Content-Length: ".filesize(getcwd()."/vesamenu.c32"));
-
- passthru( "cat vesamenu.c32");
- }else{
- header('HTTP/1.0 404 Not Found');
- }
-
- }
-
- public function getvesamenuconfigAction(){
-
- header('Content-Type: text/html');
- $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
- header('Content-Disposition: ' . $content_disp . '; filename="vesamenu.conf"');
- header('Pragma: no-cache');
- header('Expires: 0');
-
- $vesamenuView = new Zend_View();
- $vesamenuView->addScriptPath(APPLICATION_PATH.'/views/scripts/resource/');
- $vesamenuView->host = $_SERVER['HTTP_HOST'];
- $vesamenu = $vesamenuView->render('getvesamenu.phtml');
-
- header("Content-Length: ".(strlen($vesamenu)));
-
- echo $vesamenu;
- }
-
- public function ipxeAction(){
-
- header('Content-Type: text/plain');
-
- $result = "#!ipxe\n";
- $result .= "imgfree\n";
-
- $result .= "chain http://".$_SERVER['HTTP_HOST']."/resource/getvesamenu http://".$_SERVER['HTTP_HOST']."/resource/getvesamenuconfig";
-
- header("Content-Length: ".(strlen($result)));
-
- echo $result;
-
- }
}