Changeset 1574

Show
Ignore:
Timestamp:
2008-02-20 17:35:13 (8 months ago)
Author:
wwalc
Message:

Fix for #1815. Removed closing tags from main PHP files.

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/fckeditor.php

    r1565 r1574  
    2828function FCKeditor_IsCompatibleBrowser() 
    2929{ 
    30         global $HTTP_USER_AGENT ; 
    31  
    32         if ( !isset( $_SERVER ) ) { 
     30        if ( isset( $_SERVER ) ) { 
     31                $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 
     32        } 
     33        else { 
    3334                global $HTTP_SERVER_VARS ; 
    34             $_SERVER = $HTTP_SERVER_VARS ; 
     35                if ( isset( $HTTP_SERVER_VARS ) ) { 
     36                        $sAgent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ; 
     37                } 
     38                else { 
     39                        global $HTTP_USER_AGENT ; 
     40                        $sAgent = $HTTP_USER_AGENT ; 
     41                } 
    3542        } 
    36  
    37         if ( isset( $HTTP_USER_AGENT ) ) 
    38                 $sAgent = $HTTP_USER_AGENT ; 
    39         else 
    40                 $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 
    41  
     43         
    4244        if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) 
    4345        { 
     
    6870else 
    6971        include_once( 'fckeditor_php5.php' ) ; 
    70  
    71 ?> 
  • FCKeditor/trunk/fckeditor_php4.php

    r1565 r1574  
    142142        } 
    143143} 
    144  
    145 ?> 
  • FCKeditor/trunk/fckeditor_php5.php

    r1565 r1574  
    137137        } 
    138138} 
    139  
    140 ?>