comparison MoinMoin/web/static/htdocs/applets/FCKeditor/editor/filemanager/connectors/cfm/cf_upload.cfm @ 5144:12d27670e274

merged moin/1.8
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Sep 2009 02:47:11 +0200
parents wiki/htdocs/applets/FCKeditor/editor/filemanager/connectors/cfm/cf_upload.cfm@287faf79876f wiki/htdocs/applets/FCKeditor/editor/filemanager/connectors/cfm/cf_upload.cfm@a6461afbc0ce
children 9c27b8589342
comparison
equal deleted inserted replaced
5113:b7c8c6eb7690 5144:12d27670e274
22 * File Browser connector for ColdFusion (MX 6.0 and above). 22 * File Browser connector for ColdFusion (MX 6.0 and above).
23 * (based on the original CF connector by Hendrik Kramer - hk@lwd.de) 23 * (based on the original CF connector by Hendrik Kramer - hk@lwd.de)
24 ---> 24 --->
25 25
26 <cfparam name="url.type" default="File"> 26 <cfparam name="url.type" default="File">
27 <cfparam name="url.currentFolder" default="/">
28 27
29 <!--- note: no serverPath url parameter - see config.cfm if you need to set the serverPath manually ---> 28 <!--- note: no serverPath url parameter - see config.cfm if you need to set the serverPath manually --->
30 29
31 <cfinclude template="config.cfm"> 30 <cfinclude template="config.cfm">
32 <cfinclude template="cf_util.cfm"> 31 <cfinclude template="cf_util.cfm">
34 <cfinclude template="cf_commands.cfm"> 33 <cfinclude template="cf_commands.cfm">
35 34
36 <cffunction name="SendError" returntype="void" output="true"> 35 <cffunction name="SendError" returntype="void" output="true">
37 <cfargument name="number" required="true" type="Numeric"> 36 <cfargument name="number" required="true" type="Numeric">
38 <cfargument name="text" required="true"> 37 <cfargument name="text" required="true">
39 <cfreturn SendUploadResults( "#ARGUMENTS.number#", "", "", "ARGUMENTS.text" )> 38 <cfreturn SendUploadResults( "#ARGUMENTS.number#", "", "", "#ARGUMENTS.text#" )>
40 </cffunction> 39 </cffunction>
41 40
42 <cfset REQUEST.Config = Config> 41 <cfset REQUEST.Config = Config>
43 <cfif find( "/", getBaseTemplatePath() ) > 42 <cfif find( "/", getBaseTemplatePath() ) >
44 <cfset REQUEST.Fs = "/"> 43 <cfset REQUEST.Fs = "/">
55 54
56 <cfif isDefined( "URL.Type" )> 55 <cfif isDefined( "URL.Type" )>
57 <cfset sType = URL.Type> 56 <cfset sType = URL.Type>
58 </cfif> 57 </cfif>
59 58
60 <cfset sCurrentFolder = GetCurrentFolder()> 59 <cfset sCurrentFolder = "/">
61 60
62 <!--- Is enabled the upload? ---> 61 <!--- Is enabled the upload? --->
63 <cfif not IsAllowedCommand( sCommand )> 62 <cfif not IsAllowedCommand( sCommand )>
64 <cfset SendUploadResults( "1", "", "", "The """ & sCommand & """ command isn't allowed" )> 63 <cfset SendUploadResults( "1", "", "", "The """ & sCommand & """ command isn't allowed" )>
65 </cfif> 64 </cfif>