From: <al...@us...> - 2007-08-18 22:00:44
|
Revision: 500 http://sciret.svn.sourceforge.net/sciret/?rev=500&view=rev Author: alpeb Date: 2007-08-18 14:47:16 -0700 (Sat, 18 Aug 2007) Log Message: ----------- make the config a little smarter by figuring out itself where the upload dir must go Modified Paths: -------------- branches/release-candidates/sciret-1.2/fckeditor/editor/filemanager/connectors/php/config.php Modified: branches/release-candidates/sciret-1.2/fckeditor/editor/filemanager/connectors/php/config.php =================================================================== --- branches/release-candidates/sciret-1.2/fckeditor/editor/filemanager/connectors/php/config.php 2007-08-18 21:46:38 UTC (rev 499) +++ branches/release-candidates/sciret-1.2/fckeditor/editor/filemanager/connectors/php/config.php 2007-08-18 21:47:16 UTC (rev 500) @@ -35,7 +35,10 @@ // @Packager.Remove.End // Path to user files relative to the document root. -$Config['UserFilesPath'] = '/sciret/uploads/editor' ; +// ***** SCIRET MODIFICATION ****** +preg_match('#(.*)/fckeditor/editor/filemanager/connectors/php/connector\.php.*#', $_SERVER['REQUEST_URI'], $matches); +$Config['UserFilesPath'] = $matches[1].'/uploads/editor/'; +// ***** END OF SCIRET MODIFICATION ****** // 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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |