Recognize Expression Web 2 as IIS. Props peaceablewhale, DD32. fixes #8725
git-svn-id: http://svn.automattic.com/wordpress/trunk@11379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
69dacfe471
commit
e2802f7f3b
|
@ -65,19 +65,19 @@ $is_IE = ( $is_macIE || $is_winIE );
|
||||||
* Whether the server software is Apache or something else
|
* Whether the server software is Apache or something else
|
||||||
* @global bool $is_apache
|
* @global bool $is_apache
|
||||||
*/
|
*/
|
||||||
$is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;
|
$is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the server software is IIS or something else
|
* Whether the server software is IIS or something else
|
||||||
* @global bool $is_IIS
|
* @global bool $is_IIS
|
||||||
*/
|
*/
|
||||||
$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true : false;
|
$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'ExpressionDevServer') !== false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the server software is IIS 7.X
|
* Whether the server software is IIS 7.X
|
||||||
* @global bool $is_IIS7
|
* @global bool $is_iis7
|
||||||
*/
|
*/
|
||||||
$is_iis7 = ($is_IIS && strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false) ? true : false;
|
$is_iis7 = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue