1<%
2 ' FCKeditor - The text editor for Internet - http://www.fckeditor.net
3 ' Copyright (C) 2003-2007 Frederico Caldeira Knabben
4 '
5 ' == BEGIN LICENSE ==
6 '
7 ' Licensed under the terms of any of the following licenses at your
8 ' choice:
9 '
10 '  - GNU General Public License Version 2 or later (the "GPL")
11 '    http://www.gnu.org/licenses/gpl.html
12 '
13 '  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14 '    http://www.gnu.org/licenses/lgpl.html
15 '
16 '  - Mozilla Public License Version 1.1 or later (the "MPL")
17 '    http://www.mozilla.org/MPL/MPL-1.1.html
18 '
19 ' == END LICENSE ==
20 '
21 ' Configuration file for the File Manager Connector for ASP.
22%>
23<%
24
25' SECURITY: You must explicitelly enable this "connector" (set it to "True").
26' WARNING: don't just set "ConfigIsEnabled = true", you must be sure that only
27'		authenticated users can access this file or use some kind of session checking.
28Dim ConfigIsEnabled
29ConfigIsEnabled = False
30
31' Path to user files relative to the document root.
32' This setting is preserved only for backward compatibility.
33' You should look at the settings for each resource type to get the full potential
34Dim ConfigUserFilesPath
35ConfigUserFilesPath = "/userfiles/"
36
37' Due to security issues with Apache modules, it is reccomended to leave the
38' following setting enabled.
39Dim ConfigForceSingleExtension
40ConfigForceSingleExtension = true
41
42' What the user can do with this connector
43Dim ConfigAllowedCommands
44ConfigAllowedCommands = "QuickUpload|FileUpload|GetFolders|GetFoldersAndFiles|CreateFolder"
45
46' Allowed Resource Types
47Dim ConfigAllowedTypes
48ConfigAllowedTypes = "File|Image|Flash|Media"
49
50' For security, HTML is allowed in the first Kb of data for files having the
51' following extensions only.
52Dim ConfigHtmlExtensions
53ConfigHtmlExtensions = "html|htm|xml|xsd|txt|js"
54'
55'	Configuration settings for each Resource Type
56'
57'	- AllowedExtensions: the possible extensions that can be allowed.
58'		If it is empty then any file type can be uploaded.
59'
60'	- DeniedExtensions: The extensions that won't be allowed.
61'		If it is empty then no restrictions are done here.
62'
63'	For a file to be uploaded it has to fullfil both the AllowedExtensions
64'	and DeniedExtensions (that's it: not being denied) conditions.
65'
66'	- FileTypesPath: the virtual folder relative to the document root where
67'		these resources will be located.
68'		Attention: It must start and end with a slash: '/'
69'
70'	- FileTypesAbsolutePath: the physical path to the above folder. It must be
71'		an absolute path.
72'		If it's an empty string then it will be autocalculated.
73'		Usefull if you are using a virtual directory, symbolic link or alias.
74'		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
75'		Attention: The above 'FileTypesPath' must point to the same directory.
76'		Attention: It must end with a slash: '/'
77'
78' - QuickUploadPath: the virtual folder relative to the document root where
79'		these resources will be uploaded using the Upload tab in the resources
80'		dialogs.
81'		Attention: It must start and end with a slash: '/'
82'
83'	 - QuickUploadAbsolutePath: the physical path to the above folder. It must be
84'		an absolute path.
85'		If it's an empty string then it will be autocalculated.
86'		Usefull if you are using a virtual directory, symbolic link or alias.
87'		Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
88'		Attention: The above 'QuickUploadPath' must point to the same directory.
89'		Attention: It must end with a slash: '/'
90'
91
92Dim ConfigAllowedExtensions, ConfigDeniedExtensions, ConfigFileTypesPath, ConfigFileTypesAbsolutePath, ConfigQuickUploadPath, ConfigQuickUploadAbsolutePath
93Set ConfigAllowedExtensions	= CreateObject( "Scripting.Dictionary" )
94Set ConfigDeniedExtensions	= CreateObject( "Scripting.Dictionary" )
95Set ConfigFileTypesPath	= CreateObject( "Scripting.Dictionary" )
96Set ConfigFileTypesAbsolutePath	= CreateObject( "Scripting.Dictionary" )
97Set ConfigQuickUploadPath	= CreateObject( "Scripting.Dictionary" )
98Set ConfigQuickUploadAbsolutePath	= CreateObject( "Scripting.Dictionary" )
99
100ConfigAllowedExtensions.Add	"File", "7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip"
101ConfigDeniedExtensions.Add	"File", ""
102ConfigFileTypesPath.Add "File", ConfigUserFilesPath & "file/"
103ConfigFileTypesAbsolutePath.Add "File", ""
104ConfigQuickUploadPath.Add "File", ConfigUserFilesPath
105ConfigQuickUploadAbsolutePath.Add "File", ""
106
107ConfigAllowedExtensions.Add	"Image", "bmp|gif|jpeg|jpg|png|psd|tif|tiff"
108ConfigDeniedExtensions.Add	"Image", ""
109ConfigFileTypesPath.Add "Image", ConfigUserFilesPath & "image/"
110ConfigFileTypesAbsolutePath.Add "Image", ""
111ConfigQuickUploadPath.Add "Image", ConfigUserFilesPath
112ConfigQuickUploadAbsolutePath.Add "Image", ""
113
114ConfigAllowedExtensions.Add	"Flash", "swf|fla"
115ConfigDeniedExtensions.Add	"Flash", ""
116ConfigFileTypesPath.Add "Flash", ConfigUserFilesPath & "flash/"
117ConfigFileTypesAbsolutePath.Add "Flash", ""
118ConfigQuickUploadPath.Add "Flash", ConfigUserFilesPath
119ConfigQuickUploadAbsolutePath.Add "Flash", ""
120
121ConfigAllowedExtensions.Add	"Media", "aiff|asf|avi|bmp|fla|flv|gif|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|png|qt|ram|rm|rmi|rmvb|swf|tif|tiff|wav|wma|wmv"
122ConfigDeniedExtensions.Add	"Media", ""
123ConfigFileTypesPath.Add "Media", ConfigUserFilesPath & "media/"
124ConfigFileTypesAbsolutePath.Add "Media", ""
125ConfigQuickUploadPath.Add "Media", ConfigUserFilesPath
126ConfigQuickUploadAbsolutePath.Add "Media", ""
127
128%>
129