summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authormichael pereira2011-07-11 14:49:05 +0200
committermichael pereira2011-07-11 14:49:05 +0200
commitd285870a4484af23884224d30c7e0eb4e29949f4 (patch)
treedf1efe11001a18cb5df3dccf8c0225a82a468bfc /application
parenturiboot test (diff)
downloadpbs2-d285870a4484af23884224d30c7e0eb4e29949f4.tar.gz
pbs2-d285870a4484af23884224d30c7e0eb4e29949f4.tar.xz
pbs2-d285870a4484af23884224d30c7e0eb4e29949f4.zip
uriload test
Diffstat (limited to 'application')
-rw-r--r--application/controllers/ResourceController.php22
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml4
2 files changed, 13 insertions, 13 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 6b35050..b828668 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -483,17 +483,17 @@ class ResourceController extends Zend_Controller_Action
public function getkernelAction()
{
-// $bootmenuntryID = $this->_request->getParam('bme');
-//
-// $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper();
-// $bootmenuentry = new Application_Model_BootMenuEntries();
-// $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry);
-//
-// $sessionMapper = new Application_Model_SessionMapper();
-//
-// $this->thisSession->setBootmenuentryID($bootmenuntryID);
-// $this->thisSession->setBootosID($bootmenuentry->getBootosID());
-// $sessionMapper->save($this->thisSession);
+ $bootmenuntryID = $this->_request->getParam('bme');
+
+ $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper();
+ $bootmenuentry = new Application_Model_BootMenuEntries();
+ $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry);
+
+ $sessionMapper = new Application_Model_SessionMapper();
+
+ $this->thisSession->setBootmenuentryID($bootmenuntryID);
+ $this->thisSession->setBootosID($bootmenuentry->getBootosID());
+ $sessionMapper->save($this->thisSession);
$bootosID = $this->thisSession->getBootosID();
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
index b470c85..1850534 100644
--- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
+++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
@@ -129,10 +129,10 @@ if(isset($this->bmelist)){
if($bme->getKcl() && $kcl != null){
uriboot ( $bme->getTitle(),
- "http://$this->host/ipxe/resource/getkernel/alpha/$this->alphaID/bme/".$bme->getID()."/file/kernel", "initrd=http://$this->host/ipxe/resource/getinitramfs/alpha/$this->alphaID/file/initramfs $kcl alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend());
+ "http://$this->host/resource/getkernel/alpha/$this->alphaID/bme/".$bme->getID()."/file/kernel", "initrd=http://$this->host/resource/getinitramfs/alpha/$this->alphaID/file/initramfs $kcl alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend());
}else{
uriboot ( $bme->getTitle(),
- "http://$this->host/ipxe/resource/getkernel/alpha/$this->alphaID/bme/".$bme->getID()."/file/kernel", "initrd=http://$this->host/ipxe/resource/getinitramfs/alpha/$this->alphaID/file/initramfs alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend());
+ "http://$this->host/resource/getkernel/alpha/$this->alphaID/bme/".$bme->getID()."/file/kernel", "initrd=http://$this->host/resource/getinitramfs/alpha/$this->alphaID/file/initramfs alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend());
}
}
}