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(); } }
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(); }
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(); }
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; }
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); }