Make WordPress Core


Ignore:
Timestamp:
04/20/2004 10:56:47 PM (20 years ago)
Author:
saxmatt
Message:

Changed to superglobals, and eliminated $use_cache (since we always do).

File:
1 edited

Legend:

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

    r1079 r1108  
    104104$is_lynx = 0; $is_gecko = 0; $is_winIE = 0; $is_macIE = 0; $is_opera = 0; $is_NS4 = 0;
    105105if (!isset($HTTP_USER_AGENT)) {
    106     $HTTP_USER_AGENT = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
     106    $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
    107107}
    108108if (preg_match('/Lynx/', $HTTP_USER_AGENT)) {
     
    152152
    153153// Server detection
    154 $is_apache = strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache') ? 1 : 0;
    155 $is_IIS = strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0;
     154$is_apache = strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') ? 1 : 0;
     155$is_IIS = strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0;
    156156
    157157// if the config file does not provide the smilies array, let's define it here
Note: See TracChangeset for help on using the changeset viewer.