Пример #1
0
 private void SaveInfo_Click(object sender, EventArgs e)
 {
     #region 保存信息
     if (this.CheckCookie())
     {
         string resultMessage = "";
         if (EnableSpace.SelectedValue == "1" && !Databases.IsExistTable("spaceconfigs"))
         {
             resultMessage = "您未能正确安装空间插件的数据库表";
         }
         if (EnableAlbum.SelectedValue == "1" && !Databases.IsExistTable("albums"))
         {
             resultMessage += (resultMessage != "" ? "\\r\\n" : "") + "您未能正确安装相册插件的数据库表";
         }
         if (resultMessage != "")
         {
             base.RegisterStartupScript("", "<script>alert('" + resultMessage + "');location.href=location.href;</script>");
             return;
         }
         GeneralConfigInfo configInfo = GeneralConfigs.GetConfig();
         configInfo.Forumtitle   = forumtitle.Text;
         configInfo.Webtitle     = webtitle.Text;
         configInfo.Weburl       = weburl.Text;
         configInfo.Licensed     = TypeConverter.StrToInt(licensed.SelectedValue);
         configInfo.Icp          = icp.Text;
         configInfo.Debug        = TypeConverter.StrToInt(debug.SelectedValue);
         configInfo.Statcode     = Statcode.Text;
         configInfo.Linktext     = Linktext.Text;
         configInfo.Spacename    = spacename.Text;
         configInfo.Albumname    = albumname.Text;
         configInfo.Closed       = TypeConverter.StrToInt(closed.SelectedValue);
         configInfo.Closedreason = closedreason.Text;
         configInfo.Enablespace  = Convert.ToInt32(EnableSpace.SelectedValue);
         configInfo.Enablealbum  = Convert.ToInt32(EnableAlbum.SelectedValue);
         //configInfo.Enablemall = Convert.ToInt32(EnableMall.SelectedValue);
         //bool message = Databases.IsExistTable("albums");
         GeneralConfigs.Serialiaze(configInfo, Server.MapPath("../../config/general.config"));
         if (configInfo.Aspxrewrite == 1)
         {
             AdminForums.SetForumsPathList(true, configInfo.Extname);
         }
         else
         {
             AdminForums.SetForumsPathList(false, configInfo.Extname);
         }
         Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/ForumList");
         Discuz.Forum.TopicStats.SetQueueCount();
         Caches.ReSetConfig();
         AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "站点设置", "");
         base.RegisterStartupScript("PAGE", "window.location.href='global_siteset.aspx';");
     }
     #endregion
 }
Пример #2
0
        private void SysteAutoSet_Click(object sender, EventArgs e)
        {
            #region 系统调整论坛版块

            if (this.CheckCookie())
            {
                AdminForums.SetForumslayer();
                AdminForums.SetForumsSubForumCountAndDispalyorder();
                AdminForums.SetForumsPathList();
                AdminForums.SetForumsStatus();
                AdminCaches.ReSetForumLinkList();
                AdminCaches.ReSetForumList();
                AdminCaches.ReSetForumListBoxOptions();

                base.RegisterStartupScript("", "<script language=javascript>clearflag();</script>");
            }

            #endregion
        }
Пример #3
0
        private void SaveInfo_Click(object sender, EventArgs e)
        {
            #region 保存设置信息

            if (this.CheckCookie())
            {
                GeneralConfigInfo configInfo = GeneralConfigs.GetConfig();

                configInfo.Seotitle       = seotitle.Text;
                configInfo.Seokeywords    = seokeywords.Text;
                configInfo.Seodescription = seodescription.Text;
                configInfo.Seohead        = seohead.Text;
                configInfo.Archiverstatus = Convert.ToInt16(archiverstatus.SelectedValue);
                configInfo.Sitemapstatus  = Convert.ToInt16(sitemapstatus.SelectedValue);
                configInfo.Sitemapttl     = Convert.ToInt32(sitemapttl.Text);
                configInfo.Aspxrewrite    = Convert.ToInt16(aspxrewrite.SelectedValue);
                if (extname.Text.Trim() == "")
                {
                    base.RegisterStartupScript("", "<script>alert('您未输入相应的伪静态url扩展名!');</script>");
                    return;
                }
                configInfo.Extname = extname.Text.Trim();

                if (configInfo.Aspxrewrite == 1)
                {
                    AdminForums.SetForumsPathList(true, configInfo.Extname);
                }
                else
                {
                    AdminForums.SetForumsPathList(false, configInfo.Extname);
                }

                Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/ForumList");
                configInfo.Iisurlrewrite = Convert.ToInt16(iisurlrewrite.SelectedValue);
                GeneralConfigs.Serialiaze(configInfo, Server.MapPath("../../config/general.config"));

                AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "搜索引擎优化设置", "");
                base.RegisterStartupScript("PAGE", "window.location.href='global_searchengine.aspx';");
            }

            #endregion
        }
Пример #4
0
        private void SaveInfo_Click(object sender, EventArgs e)
        {
            #region 保存信息
            if (this.CheckCookie())
            {
                GeneralConfigInfo configInfo = GeneralConfigs.GetConfig();
                configInfo.Forumtitle   = forumtitle.Text;
                configInfo.Webtitle     = webtitle.Text;
                configInfo.Weburl       = weburl.Text;
                configInfo.Licensed     = TypeConverter.StrToInt(licensed.SelectedValue);
                configInfo.Icp          = icp.Text;
                configInfo.Debug        = TypeConverter.StrToInt(debug.SelectedValue);
                configInfo.Statcode     = Statcode.Text;
                configInfo.Linktext     = Linktext.Text;
                configInfo.Spacename    = spacename.Text;
                configInfo.Albumname    = albumname.Text;
                configInfo.Closed       = TypeConverter.StrToInt(closed.SelectedValue);
                configInfo.Closedreason = closedreason.Text;
                configInfo.Enablespace  = Convert.ToInt32(EnableSpace.SelectedValue);
                configInfo.Enablealbum  = Convert.ToInt32(EnableAlbum.SelectedValue);
                configInfo.Enablemall   = Convert.ToInt32(EnableMall.SelectedValue);

                GeneralConfigs.Serialiaze(configInfo, Server.MapPath("../../config/general.config"));
                Urls.config = configInfo;
                if (configInfo.Aspxrewrite == 1)
                {
                    AdminForums.SetForumsPathList(true, configInfo.Extname);
                }
                else
                {
                    AdminForums.SetForumsPathList(false, configInfo.Extname);
                }
                Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/ForumList");
                Discuz.Forum.TopicStats.SetQueueCount();
                Caches.ReSetConfig();
                AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "站点设置", "");
                base.RegisterStartupScript("PAGE", "window.location.href='global_siteset.aspx';");
            }
            #endregion
        }
Пример #5
0
        private void SaveInfo_Click(object sender, EventArgs e)
        {
            #region 保存信息
            if (this.CheckCookie())
            {
                if (extname.Text.Trim() == "")
                {
                    base.RegisterStartupScript("", "<script>alert('您未输入相应的伪静态url扩展名!');</script>");
                    return;
                }
                if (!Utils.IsInt(notificationreserveddays.Text) || Utils.StrToInt(notificationreserveddays.Text, -1) < 0)
                {
                    base.RegisterStartupScript("", "<script>alert('通知保留天数只能为正数或0!');</script>");
                    return;
                }
                if (!Utils.IsInt(maxindexsubforumcount.Text) || Utils.StrToInt(maxindexsubforumcount.Text, -1) < 0)
                {
                    base.RegisterStartupScript("", "<script>alert('首页每个分类下最多显示版块数只能为正数或0!');</script>");
                    return;
                }
                if (!Utils.IsInt(deletingexpireduserfrequency.Text) || Utils.StrToInt(deletingexpireduserfrequency.Text, 0) < 1)
                {
                    base.RegisterStartupScript("", "<script>alert('删除离线用户频率只能为正数!');</script>");
                    return;
                }

                GeneralConfigInfo configInfo = GeneralConfigs.GetConfig();
                //configInfo.Forumtitle = forumtitle.Text;
                configInfo.Notificationreserveddays     = Utils.StrToInt(notificationreserveddays.Text, 0);
                configInfo.Maxindexsubforumcount        = Utils.StrToInt(maxindexsubforumcount.Text, 0);
                configInfo.Deletingexpireduserfrequency = Utils.StrToInt(deletingexpireduserfrequency.Text, 1);
                //configInfo.Webtitle = webtitle.Text;
                // configInfo.Weburl = weburl.Text;
                //configInfo.Licensed = Convert.ToInt16(licensed.SelectedValue);
                //configInfo.Closed = Convert.ToInt16(closed.SelectedValue);
                //configInfo.Closedreason = closedreason.Text;
                //configInfo.Icp = icp.Text;
                configInfo.Rssttl         = Convert.ToInt32(rssttl.Text);
                configInfo.Sitemapttl     = Convert.ToInt32(sitemapttl.Text);
                configInfo.Nocacheheaders = Convert.ToInt16(nocacheheaders.SelectedValue);
                //configInfo.Debug = Convert.ToInt16(debug.SelectedValue);
                configInfo.Rewriteurl        = "";
                configInfo.Maxmodworksmonths = 3;
                //configInfo.Rssstatus = Convert.ToInt16(rssstatus.SelectedValue);
                configInfo.Sitemapstatus = Convert.ToInt16(sitemapstatus.SelectedValue);
                configInfo.Cachelog      = 0;
                if (fulltextsearch.SelectedValue == "1")
                {
                    string msg = "";
                    configInfo.Fulltextsearch = Databases.TestFullTextIndex(ref msg);
                }
                else
                {
                    configInfo.Fulltextsearch = 0;
                }

                //configInfo.Passwordmode = Convert.ToInt16(passwordmode.SelectedValue);
                //configInfo.Bbcodemode = Convert.ToInt16(bbcodemode.SelectedValue);
                configInfo.AvatarMethod       = Convert.ToInt16(avatarmethod.SelectedValue);
                configInfo.Showattachmentpath = Convert.ToInt16(showattachmentpath.SelectedValue);
                configInfo.Showimgattachmode  = Convert.ToInt16(showimgattachmode.SelectedValue);
                configInfo.TopicQueueStats    = Topicqueuestats_1.Checked ? 1 : 0;
                //if (Topicqueuestats_1.Checked == true)
                //{
                //    configInfo.TopicQueueStats = 1;
                //}
                //else
                //{
                //    configInfo.TopicQueueStats = 0;
                //}

                configInfo.TopicQueueStatsCount = Convert.ToInt32(topicqueuestatscount.Text);
                configInfo.Extname     = extname.Text.Trim();
                configInfo.Silverlight = Convert.ToInt32(enablesilverlight.SelectedValue);
                //configInfo.Enablespace = Convert.ToInt32(EnableSpace.SelectedValue);
                //configInfo.Enablealbum = Convert.ToInt32(EnableAlbum.SelectedValue);
                //configInfo.Enablemall = Convert.ToInt32(EnableMall.SelectedValue);
                //configInfo.CookieDomain = CookieDomain.Text;
                configInfo.Memliststatus = Convert.ToInt32(memliststatus.SelectedValue);
                configInfo.Indexpage     = Convert.ToInt32(Indexpage.SelectedValue);
                //configInfo.Linktext = Linktext.Text;
                // configInfo.Statcode = Statcode.Text;
                //configInfo.Spacename = spacename.Text;
                //configInfo.Albumname = albumname.Text;
                configInfo.Aspxrewrite                = Convert.ToInt16(aspxrewrite.SelectedValue);
                configInfo.Iisurlrewrite              = Convert.ToInt16(iisurlrewrite.SelectedValue);
                configInfo.Onlineoptimization         = Convert.ToInt32(onlineoptimization.SelectedValue);
                configInfo.OnlineUserCountCacheMinute = Convert.ToInt32(onlineusercountcacheminute.Text);
                configInfo.PostTimeStorageMedia       = Convert.ToInt32(posttimestoragemedia.SelectedValue);
                GeneralConfigs.Serialiaze(configInfo, Server.MapPath("../../config/general.config"));
                Urls.config = configInfo;
                if (configInfo.Aspxrewrite == 1)
                {
                    AdminForums.SetForumsPathList(true, configInfo.Extname);
                }
                else
                {
                    AdminForums.SetForumsPathList(false, configInfo.Extname);
                }
                Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/ForumList");
                Discuz.Forum.TopicStats.SetQueueCount();
                Caches.ReSetConfig();
                AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "基本设置", "");
                base.RegisterStartupScript("PAGE", "window.location.href='global_baseset.aspx';");
            }
            #endregion
        }
Пример #6
0
        private void SaveInfo_Click(object sender, EventArgs e)
        {
            #region 保存信息
            if (this.CheckCookie())
            {
                GeneralConfigInfo __configinfo = GeneralConfigs.Deserialize(Server.MapPath("../../config/general.config"));
                __configinfo.Forumtitle = forumtitle.Text;
                __configinfo.Forumurl   = forumurl.Text;
                if ((__configinfo.Forumurl == "") || !__configinfo.Forumurl.EndsWith(".aspx"))
                {
                    base.RegisterStartupScript("", "<script>alert('论坛URL地址不能为空且必须以\".aspx结尾\"!');</script>");
                    return;
                }


                __configinfo.Webtitle          = webtitle.Text;
                __configinfo.Weburl            = weburl.Text;
                __configinfo.Licensed          = Convert.ToInt16(licensed.SelectedValue);
                __configinfo.Icp               = icp.Text;
                __configinfo.Rssttl            = Convert.ToInt32(rssttl.Text);
                __configinfo.Sitemapttl        = Convert.ToInt32(sitemapttl.Text);
                __configinfo.Nocacheheaders    = Convert.ToInt16(nocacheheaders.SelectedValue);
                __configinfo.Debug             = Convert.ToInt16(debug.SelectedValue);
                __configinfo.Rewriteurl        = "";
                __configinfo.Maxmodworksmonths = 3;
                __configinfo.Rssstatus         = Convert.ToInt16(rssstatus.SelectedValue);
                __configinfo.Sitemapstatus     = Convert.ToInt16(sitemapstatus.SelectedValue);
                __configinfo.Cachelog          = 0;
                if (fulltextsearch.SelectedValue == "1")
                {
                    __configinfo.Fulltextsearch = 1;
                    foreach (DataRow dr in Posts.GetAllPostTableName().Rows)
                    {
                        try
                        {
                            DatabaseProvider.GetInstance().TestFullTextIndex(Utils.StrToInt(dr["id"], 0));
                        }
                        catch
                        {
                            base.RegisterStartupScript("", "<script>alert('您的数据库帖子表[" + BaseConfigs.GetTablePrefix + "posts" + dr["id"] + "]中暂未进行全文索引设置,因此使用数据库全文搜索无效');</script>");
                            __configinfo.Fulltextsearch = 0;
                            break;
                        }
                    }
                }
                else
                {
                    __configinfo.Fulltextsearch = 0;
                }
                __configinfo.Passwordmode = Convert.ToInt16(passwordmode.SelectedValue);
                __configinfo.Bbcodemode   = Convert.ToInt16(bbcodemode.SelectedValue);

                if (extname.Text.Trim() == "")
                {
                    base.RegisterStartupScript("", "<script>alert('您未输入相应的伪静态url扩展名!');</script>");
                    return;
                }

                //if (__configinfo.Extname != extname.Text.Trim())
                //{
                //    AdminForums.SetForumsPathList(true, extname.Text.Trim());
                //}

                __configinfo.Extname       = extname.Text.Trim();
                __configinfo.Silverlight   = Convert.ToInt32(enablesilverlight.SelectedValue);
                __configinfo.CookieDomain  = CookieDomain.Text;
                __configinfo.Memliststatus = Convert.ToInt32(memliststatus.SelectedValue);
                __configinfo.Indexpage     = Convert.ToInt32(Indexpage.SelectedValue);
                __configinfo.Linktext      = Linktext.Text;
                __configinfo.Statcode      = Statcode.Text;

                __configinfo.Aspxrewrite = Convert.ToInt16(aspxrewrite.SelectedValue);

                GeneralConfigs.Serialiaze(__configinfo, Server.MapPath("../../config/general.config"));

                if (__configinfo.Aspxrewrite == 1)
                {
                    AdminForums.SetForumsPathList(true, __configinfo.Extname);
                }
                else
                {
                    AdminForums.SetForumsPathList(false, __configinfo.Extname);
                }
                Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/ForumList");

                TopicStats.SetQueueCount();
                AdminCaches.ReSetConfig();
                AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "基本设置", "");
                base.RegisterStartupScript("PAGE", "window.location.href='global_baseset.aspx';");
            }
            #endregion
        }
        private void SaveInfo_Click(object sender, EventArgs e)
        {
            #region 保存信息
            if (this.CheckCookie())
            {
                GeneralConfigInfo configInfo = GeneralConfigs.GetConfig();
                Hashtable         HT         = new Hashtable();
                HT.Add("最大在线人数", maxonlines.Text);
                HT.Add("搜索时间限制", searchctrl.Text);
                foreach (DictionaryEntry de in HT)
                {
                    if (!Utils.IsInt(de.Value.ToString()))
                    {
                        base.RegisterStartupScript("", "<script>alert('输入错误:" + de.Key.ToString().Trim() + ",只能是0或者正整数');window.location.href='global_safecontrol.aspx';</script>");
                        return;
                    }
                }

                if (fulltextsearch.SelectedValue == "1")
                {
                    string msg = "";
                    configInfo.Fulltextsearch = Databases.TestFullTextIndex(ref msg);
                }
                else
                {
                    configInfo.Fulltextsearch = 0;
                }

                configInfo.Nocacheheaders        = Convert.ToInt16(nocacheheaders.SelectedValue);
                configInfo.Maxonlines            = Convert.ToInt32(maxonlines.Text);
                configInfo.Searchctrl            = Convert.ToInt32(searchctrl.Text);
                configInfo.Statscachelife        = Convert.ToInt16(statscachelife.Text);
                configInfo.Guestcachepagetimeout = Convert.ToInt16(guestcachepagetimeout.Text);
                configInfo.Oltimespan            = Convert.ToInt16(oltimespan.Text);
                configInfo.Topiccachemark        = Convert.ToInt16(topiccachemark.Text);
                if (showauthorstatusinpost.SelectedValue == "1")
                {
                    configInfo.Onlinetimeout = 0 - Convert.ToInt32(onlinetimeout.Text);
                }
                else
                {
                    configInfo.Onlinetimeout = TypeConverter.StrToInt(onlinetimeout.Text);
                }
                //configInfo.Secques = Convert.ToInt32(secques.SelectedValue);
                //configInfo.Postinterval = Convert.ToInt32(postinterval.Text);
                //configInfo.Maxspm = Convert.ToInt32(maxspm.Text);



                GeneralConfigs.Serialiaze(configInfo, Server.MapPath("../../config/general.config"));
                Urls.config = configInfo;
                if (configInfo.Aspxrewrite == 1)
                {
                    AdminForums.SetForumsPathList(true, configInfo.Extname);
                }
                else
                {
                    AdminForums.SetForumsPathList(false, configInfo.Extname);
                }
                Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/ForumList");
                Discuz.Forum.TopicStats.SetQueueCount();
                Caches.ReSetConfig();
                AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "基本设置", "");
                base.RegisterStartupScript("PAGE", "window.location.href='global_siteoptimization.aspx';");
            }
            #endregion
        }
Пример #8
0
        private void SaveInfo_Click(object sender, EventArgs e)
        {
            #region 保存信息
            if (this.CheckCookie())
            {
                GeneralConfigInfo configInfo = GeneralConfigs.GetConfig();
                Hashtable         HT         = new Hashtable();
                HT.Add("最大在线人数", maxonlines.Text);
                HT.Add("搜索时间限制", searchctrl.Text);
                foreach (DictionaryEntry de in HT)
                {
                    if (!Utils.IsInt(de.Value.ToString()))
                    {
                        base.RegisterStartupScript("", "<script>alert('输入错误:" + de.Key.ToString().Trim() + ",只能是0或者正整数');window.location.href='global_safecontrol.aspx';</script>");
                        return;
                    }
                }

                if (fulltextsearch.SelectedValue == "1")
                {
                    string msg = "";
                    configInfo.Fulltextsearch = Databases.TestFullTextIndex(ref msg);
                }
                else
                {
                    configInfo.Fulltextsearch = 0;
                }

                if (Topicqueuestats_1.Checked == true)
                {
                    configInfo.TopicQueueStats = 1;
                }
                else
                {
                    configInfo.TopicQueueStats = 0;
                }

                if (!Utils.IsInt(notificationreserveddays.Text) || Utils.StrToInt(notificationreserveddays.Text, -1) < 0)
                {
                    base.RegisterStartupScript("", "<script>alert('通知保留天数只能为正数或0!');</script>");
                    return;
                }

                if (!Utils.IsInt(maxindexsubforumcount.Text) || Utils.StrToInt(maxindexsubforumcount.Text, -1) < 0)
                {
                    base.RegisterStartupScript("", "<script>alert('首页每个分类下最多显示版块数只能为正数或0!');</script>");
                    return;
                }

                if (!Utils.IsInt(deletingexpireduserfrequency.Text) || Utils.StrToInt(deletingexpireduserfrequency.Text, 0) < 1)
                {
                    base.RegisterStartupScript("", "<script>alert('删除离线用户频率只能为正数!');</script>");
                    return;
                }
                configInfo.Deletingexpireduserfrequency = Utils.StrToInt(deletingexpireduserfrequency.Text, 1);
                configInfo.Maxindexsubforumcount        = Utils.StrToInt(maxindexsubforumcount.Text, 0);
                configInfo.Notificationreserveddays     = Utils.StrToInt(notificationreserveddays.Text, 0);

                configInfo.TopicQueueStatsCount = Convert.ToInt32(topicqueuestatscount.Text);

                configInfo.Nocacheheaders        = Convert.ToInt16(nocacheheaders.SelectedValue);
                configInfo.Maxonlines            = Convert.ToInt32(maxonlines.Text);
                configInfo.Searchctrl            = Convert.ToInt32(searchctrl.Text);
                configInfo.Statscachelife        = Convert.ToInt16(statscachelife.Text);
                configInfo.Guestcachepagetimeout = Convert.ToInt16(guestcachepagetimeout.Text);
                configInfo.Oltimespan            = Convert.ToInt16(oltimespan.Text);
                configInfo.Topiccachemark        = Convert.ToInt16(topiccachemark.Text);
                configInfo.Onlineoptimization    = Convert.ToInt32(onlineoptimization.SelectedValue);
                configInfo.AvatarMethod          = Convert.ToInt16(avatarmethod.SelectedValue);
                //configInfo.Showattachmentpath = Convert.ToInt16(showattachmentpath.SelectedValue);
                configInfo.Showimgattachmode          = Convert.ToInt16(showimgattachmode.SelectedValue);
                configInfo.TopicQueueStats            = Topicqueuestats_1.Checked ? 1 : 0;
                configInfo.OnlineUserCountCacheMinute = Convert.ToInt32(onlineusercountcacheminute.Text);
                configInfo.PostTimeStorageMedia       = Convert.ToInt32(posttimestoragemedia.SelectedValue);

                //如果帖子显示作者状态是简单判断,则保存无动作离线时间为负数值
                configInfo.Onlinetimeout = showauthorstatusinpost.SelectedValue == "1" ? 0 - TypeConverter.StrToInt(onlinetimeout.Text) : TypeConverter.StrToInt(onlinetimeout.Text);
                configInfo.Jqueryurl     = jqueryurl.Text;
                GeneralConfigs.Serialiaze(configInfo, Server.MapPath("../../config/general.config"));
                if (configInfo.Aspxrewrite == 1)
                {
                    AdminForums.SetForumsPathList(true, configInfo.Extname);
                }
                else
                {
                    AdminForums.SetForumsPathList(false, configInfo.Extname);
                }
                Discuz.Cache.DNTCache.GetCacheService().RemoveObject("/Forum/ForumList");
                Discuz.Forum.TopicStats.SetQueueCount();
                Caches.ReSetConfig();
                AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "站点优化", "");
                base.RegisterStartupScript("PAGE", "window.location.href='global_siteoptimization.aspx';");
            }
            #endregion
        }