gestion des images dans fckeditor

This commit is contained in:
Regis Houssin 2006-07-23 21:15:47 +00:00
parent 814da4e72c
commit be8f4a951e
3 changed files with 6 additions and 5 deletions

View File

@ -272,6 +272,7 @@ class Conf
$this->ldap->enabled=defined("MAIN_MODULE_LDAP")?MAIN_MODULE_LDAP:0; $this->ldap->enabled=defined("MAIN_MODULE_LDAP")?MAIN_MODULE_LDAP:0;
// Module FCKeditor // Module FCKeditor
$this->fckeditor->enabled=defined("MAIN_MODULE_FCKEDITOR")?MAIN_MODULE_FCKEDITOR:0; $this->fckeditor->enabled=defined("MAIN_MODULE_FCKEDITOR")?MAIN_MODULE_FCKEDITOR:0;
$this->fckeditor->dir_images=DOL_DATA_ROOT."/fckeditor/images";
/* /*

View File

@ -18,19 +18,19 @@
* Frederico Caldeira Knabben (fredck@fckeditor.net) * Frederico Caldeira Knabben (fredck@fckeditor.net)
*/ */
global $Config ; global $Config, $conf ;
// SECURITY: You must explicitelly enable this "connector". (Set it to "true"). // SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = false ; $Config['Enabled'] = true ;
// Path to user files relative to the document root. // Path to user files relative to the document root.
$Config['UserFilesPath'] = '/UserFiles/' ; $Config['UserFilesPath'] = '/images/' ;
// Fill the following value it you prefer to specify the absolute path for the // Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic // user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'. // link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory. // Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ; $Config['UserFilesAbsolutePath'] = $conf->fckeditor->dir_images ;
// Due to security issues with Apache modules, it is reccomended to leave the // Due to security issues with Apache modules, it is reccomended to leave the
// following setting enabled. // following setting enabled.

View File

@ -18,7 +18,7 @@
* Frederico Caldeira Knabben (fredck@fckeditor.net) * Frederico Caldeira Knabben (fredck@fckeditor.net)
*/ */
global $Config ; global $Config, $conf ;
// SECURITY: You must explicitelly enable this "uploader". // SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = true ; $Config['Enabled'] = true ;