summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers
diff options
context:
space:
mode:
authormichael pereira2011-09-27 13:20:21 +0200
committermichael pereira2011-09-27 13:20:21 +0200
commitebea91dbe6a8b83c6108f114e1f807ae5068ae73 (patch)
tree431169398b440c7df148d92ed7c67d365b50346c /application/modules/ipxe/controllers
parentvesamenu (diff)
downloadpbs2-ebea91dbe6a8b83c6108f114e1f807ae5068ae73.tar.gz
pbs2-ebea91dbe6a8b83c6108f114e1f807ae5068ae73.tar.xz
pbs2-ebea91dbe6a8b83c6108f114e1f807ae5068ae73.zip
vesamenu
Diffstat (limited to 'application/modules/ipxe/controllers')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index 4f13feb..6b27f03 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -79,7 +79,10 @@ class Ipxe_AuthController extends Zend_Controller_Action
}
header('Content-Type: text/plain');
-
+ $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
+ header('Content-Disposition: ' . $content_disp . '; filename="serial"');
+ header('Pragma: no-cache');
+ header('Expires: 0');
$result = "#!ipxe\n";
$result .= "imgfree\n";
if(isset($this->session)){
@@ -99,6 +102,10 @@ class Ipxe_AuthController extends Zend_Controller_Action
if (isset($login)){
header('Content-Type: text/plain');
+ $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
+ header('Content-Disposition: ' . $content_disp . '; filename="login"');
+ header('Pragma: no-cache');
+ header('Expires: 0');
$result = "#!ipxe\n";
$result .= "imgfree\n";
$result .= "login\n";
@@ -162,6 +169,10 @@ class Ipxe_AuthController extends Zend_Controller_Action
}
header('Content-Type: text/plain');
+ $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
+ header('Content-Disposition: ' . $content_disp . '; filename="logout"');
+ header('Pragma: no-cache');
+ header('Expires: 0');
$result = "#!ipxe\n";
$result .= "imgfree\n";
@@ -184,6 +195,10 @@ class Ipxe_AuthController extends Zend_Controller_Action
}
header('Content-Type: text/plain');
+ $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
+ header('Content-Disposition: ' . $content_disp . '; filename="switchgroup"');
+ header('Pragma: no-cache');
+ header('Expires: 0');
$result = "#!ipxe\n";
$result .= "imgfree\n";
@@ -210,6 +225,10 @@ class Ipxe_AuthController extends Zend_Controller_Action
}
header('Content-Type: text/plain');
+ $content_disp = ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']) == 'IE') ? 'inline' : 'attachment';
+ header('Content-Disposition: ' . $content_disp . '; filename="setgroup"');
+ header('Pragma: no-cache');
+ header('Expires: 0');
$result = "#!ipxe\n";
$result .= "imgfree\n";