DTcms.Web.UI/DTcms.Web.UI.Page/register.cs

(完整代码) 1KB

using DTcms.BLL;
using DTcms.Common;
using DTcms.Model;
using System;
using System.Web;

namespace DTcms.Web.UI.Page
{
	public class register : BasePage
	{
		protected string action = string.Empty;

		protected string username = string.Empty;

		protected override void ShowPage()
		{
			this.action = DTRequest.GetQueryString("action");
			this.username = DTRequest.GetQueryString("username");
			this.username = Utils.DropHTML(this.username);
			if (this.action == "" && this.uconfig.regstatus == 0)
			{
				HttpContext.Current.Response.Redirect(base.linkurl("register", new object[]
				{
					"?action=close"
				}));
			}
			else if (this.action == "checkmail")
			{
				string code = DTRequest.GetQueryString("code");
				DTcms.BLL.user_code bll = new DTcms.BLL.user_code();
				DTcms.Model.user_code model = bll.GetModel(code);
				if (model == null)
				{
					HttpContext.Current.Response.Redirect(base.linkurl("register", new object[]
					{
						"?action=checkerror"
					}));
				}
				else
				{
					model.status = 1;
					bll.Update(model);
					new DTcms.BLL.users().UpdateField(model.user_id, "status=0");
				}
			}
		}
	}
}

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

AI 解读 AI

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

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