MINOR Check for IIS/7 specifically, as IIS 6 has a completely different way of installing (from r100634)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112192 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2010-10-13 04:23:34 +00:00
parent 34fa1f06bf
commit 322be54599

View File

@ -277,7 +277,7 @@ class InstallRequirements {
*/
function isIIS() {
if(isset($_SERVER['SERVER_SOFTWARE'])) {
if(strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false) {
if(strpos($_SERVER['SERVER_SOFTWARE'], 'IIS/7') !== false) {
return true;
}
}
@ -300,7 +300,7 @@ class InstallRequirements {
$webserver = strip_tags(trim(@$_SERVER['SERVER_SIGNATURE']));
if(!$webserver) {
if(isset($_SERVER['SERVER_SOFTWARE'])) {
if(strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false ||
if(strpos($_SERVER['SERVER_SOFTWARE'], 'IIS/7') !== false ||
strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) {
$webserver = $_SERVER['SERVER_SOFTWARE'];
}