Make WordPress Core


Ignore:
Timestamp:
01/04/2008 08:05:07 PM (17 years ago)
Author:
ryan
Message:

Some file level phpdoc from darkdragon. fixes #5572

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r6104 r6554  
    11<?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 */
    214
    315// On which page are we ?
     
    4254
    4355// Server detection
     56
     57/**
     58 * Whether the server software is Apache or something else
     59 * @global bool $is_apache
     60 */
    4461$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 */
    4567$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true : false;
    4668
Note: See TracChangeset for help on using the changeset viewer.