📄 register.jsp
字号:
<%
/*##################################################################**
**# LyBBS ver 1.2.b2 (1.2.beta-2版) / 凌云论坛 ver 1.2.b2 #**
**# #**
**# 版权所有: 凌云工作室 (原流星电脑工作室) #**
**# #**
**# 制作人 : 星语凌 『teddy (Yongshan Ye)』 #**
**# #**
**# 主页地址: http://www.unix-now.com/lybbs 凌云论坛主页 #**
**# http://www.ierp.info/lybbs 凌云论坛镜像站 #**
**# http://horseye@sina.com/ 凌云论坛支持信箱 #**
**# #**
**##################################################################*/
%>
<%@ include file="include/config.jsp"%>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="include/connect.jsp"%>
<%
String tempSTR="";
//boardprepare变量定义
int db=0,styleid=0,number=0,id=0,membergone=0,authornumber=0,postsnumber=0,replynumber=0,announcementid=0;
int now_year=0,now_month=0,now_day=0,now_hour=0,now_minute=0,now_second=0;
String now_date="",now_time="";
String dispview="",boardtitle="",boardname="",title="",version="",copyright="",support="",programmer="",programemail="",homename="",homeurl="",togb="1",status="",maintainreason="",announcement="1",boardurl="",showfastlogin="",dispborn="",styleQuery="",onlineview="";
String cookiename="",cookieid="",cookiemode="";
//本页变量定义
int timedifference=0;
String submit="";
String b_year="0000",b_month="00",b_day="00";
String username="",password="",password2="",email="",lostquestion="",lostanswer="",recommendname="",showemail="1",newmembertitle="",newsocialpart="",sex="保密",education="保密",marry="保密",work="保密",birthday="0000-00-00",usersx="保密",astro="保密",homepage="",qq="",icq="",country="",province="",city="",introdution="",signature="",useravatar="",userimageurl="";
int maxinslegth=0,maxinsline=0,maxsignlegth=0,maxsignline=0,defaultheight=0,defaultwidth=0,maxposticonheight=0,maxposticonwidth=0,userimagewidth=0,userimageheight=0;
String registeravatars="",editjhmpself="",editusertitleself="",sendwelcomemessage="",arrowavaupload="";
String query="";
%>
<%@ include file="include/boardprepare.jsp"%>
<%@ include file="include/style.jsp"%>
<%@ include file="include/icon.jsp"%>
<%
tempSTR=request.getParameter("submit");
if(tempSTR!=null)
submit=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
if(submit.equals("注 册")) {
tempSTR=request.getParameter("timedifference");
if(tempSTR!=null && !tempSTR.equals(""))
timedifference=Integer.parseInt(tempSTR);
tempSTR=request.getParameter("username");
if(tempSTR!=null)
username=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
if(!username.equals("")) {
username=connect.Replace(username,"\'","");
username=connect.Replace(username,"\"","");
}
tempSTR=request.getParameter("password");
if(tempSTR!=null)
password=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("password2");
if(tempSTR!=null)
password2=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("email");
if(tempSTR!=null)
email=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("lostquestion");
if(tempSTR!=null) {
lostquestion=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
lostquestion=connect.Replace(lostquestion,"\'","\\\'");
lostquestion=connect.Replace(lostquestion,"\"","\\\"");
}
tempSTR=request.getParameter("lostanswer");
if(tempSTR!=null) {
lostanswer=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
lostanswer=connect.Replace(lostanswer,"\'","\\\'");
lostanswer=connect.Replace(lostanswer,"\"","\\\"");
}
tempSTR=request.getParameter("recommendname");
if(tempSTR!=null)
recommendname=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("showemail");
if(tempSTR!=null && !tempSTR.equals(""))
showemail=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("newmembertitle");
if(tempSTR!=null && !tempSTR.equals(""))
newmembertitle=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
if(!newmembertitle.equals("")) {
newmembertitle=connect.Replace(newmembertitle,"\'","\\\'");
newmembertitle=connect.Replace(newmembertitle,"\"","\\\"");
}
tempSTR=request.getParameter("newsocialpart");
if(tempSTR!=null && !tempSTR.equals(""))
newsocialpart=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
if(!newmembertitle.equals("")) {
newsocialpart=connect.Replace(newsocialpart,"\'","\\\'");
newsocialpart=connect.Replace(newsocialpart,"\"","\\\"");
}
tempSTR=request.getParameter("sex");
if(tempSTR!=null)
sex=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("education");
if(tempSTR!=null)
education=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("marry");
if(tempSTR!=null)
marry=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("work");
if(tempSTR!=null)
work=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("b_year");
if(tempSTR!=null && !tempSTR.equals(""))
b_year=tempSTR;
tempSTR=request.getParameter("b_month");
if(tempSTR!=null && !tempSTR.equals(""))
b_month=tempSTR;
tempSTR=request.getParameter("b_day");
if(tempSTR!=null && !tempSTR.equals(""))
b_day=tempSTR;
birthday=b_year+"-"+b_month+"-"+b_day;
tempSTR=request.getParameter("usersx");
if(tempSTR!=null && !tempSTR.equals("blank"))
usersx=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("astro");
if(tempSTR!=null && !tempSTR.equals("blank"))
astro=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("homepage");
if(tempSTR!=null)
homepage=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("qq");
if(tempSTR!=null)
qq=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("icq");
if(tempSTR!=null)
icq=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("country");
if(tempSTR!=null)
country=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("province");
if(tempSTR!=null)
province=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("city");
if(tempSTR!=null)
city=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("introdution");
if(tempSTR!=null)
introdution=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
if(!introdution.equals(""))
introdution=connect.toHtml(introdution);//转化html字符
tempSTR=request.getParameter("signature");
if(tempSTR!=null)
signature=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
if(!signature.equals("")) {
signature=connect.toHtml(signature);//转化html字符
//是否支持凌云标签
String firstcode="",replacefirstcode="",lastcode="",replacelastcode="";
rs=connect.executeQuery("select firstcode,replacefirstcode,lastcode,replacelastcode from lycode order by id");
while(rs.next()) {
firstcode=rs.getString(1);
replacefirstcode=rs.getString(2);
lastcode=rs.getString(3);
replacelastcode=rs.getString(4);
signature=connect.Replace(signature,firstcode,replacefirstcode);
signature=connect.Replace(signature,lastcode,replacelastcode);
}
signature=connect.toLyCode(signature);
}
tempSTR=request.getParameter("useravatar");
if(tempSTR!=null && !tempSTR.equals("noavatar"))
useravatar=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
tempSTR=request.getParameter("imageurl");
if(tempSTR!=null && !tempSTR.equals("")) {
userimageurl=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
userimageurl=connect.Replace(userimageurl,"\'","");
userimageurl=connect.Replace(userimageurl,"\"","");
}
tempSTR=request.getParameter("imagewidth");
if(tempSTR!=null && !tempSTR.equals(""))
userimagewidth=Integer.parseInt(tempSTR);
tempSTR=request.getParameter("imageheight");
if(tempSTR!=null && !tempSTR.equals(""))
userimageheight=Integer.parseInt(tempSTR);
}
rs=connect.executeQuery("select avatars from config where id=1");
if(rs.next())
registeravatars=rs.getString(1);
rs=connect.executeQuery("select editjhmpself,editusertitleself,maxinslegth,maxinsline,maxsignlegth,maxsignline,sendwelcomemessage,defaultheight,defaultwidth,maxposticonheight,maxposticonwidth,arrowavaupload from style where adminselected='1'");
if(rs.next()) {
editjhmpself=rs.getString(1);
editusertitleself=rs.getString(2);
maxinslegth=rs.getInt(3);
maxinsline=rs.getInt(4);
maxsignlegth=rs.getInt(5);
maxsignline=rs.getInt(6);
sendwelcomemessage=rs.getString(7);
defaultheight=rs.getInt(8);
defaultwidth=rs.getInt(9);
maxposticonheight=rs.getInt(10);
maxposticonwidth=rs.getInt(11);
arrowavaupload=rs.getString(12);
}
%>
<!--//html from here-->
<%@ include file="include/head.jsp"%>
<script language="JavaScript">
function check() {
if (document.creator.username.value=="") {
alert("请输入您的用户名!\n注意:加*号的栏目必须填写!");
document.creator.username.focus();
return (false);
}
else if(document.creator.password.value="") {
alert("请输入您的密码!\n注意:加*号的栏目必须填写!");
document.creator.password.focus();
return (false);
}
else if(document.creator.email.value="") {
alert("请输入您的电子邮件!\n注意:加*号的栏目必须填写!");
document.creator.email.focus();
return (false);
}
else if(document.creator.password.value!=document.creator.password2.value) {
alert("两次输入的密码不一样!请重新输入!");
document.creator.password2.focus();
return (false);
}
return (true);
}
</script>
<body <%=lbbody%>>
<%@ include file="include/userheader.jsp"%>
<p>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> align=center>
<tr>
<td width=30% rowspan=2 valign=top>
<%@ include file="include/viceadbanner.jsp"%>
</td>
<td valign=top align=left>
<font face="宋体" color=<%=fontcolormisc%>>
<img src="images/closedfold.gif" border=0> <a href="index.jsp"><%=boardname%></a><br>
<img src="images/bar.gif" border=0><img src="images/openfold.gif" border=0> 用户注册
</font>
</td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> align=center>
<tr>
<td> </td>
<td align=right>
<a href="javascript:openScript('help.jsp?helpon=用户注册',500,400)"><img src="images/<%=help_blogo%>" border=0></a>
</td>
</tr>
</table>
<%
if(submit.equals("")) {
%>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> bgcolor=<%=tablebordercolor%> align=center>
<tr>
<td>
<table cellpadding=6 cellspacing=1 border=0 width=100%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -