- Timestamp:
- 2007-06-23 22:51:49 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/io.asp
r318 r389 34 34 end Function 35 35 36 Function GetResourceTypeDirectory( resourceType, sCommand ) 37 if ( sCommand = "QuickUpload") then 38 39 if ( ConfigQuickUploadAbsolutePath.Item( resourceType ) <> "" ) then 40 GetResourceTypeDirectory = ConfigQuickUploadAbsolutePath.Item( resourceType ) 41 else 42 ' Map the "UserFiles" path to a local directory. 43 GetResourceTypeDirectory = Server.MapPath( ConfigQuickUploadPath.Item( resourceType ) ) 44 end if 45 else 46 if ( ConfigFileTypesAbsolutePath.Item( resourceType ) <> "" ) then 47 GetResourceTypeDirectory = ConfigFileTypesAbsolutePath.Item( resourceType ) 48 else 49 ' Map the "UserFiles" path to a local directory. 50 GetResourceTypeDirectory = Server.MapPath( ConfigFileTypesPath.Item( resourceType ) ) 51 end if 52 end if 53 end Function 54 36 55 Function GetUrlFromPath( resourceType, folderPath, sCommand ) 37 56 GetUrlFromPath = CombinePaths( GetResourceTypePath( resourceType, sCommand ), folderPath ) … … 43 62 44 63 Function ServerMapFolder( resourceType, folderPath, sCommand ) 45 ' Map the "UserFiles" path to a local directory.46 64 Dim sResourceTypePath 47 sResourceTypePath = Server.MapPath( GetResourceTypePath( resourceType, sCommand ) ) 65 ' Get the resource type directory. 66 sResourceTypePath = GetResourceTypeDirectory( resourceType, sCommand ) 48 67 49 68 ' Ensure that the directory exists.