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
}
}