chapter.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.IO;
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 chapter : System.Web.UI.Page
{
protected int tid, cid;
protected string content;
protected object up, down, hits, title, ctitle, author, boardid, boardname, islock;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["tid"] != null && Regular.IsInt(Request.QueryString["tid"]) && Request.QueryString["cid"] != null && Regular.IsInt(Request.QueryString["cid"]))
{
tid = int.Parse(Request.QueryString["tid"]);
cid = int.Parse(Request.QueryString["cid"]);
SqlStore.Chapter(tid, cid, ref up, ref down, ref hits, ref title, ref ctitle, ref author, ref boardid, ref islock);
if (title == null)
Response.Redirect("");
if ((bool)islock && Session.Contents["username"] == null)
{
title = ctitle = up = down = DBNull.Value;
Response.Write("HTTP 404 ERROR<br /><br /><br /><a href=\"\" >点此跳转到首页</a>");
Response.End();
}
else
{
//ctitle = Regex.Replace(ctitle.ToString(), Common.siftCC, "**");
boardname = Common.BoardName(Convert.ToInt32(boardid));
string path = Server.MapPath("~/novel/" + tid / 1000 + "/" + tid + "/" + cid + ".txt");
if (File.Exists(path))
{
content = File.ReadAllText(path, Encoding.UTF8);
if (!Regex.IsMatch(content, "<img"))
{
content = Regex.Replace(content, Common.siftCC, "**");
content = Regex.Replace(content, "小说", "<a href='/' title='大众小说网' target='_blank'>小说</a>");
content = content.Replace(title.ToString(), "<a href='/novel/" + tid + "/' title='" + title + "' target='_blank'>" + title + "</a>");
}
Page.Title = title + "-" + ctitle + "-" + boardname + "-大众小说网";
HtmlMeta lang = new HtmlMeta();
lang.HttpEquiv = "keywords";
lang.Content = title + "VIP章节," + title + "最新章节," + title + "小说," + author;
Page.Header.Controls.Add(lang);
lang = new HtmlMeta();
lang.HttpEquiv = "description";
lang.Content = title + "的最新章节" + ctitle + "," + title + "是一部非常好的" + boardname + "类小说";
Page.Header.Controls.Add(lang);
后面还有 9 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
