Backup/Discuz.Web/aspx/1/misc.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web;
using System.Data;
using Discuz.Common;
using Discuz.Forum;
using Discuz.Web.UI;
using Discuz.Entity;
using Discuz.Config;
using Discuz.Common.Generic;
namespace Discuz.Web
{
/// <summary>
/// 帖子管理页面
/// </summary>
public class misc : PageBase
{
#region 页面变量
protected int tid = DNTRequest.GetInt("tid", 0);
protected string emailcontent = "";
protected string topictitle = "";
protected string title = "";
protected string action = DNTRequest.GetString("action");
protected string voters = "";
protected string polloptionid = DNTRequest.GetString("polloptionid");
protected DataTable pollOptionList;
#endregion
protected override void ShowPage()
{
if (!ispost)
{
if (tid <= 0)
{
AddErrLine("不存在的主题ID"); return;
}
TopicInfo topic = Topics.GetTopicInfo(tid);
if (topic == null)
{
AddErrLine("不存在的主题"); return;
}
switch (action)
{
case "emailfriend":
title = "分享";
emailcontent = "你好!我在 {0} 看到了这篇帖子,认为很有价值,特推荐给你。\r\n{1}\r\n地址 {2}\r\n希望你能喜欢。";
if (topic != null)
{
topictitle = topic.Title;
emailcontent = string.Format(emailcontent, config.Forumtitle, topictitle, DNTRequest.GetUrlReferrer());
}
break;
case "viewvote":
title = "参与投票的会员";
PollInfo pollinfo = Polls.GetPollInfo(tid);
if (pollinfo == null)
{
AddErrLine("不存在的调查"); return;
}
if (!(pollinfo.Allowview == 1 || pollinfo.Uid == userid || Moderators.IsModer(useradminid, userid, topic.Fid)))
后面还有 60 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
