📄 checkbbsuser.jsp
字号:
<%@ page pageEncoding="GBK" %>
<%
String username=null;
String pwd=null;
String payuser=null;
String bz=null;
String bbsadmin=null;
String userinfo,clubuser_password;
Cookie temp=null;
Cookie[] cookies=request.getCookies();
int cookidlen=cookies.length;
for(int i=0;i<cookidlen;i++)
{
temp=cookies[i];
if(temp.getName().equals("clubusername")) {
username=temp.getValue();
}
if(temp.getName().equals("pass")) {
pwd=temp.getValue();
}
if(temp.getName().equals("payuser")) {
payuser=temp.getValue();
}
if(temp.getName().equals("bz")) {
bz=temp.getValue();
}
if(temp.getName().equals("bbsadmin")) {
bbsadmin=temp.getValue();
}
}
if(username==""||username==null){
out.print("<script language='javascript'>");
out.print("alert('你还没有登录论坛,请先登录!');");
out.print("window.location.href='../default.jsp?n=login';</script>");
out.close();
}
else{
String str1="select clubuser_name,clubuser_password from clubuser where clubuser_name='"+username+"'";
Statement stmtx=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rsx=stmtx.executeQuery(str1);
rsx.next();
clubuser_password=rsx.getString("clubuser_password");
if(clubuser_password.equals(pwd)){
}
else{
out.print("<script language='javascript'>");
out.print("alert('你的密码不正确,请输入正确的密码!');");
out.print("history.go(-1);");
out.print("</script>");
out.close();
}
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -