Changeset 6620

Show
Ignore:
Timestamp:
10/05/06 13:14:22 (2 years ago)
Author:
GamerZ
Message:

PHP CGI Bug Squashed Yet Again

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-useronline/trunk/useronline/useronline.php

    r6555 r6620  
    4747add_action('wp_head', 'useronline_header'); 
    4848function useronline_header() { 
    49       if(isset($_SERVER['SCRIPT_NAME']) == true) { 
     49      if(strpos($_SERVER['SCRIPT_NAME'], 'php.cgi') === false) { 
    5050            $ajax_url = $_SERVER['SCRIPT_NAME']; 
    51       } elseif(isset($_SERVER['PHP_SELF']) == true)
     51      } else
    5252            $ajax_url = $_SERVER['PHP_SELF']; 
    53       } else { 
    54             $ajax_url = '/index.php'; 
    5553      } 
    5654      echo '<script type="text/javascript">'."\n";