WmptWap/login.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
using System.Text.RegularExpressions;
namespace Html5
{
public partial class login : PageBase
{
ECustomer dal = new ECustomer();
protected void Page_Load(object sender, EventArgs e)
{
string name = HjNetHelper.GetQueryString("name");
if (name != "")
{
this.tbuserName.Value = name;
}
if (Request.HttpMethod.ToUpper() == "POST")
{
add_Click();
}
}
/// <summary>
/// 提交登录信息
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void add_Click()
{
ECustomerInfo model = new ECustomerInfo();
string username = WebUtility.InputText(Request.Form["tbuserName"]);
string password = WebUtility.GetMd5(WebUtility.InputText(Request.Form["tbpassword"]));
Regex rx = new Regex(@"^[0-9]*$");
if ((username.IndexOf('@') > 0) || (rx.IsMatch(username) && username.Length == 11))
{
if (username.IndexOf('@') > 0)
{
//判断邮箱有没有激活
model = dal.GetModelByEmail(username, password);
}
if (rx.IsMatch(username) && username.Length == 11)
{
//判断手机
string sql = "tell='" + username + "' and Password ='" + password + "'";
IList<ECustomerInfo> list = dal.GetList(1, 1, sql, "dataid", 1);
后面还有 51 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
