Exemplo n.º 1
0
 protected override void Render(HtmlTextWriter writer)
 {
     if (!CopyrightLicenser.CheckCopyright())
     {
         writer.Write(string.Format(this.renderFormat, SettingsManager.GetMasterSettings(false).SiteUrl));
     }
 }
Exemplo n.º 2
0
 protected override void Render(HtmlTextWriter writer)
 {
     if (!CopyrightLicenser.CheckCopyright())
     {
         writer.Write(string.Format(this.renderFormat, HiContext.Current.SiteSettings.SiteUrl));
     }
 }
Exemplo n.º 3
0
 public HiConfiguration()
 {
     if (!CopyrightLicenser.CheckCopyright())
     {
         throw new Exception("非法部署,请与供应商联系:");
     }
 }
Exemplo n.º 4
0
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            ErrorLog.Write("Globals.IsTestDomain:" + Globals.IsTestDomain);

            if (Globals.IsTestDomain)
            {
                base.Render(writer);
                return;
            }

            int serviceStatus = -1;

            SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);

            if (masterSettings != null)
            {
                masterSettings.ServiceStatus = CopyrightLicenser.CheckService("service") ? 1 : 0;
                masterSettings.OpenAliho     = CopyrightLicenser.CheckService("aliho") ? 1 : 0;
                masterSettings.OpenMobbile   = CopyrightLicenser.CheckService("app") ? 1 : 0;
                masterSettings.OpenVstore    = CopyrightLicenser.CheckService("vshop") ? 1 : 0;
                masterSettings.OpenTaobao    = CopyrightLicenser.CheckService("taobao") ? 1 : 0;
                masterSettings.OpenWap       = CopyrightLicenser.CheckService("wap") ? 1 : 0;

                SettingsManager.Save(masterSettings);

                serviceStatus = masterSettings.ServiceStatus;
            }

            //if (serviceStatus == 0)
            //{
            //    writer.Write(this.licenseMsg);
            //    return;
            //}

            //if (serviceStatus == -1)
            //{
            //    writer.Write(this.noticeMsg);
            //    return;
            //}

            base.Render(writer);
        }