⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loginout.jsp

📁 jsp bbs源代码
💻 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"%>
<%
int db=0;
String tempSTR="",action="";
//取传递变量
tempSTR=request.getParameter("db");
if(tempSTR!=null)
  db=Integer.parseInt(tempSTR);
tempSTR=request.getParameter("action");
if(tempSTR!=null)
  action=tempSTR;
//用户cookie变量声明
int id=0,styleid=0,membergone=0;
String cookieid="",cookiename="",username="",usermode="",cookiemode="";
//日期定义
int now_year=0,now_month=0,now_day=0,now_hour=0,now_minute=0,now_second=0;
String now_date="",now_time="";
//定义boardprepare.jsp中的变量
String onlineview="",dispview="",boardtitle="",boardname="",title="",version="",copyright="",support="",programmer="",programemail="",homename="",homeurl="",togb="1",status="",maintainreason="",announcement="1",boardurl="",showfastlogin="",dispborn="",styleQuery="";
//定义风格变量
int quickstyleid=0;
String quickstyletitle="";
//定义用户状态变量
int loginmoney=0,loginexperience=0,logincharm=0,usergrade=0,nposts=0;
String userstatus="";
String showskin="";
String advpost="",defaultadvpost="";
%>
<%@ include file="include/boardprepare.jsp"%>
<%@ include file="include/style.jsp"%>
<%
rs=connect.executeQuery("select advpost from style where adminselected='1'");
if(rs.next())
  defaultadvpost=rs.getString(1);
%>
<!--//html from here-->
<%@ include file="include/head.jsp"%>
<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>
<p>
<%
//取变量,并存储!
int threadages=0,selectstyle=0,freshtime=0;
username="";
onlineview="1";
String password="",hidden="0",viewmode="",msgpopup="1",myinfo="0",mess="";
tempSTR=request.getParameter("username");
if(tempSTR!=null)
  username=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
if(!username.equals("")) {
  tempSTR=request.getParameter("threadages");
  if(tempSTR!=null)
   threadages =Integer.parseInt(tempSTR);
  tempSTR=request.getParameter("selectstyle");
  if(tempSTR!=null)
    selectstyle=Integer.parseInt(tempSTR);
  tempSTR=request.getParameter("freshtime");
  if(tempSTR!=null && !tempSTR.equals(""))
    freshtime=Integer.parseInt(tempSTR)*60;
  tempSTR=request.getParameter("password");
  if(tempSTR!=null)
    password=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("onlineview");
  if(tempSTR!=null)
    onlineview=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("hidden");
  if(tempSTR!=null)
    hidden=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("viewmode");
  if(tempSTR!=null)
    viewmode=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("msgpopup");
  if(tempSTR!=null)
    msgpopup=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("myinfo");
  if(tempSTR!=null && !tempSTR.equals(""))
    myinfo=tempSTR;
  if(myinfo.equals("1")) {
    tempSTR=request.getParameter("mess");
    if(tempSTR!=null && !tempSTR.equals("")) {
      mess=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
      mess=connect.toHtml(mess);
    }
  }
  tempSTR=request.getParameter("advpost");
  if(tempSTR!=null && !tempSTR.equals(""))
    advpost=tempSTR;
}
if(!username.equals("")) {
%>
<%@ include file="include/userlogin.jsp"%>
<%
}
else if(action.equals("logout")) {
%>
<%@ include file="include/userlogout.jsp"%>
<%
}
else {
%>
<%@ include file="include/usertable.jsp"%>
<%
}
%>
<%@ include file="include/foot.jsp"%>
<%
rs.close();
connect.close();
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -