summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/ResourceController.php
diff options
context:
space:
mode:
authormichael pereira2011-07-11 02:52:51 +0200
committermichael pereira2011-07-11 02:52:51 +0200
commitb729a1442ae2e2ec33bfd7452a43c2af11a26a72 (patch)
treee66e4805556ac6caaf95d18b40c4770bcda24235 /application/modules/ipxe/controllers/ResourceController.php
parentredirect raus (diff)
downloadpbs2-b729a1442ae2e2ec33bfd7452a43c2af11a26a72.tar.gz
pbs2-b729a1442ae2e2ec33bfd7452a43c2af11a26a72.tar.xz
pbs2-b729a1442ae2e2ec33bfd7452a43c2af11a26a72.zip
redirect raus
Diffstat (limited to 'application/modules/ipxe/controllers/ResourceController.php')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php45
1 files changed, 22 insertions, 23 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php
index 4148783..adce5df 100644
--- a/application/modules/ipxe/controllers/ResourceController.php
+++ b/application/modules/ipxe/controllers/ResourceController.php
@@ -67,30 +67,29 @@ class Ipxe_ResourceController extends Zend_Controller_Action
$vesamenuView = new Zend_View();
$vesamenuView->addScriptPath(APPLICATION_PATH.'/modules/ipxe/views/scripts/resource/');
$vesamenuView->host = $_SERVER['HTTP_HOST'];
- sleep(2);
-// // Request Bootmenu
-// $pbsFilter = new Pbs_Filter();
-// $bootmenuID = $pbsFilter->evaluate();
-//
-// if($bootmenuID != null){
-// $vesamenuView->alphaID = $this->thisSession->getAlphasessionID();
-//
-// $bootmenuMapper = new Application_Model_BootMenuMapper();
-// $bm = $bootmenuMapper->find($bootmenuID);
-// $vesamenuView->title = $bm->getTitle();
-//// $this->view->startcounter = $bm->getStartcounter();
-//
-// $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper();
-// $res = $bootmenuentriesMapper->findBy(array('bootmenuID' => $bootmenuID),false);
-// $vesamenuView->bmelist = $res;
-//
-// }
-// else{
-//
-// $vesamenuView->error = "You have no BootMenu.";
-// }
-//
+ // Request Bootmenu
+ $pbsFilter = new Pbs_Filter();
+ $bootmenuID = $pbsFilter->evaluate();
+
+ if($bootmenuID != null){
+ $vesamenuView->alphaID = $this->thisSession->getAlphasessionID();
+
+ $bootmenuMapper = new Application_Model_BootMenuMapper();
+ $bm = $bootmenuMapper->find($bootmenuID);
+ $vesamenuView->title = $bm->getTitle();
+// $this->view->startcounter = $bm->getStartcounter();
+
+ $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper();
+ $res = $bootmenuentriesMapper->findBy(array('bootmenuID' => $bootmenuID),false);
+ $vesamenuView->bmelist = $res;
+
+ }
+ else{
+
+ $vesamenuView->error = "You have no BootMenu.";
+ }
+
$vesamenu = $vesamenuView->render('getvesamenu.phtml');
header("Content-Length: ".(strlen($vesamenu)));