Changeset 6554 for trunk/wp-includes/vars.php
- Timestamp:
- 01/04/2008 08:05:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/vars.php
r6104 r6554 1 1 <?php 2 /** 3 * Creates common globals for the rest of WordPress 4 * 5 * Sets $pagenow global which is the current page. Checks 6 * for the browser to set which one is currently being used. 7 * 8 * Detects which user environment WordPress is being used on. 9 * Only attempts to check for Apache and IIS. Two web servers 10 * with known permalink capability. 11 * 12 * @package WordPress 13 */ 2 14 3 15 // On which page are we ? … … 42 54 43 55 // Server detection 56 57 /** 58 * Whether the server software is Apache or something else 59 * @global bool $is_apache 60 */ 44 61 $is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false; 62 63 /** 64 * Whether the server software is IIS or something else 65 * @global bool $is_IIS 66 */ 45 67 $is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true : false; 46 68
Note: See TracChangeset
for help on using the changeset viewer.