diff --git a/fckeditor/editor/filemanager/connectors/php/config.php b/fckeditor/editor/filemanager/connectors/php/config.php index 87c0ccf..1671a38 100644 --- a/fckeditor/editor/filemanager/connectors/php/config.php +++ b/fckeditor/editor/filemanager/connectors/php/config.php @@ -43,7 +43,14 @@ $Config['UserFilesPath'] = $config_sfiabdirectory.'/data/userfiles/' ; // user files directory. Useful 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'] = '' ; +list($sub,$junk)=explode(".",$_SERVER['HTTP_HOST'],2); +if($junk=="sfiab.com") { + $p="{$_SERVER['DOCUMENT_ROOT']}/{$sub}/data/userfiles/"; + $Config['UserFilesAbsolutePath'] = $p; +} +else { + $Config['UserFilesAbsolutePath'] = ''; +} // Due to security issues with Apache modules, it is recommended to leave the // following setting enabled.