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

📄 displayattachment.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:web key="forumName"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
</head>
<body topmargin=0 leftmargin=0>
<%
String path=ParameterUtils.getString(request,"path");
if(path.indexOf("../")==-1 && path.indexOf("..\\")==-1) {
  int dotIndex=path.lastIndexOf(".");
  String fileExt=dotIndex>0?path.substring(dotIndex+1):path;
  if(fileExt.equals("swf")) {
    out.println("<br><center><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=800 height=600><PARAM NAME=movie VALUE=\""+path+"\"><PARAM NAME=quality VALUE=high><embed src=\""+path+"\" quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=800 height=600>"+path+"</embed></OBJECT></center>");
    //out.println(net.lybbs.util.FilterUtils.getInstance().getFilterString("[swf]"+path+"[/swf]","FlashFilter"));
  }
  else if(net.lybbs.util.ImgUtils.isImage(fileExt)) {
%>
    <img src="<%=path%>" border=0>
<%
  }
}
%>
</body>
</html:html>

⌨️ 快捷键说明

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