summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/views/scripts
diff options
context:
space:
mode:
authormichael pereira2011-07-11 02:46:16 +0200
committermichael pereira2011-07-11 02:46:16 +0200
commiteb9a0f4331d01db36421324439e7a33386f222e1 (patch)
tree45d274fd34f3963d62b9b3b1c7adee080694b4dd /application/modules/ipxe/views/scripts
parentredirect raus (diff)
downloadpbs2-eb9a0f4331d01db36421324439e7a33386f222e1.tar.gz
pbs2-eb9a0f4331d01db36421324439e7a33386f222e1.tar.xz
pbs2-eb9a0f4331d01db36421324439e7a33386f222e1.zip
redirect raus
Diffstat (limited to 'application/modules/ipxe/views/scripts')
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml40
1 files changed, 20 insertions, 20 deletions
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
index 552dacf..6785183 100644
--- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
+++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
@@ -102,10 +102,10 @@ menu color sel 7;37;40 #ff1c2a33 #667799bb all
MENU MSGCOLOR #ff1c2a33 #00000000 none
<?
-// if(!isset($this->error))
-// title ( $this->title );
-// else
-// title($this->error);
+ if(!isset($this->error))
+ title ( $this->title );
+ else
+ title($this->error);
//
// if ( ! authenticated() ) {
// retry();
@@ -116,22 +116,22 @@ MENU MSGCOLOR #ff1c2a33 #00000000 none
// localboot();
// }
-//$bootosmapper = new Application_Model_BootOsMapper();
-//
-//if(isset($this->bmelist)){
-// foreach($this->bmelist as $bme){
-//
-// $kcl = $bootosmapper->find($bme->getBootosID())->getDefaultkcl();
-//
-// if($bme->getKcl() && $kcl != null){
-// uriboot ( $bme->getTitle(),
-// "http://$this->host/ipxe/resource/start/alpha/$this->alphaID/bme/".$bme->getID(), "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/start/alpha/$this->alphaID/bme/".$bme->getID(), "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());
-// }
-// }
-//}
+$bootosmapper = new Application_Model_BootOsMapper();
+
+if(isset($this->bmelist)){
+ foreach($this->bmelist as $bme){
+
+ $kcl = $bootosmapper->find($bme->getBootosID())->getDefaultkcl();
+
+ if($bme->getKcl() && $kcl != null){
+ uriboot ( $bme->getTitle(),
+ "http://$this->host/ipxe/resource/start/alpha/$this->alphaID/bme/".$bme->getID(), "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/start/alpha/$this->alphaID/bme/".$bme->getID(), "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());
+ }
+ }
+}
localboot();
// }