Index: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/config.php =================================================================== diff -u -r1477 -r1530 --- trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/config.php (.../config.php) (revision 1477) +++ trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/config.php (.../config.php) (revision 1530) @@ -26,10 +26,12 @@ define('FULL_PATH', dirname(realpath(__FILE__))); define('BASE_PATH', str_replace('/cmseditor/editor/filemanager/browser/default/connectors/php', '', ereg_replace($_SERVER['DOCUMENT_ROOT'], '', FULL_PATH) ) ); -include_once($_SERVER['DOCUMENT_ROOT'].BASE_PATH."/config/config.php"); +$kernel3_config = $_SERVER['DOCUMENT_ROOT'].BASE_PATH."/config/config.php"; +if (file_exists($kernel3_config)) { + include_once($kernel3_config); + $Config['UserFilesPath'] = BASE_PATH.'/templates/UserFiles/' ; +} -$Config['UserFilesPath'] = BASE_PATH.'/templates/UserFiles/' ; - $Config['AllowedExtensions']['Files'] = array('jpg','gif','jpeg','png','swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg','zip','rar','arj','gz','tar','doc','pdf','ppt','rdp','swf','swt','txt','vsd','xls','csv') ; $Config['DeniedExtensions']['Files'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg') ;