Ejemplo n.º 1
0
 public DiskSettings()
 {
     this.DiskSpaceSize       = new Exceptable <long>(1024 * 1024 * 1024);
     this.EnableDisk          = true;
     this.MaxFileCount        = new Exceptable <int>(0);
     this.MaxFileSize         = new Exceptable <long>(10 * 1024 * 1024);
     this.PackZip             = new Exceptable <bool>(true);
     this.UnpackRar           = new Exceptable <bool>(true);
     this.UnpackZip           = new Exceptable <bool>(true);
     this.AllowFileExtensions = new Exceptable <ExtensionList>(ExtensionList.Parse("*"));
     this.DefaultViewMode     = new Exceptable <FileViewMode>(FileViewMode.Thumbnail);
 }
Ejemplo n.º 2
0
        public ForumSettingItem()
        {
            AllowGuestVisitForum  = true;
            DisplayInListForGuest = true;
            VisitForum            = new Exceptable <bool>(true);
            DisplayInList         = new Exceptable <bool>(true);

            EnableHiddenTag = true;

            EnableThreadRank = true;

            EnableSellAttachment = new Exceptable <bool>(true);

            EnableSellThread = new Exceptable <bool>(true);

            PostSubjectLengths = new Exceptable <Int32Scope>(new Int32Scope(2, 150));

            PostContentLengths = new Exceptable <Int32Scope>(new Int32Scope(2, 50000));

            CreatePostIntervals = new Exceptable <int>(10);



            UpdateThreadSortOrderIntervals = new Exceptable <int>(60 * 60 * 24 * 30);


            RecycleOwnThreadsIntervals = new Exceptable <int>(60 * 60 * 24);

            UpdateOwnPostIntervals = new Exceptable <int>(0);

            DeleteOwnThreadsIntervals = new Exceptable <int>(60 * 60 * 24);


            QuestionValidDays = new Exceptable <long>(60 * 60 * 24 * 3);

            PolemizeValidDays = new Exceptable <long>(60 * 60 * 24 * 3);

            PollValidDays = new Exceptable <long>(60 * 60 * 24 * 3);

            AllowFileExtensions = new Exceptable <ExtensionList>(ExtensionList.Parse("*"));

            AllowImageAttachment = new Exceptable <bool>(true);

            AllowAttachment = new Exceptable <bool>(true);

            MaxSignleAttachmentSize = new Exceptable <long>(1024 * 1024 * 5);

            MaxTopicAttachmentCount = new Exceptable <int>(10);

            MaxPostAttachmentCount = new Exceptable <int>(10);

            CreatePostAllowEmoticon = new Exceptable <bool>(true);

            CreatePostAllowAudioTag = new Exceptable <bool>(true);

            CreatePostAllowFlashTag = new Exceptable <bool>(true);

            CreatePostAllowHTML = new Exceptable <bool>(false);

            CreatePostAllowImageTag = new Exceptable <bool>(true);

            CreatePostAllowMaxcode = new Exceptable <bool>(true);

            CreatePostAllowTableTag = new Exceptable <bool>(true);

            CreatePostAllowUrlTag = new Exceptable <bool>(true);

            CreatePostAllowVideoTag = new Exceptable <bool>(true);

            ShowSignatureInThread = new Exceptable <bool>(true);

            ShowSignatureInPost = new Exceptable <bool>(true);

            ReplyNeedApprove = new Exceptable <bool>(false);

            CreateThreadNeedApprove = new Exceptable <bool>(false);

            DefaultThreadSortField = ThreadSortField.LastReplyDate;


            ReplyReturnThreadLastPage = true;
        }