Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Sun, Feb 2, 7:14 PM

in-portal

Index: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/config.php
===================================================================
--- trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/config.php (revision 1625)
+++ trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/config.php (revision 1626)
@@ -1 +1 @@
-<?php /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: config.php * Configuration file for the File Manager Connector for PHP. * * Version: 2.0 RC3 * Modified: 2005-02-08 12:01:53 * * File Authors: * Frederico Caldeira Knabben (fredck@fckeditor.net) */ global $Config ; // Path to user files relative to the document root. // SECURITY TIP: Uncomment the following line to set a fixed path. define('K3_FULL_PATH', dirname(realpath(__FILE__))); define('K3_BASE_PATH', str_replace('/cmseditor/editor/filemanager/browser/default/connectors/php', '', ereg_replace($_SERVER['DOCUMENT_ROOT'], '', FULL_PATH) ) ); $kernel3_config = $_SERVER['DOCUMENT_ROOT'].K3_BASE_PATH."/config/config.php"; if (file_exists($kernel3_config)) { define('FULL_PATH', K3_FULL_PATH); define('BASE_PATH', K3_BASE_PATH); include_once($kernel3_config); $Config['UserFilesPath'] = BASE_PATH.'/templates/UserFiles/' ; } else { $fp = realpath(dirname(__FILE__).'/../../../../../../../../../'); define('FULL_PATH', $fp); define('DEBUG_MODE', 0); define('APPLICATION_CLASS', 'MyApplication'); $kernel4_startup = $fp."/kernel/kernel4/startup.php"; $Config['K4Mode'] = 1; include_once($kernel4_startup); } $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') ; $Config['AllowedExtensions']['Images'] = array('jpg','gif','jpeg','png', 'bmp') ; $Config['DeniedExtensions']['Images'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg'); $Config['AllowedExtensions']['Flash'] = array('swf','fla') ; $Config['DeniedExtensions']['Flash'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg') ; $Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ; $Config['DeniedExtensions']['Media'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg'); $Config['AllowedExtensions']['Documents'] = array('doc','pdf','ppt','rdp','swf','swt','txt','vsd','xls','csv','zip') ; $Config['DeniedExtensions']['Documents'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg'); ?>
\ No newline at end of file
+<?php /* * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: config.php * Configuration file for the File Manager Connector for PHP. * * Version: 2.0 RC3 * Modified: 2005-02-08 12:01:53 * * File Authors: * Frederico Caldeira Knabben (fredck@fckeditor.net) */ global $Config ; // Path to user files relative to the document root. // SECURITY TIP: Uncomment the following line to set a fixed path. define('K3_FULL_PATH', dirname(realpath(__FILE__))); define('K3_BASE_PATH', str_replace('/cmseditor/editor/filemanager/browser/default/connectors/php', '', ereg_replace($_SERVER['DOCUMENT_ROOT'], '', K3_FULL_PATH) ) ); $kernel3_config = $_SERVER['DOCUMENT_ROOT'].K3_BASE_PATH."/config/config.php"; if (file_exists($kernel3_config)) { define('FULL_PATH', K3_FULL_PATH); define('BASE_PATH', K3_BASE_PATH); include_once($kernel3_config); $Config['UserFilesPath'] = BASE_PATH.'/templates/UserFiles/' ; } else { $fp = realpath(dirname(__FILE__).'/../../../../../../../../../'); define('FULL_PATH', $fp); define('DEBUG_MODE', 0); define('APPLICATION_CLASS', 'MyApplication'); $kernel4_startup = $fp."/kernel/kernel4/startup.php"; $Config['K4Mode'] = 1; include_once($kernel4_startup); } $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') ; $Config['AllowedExtensions']['Images'] = array('jpg','gif','jpeg','png', 'bmp') ; $Config['DeniedExtensions']['Images'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg'); $Config['AllowedExtensions']['Flash'] = array('swf','fla') ; $Config['DeniedExtensions']['Flash'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg') ; $Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ; $Config['DeniedExtensions']['Media'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg'); $Config['AllowedExtensions']['Documents'] = array('doc','pdf','ppt','rdp','swf','swt','txt','vsd','xls','csv','zip') ; $Config['DeniedExtensions']['Documents'] = array('php','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg'); ?>
\ No newline at end of file
Property changes on: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/config.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.5
\ No newline at end of property
+1.6
\ No newline at end of property

Event Timeline