Show
Ignore:
Timestamp:
2007-06-23 22:51:49 (19 months ago)
Author:
alfonsoml
Message:

Patch for #561, provide the ConfigFileTypesAbsolutePath setting for asp.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/developers/alfonsoml/editor/filemanager/connectors/asp/io.asp

    r318 r389  
    3434end Function 
    3535 
     36Function 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 
     53end Function 
     54 
    3655Function GetUrlFromPath( resourceType, folderPath, sCommand ) 
    3756        GetUrlFromPath = CombinePaths( GetResourceTypePath( resourceType, sCommand ), folderPath ) 
     
    4362 
    4463Function ServerMapFolder( resourceType, folderPath, sCommand ) 
    45         ' Map the "UserFiles" path to a local directory. 
    4664        Dim sResourceTypePath 
    47         sResourceTypePath = Server.MapPath( GetResourceTypePath( resourceType, sCommand ) ) 
     65        ' Get the resource type directory. 
     66        sResourceTypePath = GetResourceTypeDirectory( resourceType, sCommand )  
    4867 
    4968        ' Ensure that the directory exists.