| | 1 | <%@ Control Language="C#" EnableViewState="false" AutoEventWireup="false" Inherits="FredCK.FCKeditorV2.FileBrowser.Config" %> |
| | 2 | <%-- |
| | 3 | * FCKeditor - The text editor for Internet - http://www.fckeditor.net |
| | 4 | * Copyright (C) 2003-2007 Frederico Caldeira Knabben |
| | 5 | * |
| | 6 | * == BEGIN LICENSE == |
| | 7 | * |
| | 8 | * Licensed under the terms of any of the following licenses at your |
| | 9 | * choice: |
| | 10 | * |
| | 11 | * - GNU General Public License Version 2 or later (the "GPL") |
| | 12 | * http://www.gnu.org/licenses/gpl.html |
| | 13 | * |
| | 14 | * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
| | 15 | * http://www.gnu.org/licenses/lgpl.html |
| | 16 | * |
| | 17 | * - Mozilla Public License Version 1.1 or later (the "MPL") |
| | 18 | * http://www.mozilla.org/MPL/MPL-1.1.html |
| | 19 | * |
| | 20 | * == END LICENSE == |
| | 21 | * |
| | 22 | * Configuration file for the File Browser Connector for ASP.NET. |
| | 23 | --%> |
| | 24 | <script runat="server"> |
| | 25 | |
| | 26 | /** |
| | 27 | * The "@" char indicates the key to be used to override a setting by using |
| | 28 | * the Session, Application or appSettings in the Web.config file. |
| | 29 | */ |
| | 30 | |
| | 31 | public override void SetConfig() |
| | 32 | { |
| | 33 | // SECURITY: You must explicitly enable this "connector". (Set it to "true"). |
| | 34 | // @ FCKeditor:Connector:Enabled |
| | 35 | Enabled = false; |
| | 36 | |
| | 37 | // URL path to user files. |
| | 38 | // @ FCKeditor:Connector:UserFilesPath |
| | 39 | UserFilesPath = "/userfiles/"; |
| | 40 | |
| | 41 | // The connector tries to resolve the above UserFilesPath automatically. |
| | 42 | // Use the following setting it you prefer to explicitely specify the |
| | 43 | // absolute path. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'. |
| | 44 | // Attention: The above 'UserFilesPath' URL must point to the same directory. |
| | 45 | // @ FCKeditor:Connector:UserFilesAbsolutePath |
| | 46 | UserFilesAbsolutePath = ""; |
| | 47 | |
| | 48 | // Due to security issues with Apache modules, it is recommended to leave the |
| | 49 | // following setting enabled. |
| | 50 | ForceSingleExtension = true; |
| | 51 | |
| | 52 | // Allowed Resource Types |
| | 53 | AllowedTypes = new string[] { "File", "Image", "Flash", "Media" }; |
| | 54 | |
| | 55 | // For security, HTML is allowed in the first Kb of data for files having the |
| | 56 | // following extensions only. |
| | 57 | HtmlExtensions = new string[] { "html", "htm", "xml", "xsd", "txt", "js" }; |
| | 58 | |
| | 59 | TypeConfig[ "File" ].AllowedExtensions = new string[] { "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" }; |
| | 60 | TypeConfig[ "File" ].DeniedExtensions = new string[] { }; |
| | 61 | TypeConfig[ "File" ].FilesPath = "%UserFilesPath%file/"; |
| | 62 | TypeConfig[ "File" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%file/" ); |
| | 63 | TypeConfig[ "File" ].QuickUploadPath = "%UserFilesPath%"; |
| | 64 | TypeConfig[ "File" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" ); |
| | 65 | |
| | 66 | TypeConfig[ "Image" ].AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" }; |
| | 67 | TypeConfig[ "Image" ].DeniedExtensions = new string[] { }; |
| | 68 | TypeConfig[ "Image" ].FilesPath = "%UserFilesPath%image/"; |
| | 69 | TypeConfig[ "Image" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%image/" ); |
| | 70 | TypeConfig[ "Image" ].QuickUploadPath = "%UserFilesPath%"; |
| | 71 | TypeConfig[ "Image" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" ); |
| | 72 | |
| | 73 | TypeConfig[ "Flash" ].AllowedExtensions = new string[] { "swf", "flv" }; |
| | 74 | TypeConfig[ "Flash" ].DeniedExtensions = new string[] { }; |
| | 75 | TypeConfig[ "Flash" ].FilesPath = "%UserFilesPath%flash/"; |
| | 76 | TypeConfig[ "Flash" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%flash/" ); |
| | 77 | TypeConfig[ "Flash" ].QuickUploadPath = "%UserFilesPath%"; |
| | 78 | TypeConfig[ "Flash" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" ); |
| | 79 | |
| | 80 | TypeConfig[ "Media" ].AllowedExtensions = new string[] { "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" }; |
| | 81 | TypeConfig[ "Media" ].DeniedExtensions = new string[] { }; |
| | 82 | TypeConfig[ "Media" ].FilesPath = "%UserFilesPath%media/"; |
| | 83 | TypeConfig[ "Media" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%media/" ); |
| | 84 | TypeConfig[ "Media" ].QuickUploadPath = "%UserFilesPath%"; |
| | 85 | TypeConfig[ "Media" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" ); |
| | 86 | } |
| | 87 | |
| | 88 | </script> |