Web/BBS/TopicMana.aspx.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region Usings
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
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 DotBBS.Business;
using DotBBS.Model;
using DotBBS.Common;
#endregion
//============================================================================
// 官方支持:DotBBS.Net 作者:吸铁石团队(水煮鱼)
//============================================================================
public partial class TopicMana : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DoAct();
}
}
private void DoAct()
{
string errMsg="参数错误!";
string act=Request.QueryString["act"];
if (act != "")
{
if (act == "delete")
{
string tid = Request["tid"];
CommUtil.ValidID(tid);
if (HasPower(tid))
{
TopicBll topicBll = new TopicBll();
IList<string> il = topicBll.GetFieldValues("SmallClassID", "and ID=" + tid);
string smallClassID = il[0];
topicBll.Update("IsDeleting|true#", "and ID=" + tid);
JsUtil.TipAndRedirect("删除成功!", UrlTrans.DotTrans("board",smallClassID,"",""), "0.2");
}
else
{
JsUtil.ShowMsg("您没有权限!", "javascript:history.back(-1)");
}
}
if (act == "lock")
{
string tid = Request["tid"];
CommUtil.ValidID(tid);
if (HasPower(tid))
{
TopicBll topicBll = new TopicBll();
后面还有 292 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。