Changeset 4828 for trunk/expressoMail1_2/inc/fckeditor.php
- Timestamp:
- 07/19/11 16:54:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/fckeditor.php
r1059 r4828 72 72 73 73 if ( $this->ToolbarSet != '' ) 74 $Link .= "& amp;Toolbar={$this->ToolbarSet}" ;74 $Link .= "&Toolbar={$this->ToolbarSet}" ; 75 75 76 76 // Render the linked hidden field. … … 105 105 function IsCompatible() 106 106 { 107 global $HTTP_USER_AGENT ; 108 109 if ( isset( $HTTP_USER_AGENT ) ) 110 $sAgent = $HTTP_USER_AGENT ; 111 else 112 $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 113 114 if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) 115 { 116 $iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ; 117 return ($iVersion >= 5.5) ; 118 } 119 else if ( strpos($sAgent, 'Gecko/') !== false ) 120 { 121 $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ; 122 return ($iVersion >= 20030210) ; 123 } 124 else 125 return false ; 107 // global $HTTP_USER_AGENT ; 108 // 109 // if ( isset( $HTTP_USER_AGENT ) ) 110 // $sAgent = $HTTP_USER_AGENT ; 111 // else 112 // $sAgent = $_SERVER['HTTP_USER_AGENT'] ; 113 // 114 // if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) 115 // { 116 // $iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ; 117 // return ($iVersion >= 5.5) ; 118 // } 119 // else if ( strpos($sAgent, 'Gecko/') !== false ) 120 // { 121 // $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ; 122 // return ($iVersion >= 20030210) ; 123 // } 124 // else 125 // return false ; 126 return( true ); 126 127 } 127 128 … … 149 150 } 150 151 152 // function getConfigFieldString() 153 // { 154 // $sParams = array(); 155 // 156 // foreach( $this->Config as $sKey => $sValue ) 157 // $sParams[] = $this->EncodeConfig( $sKey ).'='.$this->EncodeConfig( $sValue ); 158 // 159 // return implode( '&', $sParams ); 160 // } 161 162 151 163 function EncodeConfig( $valueToEncode ) 152 164 {
Note: See TracChangeset
for help on using the changeset viewer.