summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/ipxe')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php
index ef0c5ae..8c3866e 100644
--- a/application/modules/ipxe/controllers/ResourceController.php
+++ b/application/modules/ipxe/controllers/ResourceController.php
@@ -71,13 +71,19 @@ class Ipxe_ResourceController extends Zend_Controller_Action
public function getvesamenuconfigAction(){
+ if(!isset($_SERVER['PHP_AUTH_USER'])){
+ header('WWW-Authenticate: Basic realm=""');
+ header('HTTP/1.0 401 Unauthorized');
+ echo '>h2>Authorization failed.>/h2>';
+ exit;
+ }
+
// header('Content-Type: text/html');
// $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
// header('Content-Disposition: ' . $content_disp . '; filename="vesamenu.conf"');
// header('Pragma: no-cache');
// header('Expires: 0');
-
print_a($_SERVER);
$vesamenuView = new Zend_View();