Changeset 1574
- Timestamp:
- 2008-02-20 17:35:13 (8 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
fckeditor.php (modified) (2 diffs)
-
fckeditor_php4.php (modified) (1 diff)
-
fckeditor_php5.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/fckeditor.php
r1565 r1574 28 28 function FCKeditor_IsCompatibleBrowser() 29 29 { 30 global $HTTP_USER_AGENT ; 31 32 if ( !isset( $_SERVER ) ) { 30 if ( isset( $_SERVER ) ) { 31 $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 32 } 33 else { 33 34 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 } 35 42 } 36 37 if ( isset( $HTTP_USER_AGENT ) ) 38 $sAgent = $HTTP_USER_AGENT ; 39 else 40 $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 41 43 42 44 if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) 43 45 { … … 68 70 else 69 71 include_once( 'fckeditor_php5.php' ) ; 70 71 ?> -
FCKeditor/trunk/fckeditor_php4.php
r1565 r1574 142 142 } 143 143 } 144 145 ?> -
FCKeditor/trunk/fckeditor_php5.php
r1565 r1574 137 137 } 138 138 } 139 140 ?>