--- /dev/null
+<?php\r
+/*\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ * - GNU General Public License Version 2 or later (the "GPL")\r
+ * http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ * http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ * - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ * http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Configuration file for the File Manager Connector for PHP.\r
+ */\r
+\r
+global $Config ;\r
+\r
+// SECURITY: You must explicitly enable this "connector". (Set it to "true").\r
+// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only\r
+// authenticated users can access this file or use some kind of session checking.\r
+$Config['Enabled'] = false ;\r
+\r
+\r
+// Path to user files relative to the document root.\r
+$Config['UserFilesPath'] = '/userfiles/' ;\r
+\r
+// Fill the following value it you prefer to specify the absolute path for the\r
+// user files directory. Useful if you are using a virtual directory, symbolic\r
+// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.\r
+// Attention: The above 'UserFilesPath' must point to the same directory.\r
+$Config['UserFilesAbsolutePath'] = '' ;\r
+\r
+// Due to security issues with Apache modules, it is recommended to leave the\r
+// following setting enabled.\r
+$Config['ForceSingleExtension'] = true ;\r
+\r
+// Perform additional checks for image files.\r
+// If set to true, validate image size (using getimagesize).\r
+$Config['SecureImageUploads'] = true;\r
+\r
+// What the user can do with this connector.\r
+$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;\r
+\r
+// Allowed Resource Types.\r
+$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;\r
+\r
+// For security, HTML is allowed in the first Kb of data for files having the\r
+// following extensions only.\r
+$Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js") ;\r
+\r
+// After file is uploaded, sometimes it is required to change its permissions\r
+// so that it was possible to access it at the later time.\r
+// If possible, it is recommended to set more restrictive permissions, like 0755.\r
+// Set to 0 to disable this feature.\r
+// Note: not needed on Windows-based servers.\r
+$Config['ChmodOnUpload'] = 0777 ;\r
+\r
+// See comments above.\r
+// Used when creating folders that does not exist.\r
+$Config['ChmodOnFolderCreate'] = 0777 ;\r
+\r
+/*\r
+ Configuration settings for each Resource Type\r
+\r
+ - AllowedExtensions: the possible extensions that can be allowed.\r
+ If it is empty then any file type can be uploaded.\r
+ - DeniedExtensions: The extensions that won't be allowed.\r
+ If it is empty then no restrictions are done here.\r
+\r
+ For a file to be uploaded it has to fulfill both the AllowedExtensions\r
+ and DeniedExtensions (that's it: not being denied) conditions.\r
+\r
+ - FileTypesPath: the virtual folder relative to the document root where\r
+ these resources will be located.\r
+ Attention: It must start and end with a slash: '/'\r
+\r
+ - FileTypesAbsolutePath: the physical path to the above folder. It must be\r
+ an absolute path.\r
+ If it's an empty string then it will be autocalculated.\r
+ Useful if you are using a virtual directory, symbolic link or alias.\r
+ Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.\r
+ Attention: The above 'FileTypesPath' must point to the same directory.\r
+ Attention: It must end with a slash: '/'\r
+\r
+ - QuickUploadPath: the virtual folder relative to the document root where\r
+ these resources will be uploaded using the Upload tab in the resources\r
+ dialogs.\r
+ Attention: It must start and end with a slash: '/'\r
+\r
+ - QuickUploadAbsolutePath: the physical path to the above folder. It must be\r
+ an absolute path.\r
+ If it's an empty string then it will be autocalculated.\r
+ Useful if you are using a virtual directory, symbolic link or alias.\r
+ Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.\r
+ Attention: The above 'QuickUploadPath' must point to the same directory.\r
+ Attention: It must end with a slash: '/'\r
+\r
+ NOTE: by default, QuickUploadPath and QuickUploadAbsolutePath point to\r
+ "userfiles" directory to maintain backwards compatibility with older versions of FCKeditor.\r
+ This is fine, but you in some cases you will be not able to browse uploaded files using file browser.\r
+ Example: if you click on "image button", select "Upload" tab and send image\r
+ to the server, image will appear in FCKeditor correctly, but because it is placed\r
+ directly in /userfiles/ directory, you'll be not able to see it in built-in file browser.\r
+ The more expected behaviour would be to send images directly to "image" subfolder.\r
+ To achieve that, simply change\r
+ $Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;\r
+ $Config['QuickUploadAbsolutePath']['Image'] = $Config['UserFilesAbsolutePath'] ;\r
+ into:\r
+ $Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'] ;\r
+ $Config['QuickUploadAbsolutePath']['Image'] = $Config['FileTypesAbsolutePath']['Image'] ;\r
+\r
+*/\r
+\r
+$Config['AllowedExtensions']['File'] = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;\r
+$Config['DeniedExtensions']['File'] = array() ;\r
+$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . 'file/' ;\r
+$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;\r
+$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;\r
+$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;\r
+\r
+$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;\r
+$Config['DeniedExtensions']['Image'] = array() ;\r
+$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;\r
+$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;\r
+$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;\r
+$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;\r
+\r
+$Config['AllowedExtensions']['Flash'] = array('swf','flv') ;\r
+$Config['DeniedExtensions']['Flash'] = array() ;\r
+$Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ;\r
+$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;\r
+$Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] ;\r
+$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;\r
+\r
+$Config['AllowedExtensions']['Media'] = array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;\r
+$Config['DeniedExtensions']['Media'] = array() ;\r
+$Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;\r
+$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;\r
+$Config['QuickUploadPath']['Media'] = $Config['UserFilesPath'] ;\r
+$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;\r
+\r
+?>\r