Backup/Discuz.Web/admin/UserControls/ajaxtopicinfo.ascx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Text.RegularExpressions;
using System.Web.UI;
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Entity;
namespace Discuz.Web.Admin
{
/// <summary>
/// ajax 读取帖子信息
/// </summary>
public class ajaxtopicinfo : System.Web.UI.UserControl
{
public DataTable dt;
public string pagelink;
public int currentpage = 0;
public string postname;
int tablelist;
int forumid;
string posterlist;
string keylist;
string startdate;
string enddate;
//页面大小
public int pagesize = 4;
public int fid = 0;
public ajaxtopicinfo()
{
//获取查询信息
if (Context.Request.Url.ToString().Contains("forumhottopic") || DNTRequest.GetString("pagename") == "forumhottopic")
{
//获取当前页数
if (DNTRequest.GetInt("postnumber", 0) > 0)
{
pagesize = DNTRequest.GetInt("postnumber", 0);
}
currentpage = DNTRequest.GetInt("currentpage", 1);
//获取总页数
int forumid = 0;
string showtype = "replies";
int timebetween = 7;
if (DNTRequest.GetString("search") != "")
{
forumid = DNTRequest.GetInt("forumid", 0);
showtype = DNTRequest.GetString("showtype") == "" ? "replies" : DNTRequest.GetString("showtype");
timebetween = DNTRequest.GetInt("timebetween", 7);
}
int recordcount = Topics.GetHotTopicsCount(forumid, timebetween);
dt = Topics.GetHotTopicsList(20, currentpage, forumid, showtype, timebetween);
pagelink = AjaxHotTopicPagination(recordcount, 20, currentpage, string.Format("&forumid={0}&showtype={1}&timebetween={2}",forumid,showtype,timebetween));
}
else
后面还有 134 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
