summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/views/scripts/resource
diff options
context:
space:
mode:
authormichael pereira2011-07-18 15:52:22 +0200
committermichael pereira2011-07-18 15:52:22 +0200
commit14867d123b2c1f7f11ff10979559ffeae391d14b (patch)
tree0965271ac5ba62ecb572838f8dcee02673a8dbdf /application/modules/ipxe/views/scripts/resource
parentlogin test (diff)
downloadpbs2-14867d123b2c1f7f11ff10979559ffeae391d14b.tar.gz
pbs2-14867d123b2c1f7f11ff10979559ffeae391d14b.tar.xz
pbs2-14867d123b2c1f7f11ff10979559ffeae391d14b.zip
login test
Diffstat (limited to 'application/modules/ipxe/views/scripts/resource')
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml12
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;