egroupware_official/phpgwapi/js/fckeditor/egw_integration.txt

69 lines
3.1 KiB
Plaintext

2008/04/15 (RalfBecker)
- update to FCK 2.6
- editor/filemanager/connectors/php/io.php line 168:
- return $info->filename . $info->path_info ;
+ // RalfBecker 2008/04/15: remove index.{html|php} added by apache
+ return str_replace(array('/index.html','/index.php'),'',$info->filename) . $info->path_info ;
- editor/filemanager/browser/default/connectors/php/config.php line 30:
$Config['Enabled'] = false ;
+function deny_no_egw_session(&$account)
+{
+ die('Access denied!');
+}
+$GLOBALS['egw_info'] = array(
+ 'flags' => array(
+ 'currentapp' => 'home',
+ 'noheader' => true,
+ 'autocreate_session_callback' => 'deny_no_egw_session',
+ )
+);
+// will not continue, unless the header get's included and there is a valid eGW session
+require('../../../../../../../header.inc.php');
+
+if ($GLOBALS['egw']->session->session_flags == 'N' && // allow only non anonymous sessions,
+ ($app=$GLOBALS['egw']->session->appsession($_GET['ServerPath'],'FCKeditor')) && // check if path is stored in the session and
+ isset($GLOBALS['egw_info']['user']['apps'][$app])) // user has access to the stored application (as we can only check of home above)
+{
+ $Config['UserFilesPath'] = $_GET['ServerPath'];
+ $Config['Enabled'] = true;
+}
+else
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;
- editor/filemanager/browser/default/connectors/php/config.php reverted to the original FCK version of ConfigAllowedTypes
-$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;
+$Config['ConfigAllowedTypes'] = array('Image'); //array('File', 'Image', 'Flash', 'Media') ;
-$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
+$Config['FileTypesPath']['Image'] = $Config['UserFilesPath']; // . 'image/' ;
2007/12/16 (jgordor) - 2.5 Migration
- Moved own config (not controlled by the php config object) to external file: fckeditor.egwconfig.js
- Changes in the fckeditor code:
- Enable/configure the connector in (now is controlled by only one file):
- editor/filemanager/connectors/php/config.php
- Enable connector
- Get and set ServerPath var to configure userdir path
- Enable/configure aspell on (for spellchecker):
- editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php
--------------------------------------------------------
Changes made to fckeditor to work properly on egroupware
- fckconfig.js
- Added egw_* toolbars
- editor/filemanager/browser/default/connectors/php/connector.php
- Change hardcoded image dir from Image -> images (to respect the actual behavior in sitemgr)
- editor/filemanager/browser/default/frmresourcetype.html
- Again change Image -> images
- editor/filemanager/browser/default/connectors/php/config.php
- Commented hardcoded Userdir path
- Enable the browser
- editor/filemanager/upload/php/config.php
- Commented hardcoded Userdir path (is disabled by default)
- editor/filemanager/browser/default/connectors/php/io.php
- Remove the append of directory per type, example, for images the final url is base+serverpath+images (or type)