📄 register.asp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="Includes/site-dataconn.asp" -->
<!--#include file="Includes/func-common.asp" -->
<!--#include file="Includes/func-aspcode.asp" -->
<!--#include file="Includes/site-config.asp" -->
<!--#include file="Includes/inc-common.asp" -->
<html>
<head>
<title>// <%=Site_Name%> //</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK REL=stylesheet TYPE="text/css" HREF="Includes/site-style.css">
</head>
<body>
<!--#include file="Includes/inc-header.asp" -->
<%
'navigation trail
response.write("<table border='0' cellspacing='0' cellpadding='2' align='center' class='plain'><tr><td valign='top'><a href='default.asp'>"& Site_Name &"</a> >> Register<br>"& Site_Description &"</td></tr></table>")
Action = request.querystring("Action")
if Action <> "Register" and Action <> "Details" and Action <> "Complete" and Action <> "Activate" and Action <> "Disabled" then
Action = "Register"
end if
if session("UserID") <> "" then
Action = "Member"
end if
if Site_Account_Create = 0 then
Action = "Disabled"
end if
if Action = "Register" then
%>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
<tr valign="middle" class="title">
<td align="center"><%=Site_Name%> //<b> 服务条款和声明</b></td>
</tr>
<tr class="body">
<td align="center">
<p align="left"><b>注册前请先阅读论坛协议</b><br>
欢迎您加入本站点参加交流和讨论,本站点为公共论坛,为维护网上公共秩序和社会稳定,请您自觉遵守以下条款:<br>
<br>
一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播下列信息:
<p align="left"> <br>
(一)煽动抗拒、破坏宪法和法律、行政法规实施的;<p align="left"><br>
(二)煽动颠覆国家政权,推翻社会主义制度的;<p align="left"><br>
(三)煽动分裂国家、破坏国家统一的;<p align="left"><br>
(四)煽动民族仇恨、民族歧视,破坏民族团结的;<p align="left"><br>
(五)捏造或者歪曲事实,散布谣言,扰乱社会秩序的;<p align="left"><br>
(六)宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的;<p align="left"><br>
(七)公然侮辱他人或者捏造事实诽谤他人的,或者进行其他恶意攻击的;<p align="left"><br>
(八)损害国家机关信誉的;<p align="left"><br>
(九)其他违反宪法和法律行政法规的;<p align="left"><br>
(十)进行商业广告行为的。<p align="left"><br>
二、互相尊重,对自己的言论和行为负责。</td>
</tr>
<form action="register.asp?Action=Details" method="post">
<tr valign="middle" class="body">
<td align="center">
<input name="submit" type="submit" id="submit" value="我同意" style="width: 80px;margin-left: 5px;">
</td>
</tr>
</form>
</table>
<%
end if
if Action = "Details" then
strReferer = request.servervariables("HTTP_REFERER")
if request.form("submit") = "Disagree" or request.form("submit") = "" then
response.redirect(Site_Forum_URL & "default.asp")
else
%>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
<form action="register.asp?Action=Complete" method="post" onSubmit="this.button.disabled = true;">
<tr valign="middle" class="title">
<td align="center" colspan="2"><%=Site_Name%> //<b>新用户注册</b></td>
</tr>
<tr valign="middle" class="sub-title">
<td colspan="2">
<p align="center">*必填资料:</td>
</tr>
<tr valign="top" class="body">
<td width="350">*用户名:</td>
<td>
<input name="Username" type="text" style="width: 200px; border: 1px solid black;" maxlength="60" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>*密码:</td>
<td>
<input name="Password" type="password" style="width: 200px; border: 1px solid black;" maxlength="60" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>*重复密码:</td>
<td>
<input name="Password2" type="password" style="width: 200px; border: 1px solid black;" maxlength="60" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>*Email地址:</td>
<td>
<input name="Email" type="text" style="width: 200px; border: 1px solid black;" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>*重复Email地址:</td>
<td>
<input name="Email2" type="text" style="width: 200px; border: 1px solid black;" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>*生日:</td>
<td>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr align="center" valign="top">
<td width="33%" align="left">Day</td>
<td width="33%">Month</td>
<td width="33%" align="right">Year</td>
</tr>
<tr align="center" valign="top">
<td width="33%" align="left">
<select name="day" style="border: 1px solid black;">
<option value="00" selected>N/A</option>
<option value="01" >1</option>
<option value="02" >2</option>
<option value="03" >3</option>
<option value="04" >4</option>
<option value="05" >5</option>
<option value="06" >6</option>
<option value="07" >7</option>
<option value="08" >8</option>
<option value="09" >9</option>
<option value="10" >10</option>
<option value="11" >11</option>
<option value="12" >12</option>
<option value="13" >13</option>
<option value="14" >14</option>
<option value="15" >15</option>
<option value="16" >16</option>
<option value="17" >17</option>
<option value="18" >18</option>
<option value="19" >19</option>
<option value="20" >20</option>
<option value="21" >21</option>
<option value="22" >22</option>
<option value="23" >23</option>
<option value="24" >24</option>
<option value="25" >25</option>
<option value="26" >26</option>
<option value="27" >27</option>
<option value="28" >28</option>
<option value="29" >29</option>
<option value="30" >30</option>
<option value="31" >31</option>
</select>
</td>
<td width="33%">
<select name="month" style="border: 1px solid black;">
<option value="00" selected>N/A</option>
<option value="01" >January</option>
<option value="02" >February</option>
<option value="03" >March</option>
<option value="04" >April</option>
<option value="05" >May</option>
<option value="06" >June</option>
<option value="07" >July</option>
<option value="08" >August</option>
<option value="09" >September</option>
<option value="10" >October</option>
<option value="11" >November</option>
<option value="12" >December</option>
</select>
</td>
<td width="33%" align="right">
<input name="year" type="text" value="" size="4" maxlength="4" style="border: 1px solid black;">
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
<tr valign="middle" class="sub-title">
<td colspan="2">
<p align="center">选填资料: </td>
</tr>
<tr valign="top" class="body">
<td width="350">家庭地址:</td>
<td>
<input name="Location" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>个人主页:</td>
<td>
<input name="Homepage" type="text" style="width: 200px; border: 1px solid black;" maxlength="200" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>OICQ号码:</td>
<td>
<input name="ICQ" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>MSN Handle:</td>
<td>
<input name="MSN" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>个人梦想:</td>
<td>
<input name="AIM" type="text" style="width: 200px; border: 1px solid black;" maxlength="50" size="20"></td>
</tr>
<tr valign="top" class="body">
<td>个性签名:</td>
<td><textarea name="Biography" cols="" rows="5" style="width: 200px; border: 1px solid black;"></textarea></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="main">
<tr valign="middle" class="sub-title">
<td colspan="2">
<p align="center">帐号保密: (此内容可不甜)</td>
</tr>
<tr valign="top" class="body">
<td width="350">Signature:</td>
<td><textarea name="Signature" cols="" rows="5" style="width: 200px; border: 1px solid black;"></textarea></td>
</tr>
<tr valign="top" class="body">
<td>Invisible Mode:</td>
<td><input type="checkbox" name="Invisible" value="1"></td>
</tr>
<tr valign="top" class="body">
<td>Show Email Address in Profile:</td>
<td><input type="checkbox" name="ShowEmail" value="1"></td>
</tr>
<tr valign="top" class="body">
<td>Allow Administrators To E-Mail You:</td>
<td><input type="checkbox" name="AdminEmail" value="1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="main">
<tr class="body">
<td align="center" valign="middle">
<input name="reset" type="reset" id="reset" value="重写" style="width: 80px; margin-right: 5px;"><input type="submit" id="submit" value="注册" name="button" style="width: 80px;margin-left: 5px;"></td>
</tr>
</form>
</table>
<%
end if
end if
if Action = "Complete" then
if instr(1, request.servervariables("HTTP_REFERER"), Site_Forum_URL & "/register.asp", 1) = 0 then
strMessage = "You have reached this page in error. Click <a href='default.asp'>here</a> if you are not redirected within five seconds."
strRedirectURL = "Default.asp"
end if
'Generate variables
randomize
strActivationCode = (Int((999999-100001)*Rnd+100000))
if request.servervariables("HTTP_X_FORWARDED_FOR") = "" then
strIPAddress = request.servervariables("REMOTE_ADDR")
else
strIPAddress = request.servervariables("HTTP_X_FORWARDED_FOR")
end If
if request.form("Day") <> "00" and request.form("Month") <> "00" and request.form("Year") <> "" then
strDOB = request.form("Day") & request.form("Month")
if len(request.form("Year")) <= 2 then
if int(request.form("Year")) > 40 then
strDOB = strDOB & "19" & request.form("Year")
else
strDOB = strDOB & "20" & request.form("Year")
end if
else
strDOB = strDOB & request.form("Year")
end if
else
strDOB = ""
end if
strUsername = clean_text(request.form("Username"), 0)
strEmail = request.form("Email")
strPassword = request.form("Password")
strLocation = sql_encode(request.form("Location"))
strHomepage = sql_encode(request.form("Homepage"))
strICQ = sql_encode(request.form("ICQ"))
strMSN = sql_encode(request.form("MSN"))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -