Ticket #1815: fckeditor.php.diff
File fckeditor.php.diff, 1.2 KB (added by , 16 years ago) |
---|
-
D:/Projects/Eclipse
27 27 28 28 function FCKeditor_IsCompatibleBrowser() 29 29 { 30 global $HTTP_USER_AGENT ; 31 32 if ( !isset( $_SERVER ) ) { 33 global $HTTP_SERVER_VARS ; 34 $_SERVER = $HTTP_SERVER_VARS ; 30 if ( isset( $_SERVER ) ) 31 { 32 $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 35 33 } 36 37 if ( isset( $HTTP_USER_AGENT ) )38 $sAgent = $HTTP_USER_AGENT ;39 34 else 40 $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 35 { 36 global $HTTP_SERVER_VARS ; 41 37 38 if ( isset( $HTTP_SERVER_VARS ) ) 39 { 40 $sAgent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ; 41 } 42 else 43 { 44 global $HTTP_USER_AGENT ; 45 $sAgent = $HTTP_USER_AGENT ; 46 } 47 } 48 42 49 if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) 43 50 { 44 51 $iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ; … … 67 74 include_once( 'fckeditor_php4.php' ) ; 68 75 else 69 76 include_once( 'fckeditor_php5.php' ) ; 70 71 ?>