Discuz.Web/aspx/1/myattachment.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using Discuz.Common;
using Discuz.Common.Generic;
using Discuz.Forum;
using Discuz.Web.UI;
using Discuz.Entity;
using Discuz.Config;
namespace Discuz.Web
{
public partial class myattachment : PageBase
{
#region 页面变量
/// <summary>
/// 帖子所属的主题列表
/// </summary>
public List<MyAttachmentInfo> myattachmentlist;
/// <summary>
/// 当前页码
/// </summary>
public int pageid = DNTRequest.GetInt("page", 1);
/// <summary>
/// 总页数
/// </summary>
public int pagecount;
/// <summary>
/// 附件总数
/// </summary>
public int attachmentcount;
/// <summary>
/// 分页页码链接
/// </summary>
public string pagenumbers;
/// <summary>
/// 当前登录的用户信息
/// </summary>
public UserInfo user = new UserInfo();
/// <summary>
/// 文件类型
/// </summary>
public int typeid = DNTRequest.GetInt("typeid", 0);
#endregion
protected override void ShowPage()
{
pagetitle = "用户控制面板";
if (userid == -1)
{
AddErrLine("你尚未登录");
return;
}
user = Users.GetUserInfo(userid);
attachmentcount = typeid > 0 ? Attachments.GetUserAttachmentCount(userid,typeid) : Attachments.GetUserAttachmentCount(userid);
pagecount = attachmentcount % 16 == 0 ? attachmentcount / 16 : attachmentcount / 16 + 1;
pagecount = pagecount == 0 ? 1 : pagecount;
后面还有 10 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
