예제 #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!PageContext.IsHostAdmin)
            {
                YafBuildLink.AccessDenied();
            }

            if (!IsPostBack)
            {
                PageLinks.AddLink(PageContext.BoardSettings.Name, YAF.Classes.Utils.YafBuildLink.GetLink(YAF.Classes.Utils.ForumPages.forum));
                PageLinks.AddLink("Administration", YAF.Classes.Utils.YafBuildLink.GetLink(YAF.Classes.Utils.ForumPages.admin_admin));
                PageLinks.AddLink("Host Settings", "");

                // Jaben 9/21: Removed localization. Admin isn't localized.
                this.SettingsTab.HeaderText   = "Host Settings";
                this.FeaturesTab.HeaderText   = "Features";
                this.DisplayTab.HeaderText    = "Show/Display Items";
                this.AdvertsTab.HeaderText    = "Adverts";
                this.EditorTab.HeaderText     = "Editors";
                this.PermissionTab.HeaderText = "Permission";
                this.TemplatesTab.HeaderText  = "Templates";
                this.AvatarsTab.HeaderText    = "Avatars";
                this.CacheTab.HeaderText      = "Cache";

                BindData();
            }

            // Ederon : 7/1/2007
            // set widths manually since ASP.NET "forgets" to do it for browsers other then IE
            General.AddStyleAttributeWidth(SmiliesPerRow, "25px");
            General.AddStyleAttributeWidth(SmiliesColumns, "25px");
            General.AddStyleAttributeWidth(ForumEmailEdit, "200px");
            General.AddStyleAttributeWidth(AcceptedHTML, "200px");
            General.AddStyleAttributeWidth(DisableNoFollowLinksAfterDay, "100px");

            // Ederon : 7/14/2007
            General.AddStyleAttributeSize(UserBox, "350px", "100px");
            General.AddStyleAttributeWidth(UserBoxAvatar, "200px");
            General.AddStyleAttributeWidth(UserBoxMedals, "200px");
            General.AddStyleAttributeWidth(UserBoxGroups, "200px");
            General.AddStyleAttributeWidth(UserBoxJoinDate, "200px");
            General.AddStyleAttributeWidth(UserBoxLocation, "200px");
            General.AddStyleAttributeWidth(UserBoxPosts, "200px");
            General.AddStyleAttributeWidth(UserBoxPoints, "200px");
            General.AddStyleAttributeWidth(UserBoxRank, "200px");
            General.AddStyleAttributeWidth(UserBoxRankImage, "200px");
            General.AddStyleAttributeSize(AdPost, "400px", "150px");

            // CheckCache
            CheckCache();
        }