|
From: <al...@us...> - 2008-01-11 13:58:22
|
Revision: 591
http://sciret.svn.sourceforge.net/sciret/?rev=591&view=rev
Author: alpeb
Date: 2008-01-11 05:58:15 -0800 (Fri, 11 Jan 2008)
Log Message:
-----------
Fixes problem for media files upload location
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-11-27 00:51:53 UTC (rev 590)
+++ branches/release-candidates/sciret-1.2/fckeditor/editor/filemanager/connectors/php/config.php 2008-01-11 13:58:15 UTC (rev 591)
@@ -36,7 +36,7 @@
// Path to user files relative to the document root.
// ***** SCIRET MODIFICATION ******
-preg_match('#(.*)/fckeditor/editor/filemanager/connectors/php/connector\.php.*#', $_SERVER['REQUEST_URI'], $matches);
+preg_match('#(.*)/fckeditor/editor/filemanager/connectors/php.*#', $_SERVER['REQUEST_URI'], $matches);
$Config['UserFilesPath'] = $matches[1].'/uploads/editor/';
// ***** END OF SCIRET MODIFICATION ******
@@ -99,28 +99,36 @@
$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'] = $Config['UserFilesPath'] . 'file/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
-$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
+// ***** SCIRET MODIFICATION ******
+$Config['QuickUploadPath']['File'] = $Config['FileTypesPath']['File'];
+// ***** END OF SCIRET MODIFICATION ******
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;
$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
-$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
+// ***** SCIRET MODIFICATION ******
+$Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'];
+// ***** END OF SCIRET MODIFICATION ******
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
$Config['DeniedExtensions']['Flash'] = array() ;
$Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ;
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
-$Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] ;
+// ***** SCIRET MODIFICATION ******
+$Config['QuickUploadPath']['Flash'] = $Config['FileTypesPath']['Flash'];
+// ***** END OF SCIRET MODIFICATION ******
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;
$Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
$Config['DeniedExtensions']['Media'] = array() ;
$Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;
-$Config['QuickUploadPath']['Media'] = $Config['UserFilesPath'] ;
+// ***** SCIRET MODIFICATION ******
+$Config['QuickUploadPath']['Media'] = $Config['FileTypesPath']['Media'];
+// ***** END OF SCIRET MODIFICATION ******
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|