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:
ryan 2009-05-18 14:54:16 +00:00
parent 69dacfe471
commit e2802f7f3b
1 changed files with 4 additions and 4 deletions

View File

@ -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);
?> ?>