Index: /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/config.asp
===================================================================
--- /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/config.asp	(revision 311)
+++ /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/config.asp	(revision 312)
@@ -30,4 +30,8 @@
 
 ConfigIsEnabled = true
+
+' Path to user files relative to the document root.
+Dim ConfigUserFilesPath
+ConfigUserFilesPath = "/userfiles/"
 
 ' Due to security issues with Apache modules, it is reccomended to leave the
@@ -68,17 +72,17 @@
 ConfigAllowedExtensions.Add	"File", ""
 ConfigDeniedExtensions.Add	"File", "html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|com|dll|vbs|js|reg|cgi|htaccess|asis|sh|shtml|shtm|phtm"
-ConfigFileTypesPath.Add "File", "/userfiles/file/"
+ConfigFileTypesPath.Add "File", ConfigUserFilesPath & "file/"
 
 ConfigAllowedExtensions.Add	"Image", "jpg|gif|jpeg|png|bmp"
 ConfigDeniedExtensions.Add	"Image", ""
-ConfigFileTypesPath.Add "Image", "/userfiles/image/"
+ConfigFileTypesPath.Add "Image", ConfigUserFilesPath & "image/"
 
 ConfigAllowedExtensions.Add	"Flash", "swf|fla"
 ConfigDeniedExtensions.Add	"Flash", ""
-ConfigFileTypesPath.Add "Flash", "/userfiles/flash/"
+ConfigFileTypesPath.Add "Flash", ConfigUserFilesPath & "flash/"
 
 ConfigAllowedExtensions.Add	"Media", "swf|fla|jpg|gif|jpeg|png|avi|mpg|mpeg|mp(1-4)|wma|wmv|wav|mid|midi|rmi|rm|ram|rmvb|mov|qt"
 ConfigDeniedExtensions.Add	"Media", ""
-ConfigFileTypesPath.Add "Media", "/userfiles/media/"
+ConfigFileTypesPath.Add "Media", ConfigUserFilesPath & "media/"
 
 %>
Index: /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/cfm/config.cfm
===================================================================
--- /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/cfm/config.cfm	(revision 311)
+++ /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/cfm/config.cfm	(revision 312)
@@ -68,10 +68,6 @@
 </cfif>
 
-<!--- look for config struct in request, application and server scopes --->
-<cfif isDefined("request.FCKeditor") and isStruct(request.FCKeditor)>
-
-	<cfset variables.FCKeditor = request.FCKeditor>
-
-<cfelseif isDefined("application.FCKeditor") and isStruct(application.FCKeditor)>
+<!--- look for config struct in application and server scopes --->
+<cfif isDefined("application.FCKeditor") and isStruct(application.FCKeditor)>
 
 	<cflock scope="application" type="readonly" timeout="5">
Index: /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/php/config.php
===================================================================
--- /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/php/config.php	(revision 311)
+++ /FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/php/config.php	(revision 312)
@@ -34,4 +34,13 @@
 $Config['Enabled'] = true ;
 // @Packager.Remove.End
+
+// Path to user files relative to the document root.
+$Config['UserFilesPath'] = '/userfiles/' ;
+
+// 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
+// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
+// Attention: The above 'UserFilesPath' must point to the same directory.
+$Config['UserFilesAbsolutePath'] = '' ;
 
 // Due to security issues with Apache modules, it is reccomended to leave the
@@ -72,20 +81,20 @@
 $Config['AllowedExtensions']['File']	= array() ;
 $Config['DeniedExtensions']['File']		= array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis','sh','shtml','shtm','phtm') ;
-$Config['FileTypesPath']['File']		= '/userfiles/file/' ;
-$Config['FileTypesAbsolutePath']['File']= '' ;
+$Config['FileTypesPath']['File']		= $Config['UserFilesPath'] . 'file/' ;
+$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
 
 $Config['AllowedExtensions']['Image']	= array('jpg','gif','jpeg','png') ;
 $Config['DeniedExtensions']['Image']	= array() ;
-$Config['FileTypesPath']['Image']		= '/userfiles/image/' ;
-$Config['FileTypesAbsolutePath']['Image']= '' ;
+$Config['FileTypesPath']['Image']		= $Config['UserFilesPath'] . 'image/' ;
+$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
 
 $Config['AllowedExtensions']['Flash']	= array('swf','fla') ;
 $Config['DeniedExtensions']['Flash']	= array() ;
-$Config['FileTypesPath']['Flash']		= '/userfiles/flash/' ;
-$Config['FileTypesAbsolutePath']['Flash']= '' ;
+$Config['FileTypesPath']['Flash']		= $Config['UserFilesPath'] . 'flash/' ;
+$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
 
 $Config['AllowedExtensions']['Media']	= array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
 $Config['DeniedExtensions']['Media']	= array() ;
-$Config['FileTypesPath']['Media']		= '/userfiles/media/' ;
-$Config['FileTypesAbsolutePath']['Media']= '' ;
+$Config['FileTypesPath']['Media']		= $Config['UserFilesPath'] . 'media/' ;
+$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;
 ?>
