Views/UserCenter/Register.ashx
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="Register" %>
using System;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroPublicHelper;
using Newtonsoft.Json.Linq;
public class Register : IHttpHandler, System.Web.SessionState.IRequiresSessionState {
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string flag = "注册失败,请检查输入的内容是否正确,如需协助请联系管理员。 <br/> Registration failed, please check whether the input is correct, please contact the administrator for assistance.";
try
{
string Fields = context.Server.UrlDecode(context.Request.Form["fields"]);
//测试数据
//Fields = "{\"txtUserName\":\"test04\",\"txtUserPassword\":\"abcd1234\",\"txtConfirmPassword\":\"abcd1234\",\"txtEMail\":\"test04@163.com\",\"txtValidateCode\":\"osfa\",\"agreement\":\"on\"}";
if (!string.IsNullOrEmpty(Fields))
flag = SetRegister(Fields);
}
catch (Exception ex) { flag = ex.ToString(); }
context.Response.Write(flag);
}
private string SetRegister(string Fields)
{
string flag = "注册失败,请检查输入的内容是否正确,如需协助请联系管理员。 <br/> Registration failed, please check whether the input is correct, please contact the administrator for assistance.";
string vCode = HttpContext.Current.Session["vCode"].ToString();
string UserName = string.Empty, UserPassword = string.Empty, EMail = string.Empty, ValidateCode = string.Empty, RegIP = string.Empty;
DateTime timeRegTime = DateTime.Now;
try
{
dynamic json = JToken.Parse(Fields) as dynamic;
UserName = json["txtUserName"];
if (!string.IsNullOrEmpty(UserName))
UserName = UserName.Trim();
UserPassword = json["txtUserPassword"];
if (!string.IsNullOrEmpty(UserPassword))
UserPassword = UserPassword.Trim();
EMail = json["txtEMail"];
if (!string.IsNullOrEmpty(EMail))
EMail = EMail.Trim();
ValidateCode = json["txtValidateCode"];
if (!string.IsNullOrEmpty(ValidateCode))
ValidateCode = ValidateCode.Trim().ToLower();
RegIP = MicroPublic.GetClientIP();
后面还有 81 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
