summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/views/scripts/resource
diff options
context:
space:
mode:
authormichael pereira2011-07-18 16:44:17 +0200
committermichael pereira2011-07-18 16:44:17 +0200
commit110d029b07a48c0994b8e424218681e6d5cb7bec (patch)
treeb09b92843273469eaf4d460f209e18488cd7064e /application/modules/ipxe/views/scripts/resource
parentlogin test (diff)
downloadpbs2-110d029b07a48c0994b8e424218681e6d5cb7bec.tar.gz
pbs2-110d029b07a48c0994b8e424218681e6d5cb7bec.tar.xz
pbs2-110d029b07a48c0994b8e424218681e6d5cb7bec.zip
login test
Diffstat (limited to 'application/modules/ipxe/views/scripts/resource')
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml16
1 files changed, 2 insertions, 14 deletions
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
index 28abd69..e2933e2 100644
--- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
+++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
@@ -1,16 +1,9 @@
<?php
$index = 0;
- $username = $this->username;
- $password = $this->password;
-
- echo $username."\n";
- echo $password."\n";
function title ( $title ) {
- global $username;
echo "menu title ".$title;
- echo ( $username ? " for ".$username : "" )."\n";
}
function label ( $label ) {
@@ -50,12 +43,7 @@
uriboot ( "Try again", "ipxe.php", "" );
}
- function authenticated () {
- global $username;
- global $password;
-
- echo $username."\n";
- echo $password."\n";
+ function authenticated ($username, $password) {
switch ( "$username:$password" ) {
case "test:test":
@@ -112,7 +100,7 @@ MENU MSGCOLOR #ff1c2a33 #00000000 none
else
title($this->error);
- if ( ! authenticated() ) {
+ if ( ! authenticated($this->username, $this->password) ) {
retry();
} else {