ChapterList.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 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 ChapterList : System.Web.UI.Page
{
protected int tid;
protected StringBuilder lchapter;
protected string title, author, clist;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["tid"] != null && Regular.IsInt(Request.QueryString["tid"]))
{
tid = int.Parse(Request.QueryString["tid"]);
DataTableCollection tables;
object value = CacheManage.GetCache("l" + tid);
if (value == null)
{
tables = SqlStore.ChapterList(tid).Tables;
CacheManage.SetCache("l" + tid, tables);
}
else
tables = (DataTableCollection)value;
//被锁文章跳转到首页
if ((bool)tables[0].Rows[0]["islock"] && Session.Contents["username"] == null)
Page.ClientScript.RegisterStartupScript(GetType(), "", "<script type='text/javascript'>alert('抱歉,该文章已被删除或者锁定请等待审核!');location='';</script>");
else
{
author = tables[0].Rows[0]["author"].ToString();
title = tables[0].Rows[0]["title"].ToString();
lchapter = new StringBuilder(10000);
foreach (DataRow row in tables[1].Rows)
if ((bool)row["ispart"])
lchapter.Append("</ul><div class=\"nofloat\"></div><div class=\"book\">" + row["ctitle"] + "</div><ul>");
else
lchapter.Append("<li><a href=\"/chapter/" + tid + "/" + row["cid"] + ".html\" title=\"" + row["ctitle"] + "\">" + row["ctitle"] + "</a></li>");
clist = Convert.ToString(lchapter);
clist = Regex.Replace(clist, Common.siftCC, "**");
clist = Regex.Replace(clist, "^</ul><div class\\=\"nofloat\"></div>", "");
if (Regex.IsMatch(clist, "</li>$"))
clist += "</ul><div class=\"nofloat\"></div>";
if (Regex.IsMatch(clist, "^<li>"))
clist = "<ul>" + clist;
Page.Title = title + "最新章节," + author + "," + title + "合集 - 大众小说网";
HtmlMeta lang = new HtmlMeta();
lang.HttpEquiv = "keywords";
lang.Content = title + "VIP章节," + title + "最新章节," + title + "小说," + author + "," + title + "免费阅读";
Page.Header.Controls.Add(lang);
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
