Quellcode durchsuchen

删除wwwroot中后端代码文件

lcl vor 2 Jahren
Ursprung
Commit
8b686086a4

+ 0 - 12
wwwroot/other/mybjq/asp.net/README.txt

@@ -1,12 +0,0 @@
-KindEditor ASP.NET
-
-本ASP.NET程序是演示程序,建议不要直接在实际项目中使用。
-如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。
- 
-使用方法:
-
-1. 解压zip文件,将所有文件复制到IIS的wwwroot/kindeditor目录下。
-
-2. 将kindeditor/asp.net/bin目录下的dll文件复制到wwwroot/bin目录下。
-
-3. 打开浏览器,输入http://localhost:[P0RT]/kindeditor/asp.net/demo.aspx。

BIN
wwwroot/other/mybjq/asp.net/bin/LitJSON.dll


+ 0 - 1
wwwroot/other/mybjq/asp.net/file_manager_json.ashx

@@ -1 +0,0 @@
-<%@ WebHandler Language="C#" CodeBehind="file_manager_json.ashx.cs" Class="RongBeiWeb.kindeditor.asp.net.file_manager_json" %>

+ 0 - 227
wwwroot/other/mybjq/asp.net/file_manager_json.ashx.cs

@@ -1,227 +0,0 @@
-using System;
-using System.Collections;
-using System.Web;
-using System.IO;
-using System.Text.RegularExpressions;
-using LitJson;
-using System.Collections.Generic;
-
-namespace RongBeiWeb.kindeditor.asp.net
-{
-    /// <summary>
-    /// file_manager_json 的摘要说明
-    /// </summary>
-    public class file_manager_json : IHttpHandler
-    {
-
-        public void ProcessRequest(HttpContext context)
-        {
-            String aspxUrl = context.Request.Path.Substring(0, context.Request.Path.LastIndexOf("/") + 1);
-
-            //根目录路径,相对路径
-            String rootPath = "../attached/";
-            //根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/
-            String rootUrl = aspxUrl + "../attached/";
-            //图片扩展名
-            String fileTypes = "gif,jpg,jpeg,png,bmp";
-
-            String currentPath = "";
-            String currentUrl = "";
-            String currentDirPath = "";
-            String moveupDirPath = "";
-
-            String dirPath = context.Server.MapPath(rootPath);
-            String dirName = context.Request.QueryString["dir"];
-            if (!String.IsNullOrEmpty(dirName))
-            {
-                if (Array.IndexOf("image,flash,media,file".Split(','), dirName) == -1)
-                {
-                    context.Response.Write("Invalid Directory name.");
-                    context.Response.End();
-                }
-                dirPath += dirName + "/";
-                rootUrl += dirName + "/";
-                if (!Directory.Exists(dirPath))
-                {
-                    Directory.CreateDirectory(dirPath);
-                }
-            }
-
-            //根据path参数,设置各路径和URL
-            String path = context.Request.QueryString["path"];
-            path = String.IsNullOrEmpty(path) ? "" : path;
-            if (path == "")
-            {
-                currentPath = dirPath;
-                currentUrl = rootUrl;
-                currentDirPath = "";
-                moveupDirPath = "";
-            }
-            else
-            {
-                currentPath = dirPath + path;
-                currentUrl = rootUrl + path;
-                currentDirPath = path;
-                moveupDirPath = Regex.Replace(currentDirPath, @"(.*?)[^\/]+\/$", "$1");
-            }
-
-            //排序形式,name or size or type
-            String order = context.Request.QueryString["order"];
-            order = String.IsNullOrEmpty(order) ? "" : order.ToLower();
-
-            //不允许使用..移动到上一级目录
-            if (Regex.IsMatch(path, @"\.\."))
-            {
-                context.Response.Write("Access is not allowed.");
-                context.Response.End();
-            }
-            //最后一个字符不是/
-            if (path != "" && !path.EndsWith("/"))
-            {
-                context.Response.Write("Parameter is not valid.");
-                context.Response.End();
-            }
-            //目录不存在或不是目录
-            if (!Directory.Exists(currentPath))
-            {
-                context.Response.Write("Directory does not exist.");
-                context.Response.End();
-            }
-
-            //遍历目录取得文件信息
-            string[] dirList = Directory.GetDirectories(currentPath);
-            string[] fileList = Directory.GetFiles(currentPath);
-
-            switch (order)
-            {
-                case "size":
-                    Array.Sort(dirList, new NameSorter());
-                    Array.Sort(fileList, new SizeSorter());
-                    break;
-                case "type":
-                    Array.Sort(dirList, new NameSorter());
-                    Array.Sort(fileList, new TypeSorter());
-                    break;
-                case "name":
-                default:
-                    Array.Sort(dirList, new NameSorter());
-                    Array.Sort(fileList, new NameSorter());
-                    break;
-            }
-
-            Hashtable result = new Hashtable();
-            result["moveup_dir_path"] = moveupDirPath;
-            result["current_dir_path"] = currentDirPath;
-            result["current_url"] = currentUrl;
-            result["total_count"] = dirList.Length + fileList.Length;
-            List<Hashtable> dirFileList = new List<Hashtable>();
-            result["file_list"] = dirFileList;
-            for (int i = 0; i < dirList.Length; i++)
-            {
-                DirectoryInfo dir = new DirectoryInfo(dirList[i]);
-                Hashtable hash = new Hashtable();
-                hash["is_dir"] = true;
-                hash["has_file"] = (dir.GetFileSystemInfos().Length > 0);
-                hash["filesize"] = 0;
-                hash["is_photo"] = false;
-                hash["filetype"] = "";
-                hash["filename"] = dir.Name;
-                hash["datetime"] = dir.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss");
-                dirFileList.Add(hash);
-            }
-            for (int i = 0; i < fileList.Length; i++)
-            {
-                FileInfo file = new FileInfo(fileList[i]);
-                Hashtable hash = new Hashtable();
-                hash["is_dir"] = false;
-                hash["has_file"] = false;
-                hash["filesize"] = file.Length;
-                hash["is_photo"] = (Array.IndexOf(fileTypes.Split(','), file.Extension.Substring(1).ToLower()) >= 0);
-                hash["filetype"] = file.Extension.Substring(1);
-                hash["filename"] = file.Name;
-                hash["datetime"] = file.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss");
-                dirFileList.Add(hash);
-            }
-            context.Response.AddHeader("Content-Type", "application/json; charset=UTF-8");
-            context.Response.Write(JsonMapper.ToJson(result));
-            context.Response.End();
-        }
-
-        public class NameSorter : IComparer
-        {
-            public int Compare(object x, object y)
-            {
-                if (x == null && y == null)
-                {
-                    return 0;
-                }
-                if (x == null)
-                {
-                    return -1;
-                }
-                if (y == null)
-                {
-                    return 1;
-                }
-                FileInfo xInfo = new FileInfo(x.ToString());
-                FileInfo yInfo = new FileInfo(y.ToString());
-
-                return xInfo.FullName.CompareTo(yInfo.FullName);
-            }
-        }
-
-        public class SizeSorter : IComparer
-        {
-            public int Compare(object x, object y)
-            {
-                if (x == null && y == null)
-                {
-                    return 0;
-                }
-                if (x == null)
-                {
-                    return -1;
-                }
-                if (y == null)
-                {
-                    return 1;
-                }
-                FileInfo xInfo = new FileInfo(x.ToString());
-                FileInfo yInfo = new FileInfo(y.ToString());
-
-                return xInfo.Length.CompareTo(yInfo.Length);
-            }
-        }
-
-        public class TypeSorter : IComparer
-        {
-            public int Compare(object x, object y)
-            {
-                if (x == null && y == null)
-                {
-                    return 0;
-                }
-                if (x == null)
-                {
-                    return -1;
-                }
-                if (y == null)
-                {
-                    return 1;
-                }
-                FileInfo xInfo = new FileInfo(x.ToString());
-                FileInfo yInfo = new FileInfo(y.ToString());
-
-                return xInfo.Extension.CompareTo(yInfo.Extension);
-            }
-        }
-
-        public bool IsReusable
-        {
-            get
-            {
-                return false;
-            }
-        }
-    }
-}

+ 0 - 227
wwwroot/other/mybjq/asp.net/file_manager_json1.ashx

@@ -1,227 +0,0 @@
-<%@ webhandler Language="C#" class="FileManager" %>
-
-/**
- * KindEditor ASP.NET
- *
- * 本ASP.NET程序是演示程序,建议不要直接在实际项目中使用。
- * 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。
- *
- */
-
-using System;
-using System.Collections;
-using System.Web;
-using System.IO;
-using System.Text.RegularExpressions;
-using LitJson;
-using System.Collections.Generic;
-
-public class FileManager : IHttpHandler
-{
-	public void ProcessRequest(HttpContext context)
-	{
-		String aspxUrl = context.Request.Path.Substring(0, context.Request.Path.LastIndexOf("/") + 1);
-
-		//根目录路径,相对路径
-		String rootPath = "../attached/";
-		//根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/
-		String rootUrl = aspxUrl + "../attached/";
-		//图片扩展名
-		String fileTypes = "gif,jpg,jpeg,png,bmp";
-
-		String currentPath = "";
-		String currentUrl = "";
-		String currentDirPath = "";
-		String moveupDirPath = "";
-
-		String dirPath = context.Server.MapPath(rootPath);
-		String dirName = context.Request.QueryString["dir"];
-		if (!String.IsNullOrEmpty(dirName)) {
-			if (Array.IndexOf("image,flash,media,file".Split(','), dirName) == -1) {
-				context.Response.Write("Invalid Directory name.");
-				context.Response.End();
-			}
-			dirPath += dirName + "/";
-			rootUrl += dirName + "/";
-			if (!Directory.Exists(dirPath)) {
-				Directory.CreateDirectory(dirPath);
-			}
-		}
-
-		//根据path参数,设置各路径和URL
-		String path = context.Request.QueryString["path"];
-		path = String.IsNullOrEmpty(path) ? "" : path;
-		if (path == "")
-		{
-			currentPath = dirPath;
-			currentUrl = rootUrl;
-			currentDirPath = "";
-			moveupDirPath = "";
-		}
-		else
-		{
-			currentPath = dirPath + path;
-			currentUrl = rootUrl + path;
-			currentDirPath = path;
-			moveupDirPath = Regex.Replace(currentDirPath, @"(.*?)[^\/]+\/$", "$1");
-		}
-
-		//排序形式,name or size or type
-		String order = context.Request.QueryString["order"];
-		order = String.IsNullOrEmpty(order) ? "" : order.ToLower();
-
-		//不允许使用..移动到上一级目录
-		if (Regex.IsMatch(path, @"\.\."))
-		{
-			context.Response.Write("Access is not allowed.");
-			context.Response.End();
-		}
-		//最后一个字符不是/
-		if (path != "" && !path.EndsWith("/"))
-		{
-			context.Response.Write("Parameter is not valid.");
-			context.Response.End();
-		}
-		//目录不存在或不是目录
-		if (!Directory.Exists(currentPath))
-		{
-			context.Response.Write("Directory does not exist.");
-			context.Response.End();
-		}
-
-		//遍历目录取得文件信息
-		string[] dirList = Directory.GetDirectories(currentPath);
-		string[] fileList = Directory.GetFiles(currentPath);
-
-		switch (order)
-		{
-			case "size":
-				Array.Sort(dirList, new NameSorter());
-				Array.Sort(fileList, new SizeSorter());
-				break;
-			case "type":
-				Array.Sort(dirList, new NameSorter());
-				Array.Sort(fileList, new TypeSorter());
-				break;
-			case "name":
-			default:
-				Array.Sort(dirList, new NameSorter());
-				Array.Sort(fileList, new NameSorter());
-				break;
-		}
-
-		Hashtable result = new Hashtable();
-		result["moveup_dir_path"] = moveupDirPath;
-		result["current_dir_path"] = currentDirPath;
-		result["current_url"] = currentUrl;
-		result["total_count"] = dirList.Length + fileList.Length;
-		List<Hashtable> dirFileList = new List<Hashtable>();
-		result["file_list"] = dirFileList;
-		for (int i = 0; i < dirList.Length; i++)
-		{
-			DirectoryInfo dir = new DirectoryInfo(dirList[i]);
-			Hashtable hash = new Hashtable();
-			hash["is_dir"] = true;
-			hash["has_file"] = (dir.GetFileSystemInfos().Length > 0);
-			hash["filesize"] = 0;
-			hash["is_photo"] = false;
-			hash["filetype"] = "";
-			hash["filename"] = dir.Name;
-			hash["datetime"] = dir.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss");
-			dirFileList.Add(hash);
-		}
-		for (int i = 0; i < fileList.Length; i++)
-		{
-			FileInfo file = new FileInfo(fileList[i]);
-			Hashtable hash = new Hashtable();
-			hash["is_dir"] = false;
-			hash["has_file"] = false;
-			hash["filesize"] = file.Length;
-			hash["is_photo"] = (Array.IndexOf(fileTypes.Split(','), file.Extension.Substring(1).ToLower()) >= 0);
-			hash["filetype"] = file.Extension.Substring(1);
-			hash["filename"] = file.Name;
-			hash["datetime"] = file.LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss");
-			dirFileList.Add(hash);
-		}
-		context.Response.AddHeader("Content-Type", "application/json; charset=UTF-8");
-		context.Response.Write(JsonMapper.ToJson(result));
-		context.Response.End();
-	}
-
-	public class NameSorter : IComparer
-	{
-		public int Compare(object x, object y)
-		{
-			if (x == null && y == null)
-			{
-				return 0;
-			}
-			if (x == null)
-			{
-				return -1;
-			}
-			if (y == null)
-			{
-				return 1;
-			}
-			FileInfo xInfo = new FileInfo(x.ToString());
-			FileInfo yInfo = new FileInfo(y.ToString());
-
-			return xInfo.FullName.CompareTo(yInfo.FullName);
-		}
-	}
-
-	public class SizeSorter : IComparer
-	{
-		public int Compare(object x, object y)
-		{
-			if (x == null && y == null)
-			{
-				return 0;
-			}
-			if (x == null)
-			{
-				return -1;
-			}
-			if (y == null)
-			{
-				return 1;
-			}
-			FileInfo xInfo = new FileInfo(x.ToString());
-			FileInfo yInfo = new FileInfo(y.ToString());
-
-			return xInfo.Length.CompareTo(yInfo.Length);
-		}
-	}
-
-	public class TypeSorter : IComparer
-	{
-		public int Compare(object x, object y)
-		{
-			if (x == null && y == null)
-			{
-				return 0;
-			}
-			if (x == null)
-			{
-				return -1;
-			}
-			if (y == null)
-			{
-				return 1;
-			}
-			FileInfo xInfo = new FileInfo(x.ToString());
-			FileInfo yInfo = new FileInfo(y.ToString());
-
-			return xInfo.Extension.CompareTo(yInfo.Extension);
-		}
-	}
-
-	public bool IsReusable
-	{
-		get
-		{
-			return true;
-		}
-	}
-}

+ 0 - 1
wwwroot/other/mybjq/asp.net/upload_json.ashx

@@ -1 +0,0 @@
-<%@ WebHandler Language="C#" CodeBehind="upload_json.ashx.cs" Class="MySystem.mybjq.asp.net.upload_json" %>

+ 0 - 136
wwwroot/other/mybjq/asp.net/upload_json.ashx.cs

@@ -1,136 +0,0 @@
-using System;
-using System.Collections;
-using System.Web;
-using System.IO;
-using System.Globalization;
-using Library;
-using LitJson;
-
-namespace MySystem.mybjq.asp.net
-{
-    /// <summary>
-    /// upload_json 的摘要说明
-    /// </summary>
-    public class upload_json : IHttpHandler
-    {
-        private HttpContext context;
-
-        public void ProcessRequest(HttpContext context)
-        {
-            String aspxUrl = context.Request.Path.Substring(0, context.Request.Path.LastIndexOf("/") + 1);
-
-            //文件保存目录路径
-            String savePath = "/up/v2/";
-
-            //文件保存目录URL
-            String saveUrl = "/up/v2/";
-
-            //定义允许上传的文件扩展名
-            Hashtable extTable = new Hashtable();
-            extTable.Add("image", "gif,jpg,jpeg,png,bmp");
-            extTable.Add("flash", "swf,flv");
-            extTable.Add("media", "swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb,mp4");
-            extTable.Add("file", "doc,docx,xls,xlsx,ppt,htm,html,txt,zip,rar,gz,bz2");
-
-            //最大文件大小
-            long maxSize = 1073741824000;
-            this.context = context;
-
-            HttpPostedFile imgFile = context.Request.Files["imgFile"];
-            if (imgFile == null)
-            {
-                showError("请选择文件。");
-            }
-
-            String dirPath = context.Server.MapPath(savePath);
-            if (!Directory.Exists(dirPath))
-            {
-                //showError("上传目录不存在。");
-                Directory.CreateDirectory(dirPath);
-            }
-
-            String dirName = context.Request.QueryString["dir"];
-            if (String.IsNullOrEmpty(dirName))
-            {
-                dirName = "image";
-            }
-            if (!extTable.ContainsKey(dirName))
-            {
-                showError("目录名不正确。");
-            }
-
-            String fileName = imgFile.FileName;
-            String fileExt = Path.GetExtension(fileName).ToLower();
-
-            if (imgFile.InputStream == null || imgFile.InputStream.Length > maxSize)
-            {
-                showError("上传文件大小超过限制。");
-            }
-
-            if (String.IsNullOrEmpty(fileExt) || Array.IndexOf(((String)extTable[dirName]).Split(','), fileExt.Substring(1).ToLower()) == -1)
-            {
-                showError("上传文件扩展名是不允许的扩展名。\n只允许" + ((String)extTable[dirName]) + "格式。");
-            }
-
-            //创建文件夹
-            dirPath += dirName + "/";
-            saveUrl += dirName + "/";
-            if (!Directory.Exists(dirPath))
-            {
-                Directory.CreateDirectory(dirPath);
-            }
-            String ymd = DateTime.Now.ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo);
-            dirPath += ymd + "/";
-            saveUrl += ymd + "/";
-            if (!Directory.Exists(dirPath))
-            {
-                Directory.CreateDirectory(dirPath);
-            }
-            String newFileName = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + fileExt;
-            String filePath = dirPath + newFileName;
-            imgFile.SaveAs(filePath);
-            String fileUrl = saveUrl + newFileName;
-            if (dirName != "media")
-            {
-                if (!function.check_pic(filePath))
-                {
-                    File.Delete(filePath);
-                    context.Response.End();
-                }
-                if (function.getImgRule(filePath)["width"] > 2000)
-                {
-                    String newFileName_sl = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + "_sl" + fileExt;
-                    function.imgcut(2000, filePath, dirPath + newFileName_sl);
-                    File.Delete(filePath);
-                    fileUrl = saveUrl + newFileName_sl;
-                }
-            }
-
-            Hashtable hash = new Hashtable();
-            hash["error"] = 0;
-            hash["url"] = MySystem.OssHelper.Instance.SourceHost + fileUrl;
-            MySystem.OssHelper.Instance.ScanQueue(fileUrl, "");
-            context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8");
-            context.Response.Write(JsonMapper.ToJson(hash));
-            context.Response.End();
-        }
-
-        private void showError(string message)
-        {
-            Hashtable hash = new Hashtable();
-            hash["error"] = 1;
-            hash["message"] = message;
-            context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8");
-            context.Response.Write(JsonMapper.ToJson(hash));
-            context.Response.End();
-        }
-
-        public bool IsReusable
-        {
-            get
-            {
-                return false;
-            }
-        }
-    }
-}

+ 0 - 139
wwwroot/other/mybjq/asp.net/upload_json1.ashx

@@ -1,139 +0,0 @@
-<%@ webhandler Language="C#" class="Upload" %>
-
-/**
- * KindEditor ASP.NET
- *
- * 本ASP.NET程序是演示程序,建议不要直接在实际项目中使用。
- * 如果您确定直接使用本程序,使用之前请仔细确认相关安全设置。
- *
- */
-
-using System;
-using System.Collections;
-using System.Web;
-using System.IO;
-using System.Globalization;
-using LitJson;
-
-public class Upload : IHttpHandler
-{
-	private HttpContext context;
-
-    public void ProcessRequest(HttpContext context)
-    {
-        String aspxUrl = context.Request.Path.Substring(0, context.Request.Path.LastIndexOf("/") + 1);
-
-        //文件保存目录路径
-        String savePath = "/up/v2/";
-
-        //文件保存目录URL
-        String saveUrl = "/up/v2/";
-
-        //定义允许上传的文件扩展名
-        Hashtable extTable = new Hashtable();
-        extTable.Add("image", "gif,jpg,jpeg,png,bmp");
-        extTable.Add("flash", "swf,flv");
-        extTable.Add("media", "swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb,mp4");
-        extTable.Add("file", "doc,docx,xls,xlsx,ppt,htm,html,txt,zip,rar,gz,bz2");
-
-        //最大文件大小
-        long maxSize = 1073741824000;
-        this.context = context;
-
-        HttpPostedFile imgFile = context.Request.Files["imgFile"];
-        if (imgFile == null)
-        {
-            showError("请选择文件。");
-        }
-
-        String dirPath = context.Server.MapPath(savePath);
-        if (!Directory.Exists(dirPath))
-        {
-            //showError("上传目录不存在。");
-            Directory.CreateDirectory(dirPath);
-        }
-
-        String dirName = context.Request.QueryString["dir"];
-        if (String.IsNullOrEmpty(dirName))
-        {
-            dirName = "image";
-        }
-        if (!extTable.ContainsKey(dirName))
-        {
-            showError("目录名不正确。");
-        }
-
-        String fileName = imgFile.FileName;
-        String fileExt = Path.GetExtension(fileName).ToLower();
-
-        if (imgFile.InputStream == null || imgFile.InputStream.Length > maxSize)
-        {
-            showError("上传文件大小超过限制。");
-        }
-
-        if (String.IsNullOrEmpty(fileExt) || Array.IndexOf(((String)extTable[dirName]).Split(','), fileExt.Substring(1).ToLower()) == -1)
-        {
-            showError("上传文件扩展名是不允许的扩展名。\n只允许" + ((String)extTable[dirName]) + "格式。");
-        }
-
-        //创建文件夹
-        dirPath += dirName + "/";
-        saveUrl += dirName + "/";
-        if (!Directory.Exists(dirPath))
-        {
-            Directory.CreateDirectory(dirPath);
-        }
-        String ymd = DateTime.Now.ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo);
-        dirPath += ymd + "/";
-        saveUrl += ymd + "/";
-        if (!Directory.Exists(dirPath))
-        {
-            Directory.CreateDirectory(dirPath);
-        }
-        String newFileName = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + fileExt;
-        String filePath = dirPath + newFileName;
-        imgFile.SaveAs(filePath);
-        String fileUrl = saveUrl + newFileName;
-        if (dirName != "media")
-        {
-            if (!Library.function.check_pic(filePath))
-            {
-                File.Delete(filePath);
-                context.Response.End();
-            }
-            if (Library.function.getImgRule(filePath)["width"] > 1000)
-            {
-                String newFileName_sl = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + "_sl" + fileExt;
-                Library.function.imgcut(1000, filePath, dirPath + newFileName_sl);
-                File.Delete(filePath);
-                fileUrl = saveUrl + newFileName_sl;
-            }
-        }
-
-        Hashtable hash = new Hashtable();
-        hash["error"] = 0;
-        hash["url"] = MySystem.OssHelper.Instance.SourceHost + fileUrl;
-        MySystem.OssHelper.Instance.ScanQueue(fileUrl, "");
-        context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8");
-        context.Response.Write(JsonMapper.ToJson(hash));
-        context.Response.End();
-    }
-
-	private void showError(string message)
-	{
-		Hashtable hash = new Hashtable();
-		hash["error"] = 1;
-		hash["message"] = message;
-		context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8");
-		context.Response.Write(JsonMapper.ToJson(hash));
-		context.Response.End();
-	}
-
-	public bool IsReusable
-	{
-		get
-		{
-			return true;
-		}
-	}
-}