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

📄 xzb.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="",submit="";
//取传递变量
tempSTR=request.getParameter("db");
if(tempSTR!=null)
  db=Integer.parseInt(tempSTR);
tempSTR=request.getParameter("action");
if(tempSTR!=null)
  action=tempSTR;
else action="view";
//用户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="";
%>
<%@ include file="include/boardprepare.jsp"%>
<%@ include file="include/style.jsp"%>
<%
boolean postok=false;
int i=0,isadmin=0,xzbid=0,number=0;
String xzbbgcolor=postcolortwo,xzbauthor="",xzbtitle="",xzbcontent="",xzbpostat="",postusername="",postpassword="",errorinfo="",xzbopen="";
if(!action.equals("")) {
  tempSTR=request.getParameter("submit");
  if(tempSTR!=null)
    submit=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("xzbid");
  if(tempSTR!=null && !tempSTR.equals(""))
    xzbid=Integer.parseInt(tempSTR);
}
rs=connect.executeQuery("select xzbopen from style where adminselected='1'");
if(rs.next())
  xzbopen=rs.getString(1);
%>
<!--//html from here-->
<%@ include file="include/head.jsp"%>
<body <%=lbbody%>>
<%
if(action.equals("new")) {
%>
<%@ include file="include/userheader.jsp"%>
<p>
<%
String vicedbname="";
rs=connect.executeQuery("select dbname from db where id="+db);
if(rs.next())
  vicedbname=rs.getString(1);
%>
<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/closedfold.gif" border=0> <a href="db.jsp?db=<%=db%>"><%=vicedbname%></a><br>
     &nbsp;&nbsp;&nbsp;<img src="images/bar.gif" border=0><img src="images/openfold.gif" border=0> 张贴小字报
     </font>
  </td>
 </tr>
</table>
<br>
<%
}
else out.println("<br>&nbsp;<br>");
%>
<%
if(cookiemode.equals("4"))
  isadmin=1;
else if(!cookiemode.equals("1") && !cookiemode.equals("0") && db!=0)
  isadmin=connect.getRowNum("admin where db="+db+" and authorid="+cookieid);
connect.executeUpdate("delete from xzb where (UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(postat))>86400");
if(xzbopen.equals("0")) {
%>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> bgcolor=<%=tablebordercolor%> align=center>
 <tr>
  <td>
   <table cellpadding=6 cellspacing=1 border=0 width=100%>
    <tr>
     <td bgcolor=<%=miscbacktwo%> align=center><font color=<%=fontcolormisc%>><b>小字报功能已经被管理员关闭</b></font></td>
    </tr>
    <tr>
     <td bgcolor=<%=miscbackone%>>
      <font color=<%=fontcolormisc%>>
       <b>关于小字报出错的可能原因:</b>
       <ul>
        <li><b>小字报已经被管理员关闭,如要开通,请联系管理员。</b>
       </ul>
      </font>
     </td>
    </tr>
   </table>
  </td>
 </tr>
</table>
<%
}
else if(action.equals("view")) {
%>
<%@ include file="include/xzbview.jsp"%>
<%
}
else if(action.equals("new")) {
%>
<%@ include file="include/xzbnew.jsp"%>
<%
}
else if(action.equals("delete")) {
%>
<%@ include file="include/xzbdelete.jsp"%>
<%
}
%>
<%
if(action.equals("new")) {
%>
<br>
<%@ include file="include/foot.jsp"%>
<%
}
%>
<%
rs.close();
connect.close();
%>
</body>
</html>

⌨️ 快捷键说明

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