Discuz.Web/admin/global/global_uiandshowstyle.aspx.cs
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web.UI;
using System.Collections;
using Discuz.Control;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Common;
using System.Text;
using System.Web.UI.WebControls;
namespace Discuz.Web.Admin
{
/// <summary>
/// 界面与显示方式设置
/// </summary>
public partial class uiandshowstyle : AdminPage
{
/// <summary>
/// 可用的扩展积分名称列表
/// </summary>
public string[] score;
public string[] postleftarray, userfacearray;
protected void Page_Load(object sender, EventArgs e)
{
LoadCustomauthorinfo();
if (!Page.IsPostBack)
{
LoadConfigInfo();
quickforward.Items[0].Attributes.Add("onclick", "setStatus(true)");
quickforward.Items[1].Attributes.Add("onclick", "setStatus(false)");
openshare.Items[0].Attributes.Add("onclick", "openShare(true)");
openshare.Items[1].Attributes.Add("onclick", "openShare(false)");
}
}
private void LoadCustomauthorinfo()
{
score = Scoresets.GetValidScoreName();
GeneralConfigInfo configinfos = GeneralConfigs.GetConfig();
string customauthorinfo = configinfos.Customauthorinfo;
string postleft = Utils.SplitString(customauthorinfo, "|")[0];//帖子左边要显示的用户信息项目
string userface = Utils.SplitString(customauthorinfo, "|")[1];//头像上方要显示的项目
postleftarray = postleft.Split(',');
userfacearray = userface.Split(',');
}
public void LoadConfigInfo()
{
#region 加载配置信息
templateid.Attributes.Add("onchange", "LoadImage(this.selectedIndex)");
GeneralConfigInfo configInfo = GeneralConfigs.GetConfig();
stylejump.SelectedValue = configInfo.Stylejump.ToString();
browsecreatetemplate.SelectedValue = configInfo.BrowseCreateTemplate.ToString();
templateid.AddTableData(Templates.GetValidTemplateList(), "name", "templateid");
debug.SelectedValue = configInfo.Debug.ToString();
后面还有 213 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
