summaryrefslogtreecommitdiffstats
path: root/application/modules
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php14
-rw-r--r--application/modules/ipxe/views/scripts/resource/getvesamenu.phtml12
2 files changed, 15 insertions, 11 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index 4098a9a..abbd21a 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -122,11 +122,15 @@ class Ipxe_AuthController extends Zend_Controller_Action
exit;
}
-// if(!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])){
-// header('WWW-Authenticate: Basic realm=""');
-// header('HTTP/1.0 401 Unauthorized');
-// exit;
-// }
+ if(!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])){
+ header('WWW-Authenticate: Basic realm=""');
+ header('HTTP/1.0 401 Unauthorized');
+ $result .= "imgfree\n";
+ $result .= "module http://".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."/error/login\n";
+ header("Content-Length: ".(strlen($result)));
+ echo $result;
+ exit;
+ }
$email = $_SERVER['PHP_AUTH_USER'];
$password = $_SERVER['PHP_AUTH_PW'];
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
index f07fb6a..d7f9193 100644
--- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
+++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml
@@ -69,7 +69,7 @@
?>
-TIMEOUT 100
+TIMEOUT 1000
PROMPT 0
DEFAULT /ipxe/vesamenu.c32
@@ -91,11 +91,11 @@ MENU VSHIFT 7
#menu color screen 37;40 #80ffffff #00000000 std
menu color border 37;40 #00000000 #00000000 std
menu color title 1 #ee004a99 #00000000 all
-menu color unsel 37;40 #ff4f75aa #00000000 all
-menu color hotkey 1;37;40 #ffff8b00 #00000000 std
-menu color sel 7;37;40 #ff1c2a33 #667799bb all
-#menu color hotsel 1;7;37;40 #ffff8b00 #667799bb all
-#menu color disabled 1;37;40 #ffff8b00 #ff8093a1 std
+menu color unsel 37;40 #ff004a99 #00000000 all
+menu color hotkey 1;37;40 #ff004a99 #00000000 std
+menu color sel 7;37;40 #00000000 #ff004a99 all
+menu color hotsel 1;7;37;40 #00000000 #ff004a99 all
+menu color disabled 1;37;40 #00000000 #ff004a99 std
#menu color scrollbar 37;40 #40000000 #ee000000 std
#menu color tabmsg 37;40 #ffff8b00 #ff8093a1 std
#menu color cmdmark 1;37;40 #ffff8b00 #ff8093a1 std