diff options
Diffstat (limited to 'application/modules/ipxe/views/scripts')
| -rw-r--r-- | application/modules/ipxe/views/scripts/resource/getvesamenu.phtml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml index f99217c..921bbf3 100644 --- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml +++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml @@ -1,11 +1,13 @@ <?php $index = 0; + $username = $this->username; + $password = $this->password; function title ( $title ) { - $this->username; + global $username; echo "menu title ".$title; - echo ( $this->username ? " for ".$this->username : "" )."\n"; + echo ( $username ? " for ".$username : "" )."\n"; } function label ( $label ) { @@ -46,10 +48,10 @@ } function authenticated () { - $this->username; - $this->password; + global $username; + global $password; - switch ( "$this->username:$this->password" ) { + switch ( "$username:$password" ) { case "test:test": case "guest:guest": return 1; |
