示例#1
0
        public SiteSettings()
        {
            ForumCloseReason = Lang.Setting_ForumSetting_ForumCloseReason;
            SiteName         = "bbsMax";
            SiteUrl          = string.Empty;

            BbsUrls = "*";

            BbsName = "bbsMax论坛";

            this.ForumIcp = string.Empty;
            this.StatCode = string.Empty;

            this.DisplaySiteNameInNavigation = false;
            //this.EncodePostUrl = false;
            //this.OpenGZipStaticFile = false;
            this.ViewIPFields = new Exceptable <int>(2);
            //this.EnableCookieDomain = true;

#if !Passport
            ForumClosed          = ForumState.Open;
            this.DefaultFeedType = FeedType.FriendFeed;
#endif
            if (ScopeList == null)
            {
                ScopeList = new ScopeBaseCollection();
            }
        }
示例#2
0
		public SiteSettings()
		{

			ForumCloseReason = Lang.Setting_ForumSetting_ForumCloseReason;
			SiteName        = "bbsMax";
			SiteUrl         = string.Empty;

            BbsUrls = "*";

            BbsName = "bbsMax论坛";

            this.ForumIcp = string.Empty;
            this.StatCode = string.Empty;

            this.DisplaySiteNameInNavigation = false;
            //this.EncodePostUrl = false;
            //this.OpenGZipStaticFile = false;
            this.ViewIPFields = new Exceptable<int>(2);
            //this.EnableCookieDomain = true;

#if !Passport
            ForumClosed      = ForumState.Open;
            this.DefaultFeedType = FeedType.FriendFeed;
#endif
            if (ScopeList == null)
                ScopeList = new ScopeBaseCollection();

		}
示例#3
0
        public RegisterSettings()
        {
            EnableRegister = RegisterMode.Open;
            m_EmailVerifyMode = EmailVerifyMode.Disabled;
            DisplayLicenseMode = LicenseMode.Embed;
            RegisterLicenseDisplayTime = 10;
            RegisterLicenseContent = Lang.User_RegisterAgreement;//
            NewUserPracticeTime = 0;
            ActivationExpiresDate = 0;

            ActivationEmailTitle = Rescourses.Lang.Setting_RegisterSetting_ActivationEmailTitle;
            ActivationEmailContent = Lang.Setting_RegisterSetting_ActivationEmailContent;

            EmailValidationTitle = Lang.Setting_RegisterSetting_EmailValidationTitle;
            EmailValidationContent = Lang.Setting_RegisterSetting_EmailValidationContent;

            WelcomeMailTitle = Lang.Setting_RegisterSetting_WelcomeMailTitle;
            WelcomeMailContent = Lang.Setting_RegisterSetting_WelcomeContent;

            EnableWelcomeMail = false;
           

            if(ScopeList==null)
            ScopeList = new ScopeBaseCollection();
        }
示例#4
0
        private bool DeleteScopeBaseFromList(string scopeid,ScopeBaseCollection scopelist)
        {
            if (scopeid != null)
            {
                foreach (ScopeBase scope in scopelist)
                {
                    if (scope.ID.ToString() == scopeid)
                    {
                        scopelist.Remove(scope);
                        return true;
                    }
                }
            }

            return false;
        }
示例#5
0
        private bool DeleteScopeBaseFromList(string scopeid, ScopeBaseCollection scopelist)
        {
            if (scopeid != null)
            {
                foreach (ScopeBase scope in scopelist)
                {
                    if (scope.ID.ToString() == scopeid)
                    {
                        scopelist.Remove(scope);
                        return(true);
                    }
                }
            }

            return(false);
        }