1
<cfsetting enablecfoutputonly="Yes">
3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
8
* Licensed under the terms of any of the following licenses at your
11
* - GNU General Public License Version 2 or later (the "GPL")
12
* http://www.gnu.org/licenses/gpl.html
14
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
* http://www.gnu.org/licenses/lgpl.html
17
* - Mozilla Public License Version 1.1 or later (the "MPL")
18
* http://www.mozilla.org/MPL/MPL-1.1.html
25
// SECURITY: You must explicitly enable this "connector". (Set enabled to "true")
26
config.enabled = false;
28
config.userFilesPath = "/userfiles/";
30
config.serverPath = ""; // use this to force the server path if FCKeditor is not running directly off the root of the application or the FCKeditor directory in the URL is a virtual directory or a symbolic link / junction
32
config.allowedExtensions = structNew();
33
config.deniedExtensions = structNew();
35
// config.allowedExtensions["File"] = "doc,rtf,pdf,ppt,pps,xls,csv,vnd,zip";
36
config.allowedExtensions["File"] = "";
37
config.deniedExtensions["File"] = "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";
39
config.allowedExtensions["Image"] = "png,gif,jpg,jpeg,bmp";
40
config.deniedExtensions["Image"] = "";
42
config.allowedExtensions["Flash"] = "swf,fla";
43
config.deniedExtensions["Flash"] = "";
45
config.allowedExtensions["Media"] = "swf,fla,jpg,gif,jpeg,png,avi,mpg,mpeg,mp3,mp4,m4a,wma,wmv,wav,mid,midi,rmi,rm,ram,rmvb,mov,qt";
46
config.deniedExtensions["Media"] = "";
49
<!--- code to maintain backwards compatibility with previous version of cfm connector --->
50
<cfif isDefined("application.userFilesPath")>
52
<cflock scope="application" type="readonly" timeout="5">
53
<cfset config.userFilesPath = application.userFilesPath>
56
<cfelseif isDefined("server.userFilesPath")>
58
<cflock scope="server" type="readonly" timeout="5">
59
<cfset config.userFilesPath = server.userFilesPath>
64
<!--- look for config struct in request, application and server scopes --->
65
<cfif isDefined("request.FCKeditor") and isStruct(request.FCKeditor)>
67
<cfset variables.FCKeditor = request.FCKeditor>
69
<cfelseif isDefined("application.FCKeditor") and isStruct(application.FCKeditor)>
71
<cflock scope="application" type="readonly" timeout="5">
72
<cfset variables.FCKeditor = duplicate(application.FCKeditor)>
75
<cfelseif isDefined("server.FCKeditor") and isStruct(server.FCKeditor)>
77
<cflock scope="server" type="readonly" timeout="5">
78
<cfset variables.FCKeditor = duplicate(server.FCKeditor)>
83
<cfif isDefined("FCKeditor")>
85
<!--- copy key values from external to local config (i.e. override default config as required) --->
87
function structCopyKeys(stFrom, stTo) {
88
for ( key in stFrom ) {
89
if ( isStruct(stFrom[key]) ) {
90
structCopyKeys(stFrom[key],stTo[key]);
92
stTo[key] = stFrom[key];
96
structCopyKeys(FCKeditor, config);