Administration/WebSite.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//===============================================================================================
//
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
//
//===============================================================================================

using System;
using System.Web.Security;
using System.Web.UI.WebControls;
using System.IO;
using MyWebPagesStarterKit.Controls;
using System.Collections.Generic;
using System.Web;
using MyWebPagesStarterKit;
using System.Web.UI.HtmlControls;

public partial class Administration_WebSite : PageBaseClass
{
    protected string lang;
	//该源码下载自www.51aspx.com(51aspx.com)
    protected void Page_Load(object sender, EventArgs e)
    {
        //define language for the documentation path
        lang = System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName;
        if (!File.Exists(HttpContext.Current.Server.MapPath(string.Format("~/Documentation/" + lang + "/quick_guide.html"))))
        {
            lang = "en";
        }
    //5_1_a_s_p_x.c_o_m
        if (!IsPostBack)
        {
            txtWebSiteTitle.Text = _website.WebSiteTitle;

            List<ThemeEntry> availableThemes = new List<ThemeEntry>();
            foreach (string dir in Directory.GetDirectories(Server.MapPath("~/App_Themes")))
            {
                ThemeEntry entry = new ThemeEntry();
                entry.Name = Path.GetFileName(dir);
                entry.Thumbnail = "~/Images/thumbnail_notavailable.jpg";
                
                if (File.Exists(dir + "/thumbnail.jpg"))
                {
                    entry.Thumbnail = string.Format("~/App_Themes/{0}/thumbnail.jpg", entry.Name);
                }
                availableThemes.Add(entry);
            }
            ViewState["Themes"] = availableThemes;

            txtSmtpServer.Text = _website.SmtpServer;
            txtSmtpUser.Text = _website.SmtpUser;
            txtSmtpPassword.Text = _website.SmtpPassword;
            txtSmtpDomain.Text = _website.SmtpDomain;
            txtFooter.Text = _website.FooterText;
            txtDescription.Text = _website.Description;
            txtKeywords.Text = _website.Keywords;
            txtSenderMail.Text = _website.MailSenderAddress;
            chkSectionRss.Checked = (_website.EnableSectionRss);
后面还有 72 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。