Discuz.Install/SetupPage.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.IO;
using System.Text;
using System.Web;
using System.Web.UI;
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using System.Collections;
namespace Discuz.Install
{
/// <summary>
/// SetupPage 的摘要说明。
/// </summary>
public class SetupPage : System.Web.UI.Page
{
public static readonly string producename = Utils.GetAssemblyProductName(); //当前产品版本名称
public static readonly string footer = "";
public static readonly string logo = "<img src=\"images/logo.jpg\" width=\"180\" height=\"300\">"; //安装的LOGO
public static readonly string header = ""; //html页的的<head>属性
public static int isError = 0;
static SetupPage()
{
header = "<HEAD><title>安装 " + Utils.GetAssemblyProductName() + "</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n";
header += "<LINK rev=\"stylesheet\" media=\"all\" href=\"css/styles.css\" type=\"text/css\" rel=\"stylesheet\"></HEAD>\r\n";
header += "<script language=\"javascript\" src=\"js/setup.js\"></script>\r\n";
footer = "\r\n<br />\r\n<br /><table width=\"700\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" ID=\"Table1\">";
footer += "<tr><td align=\"center\"><div align=\"center\" style=\"position:relative ; padding-top:60px;font-size:14px; font-family: Arial\">";
footer += "<hr style=\"height:1; width:600; height:1; color:#CCCCCC\" />Powered by <a style=\"COLOR: #000000\" href=\"http://nt.discuz.net\" target=\"_blank\">" + Utils.GetAssemblyProductName() + "</a>";
footer += " <br />© 2001-" + Utils.GetAssemblyCopyright().Split(',')[0] + " <a style=\"COLOR: #000000;font-weight:bold\" href=\"http://www.comsenz.com\" target=\"_blank\">Comsenz Inc.</a></div></td></tr></table>";
}
//当用户点击按钮时,将其置为无效
public void DisableSubmitBotton(Page mypage, System.Web.UI.WebControls.Button submitbutton)
{
RegisterAdminPageClientScriptBlock();
//保证 __doPostBack(eventTarget, eventArgument) 正确注册
#if NET1
mypage.GetPostBackEventReference(submitbutton,"");
#else
mypage.ClientScript.GetPostBackEventReference(submitbutton, "");
#endif
StringBuilder sb = new StringBuilder();
//保证验证函数的执行
sb.Append("if (typeof(Page_ClientValidate) == 'function') { if (Page_ClientValidate() == false) { return false; }}");
// disable所有submit按钮
后面还有 364 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
