Revision 1828
Added by Luisehahne almost 13 years ago
| branches/2.8.x/CHANGELOG | ||
|---|---|---|
| 13 | 13 |
|
| 14 | 14 |
|
| 15 | 15 |
|
| 16 |
20 Nov-2012 Build 1826 Dietmar Woellbrink (Luisehahne) |
|
| 16 |
22 Nov-2012 Build 1828 Dietmar Woellbrink (Luisehahne) |
|
| 17 |
! Update Checks if a browser's user agent string is compatible with the FCKeditor. |
|
| 18 |
! Set WebsiteBaker Module Version to 2.9.8 |
|
| 19 |
20 Nov-2012 Build 1827 Dietmar Woellbrink (Luisehahne) |
|
| 17 | 20 |
# force FCKeditor to work with Firefox 17 |
| 18 | 21 |
20 Nov-2012 Build 1826 Dietmar Woellbrink (Luisehahne) |
| 19 | 22 |
# fixed to big preview images in media |
| branches/2.8.x/wb/admin/interface/version.php | ||
|---|---|---|
| 51 | 51 |
|
| 52 | 52 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
| 53 | 53 |
if(!defined('VERSION')) define('VERSION', '2.8.3');
|
| 54 |
if(!defined('REVISION')) define('REVISION', '1827');
|
|
| 54 |
if(!defined('REVISION')) define('REVISION', '1828');
|
|
| 55 | 55 |
if(!defined('SP')) define('SP', '');
|
| branches/2.8.x/wb/modules/fckeditor/info.php | ||
|---|---|---|
| 19 | 19 |
$module_directory = 'fckeditor'; |
| 20 | 20 |
$module_name = 'FCKeditor'; |
| 21 | 21 |
$module_function = 'WYSIWYG'; |
| 22 |
$module_version = '2.9.7.2';
|
|
| 22 |
$module_version = '2.9.8';
|
|
| 23 | 23 |
$module_platform = '2.7 | 2.8.x'; |
| 24 | 24 |
$module_requirements = 'PHP 4.3.11 or higher, WB 2.7 or higher'; |
| 25 | 25 |
$module_author = 'Christian Sommer, P. Widlund, S. Braunewell, M. Gallas, Wouldlouper, Aldus, Luisehahne'; |
| branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_about.html | ||
|---|---|---|
| 130 | 130 |
<tr> |
| 131 | 131 |
<td colspan="2" align="center" valign="middle"> |
| 132 | 132 |
<span fcklang="DlgAboutModule" style="font-size: 12px" dir="ltr"> |
| 133 |
Modified for WebsiteBaker Version 2.8.2 and higher<br />Modulversion
|
|
| 134 |
</span>2.9.7.1
|
|
| 133 |
Modified for WebsiteBaker Version 2.8.x and higher<br />Modulversion
|
|
| 134 |
</span>2.9.8
|
|
| 135 | 135 |
</td> |
| 136 | 136 |
</tr> |
| 137 | 137 |
</table> |
| branches/2.8.x/wb/modules/fckeditor/fckeditor/fckeditor_php5.php | ||
|---|---|---|
| 25 | 25 |
* instances in PHP pages on server side. |
| 26 | 26 |
*/ |
| 27 | 27 |
|
| 28 |
|
|
| 28 | 29 |
/** |
| 29 | 30 |
* Check if browser is compatible with FCKeditor. |
| 30 | 31 |
* Return true if is compatible. |
| ... | ... | |
| 33 | 34 |
*/ |
| 34 | 35 |
function FCKeditor_IsCompatibleBrowser() |
| 35 | 36 |
{
|
| 36 |
if ( isset( $_SERVER ) ) {
|
|
| 37 |
$sAgent = $_SERVER['HTTP_USER_AGENT'] ; |
|
| 38 |
} |
|
| 39 |
else {
|
|
| 40 |
global $HTTP_SERVER_VARS ; |
|
| 41 |
if ( isset( $HTTP_SERVER_VARS ) ) {
|
|
| 42 |
$sAgent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ; |
|
| 43 |
} |
|
| 44 |
else {
|
|
| 45 |
global $HTTP_USER_AGENT ; |
|
| 46 |
$sAgent = $HTTP_USER_AGENT ; |
|
| 47 |
} |
|
| 48 |
} |
|
| 37 |
$sAgent = 'sorry'; |
|
| 38 |
if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
|
| 39 |
$sAgent = $_SERVER['HTTP_USER_AGENT'] ; |
|
| 40 |
} else {
|
|
| 41 |
if( isset( $GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'] )) {
|
|
| 42 |
$sAgent = $GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'] ; |
|
| 43 |
} else {
|
|
| 44 |
if( isset( $GLOBALS['HTTP_USER_AGENT'] )) {
|
|
| 45 |
$sAgent = $GLOBALS['HTTP_USER_AGENT']; |
|
| 46 |
} |
|
| 47 |
} |
|
| 48 |
} |
|
| 49 | 49 |
|
| 50 |
if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) |
|
| 51 |
{
|
|
| 52 |
$iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ; |
|
| 53 |
return ($iVersion >= 5.5) ; |
|
| 54 |
} |
|
| 55 |
else if ( strpos($sAgent, 'Gecko/') !== false ) |
|
| 56 |
{
|
|
| 57 |
$iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ; |
|
| 58 |
return ($iVersion >= 3.5) ; |
|
| 59 |
// return ($iVersion >= 20030210) ; |
|
| 60 |
} |
|
| 61 |
else if ( strpos($sAgent, 'Opera/') !== false ) |
|
| 62 |
{
|
|
| 63 |
$fVersion = (float)substr($sAgent, strpos($sAgent, 'Opera/') + 6, 4) ; |
|
| 64 |
return ($fVersion >= 9.5) ; |
|
| 65 |
} |
|
| 66 |
else if ( preg_match( "|AppleWebKit/(\d+)|i", $sAgent, $matches ) ) |
|
| 67 |
{
|
|
| 68 |
$iVersion = $matches[1] ; |
|
| 69 |
return ( $matches[1] >= 522 ) ; |
|
| 70 |
} |
|
| 71 |
else |
|
| 72 |
return false ; |
|
| 50 |
// check for client agent |
|
| 51 |
$bRetval = false; |
|
| 52 |
if(preg_match('/ gecko\/([0-9.]+)/si', $sAgent, $aMatches)) {
|
|
| 53 |
// [Gecko] Firefox, SeaMonkey and most Gecko based browsers |
|
| 54 |
if(strpos($aMatches[1], '.')) {
|
|
| 55 |
// Versions from Gecko 17.0 up |
|
| 56 |
$bRetval = version_compare($aMatches[1], '4.0', '>='); |
|
| 57 |
} else {
|
|
| 58 |
// versions before Gecko 17.0 |
|
| 59 |
if((int)$aMatches[1] >= 20030210) { $bRetval = true; }
|
|
| 60 |
} |
|
| 61 |
} elseif(preg_match('/ applewebkit\/([0-9.]+)/si', $sAgent, $aMatches)) {
|
|
| 62 |
// [AppleWebKit] Crome, Safari |
|
| 63 |
$bRetval = version_compare($aMatches[1], '522', '>='); |
|
| 64 |
} elseif(preg_match('/^opera\/([0-9.]+)/si', $sAgent, $aMatches)) {
|
|
| 65 |
// [Opera] Opera |
|
| 66 |
$bRetval = version_compare($aMatches[1], '9.5', '>='); |
|
| 67 |
} elseif(preg_match('/^mozilla\/[\d.]+\s\(.*?msie[^\)]*\(.*?\ msie\ ([0-9.]+);/si', $sAgent, $aMatches)) {
|
|
| 68 |
// [MSIE] Internetexplorer compatibility mode |
|
| 69 |
$bRetval = version_compare($aMatches[1], '5.5', '>='); |
|
| 70 |
} elseif(preg_match('/^mozilla\/[\d.]+\s\(.*?\ msie\ ([0-9.]+);/si', $sAgent, $aMatches)) {
|
|
| 71 |
// [MSIE] Internetexplorer |
|
| 72 |
$bRetval = version_compare($aMatches[1], '5.5', '>='); |
|
| 73 |
} else {
|
|
| 74 |
// undefined client agent |
|
| 75 |
$bRetval = false; |
|
| 76 |
} |
|
| 77 |
return $bRetval; |
|
| 73 | 78 |
} |
| 74 | 79 |
|
| 75 | 80 |
class FCKeditor |
Also available in: Unified diff
! Update Checks if a browser's user agent string is compatible with the FCKeditor.
! Set WebsiteBaker Module Version to 2.9.8