JumboTCMS_src/JumboTCMS.WebFile/about/authorize_submit.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
 * 程序名称: JumboTCMS(将博内容管理系统通用版)
 * 
 * 程序版本: 7.x
 * 
 * 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
 * 
 * 版权申明: http://www.jumbotcms.net/about/copyright.html
 * 
 * 技术答疑: http://forum.jumbotcms.net/
 * 
 */

using System;
using System.Data;
using System.Web;
using JumboTCMS.Utils;
namespace JumboTCMS.WebFile.About
{
    public partial class _authorize_submit : JumboTCMS.UI.FrontHtml
    {
        public string Domain, WebName, AccreditType, AccreditTypeName, AddTime, UseInBusiness, DeleteCopyright, Validity = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            string _domain = f("domain");
            string _defaultpage = f("defaultpage");
            string _webname = f("webname");

            string[] aryReg = { "'", "\"", "<", ">", "%", "?", ",", "=", "_", ";", "|", "[", "]", "&", "/" };
            for (int i = 0; i < aryReg.Length; i++)
            {
                _domain = _domain.Replace(aryReg[i], string.Empty);
            }
            int totalCount = 0;
            doh.Reset();
            doh.ConditionExpress = "[State]=1 and [Domain]='" + _domain + "'";
            totalCount = doh.Count("jcms_official_authorization");
            if (totalCount > 0)
            {
                Response.Write("<script>alert('此域名已得到官方授权,不需要再申请');window.close();</script>");
                Response.End();
            }
            //需要检测首页文件是否含Jumbotcms
            if (JumboTCMS.Utils.Validator.IsFreeSite(_defaultpage, _webname))
            {
                doh.Reset();
                doh.AddFieldItem("Domain", _domain);
                doh.AddFieldItem("WebName", _webname);
                doh.AddFieldItem("DefaultPage", _defaultpage);
                doh.AddFieldItem("AccreditType", 1);
                doh.AddFieldItem("State", 1);
                doh.AddFieldItem("AddTime", System.DateTime.Now.ToString("yyyy-MM-dd"));
                doh.AddFieldItem("Validity", "2099-12-31");
                doh.Insert("jcms_official_authorization");
                Response.Redirect("authorize_result.aspx?domain=" + _domain);
            }
            else
            {
                Response.Write("<script>alert('此网站信息不正确,不能进行申请');window.close();</script>");
                Response.End();
后面还有 5 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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