?? delself.asp
字號(hào):
<%
'##################################################################
'# 6KSU1.1[痞子.NET]版
'# 主頁(yè) http://d9pd.51.net
'# 論壇 http://jwclub.126.com http://jwclub.9126.com[戒網(wǎng)俱樂(lè)部]
'# 我的QQ:283067 Email:btajn9@21cn.com
'# 如有技術(shù)問(wèn)題,請(qǐng)到6kbbs官方論壇一起討論 http://6k.2ya.com
'# 關(guān)于此hack版的問(wèn)題可以到 http://jwclub.9126.com 中討論
'##################################################################
%>
<!--#include file="up.asp"-->
<br>
<%action=request.querystring("action")
htt=Request.ServerVariables("HTTP_REFERER")
bd=replace(request.querystring("bd"),"'","''")
id=replace(request.querystring("id"),"'","''")
topicid=replace(request.querystring("topicid"),"'","''")
re=request.querystring("re")
t1="<div align=center><center> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='98%' height='24'><tr><td width='180' background='pic/"&sp&"3.gif'> <img border='0' src='pic/fl.gif'> <font color='#FFFFFF'><b>"
t2="</b></font></td></tr></table></center></div><div align=center><center><table border=1 cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor="&c1&" width=98% >"
d1="<tr><td width=100% ><P style='MARGIN: 15px'>"
d2="</td></tr></table></center></div>"
ssql="select name,bd from bbs"&totable&" where id="&id&""
if re="yes" then ssql="select name,bd from bbs"&totable&" where bbsid="&id&""
set who=myconn.execute(ssql)
bd=who("bd")
upwho=who("name")
set who=nothing
function bdlist(sename)
response.write"<select size=1 style='font-size: 9pt' name="&sename&" >"
set bf=myconn.execute("select*from bdinfo where key<>'0'")
do while not bf.eof
response.write"<option value="&bf("bn")&">"&bf("bdname")&"</option>"
bf.movenext
loop
bf.close
set bf=nothing
response.write"</select>"
end function
ssql2="select name,bd from bbs"&totable&" where name='"&lgname&"' and id="&id&""
if re="yes" then ssql2="select name,bd from bbs"&totable&" where name='"&lgname&"' and bbsid="&id&""
set del1=myconn.execute(ssql2)
%>
<%if not del1.eof or not del1.bof then
dj=del1("bd")
%>
<%
select case action
case"delself"
sql1="update bdinfo set bbsnum=bbsnum-1 where bn="&bd&""
if re="yes" then
sql2="update bbsinfo set bbsnum=bbsnum-1"
sql3="update bbs"&totable&" set type=5 where bbsid="&id&""
sql4="update bbstl set bnum=bnum-1 where id="&topicid&""
myconn.execute("update bbs"&totable&" set bnum=bnum-1 where id="&topicid&"")
tex="·刪除帖子---成功??!<br>·<a href="&htt&">回到帖子</a><meta http-equiv=refresh content='2;url="&htt&"'>"
elseif re="no" then
sql2="update [bbsinfo] set bbsnum=bbsnum-1,topicnum=topicnum-1"
sql3="update bbstl set type=5 where id="&id&""
sql4="update bbs"&totable&" set type=5 where id="&id&" or bid="&id&""
tex="·刪除帖子---成功!!"
end if%>
<%
myconn.execute(sql1)
myconn.execute(sql2)
myconn.execute(sql3)
myconn.execute(sql4)
set sne1=myconn.execute("select top 1 id,name,zhuti,body,bid,face from bbs"&totable&" where bd="&bd&" and type<>5 order by bbsid desc")
if sne1.eof then
lastbbs=""
else
if sne1("bid")=0 then
nei=left(sne1("zhuti"),20)
idid=sne1("id")
else
nei=left(sne1("body"),20)
idid=sne1("bid")
end if
lastbbs=""&sne1("name")&"|?|"&nei&"|?|"&now&"|?|"&idid&"|?|"&sne1("face")&"|?|"&totable&""
end if
myconn.execute("update [bdinfo] set lastbbs='"&lastbbs&"' where bn="&bd&" and key<>'0'")
set sne=nothing
%>
<%=t1%>操 作 成 功 !<%=t2&d1%><p style='margin: 15;line-height: 150%'><%=tex%></p><%=d2%>
<%
set del1=nothing
end select
%>
<%else%>
<%=t1%>操 作 失 敗 !<%=t2&d1%><p style='margin: 15'>·你不是該帖子的作者,不能操作該帖??!<%=d2%>
<meta http-equiv="refresh" content="2;url=javascript:history.go(-1)">
<%end if%><br><br><!--#include file="down.asp"-->
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -