Backup/FCKeditor.Net_2.2/FileBrowserConnector.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: FileBrowserConnector.cs
* This is the code behind of the connector.aspx page used by the
* File Browser.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
*/
using System;
using System.Globalization;
using System.Xml;
using System.Web;
namespace FredCK.FCKeditorV2
{
public class FileBrowserConnector : FileWorkerBase
{
protected override void OnLoad(EventArgs e)
{
// Get the main request informaiton.
string sCommand = Request.QueryString["Command"];
if (sCommand == null) return;
string sResourceType = Request.QueryString["Type"];
if (sResourceType == null) return;
string sCurrentFolder = Request.QueryString["CurrentFolder"];
if (sCurrentFolder == null) return;
// Check the current folder syntax (must begin and start with a slash).
if (!sCurrentFolder.EndsWith("/"))
sCurrentFolder += "/";
if (!sCurrentFolder.StartsWith("/"))
sCurrentFolder = "/" + sCurrentFolder;
// File Upload doesn't have to return XML, so it must be intercepted before anything.
if (sCommand == "FileUpload")
{
this.FileUpload(sResourceType, sCurrentFolder);
return;
}
// Cleans the response buffer.
Response.ClearHeaders();
Response.Clear();
// Prevent the browser from caching the result.
Response.CacheControl = "no-cache";
后面还有 225 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
