user/userinfo.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class user_userinfo : System.Web.UI.Page
{
protected DataRow row;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["username"] != null)
{
SqlStore sql = new SqlStore();
DataRowCollection rows = sql.UserRead(Server.UrlDecode(Request.QueryString["username"])).Rows;
if (rows.Count == 1)
{
row = rows[0];
if (!(bool)row["publish"])
{
row["sex"] = DBNull.Value;
row["qq"] = DBNull.Value;
row["phone"] = DBNull.Value;
row["mail"] = DBNull.Value;
row["loginnum"] = DBNull.Value;
}
}
else
{
DataTable table = new DataTable();
table.Columns.Add("username");
table.Columns.Add("sex", typeof(bool));
table.Columns.Add("qq");
table.Columns.Add("phone");
table.Columns.Add("mail");
table.Columns.Add("sign");
table.Columns.Add("loginnum");
table.Columns.Add("registertime");
table.Columns.Add("lastlytime");
table.Columns.Add("cent");
table.Columns.Add("coin");
table.Columns.Add("publish", typeof(bool));
table.Rows.Add(new object[] { "", DBNull.Value, "", "", "", "", "", "", "", "", "", false });
row = table.Rows[0];
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
