Hi!
I develop some sites, and i have config.inc file.
I set a constant in php, and create this: define ('MEDIA_PATH','/store/mysite/media');
when i create a new site, or moving any site, i wouldn't like to change the /userfiles/ in all the config files.
i want to change only in my config.inc file.
in tinymce, there are php files, so i can easily change the code.
is there any option to set these userfile directories in connector.php, and fckconfig.js ?
Or set this directories from outside of .js ?
Thx
Lolka
I develop some sites, and i have config.inc file.
I set a constant in php, and create this: define ('MEDIA_PATH','/store/mysite/media');
when i create a new site, or moving any site, i wouldn't like to change the /userfiles/ in all the config files.
i want to change only in my config.inc file.
in tinymce, there are php files, so i can easily change the code.
is there any option to set these userfile directories in connector.php, and fckconfig.js ?
Or set this directories from outside of .js ?
Thx
Lolka
Re: change upload path but not from $Config
$SMdocroot=realpath($_SERVER['DOCUMENT_ROOT']);
$SMimgdir=realpath('Upload');
$SMUFP=substr($SMimgdir,strlen($SMdocroot));
$Config['UserFilesPath'] = $SMUFP ;
$Config['UserFilesAbsolutePath'] = $SMimgdir ;
This always sets the upload folder as 'Upload' relative to the folder that contains fckeditor.