list.aspx.cs

(开头部分) 5KB

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

using System;
using System.Text;
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 list : System.Web.UI.Page
{
    protected int tnum;
    protected Int16 boardid = 0;
    protected StringBuilder list_hits, list_commend, list_new, lists;
    protected string boardname;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["type"] != null && Request.QueryString["boardid"] != null && Request.QueryString["page"] != null && Regular.IsInt(Request.QueryString["boardid"]) && Regular.IsInt(Request.QueryString["page"]))
        {
            string type = Request.QueryString["type"];
            string order;
            switch (type)
            {
                case "length":
                    order = "length desc";
                    break;
                case "hit":
                    order = "hits desc";
                    break;
                default:
                    order = "updatetime desc";
                    break;
            }
            boardid = Int16.Parse(Request.QueryString["boardid"]);
            boardname = Common.BoardName(Convert.ToInt32(boardid));
            int page = int.Parse(Request.QueryString["page"]), recordAmount = 0, pageAmount = 0, tid;
            string where = "boardid=" + boardid + " and islock=0";
            if (Request.QueryString["type"] == "finish")
                where += " and isfinish=1";
            SqlStore sql = new SqlStore();
            DataSet dataset = sql.List(boardid, "n_topic", "tid", "*", order, where, page, ref recordAmount, ref pageAmount);
            list_hits = new StringBuilder("<ul>", 2000);
            foreach (DataRow row in dataset.Tables[0].Rows)
                list_hits.Append("<li><a href=\"/novel/" + row["tid"] + "/\" title=\"" + row["title"] + ";作者:" + row["author"] + ";最新章节:" + row["ctitle"] + "\" target=\"_blank\">" + row["title"] + "</a></li>");
            list_hits.Append("</ul>");

            string commend = "";
            list_commend = new StringBuilder("<ul>", 2000);
            foreach (DataRow row in dataset.Tables[3].Rows)
            {
                commend += row["title"] + ",";
                list_commend.Append("<li><a href=\"/novel/" + row["tid"] + "/\" title=\"" + row["title"] + ";作者:" + row["author"] + ";最新章节:" + row["ctitle"] + "\" target=\"_blank\">" + row["title"] + "</a></li>");
            }
            list_commend.Append("</ul>");
            commend = Regex.Replace(commend,",$","");

后面还有 42 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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