Ugly hack. if we're on sfiab.com set the absolute path for the userfiles so uploading files to the server works

This commit is contained in:
james 2011-12-15 21:51:45 +00:00
parent 1b426bcf69
commit 8165ddd86d

View File

@ -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.