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

📄 delpicok.jsp

📁 LyNews凌云新闻系统
💻 JSP
字号:
<%
/*##################################################################**
**#  项目名称:LyNews『凌云新闻』                                  #**
**#                                                                #**
**#  程序开发: teddy 『星语凌』                                    #**
**#                                                                #**
**#  版权所有: 凌云创作室 (原流星电脑工作室)                       #**
**#                                                                #**
**#  主页地址: http://www.lybbs.com                                #**
**#            http://www.lybbs.net                                #**
**#  电邮地件: horseye@sina.com                                    #**
**#                                                                #**
**##################################################################*/
%>
<%@include file="config.jsp"%>
<%@include file="getsession.jsp"%>
<%@page contentType="text/html;charset=GBK"%>
<%
int picID = ParameterUtils.getInt(request,"picID");
String picName = ParameterUtils.getString(request,"picName");

if(picID==0)
  throw new Exception("您正在尝试进行非法的操作。");


String pathName = application.getRealPath("./upload/"+picName) ;

boolean del = DelHtml.del(pathName);
/*
if(!del)
  throw new Exception("文件没有被删除!可能的原因:<li>&nbsp;&nbsp;&nbsp;&nbsp;此文件不存在;<li>&nbsp;&nbsp;&nbsp;&nbsp;目录不具备删除权限。<br><br>请联系系统管理员。");
*/
UploadFactory uploadFactory = Factory.getInstance().getUploadFactory();
uploadFactory.delUpload(picID);
%>
<html>
<title>图片删除成功</title>
<link rel="stylesheet" href="../inc/admin.css" type="text/css">
<BODY leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#DDEEFF">
<br><br>
<center>图片删除成功。</center><br><br>
<center><a href="delPic.jsp">继续删除图片。</a></center>
</body>
</html>

⌨️ 快捷键说明

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