Documents/安装工具 博易UTP/utp.aspx.cs

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.IO;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization.Formatters.Binary;
using ICSharpCode.SharpZipLib;
using ICSharpCode.SharpZipLib.Checksums;
using ICSharpCode.SharpZipLib.Zip;
using ICSharpCode.SharpZipLib.GZip;
using ICSharpCode.SharpZipLib.BZip2;
using ICSharpCode.SharpZipLib.Zip.Compression;
using ICSharpCode.SharpZipLib.Zip.Compression.Streams;

using System.Net;

public partial class utp : System.Web.UI.Page
{
    public IPHostEntry hostInfo;
    public HttpBrowserCapabilities userbc;

    protected void Page_Load(object sender, EventArgs e)
    {
        hostInfo = Dns.GetHostEntry(Request.ServerVariables["SERVER_NAME"]);
        userbc = Request.Browser;
    }
    protected void btnClearCache_Click(object sender, EventArgs e)
    {
        GC.Collect();
        litClearCacheList.Text = "<br />共有 " + Cache.Count.ToString() + " 项被清除:";
        foreach (DictionaryEntry de in Cache)
        {
            litClearCacheList.Text += String.Format("<br />=> {0} 清除成功...", de.Key);
            Cache.Remove(de.Key.ToString());
        }
        litClearCacheList.Text += "<br />完毕!";
    }

    protected void btnZip_Click(object sender, EventArgs e)
    {
        string[] FilePathS = new string[2];
        FilePathS[0] = HttpRuntime.AppDomainAppPath + "\\" + txtZipSource.Text.Trim();  //待压缩的文件目录
        FilePathS[1] = HttpRuntime.AppDomainAppPath + "\\" + txtZipDestination.Text.Trim();  //生成的目标文件

        try
        {
           ClassZip.Zip(FilePathS[0], FilePathS[1], 6);
           litZipTip.Text = "<br />压缩指令已发出。";
        }
        catch(Exception ex)
        {
后面还有 292 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。