UI/aadmin/downloadadd.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;
using Common;
public partial class admin_downloadadd : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button3_Click(object sender, EventArgs e)
{
Model.downlist md = new Model.downlist();
BLL.downlist bd = new BLL.downlist();
md.title = name.Text;
md.size = size.Text;
md.click = 0;
md.uploadurl = Label1.Text;
if (bd.downloadadd(md) > 0)
{
msg("添加成功");
}
else
{
msg("添加失败");
}
name.Text = "";
size.Text = "";
Label3.Text = "";
}
protected void Button1_Click(object sender, EventArgs e)
{
string filepath = FileUpload1.PostedFile.FileName;
string type=filepath.Substring(filepath.LastIndexOf(".")+1);
if (type == "doc" || type == "txt" || type == "xls"||type=="rar")
{
if (FileUpload1.PostedFile.ContentLength < 102400 * 1024)
{
if (FileUpload1.PostedFile.ContentLength > 0)
{
string _size;
string newfilename = "index_" + System.DateTime.Now.ToString("yyyyMMddhhmmssfff") + "." + type;
FileUpload1.PostedFile.SaveAs(Server.MapPath("~/download/" + newfilename));
string savepath = "download/" + newfilename;
Label1.Text = savepath;
size.Visible = true;
//size.Text = (FileUpload1.PostedFile.ContentLength / 1024).ToString() + ".";
后面还有 61 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。