diff options
| author | michael pereira | 2011-07-18 16:49:57 +0200 |
|---|---|---|
| committer | michael pereira | 2011-07-18 16:49:57 +0200 |
| commit | ffe18ee3decb6f64f4267817861296e4d1cc4744 (patch) | |
| tree | 53f49ed1e01710ec7b1e3fcc197fe67db2b452be /application/modules/ipxe/views/scripts | |
| parent | login test (diff) | |
| download | pbs2-ffe18ee3decb6f64f4267817861296e4d1cc4744.tar.gz pbs2-ffe18ee3decb6f64f4267817861296e4d1cc4744.tar.xz pbs2-ffe18ee3decb6f64f4267817861296e4d1cc4744.zip | |
login test
Diffstat (limited to 'application/modules/ipxe/views/scripts')
| -rw-r--r-- | application/modules/ipxe/views/scripts/resource/getvesamenu.phtml | 64 |
1 files changed, 30 insertions, 34 deletions
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml index e2933e2..7dcb3b8 100644 --- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml +++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml @@ -3,7 +3,7 @@ $index = 0; function title ( $title ) { - echo "menu title ".$title; + echo "menu title ".$title."\n"; } function label ( $label ) { @@ -94,39 +94,35 @@ menu color sel 7;37;40 #ff1c2a33 #667799bb all #menu color help 37;40 #ff1c2a33 #00000000 none MENU MSGCOLOR #ff1c2a33 #00000000 none -<? - if(!isset($this->error)) - title ( $this->title ); - else - title($this->error); - - if ( ! authenticated($this->username, $this->password) ) { - retry(); - } else { - - if ( $this->username == "test" ) { - - localboot(); - } - } + <? + if(!isset($this->error)){ + title ( $this->title ); + }else{ + title($this->error); + } + + if ( ! authenticated($this->username, $this->password) ) { + retry(); + } else { + + $bootosmapper = new Application_Model_BootOsMapper(); + + if(isset($this->bmelist)){ + foreach($this->bmelist as $bme){ -//$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/getkernel/alpha/$this->alphaID/bme/".$bme->getID()."/file/kernel", "initrd=http://$this->host/ipxe/resource/getinitramfs/alpha/$this->alphaID/bme/".$bme->getID()."/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/bme/".$bme->getID()."/file/initramfs alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend()); -// } -// } -//} -// -//localboot(); + $kcl = $bootosmapper->find($bme->getBootosID())->getDefaultkcl(); + + 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/bme/".$bme->getID()."/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/bme/".$bme->getID()."/file/initramfs alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend()); + } + } + } + + localboot(); + } ?>
\ No newline at end of file |
