FCKeditor Custom User directory (with source code)

Source: Internet
Author: User

Due to my side of the network reasons, no use from the official website of FCK download to the source code ...

This set of source code is FCK2.2 version of the reverse compiled

Source: Click here to download the main changes in the source to do the comments

The general changes are as follows:

Get the source of the user directory: FileWorkerBase.cs

Here's a few notes.

Can be specified in a program directly when the user logs in

This scheme is only convenient for users to specify a different file directory when using

session["Fckeditor:userfilespath"]= "User file relative directory";

Code

///<summary>
///user files directory
///</summary>
Protected String Userf                  Ilespath
{
Get
{
if (This.suserfilespath = null)
{
//read from applictaion
This.suserfilespath = (string) bas e.application["Fckeditor:userfilespath"]; 
if ((This.suserfilespath = null) | | (this.sUserFilesPath.Length = 0)) 
{
//read from session
This.suserfilespath = (string) this. session["Fckeditor:userfilespath"]; 
if ((This.suserfilespath = null) | | (this.sUserFilesPath.Length = 0))
{
//read from the site configuration file
This.suserf Ilespath = configurationsettings.appsettings ["Fckeditor:userfilespath"];                       
       if ((This.suserfilespath = null) | | (this.sUserFilesPath.Length = 0))                             
{
This.suserfilespath = "/uploadfiles/";
 }
if ((This.suserfilespath = null) | | (this.sUserFilesPath.Length = 0))
{
//read
th from URL Is.suserfilespath = base. request.querystring["Serverpath"]; 
}
}
}
If (! This.sUserFilesPath.EndsWith ("/"))                     
{
This.suserfilespath = This.suserfilespath + "/";
            

}
return This.suserfilespath
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.