1 |
1159
|
Luisehahne
|
<cfsetting enablecfoutputonly="Yes">
|
2 |
|
|
<!---
|
3 |
|
|
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
4 |
|
|
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
5 |
|
|
*
|
6 |
|
|
* == BEGIN LICENSE ==
|
7 |
|
|
*
|
8 |
|
|
* Licensed under the terms of any of the following licenses at your
|
9 |
|
|
* choice:
|
10 |
|
|
*
|
11 |
|
|
* - GNU General Public License Version 2 or later (the "GPL")
|
12 |
|
|
* http://www.gnu.org/licenses/gpl.html
|
13 |
|
|
*
|
14 |
|
|
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
|
15 |
|
|
* http://www.gnu.org/licenses/lgpl.html
|
16 |
|
|
*
|
17 |
|
|
* - Mozilla Public License Version 1.1 or later (the "MPL")
|
18 |
|
|
* http://www.mozilla.org/MPL/MPL-1.1.html
|
19 |
|
|
*
|
20 |
|
|
* == END LICENSE ==
|
21 |
|
|
*
|
22 |
|
|
* Configuration file for the ColdFusion Connector (all versions).
|
23 |
|
|
--->
|
24 |
|
|
|
25 |
|
|
<cfscript>
|
26 |
|
|
Config = StructNew() ;
|
27 |
|
|
|
28 |
|
|
// SECURITY: You must explicitly enable this "connector". (Set enabled to "true")
|
29 |
|
|
Config.Enabled = false ;
|
30 |
|
|
|
31 |
|
|
// Path to uploaded files relative to the document root.
|
32 |
|
|
Config.UserFilesPath = "/userfiles/" ;
|
33 |
|
|
|
34 |
|
|
// Use this to force the server path if FCKeditor is not running directly off
|
35 |
|
|
// the root of the application or the FCKeditor directory in the URL is a virtual directory
|
36 |
|
|
// or a symbolic link / junction
|
37 |
|
|
// Example: C:\inetpub\wwwroot\myDocs\
|
38 |
|
|
Config.ServerPath = "" ;
|
39 |
|
|
|
40 |
|
|
// Due to security issues with Apache modules, it is recommended to leave the
|
41 |
|
|
// following setting enabled.
|
42 |
|
|
Config.ForceSingleExtension = true ;
|
43 |
|
|
|
44 |
|
|
// Perform additional checks for image files - if set to true, validate image size
|
45 |
|
|
// (This feature works in MX 6.0 and above)
|
46 |
|
|
Config.SecureImageUploads = true;
|
47 |
|
|
|
48 |
|
|
// What the user can do with this connector
|
49 |
|
|
Config.ConfigAllowedCommands = "QuickUpload,FileUpload,GetFolders,GetFoldersAndFiles,CreateFolder" ;
|
50 |
|
|
|
51 |
|
|
//Allowed Resource Types
|
52 |
|
|
Config.ConfigAllowedTypes = "File,Image,Flash,Media" ;
|
53 |
|
|
|
54 |
|
|
// For security, HTML is allowed in the first Kb of data for files having the
|
55 |
|
|
// following extensions only.
|
56 |
|
|
// (This feature works in MX 6.0 and above))
|
57 |
|
|
Config.HtmlExtensions = "html,htm,xml,xsd,txt,js" ;
|
58 |
|
|
|
59 |
|
|
//Due to known issues with GetTempDirectory function, it is
|
60 |
|
|
//recommended to set this vairiable to a valid directory
|
61 |
|
|
//instead of using the GetTempDirectory function
|
62 |
|
|
//(used by MX 6.0 and above)
|
63 |
|
|
Config.TempDirectory = GetTempDirectory();
|
64 |
|
|
</cfscript>
|
65 |
|
|
|
66 |
|
|
<cftry>
|
67 |
|
|
<!--- code to maintain backwards compatibility with previous version of cfm connector --->
|
68 |
|
|
<cfif isDefined("application.userFilesPath")>
|
69 |
|
|
<cflock scope="application" type="readonly" timeout="20">
|
70 |
|
|
<cfset config.userFilesPath = application.userFilesPath>
|
71 |
|
|
</cflock>
|
72 |
|
|
</cfif>
|
73 |
|
|
|
74 |
|
|
<!--- catch potential "The requested scope application has not been enabled" exception --->
|
75 |
|
|
<cfcatch type="any">
|
76 |
|
|
</cfcatch>
|
77 |
|
|
</cftry>
|
78 |
|
|
|
79 |
|
|
<cfscript>
|
80 |
|
|
// Configuration settings for each Resource Type
|
81 |
|
|
//
|
82 |
|
|
// - AllowedExtensions: the possible extensions that can be allowed.
|
83 |
|
|
// If it is empty then any file type can be uploaded.
|
84 |
|
|
// - DeniedExtensions: The extensions that won't be allowed.
|
85 |
|
|
// If it is empty then no restrictions are done here.
|
86 |
|
|
//
|
87 |
|
|
// For a file to be uploaded it has to fulfill both the AllowedExtensions
|
88 |
|
|
// and DeniedExtensions (that's it: not being denied) conditions.
|
89 |
|
|
//
|
90 |
|
|
// - FileTypesPath: the virtual folder relative to the document root where
|
91 |
|
|
// these resources will be located.
|
92 |
|
|
// Attention: It must start and end with a slash: '/'
|
93 |
|
|
//
|
94 |
|
|
// - FileTypesAbsolutePath: the physical path to the above folder. It must be
|
95 |
|
|
// an absolute path.
|
96 |
|
|
// If it's an empty string then it will be autocalculated.
|
97 |
|
|
// Usefull if you are using a virtual directory, symbolic link or alias.
|
98 |
|
|
// Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
|
99 |
|
|
// Attention: The above 'FileTypesPath' must point to the same directory.
|
100 |
|
|
// Attention: It must end with a slash: '/'
|
101 |
|
|
//
|
102 |
|
|
//
|
103 |
|
|
// - QuickUploadPath: the virtual folder relative to the document root where
|
104 |
|
|
// these resources will be uploaded using the Upload tab in the resources
|
105 |
|
|
// dialogs.
|
106 |
|
|
// Attention: It must start and end with a slash: '/'
|
107 |
|
|
//
|
108 |
|
|
// - QuickUploadAbsolutePath: the physical path to the above folder. It must be
|
109 |
|
|
// an absolute path.
|
110 |
|
|
// If it's an empty string then it will be autocalculated.
|
111 |
|
|
// Usefull if you are using a virtual directory, symbolic link or alias.
|
112 |
|
|
// Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
|
113 |
|
|
// Attention: The above 'QuickUploadPath' must point to the same directory.
|
114 |
|
|
// Attention: It must end with a slash: '/'
|
115 |
|
|
|
116 |
|
|
Config.AllowedExtensions = StructNew() ;
|
117 |
|
|
Config.DeniedExtensions = StructNew() ;
|
118 |
|
|
Config.FileTypesPath = StructNew() ;
|
119 |
|
|
Config.FileTypesAbsolutePath = StructNew() ;
|
120 |
|
|
Config.QuickUploadPath = StructNew() ;
|
121 |
|
|
Config.QuickUploadAbsolutePath = StructNew() ;
|
122 |
|
|
|
123 |
|
|
Config.AllowedExtensions["File"] = "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" ;
|
124 |
|
|
Config.DeniedExtensions["File"] = "" ;
|
125 |
|
|
Config.FileTypesPath["File"] = Config.UserFilesPath & 'file/' ;
|
126 |
|
|
Config.FileTypesAbsolutePath["File"] = iif( Config.ServerPath eq "", de(""), de(Config.ServerPath & 'file/') ) ;
|
127 |
|
|
Config.QuickUploadPath["File"] = Config.FileTypesPath["File"] ;
|
128 |
|
|
Config.QuickUploadAbsolutePath["File"] = Config.FileTypesAbsolutePath["File"] ;
|
129 |
|
|
|
130 |
|
|
Config.AllowedExtensions["Image"] = "bmp,gif,jpeg,jpg,png" ;
|
131 |
|
|
Config.DeniedExtensions["Image"] = "" ;
|
132 |
|
|
Config.FileTypesPath["Image"] = Config.UserFilesPath & 'image/' ;
|
133 |
|
|
Config.FileTypesAbsolutePath["Image"] = iif( Config.ServerPath eq "", de(""), de(Config.ServerPath & 'image/') ) ;
|
134 |
|
|
Config.QuickUploadPath["Image"] = Config.FileTypesPath["Image"] ;
|
135 |
|
|
Config.QuickUploadAbsolutePath["Image"] = Config.FileTypesAbsolutePath["Image"] ;
|
136 |
|
|
|
137 |
|
|
Config.AllowedExtensions["Flash"] = "swf,flv" ;
|
138 |
|
|
Config.DeniedExtensions["Flash"] = "" ;
|
139 |
|
|
Config.FileTypesPath["Flash"] = Config.UserFilesPath & 'flash/' ;
|
140 |
|
|
Config.FileTypesAbsolutePath["Flash"] = iif( Config.ServerPath eq "", de(""), de(Config.ServerPath & 'flash/') ) ;
|
141 |
|
|
Config.QuickUploadPath["Flash"] = Config.FileTypesPath["Flash"] ;
|
142 |
|
|
Config.QuickUploadAbsolutePath["Flash"] = Config.FileTypesAbsolutePath["Flash"] ;
|
143 |
|
|
|
144 |
|
|
Config.AllowedExtensions["Media"] = "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" ;
|
145 |
|
|
Config.DeniedExtensions["Media"] = "" ;
|
146 |
|
|
Config.FileTypesPath["Media"] = Config.UserFilesPath & 'media/' ;
|
147 |
|
|
Config.FileTypesAbsolutePath["Media"] = iif( Config.ServerPath eq "", de(""), de(Config.ServerPath & 'media/') ) ;
|
148 |
|
|
Config.QuickUploadPath["Media"] = Config.FileTypesPath["Media"] ;
|
149 |
|
|
Config.QuickUploadAbsolutePath["Media"] = Config.FileTypesAbsolutePath["Media"] ;
|
150 |
|
|
</cfscript>
|