示例#1
0
 public void CreateTopic(TopicInfo topic, PostInfo post, AttachmentInfo[] attachs)
 {
     OnTopicCreated(topic, post, attachs);
 }
示例#2
0
        /// <summary>
        /// 发帖(主题)是否需要审核
        /// </summary>
        /// <param name="forum"></param>
        /// <param name="useradminid"></param>
        /// <param name="topicInfo"></param>
        /// <param name="userid"></param>
        /// <param name="disablepost"></param>
        /// <returns></returns>
        public static bool NeedAudit(ForumInfo forum, int useradminid, TopicInfo topicInfo, int userid, int disablepost)
        {
            bool needaudit = false; //是否需要审核

            if (BetweenTime(GeneralConfigs.GetConfig().Postmodperiods))
            {
                needaudit = true;
            }
            else
            {
                if (forum.Modnewposts == 1 && useradminid != 1)
                {
                    if (useradminid > 1)
                    {
                        if (disablepost == 1 && topicInfo.Displayorder != -2)
                        {
                            if (useradminid == 3)
                                needaudit = true;
                        }
                        else
                            needaudit = true;
                    }
                    else
                        needaudit = true;
                }
                else if (useradminid != 1 && topicInfo.Displayorder == -2)
                    needaudit = true;
            }
            return needaudit;
        }
示例#3
0
 protected virtual void OnTopicCreated(TopicInfo topic, PostInfo post, AttachmentInfo[] attachs)
 {
 }