+++ /dev/null
-<cfsetting enablecfoutputonly="yes" showdebugoutput="no">\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
- * File Browser connector for ColdFusion (MX 6.0 and above).\r
- * (based on the original CF connector by Hendrik Kramer - hk@lwd.de)\r
- *\r
---->\r
-\r
-<cfparam name="url.command">\r
-<cfparam name="url.type">\r
-<cfparam name="url.currentFolder">\r
-\r
-<!--- note: no serverPath url parameter - see config.cfm if you need to set the serverPath manually --->\r
-\r
-<cfinclude template="config.cfm">\r
-<cfinclude template="cf_util.cfm">\r
-<cfinclude template="cf_io.cfm">\r
-<cfinclude template="cf_basexml.cfm">\r
-<cfinclude template="cf_commands.cfm">\r
-\r
-<cfif not Config.Enabled>\r
- <cfset SendError( 1, 'This connector is disabled. Please check the "editor/filemanager/connectors/cfm/config.cfm" file' )>\r
-</cfif>\r
-\r
-<cfset REQUEST.Config = Config>\r
-<cfif find( "/", getBaseTemplatePath() ) >\r
- <cfset REQUEST.Fs = "/">\r
-<cfelse>\r
- <cfset REQUEST.Fs = "\">\r
-</cfif>\r
-\r
-<cfset DoResponse() >\r
-\r
-<cffunction name="DoResponse" output="true" returntype="void">\r
-\r
- <!--- Get the main request informaiton. --->\r
- <cfset var sCommand = "#URL.Command#" >\r
- <cfset var sResourceType = URL.Type >\r
- <cfset var sCurrentFolder = GetCurrentFolder() >\r
-\r
- <!--- Check if it is an allowed command --->\r
- <cfif not IsAllowedCommand( sCommand ) >\r
- <cfset SendError( 1, "The """ & sCommand & """ command isn't allowed" ) >\r
- </cfif>\r
-\r
- <!--- Check if it is an allowed type. --->\r
- <cfif not IsAllowedType( sResourceType ) >\r
- <cfset SendError( 1, 'Invalid type specified' ) >\r
- </cfif>\r
-\r
- <!--- File Upload doesn't have to Return XML, so it must be intercepted before anything. --->\r
- <cfif sCommand eq "FileUpload">\r
- <cfset FileUpload( sResourceType, sCurrentFolder, sCommand )>\r
- <cfabort>\r
- </cfif>\r
-\r
- <cfset CreateXmlHeader( sCommand, sResourceType, sCurrentFolder )>\r
-\r
- <!--- Execute the required command. --->\r
- <cfif sCommand eq "GetFolders">\r
- <cfset GetFolders( sResourceType, sCurrentFolder ) >\r
- <cfelseif sCommand eq "GetFoldersAndFiles">\r
- <cfset GetFoldersAndFiles( sResourceType, sCurrentFolder ) >\r
- <cfelseif sCommand eq "CreateFolder">\r
- <cfset CreateFolder( sResourceType, sCurrentFolder ) >\r
- </cfif>\r
-\r
- <cfset CreateXmlFooter()>\r
-\r
- <cfexit>\r
-</cffunction>\r