summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers
diff options
context:
space:
mode:
authormichael pereira2011-07-18 14:46:03 +0200
committermichael pereira2011-07-18 14:46:03 +0200
commitd8ecc255a943dfe7697c6c538a7d2a53f7519a56 (patch)
tree12218c9896efbb19e29e2d057001273d317f47c5 /application/modules/ipxe/controllers
parentlogin test (diff)
downloadpbs2-d8ecc255a943dfe7697c6c538a7d2a53f7519a56.tar.gz
pbs2-d8ecc255a943dfe7697c6c538a7d2a53f7519a56.tar.xz
pbs2-d8ecc255a943dfe7697c6c538a7d2a53f7519a56.zip
login test
Diffstat (limited to 'application/modules/ipxe/controllers')
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php
index 839debc..b0132da 100644
--- a/application/modules/ipxe/controllers/ResourceController.php
+++ b/application/modules/ipxe/controllers/ResourceController.php
@@ -70,7 +70,7 @@ class Ipxe_ResourceController extends Zend_Controller_Action
}
public function getvesamenuconfigAction(){
-
+
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"');
@@ -79,6 +79,8 @@ class Ipxe_ResourceController extends Zend_Controller_Action
$vesamenuView = new Zend_View();
$vesamenuView->addScriptPath(APPLICATION_PATH.'/modules/ipxe/views/scripts/resource/');
+ $vesamenuView->username = $_SERVER["PHP_AUTH_USER"];
+ $vesamenuView->password = $_SERVER["PHP_AUTH_PW"];
$vesamenuView->host = $_SERVER['HTTP_HOST'];
$_SESSION['alphasessionID'] = $this->thisSession->getAlphasessionID();