diff options
| author | michael pereira | 2011-09-23 19:06:16 +0200 |
|---|---|---|
| committer | michael pereira | 2011-09-23 19:06:16 +0200 |
| commit | 6d572a7654ac9717d8ad82ba4037c88b07855825 (patch) | |
| tree | 5403908e6113f16d7aba8bc850e615a6329c4b61 /application/modules/ipxe/views | |
| parent | kleiner fix (diff) | |
| download | pbs2-6d572a7654ac9717d8ad82ba4037c88b07855825.tar.gz pbs2-6d572a7654ac9717d8ad82ba4037c88b07855825.tar.xz pbs2-6d572a7654ac9717d8ad82ba4037c88b07855825.zip | |
login und selectmembership
Diffstat (limited to 'application/modules/ipxe/views')
| -rw-r--r-- | application/modules/ipxe/views/scripts/resource/getvesamenu.phtml | 75 |
1 files changed, 43 insertions, 32 deletions
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml index c63ad8c..7ad44ba 100644 --- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml +++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml @@ -95,41 +95,52 @@ 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 ($this->login && !authenticated($this->username, $this->password)) { - retry(); - } else { - - $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()); - } + if($this->action == "selectmembership"){ + title ( "Select Membership:" ); + if(isset($this->memberships)){ + foreach($this->memberships as $membership){ + uriboot ($membership['group'], 'test', 'test'); } - if($this->login) - uriboot ( "Return to Group Bootmenu", "/ipxe/auth/serial/serialnumber/55-44-33-22-11/mac/123/login/false", "" ); + } - - if(!$this->login){ - uriboot ( "Login", "/ipxe/auth/serial/serialnumber/55-44-33-22-11/mac/123/login/true", "" ); - texthelp("Login to get your own Bootmenu."); - } - - localboot(); } + + +// if (!$this->login) { +// retry(); +// } else { +// +// $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()); +// } +// } +// if($this->login) +// uriboot ( "Return to Group Bootmenu", "/ipxe/auth/serial/serialnumber/55-44-33-22-11/mac/123/login/false", "" ); +// } +// +// if(!$this->login){ +// uriboot ( "Login", "/ipxe/auth/serial/serialnumber/55-44-33-22-11/mac/123/login/true", "" ); +// texthelp("Login to get your own Bootmenu."); +// } +// +// localboot(); +// } ?>
\ No newline at end of file |
