diff options
| author | michael pereira | 2011-09-26 03:43:03 +0200 |
|---|---|---|
| committer | michael pereira | 2011-09-26 03:43:03 +0200 |
| commit | cfe808f2f8a35a35eb9a6e7863f1eaeb8f961a6e (patch) | |
| tree | 68c6e5590f086568e281ef384bb26f40a620ea32 /application/modules/ipxe/views/scripts/resource | |
| parent | auth header (diff) | |
| download | pbs2-cfe808f2f8a35a35eb9a6e7863f1eaeb8f961a6e.tar.gz pbs2-cfe808f2f8a35a35eb9a6e7863f1eaeb8f961a6e.tar.xz pbs2-cfe808f2f8a35a35eb9a6e7863f1eaeb8f961a6e.zip | |
auth header
Diffstat (limited to 'application/modules/ipxe/views/scripts/resource')
| -rw-r--r-- | application/modules/ipxe/views/scripts/resource/getvesamenu.phtml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml index 74fbda4..2f373a6 100644 --- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml +++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml @@ -42,25 +42,25 @@ echo "ENDTEXT\n"; } - function nomembership () { + function nomembership ($alphaID) { comment ("failed", "You have no memberships"); - uriboot ( "Return to Group Bootmenu", "/ipxe/auth/logout/alpha/$this->alphaID", "" ); + uriboot ( "Return to Group Bootmenu", "/ipxe/auth/logout/alpha/$alphaID", "" ); } - function retry () { + function retry ($alphaID) { comment ("failed", "Authentication Failed"); - uriboot ( "Try again", "/ipxe/auth/login/alpha/$this->alphaID", "" ); - uriboot ( "Return to Group Bootmenu", "/ipxe/auth/logout/alpha/$this->alphaID", "" ); + uriboot ( "Try again", "/ipxe/auth/login/alpha/$alphaID", "" ); + uriboot ( "Return to Group Bootmenu", "/ipxe/auth/logout/alpha/$alphaID", "" ); } - function sessionerror () { + function sessionerror ($serialnumber,$mac) { comment ("failed", "A Session Error occured"); - uriboot ( "Reconnect", "/ipxe/auth/serial/serialnumber/$this->serialnumber/mac/$this->mac", "" ); + uriboot ( "Reconnect", "/ipxe/auth/serial/serialnumber/$serialnumber/mac/$mac", "" ); } - function serialerror () { + function serialerror ($serialnumber,$mac) { comment ("failed", "The Serial was not found. Press Tab to change the Serial or contact an Admin"); - uriboot ( "Reconnect", "/ipxe/auth/serial/serialnumber/$this->serialnumber/mac/$this->mac", "" ); + uriboot ( "Reconnect", "/ipxe/auth/serial/serialnumber/$serialnumber/mac/$mac", "" ); } function nobootmenu () { @@ -112,13 +112,13 @@ MENU MSGCOLOR #ff1c2a33 #00000000 none if(isset($this->error)){ switch($this->error){ case "serial": - serialerror(); + serialerror($this->serialnumber, $this->mac); break; case "session": - sessionerror(); + sessionerror($this->serialnumber, $this->mac); break; case "login": - retry(); + retry($this->alphaID); break; } }else{ @@ -131,7 +131,7 @@ MENU MSGCOLOR #ff1c2a33 #00000000 none } uriboot ( "Return to Group Bootmenu", "/ipxe/auth/logout/alpha/$this->alphaID", "" ); }else{ - nomembership(); + nomembership($this->alphaID); } }else{ |
