manage/error.aspx.cs

(完整代码) 1KB

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.Text.RegularExpressions;

public partial class manage_error : System.Web.UI.Page
{
    protected string list;
    protected void Page_Load(object sender, EventArgs e)
    {
        //验证权限
        if (Session.Contents["purview"] == null)
            Response.Redirect("../");
        else if (!Regex.IsMatch((string)Session.Contents["purview"], ",error,"))
            Server.Transfer("default.aspx");

        SqlStore sql = new SqlStore();
        if (Request.QueryString["deltid"] != null && Regular.IsInt(Request.QueryString["deltid"]) && Request.QueryString["delcid"] != null && Regular.IsInt(Request.QueryString["delcid"]))
            sql.ErrorDel(int.Parse(Request.QueryString["deltid"]), int.Parse(Request.QueryString["delcid"]));
        DataRowCollection rows = sql.Table("n_error_read").Rows;
        foreach (DataRow row in rows)
            list += "<ul>"
                 + "<li class=\"tid\">" + row["tid"] + "</li>"
                 + "<li class=\"cid\"><a href=\"/chapter/" + row["tid"] + "/" + row["cid"] + ".html\"  target=\"_blank\">" + row["cid"] + "</a></li>"
                 + "<li class=\"addtime\">" + row["addtime"] + "</li>"
                 + "<li class=\"deltid\"><a href=\"error.aspx?deltid=" + row["tid"] + "&delcid=" + row["cid"] + "\">移除</a></li>"
                 + "</ul>";
    }
}

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

AI 解读 AI

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

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