Backup/Discuz.Web/aspx/1/frame.aspx.cs

(完整代码) 927B

using System;
using System.Data;
using System.Web;
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Web.UI;

namespace Discuz.Web
{
    /// <summary>
    /// 分栏框架页
    /// </summary>
    public class frame : PageBase
    {
        protected override void ShowPage()
        {
            pagetitle = "分栏";
            int toframe = DNTRequest.GetInt("f", 1);
            if (toframe == 1)
                ForumUtils.WriteCookie("isframe", "1");
            else
            {
                toframe = Utils.StrToInt(ForumUtils.GetCookie("isframe"), -1);
                toframe = toframe == -1 ? config.Isframeshow : toframe;
            }

            if (toframe == 0)
            {
                HttpContext.Current.Response.Redirect(BaseConfigs.GetForumPath);
                HttpContext.Current.Response.End();
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。