From 8fc922bbb37db07640281cb4f9f2ce2ee6493334 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 18 Jul 2011 16:52:36 +0200 Subject: login test --- application/modules/ipxe/controllers/ResourceController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'application') diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index 3631b2f..c4b52fe 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -71,11 +71,11 @@ 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'); -// exit; -// } + if(!isset($_SERVER['PHP_AUTH_USER']) && !isset($_SERVER['PHP_AUTH_PW'])){ + header('WWW-Authenticate: Basic realm=""'); + header('HTTP/1.0 401 Unauthorized'); + exit; + } header('Content-Type: text/html'); $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment'; -- cgit v1.2.3-55-g7522