亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? admin_update.asp

?? asp構(gòu)建網(wǎng)站bbs.采用B/S架構(gòu)
?? ASP
?? 第 1 頁 / 共 2 頁
字號:
<!--#include file="conn.asp"-->
<!-- #include file="inc/const.asp" -->
<title><%=Forum_info(0)%>--管理頁面</title>
<link rel="stylesheet" href="forum_admin.css" type="text/css">
<meta NAME=GENERATOR Content="Microsoft FrontPage 3.0" CHARSET=GB2312>
<BODY leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#DDEEFF">
<%
Server.ScriptTimeout=9999999
dim admin_flag
admin_flag="14,28"
if not master or instr(session("flag"),"14")=0 or instr(session("flag"),"28")=0 then
	Errmsg=Errmsg+"<br>"+"<li>本頁面為管理員專用,請<a href=admin_index.asp target=_top>登陸</a>后進入。<br><li>您沒有管理本頁面的權(quán)限。"
	call dvbbs_error()
else
	dim tmprs
	dim body
	call main()
	conn.close
	set conn=nothing
end if

sub main()
%>
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="tableBorder" align=center>
<tr>
<th align=left colspan=2 height=23>論壇數(shù)據(jù)處理</th>
</tr>
<tr>
<td width="20%" class="forumrow">注意事項</td>
<td width="80%" class="forumrow">下面有的操作可能將非常消耗服務器資源,而且更新時間很長,請仔細確認每一步操作后執(zhí)行。</td>
</tr>
<%
	if request("action")="updat" then
		if request("submit")="更新論壇數(shù)據(jù)" then
		call updateboard()
		elseif request("submit")="修 復" then
		call fixtopic()
		else
		call updateall()
		end if
		if founderr then
		response.write errmsg
		else
		response.write body
		end if
	elseif request("action")="delboard" then
		if isnumeric(request("boardid")) then
		conn.execute("update topic set locktopic=2 where boardid="&request("boardid"))
		for i=0 to ubound(AllPostTable)
		conn.execute("update "&AllPostTable(i)&" set locktopic=2 where boardid="&request("boardid"))
		next
		end if
		response.write "<tr><td align=left colspan=2 height=23 class=forumrow>清空論壇數(shù)據(jù)成功,請返回更新帖子數(shù)據(jù)!</td></tr>"
	elseif request("action")="updateuser" then
%>
<FORM METHOD=POST ACTION="?action=updateuserinfo">
<tr> 
<th align=left colspan=2 height=23>更新用戶數(shù)據(jù)</th>
</tr>
<tr>
<td width="20%" class="forumrow">重新計算用戶發(fā)貼</td>
<td width="80%" class="forumrow">執(zhí)行本操作將按照<font color=red>當前論壇數(shù)據(jù)庫</font>發(fā)貼重新計算所有用戶發(fā)表帖子數(shù)量。</td>
</tr>
<tr>
<td width="20%" class="forumrow">開始用戶ID</td>
<td width="80%" class="forumrow"><input type=text name="beginID" value="1" size=10>&nbsp;用戶ID,可以填寫您想從哪一個ID號開始進行修復</td>
</tr>
<tr>
<td width="20%" class="forumrow">結(jié)束用戶ID</td>
<td width="80%" class="forumrow"><input type=text name="endID" value="100" size=10>&nbsp;將更新開始到結(jié)束ID之間的用戶數(shù)據(jù),之間的數(shù)值最好不要選擇過大</td>
</tr>
<tr>
<td width="20%" class="forumrow"></td>
<td width="80%" class="forumrow"><input type="submit" name="Submit" value="重新計算用戶發(fā)貼"></td>
</tr>
</form>

<FORM METHOD=POST ACTION="?action=updateuserinfo">
<tr>
<td width="20%" class="forumrow" valign=top>更新用戶等級</td>
<td width="80%" class="forumrow">執(zhí)行本操作將按照<font color=red>當前論壇數(shù)據(jù)庫</font>用戶發(fā)貼數(shù)量和論壇的等級設置重新計算用戶等級,本操作不影響等級為貴賓、版主、總版主的數(shù)據(jù)。</td>
</tr>
<tr>
<td width="20%" class="forumrow">開始用戶ID</td>
<td width="80%" class="forumrow"><input type=text name="beginID" value="1" size=10>&nbsp;用戶ID,可以填寫您想從哪一個ID號開始進行修復</td>
</tr>
<tr>
<td width="20%" class="forumrow">結(jié)束用戶ID</td>
<td width="80%" class="forumrow"><input type=text name="endID" value="100" size=10>&nbsp;將更新開始到結(jié)束ID之間的用戶數(shù)據(jù),之間的數(shù)值最好不要選擇過大</td>
</tr>
<tr>
<td width="20%" class="forumrow"></td>
<td width="80%" class="forumrow"><input type="submit" name="Submit" value="更新用戶等級"></td>
</tr>
</form>

<FORM METHOD=POST ACTION="?action=updateuserinfo">
<tr>
<td width="20%" class="forumrow" valign=top>更新用戶金錢/經(jīng)驗/魅力</td>
<td width="80%" class="forumrow">執(zhí)行本操作將按照<font color=red>當前論壇數(shù)據(jù)庫</font>用戶的發(fā)貼數(shù)量和論壇的相關(guān)設置重新計算用戶的金錢/經(jīng)驗/魅力,本操作也將重新計算貴賓、版主、總版主的數(shù)據(jù)<BR>注意:不推薦用戶進行本操作,本操作在數(shù)據(jù)很多的時候請盡量不要使用,并且本操作對各個版面刪除帖子等所扣相應分值不做運算,只是按照發(fā)貼和總的論壇分值設置進行運算,請大家慎重操作,<font color=red>而且本項操作將重置用戶因為獎勵、懲罰等原因管理員對用戶分值的修改。</font></td>
</tr>
<tr>
<td width="20%" class="forumrow">開始用戶ID</td>
<td width="80%" class="forumrow"><input type=text name="beginID" value="1" size=10>&nbsp;用戶ID,可以填寫您想從哪一個ID號開始進行修復</td>
</tr>
<tr>
<td width="20%" class="forumrow">結(jié)束用戶ID</td>
<td width="80%" class="forumrow"><input type=text name="endID" value="100" size=10>&nbsp;將更新開始到結(jié)束ID之間的用戶數(shù)據(jù),之間的數(shù)值最好不要選擇過大</td>
</tr>
<tr>
<td width="20%" class="forumrow"></td>
<td width="80%" class="forumrow"><input type="submit" name="Submit" value="更新用戶金錢/經(jīng)驗/魅力"></td>
</tr>
</FORM>
<%
	elseif request("action")="updateuserinfo" then
		if request("submit")="重新計算用戶發(fā)貼" then
		call updateTopic()
		elseif request("submit")="更新用戶等級" then
		call updategrade()
		else
		call updatemoney()
		end if
		if founderr then
		response.write errmsg
		else
		response.write body
		end if
	else
%>
<tr> 
<th align=left colspan=2 height=23>更新論壇數(shù)據(jù)</th>
</tr>

<form action="admin_update.asp?action=updat" method=post>
<tr>
<td width="20%" class="forumrow">更新分論壇數(shù)據(jù)</td>
<td width="80%" class="forumrow"><input type="submit" name="Submit" value="更新論壇數(shù)據(jù)"><BR><BR>這里將重新計算每個論壇的帖子主題和回復數(shù),今日帖子,最后回復信息等,建議每隔一段時間運行一次。</td>
</tr>
<tr>
<td width="20%" class="forumrow">更新總論壇數(shù)據(jù)</td>
<td width="80%" class="forumrow"><input type="submit" name="Submit" value="更新論壇總數(shù)據(jù)"><BR><BR>這里將重新計算整個論壇的帖子主題和回復數(shù),今日帖子,最后加入用戶等,建議每隔一段時間運行一次。</td>
</tr>
<tr> 
<th align=left colspan=2 height=23>修復帖子(修復指定范圍內(nèi)帖子的最后回復數(shù)據(jù))</th>
</tr>
<tr>
<td width="20%" class="forumrow">開始的ID號</td>
<td width="80%" class="forumrow"><input type=text name="beginID" value="1" size=10>&nbsp;帖子主題ID,可以填寫您想從哪一個ID號開始進行修復</td>
</tr>
<tr>
<td width="20%" class="forumrow">結(jié)束的ID號</td>
<td width="80%" class="forumrow"><input type=text name="EndID" value="1000" size=10>&nbsp;將更新開始到結(jié)束ID之間的帖子數(shù)據(jù),之間的數(shù)值最好不要選擇過大</td>
</tr>
<tr>
<td width="20%" class="forumrow"></td>
<td width="80%" class="forumrow"><input type="submit" name="Submit" value="修 復"></td>
</tr>
</form>
<%
	end if
%>
</table><BR><BR>
<%
	end sub

sub updateboard()
'先按照所有版面ID得出帖子數(shù),然后計算各個有下屬論壇的帖子總和
dim allarticle
dim alltopic
dim alltoday
dim allboard
dim trs,Esql,ars
dim Maxid
dim LastTopic,LastRootid,LastPostTime,LastPostUser
dim LastPost,uploadpic_n,Lastpostuserid,Lastid
dim ParentStr
set rs=server.createobject("adodb.recordset")
if isnumeric(request("boardid")) and request("boardid")<>"" then
	sql="select boardid,boardtype from board where boardid="&request("boardid")
else
	sql="select boardid,boardtype from board"
end if
set rs=conn.execute(sql)
if rs.eof and rs.bof then
	Errmsg=Errmsg+"<tr><td align=left colspan=2 height=23 class=forumrow>還沒有論壇版面,請到論壇管理添加!</td></tr>"
	founderr=true
	exit sub
else
	do while not rs.eof
    allarticle=BoardAnnounceNum(rs("BoardID"))
    alltopic=BoardTopicNum(rs("BoardID"))
	sql="select top 1 T.title,b.Announceid,b.dateandtime,b.username,b.postuserid,b.rootid from "&NowUseBBS&" b inner join Topic T on b.rootid=T.TopicID where b.boardid="&rs("boardid")&" and b.locktopic<2 order by b.Announceid desc"
	set trs=conn.execute(sql)
	if not(trs.eof and trs.bof) then
	Lasttopic=replace(left(trs(0),15),"$","")
	LastRootid=trs(1)
	LastPostTime=trs(2)
	LastPostUser=trs(3)
	LastPostUserid=trs(4)
	Lastid=trs(5)
	else
	LastTopic="無"
	LastRootid=0
	LastPostTime=now()
	LastPostUser="無"
	LastPostUserid=0
	Lastid=0
	end if
	trs.close
	set trs=nothing
	LastPost=LastPostUser & "$" & LastRootid & "$" & LastPostTime & "$" & LastTopic & "$" & uploadpic_n & "$" & LastPostUserID & "$" & LastID & "$" & rs("BoardID")
	Esql="update board set lastbbsnum="&allarticle&",lasttopicnum="&alltopic&",TodayNum="&todays(rs("boardid"))&",LastPost='"&replace(LastPost,"'","")&"' where boardid="&rs("boardid")
	conn.execute(Esql)
	rs.movenext
	loop
	'更新有下屬論壇的版面數(shù)據(jù)
	dim LastPostinfo,LastAnnID
	LastAnnID=0
	if isnumeric(request("boardid")) and request("boardid")<>"" then
	set trs=conn.execute("select boardid,ParentStr from board where boardid="&request("boardid")&" and child>0")
	else
	set trs=conn.execute("select boardid,ParentStr from board where child>0")
	end if
	do while not trs.eof
	if trs(1)="0" then
	'ParentStr=trs(0) & ","
	ParentStr=trs(0)
	else
	ParentStr=trs(1) & "," & trs(0)
	end if
	'帖子總數(shù),主題總數(shù),今日貼總數(shù),下屬版面數(shù)
	set ars=conn.execute("select sum(lastbbsnum),sum(lasttopicnum),sum(todaynum),count(*) from board where ParentStr like '%"&ParentStr&"%'")
	allarticle=ars(0)
	alltopic=ars(1)
	alltoday=ars(2)
	allboard=ars(3)
	if isnull(allarticle) then allarticle=0
	if isnull(alltopic) then alltopic=0
	if isnull(alltoday) then alltoday=0
	if isnull(allboard) then allboard=0
	set ars=conn.execute("select LastPost from board where ParentStr like '%"&ParentStr&"%'")
	do while not ars.eof
	LastPostinfo=split(ars(0),"$")
	if isnumeric(LastPostInfo(1)) and isnumeric(LastAnnID) then
		if clng(LastPostInfo(1))>clng(LastAnnID) then
		LastPost=ars(0)
		else
		LastPost="$0$"&Now()&"$$$$$"
		end if
	else
		LastPost="$0$"&Now()&"$$$$$"
	end if
	LastAnnID=LastPostinfo(1)
	ars.movenext
	loop
	conn.execute("update board set lastbbsnum=lastbbsnum+"&allarticle&",lasttopicnum=lasttopicnum+"&alltopic&",TodayNum=todaynum+"&alltoday&",child="&allboard&",LastPost='"&checkStr(LastPost)&"' where boardid="&trs(0))
	'response.write AllBoard & "<br>"
	trs.movenext
	loop
end if
if isnumeric(request("boardid")) and request("boardid")<>"" then
	sql="select boardtype,lastbbsnum,lasttopicnum,todaynum from board where boardid="&request("boardid")
else
	sql="select boardtype,lastbbsnum,lasttopicnum,todaynum from board"
end if
set rs=conn.execute(sql)
do while not rs.eof
	body=body & "<tr><td colspan=2 class=forumrow>更新論壇數(shù)據(jù)成功,"&rs("boardtype")&"共有"&rs("lastbbsnum")&"篇貼子,"&rs("lasttopicnum")&"篇主題,今日有"&rs("todaynum")&"篇帖子。</td></tr>"
rs.movenext
loop
set rs=nothing
set trs=nothing
set ars=nothing
end sub

sub updateall()
sql="update config set TopicNum="&topicnum()&",BbsNum="&announcenum()&",TodayNum="&alltodays()&",UserNum="&allusers()&",lastUser='"&newuser()&"'"
conn.execute(sql)
body="<tr><td colspan=2 class=forumrow>更新總論壇數(shù)據(jù)成功,全部論壇共有"&announcenum()&"篇貼子,"&topicnum()&"篇主題,今日有"&alltodays()&"篇帖子,有"&allusers()&"用戶,最新加入為"&newuser()&"。</td></tr>"
end sub

sub fixtopic()
if not isnumeric(request.form("beginid")) then
	body="<tr><td colspan=2 class=forumrow>錯誤的開始參數(shù)!</td></tr>"
	exit sub
end if
if not isnumeric(request.form("endid")) then
	body="<tr><td colspan=2 class=forumrow>錯誤的結(jié)束參數(shù)!</td></tr>"
	exit sub
end if
if clng(request.form("beginid"))>clng(request.form("endid")) then
	body="<tr><td colspan=2 class=forumrow>開始ID應該比結(jié)束ID小!</td></tr>"
	exit sub
end if
dim TotalUseTable,Ers
dim username,dateandtime,rootid,announceid,postuserid,lastpost,topic
set rs=server.createobject("adodb.recordset")
sql="select topicid,PostTable from topic where topicid>="&request.form("beginid")&" and topicid<="&request.form("endid")
set rs=conn.execute(sql)
if rs.eof and rs.bof then
	body="<tr><td colspan=2 class=forumrow>已經(jīng)到記錄的最尾端,請結(jié)束更新!</td></tr>"
	exit sub
end if
do while not rs.eof
	sql="select top 1 username,dateandtime,topic,Announceid,PostUserID,rootid,body,boardid from "&rs(1)&" where rootid="&rs(0)&" and locktopic<2 order by Announceid desc"
	set ers=conn.execute(sql)
	if not (ers.eof and ers.bof) then
		username=Ers("username")

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av中文在线观看| 日本大香伊一区二区三区| 成人国产精品免费网站| 4438x成人网最大色成网站| 国产精品素人视频| 久久精品国产亚洲a| 欧美在线观看一区| 国产精品午夜在线观看| 韩国在线一区二区| 日韩一级二级三级精品视频| 一区二区成人在线| 成人小视频免费观看| 精品国产1区二区| 五月激情综合网| 欧美日韩一级视频| 一区二区三区高清| 99久久精品国产导航| 国产欧美日韩精品在线| 韩日欧美一区二区三区| 日韩欧美在线123| 日本欧美一区二区| 欧美一级专区免费大片| 天天综合日日夜夜精品| 在线区一区二视频| 一区二区三区在线视频观看58| 懂色av一区二区夜夜嗨| 国产日韩欧美综合在线| 国产老妇另类xxxxx| 久久女同精品一区二区| 国产专区综合网| 国产视频在线观看一区二区三区 | 国产成人在线视频网站| 精品国产精品一区二区夜夜嗨| 日韩精品国产欧美| 91精品国产色综合久久不卡电影 | 久久久精品综合| 成人永久免费视频| 欧美国产综合色视频| 成人黄色av电影| 亚洲天堂网中文字| 日本高清不卡aⅴ免费网站| 一区二区国产盗摄色噜噜| 欧美日韩精品一区视频| 首页国产丝袜综合| 日韩精品中午字幕| 国产一区二区成人久久免费影院| 久久奇米777| 91在线观看污| 亚洲一区二区中文在线| 8v天堂国产在线一区二区| 九色|91porny| 国产精品美日韩| 91福利在线观看| 日韩高清不卡一区二区| 久久久精品影视| 91视频观看视频| 日韩和的一区二区| 久久久久久久av麻豆果冻| 91在线一区二区| 丝袜亚洲另类丝袜在线| 亚洲精品在线电影| 99视频一区二区三区| 日韩在线一区二区| 国产精品久久午夜夜伦鲁鲁| 欧美视频精品在线| 国产精品一区一区| 亚洲成人你懂的| 久久蜜桃av一区精品变态类天堂| 色综合视频一区二区三区高清| 日韩国产高清影视| 亚洲欧洲精品天堂一级| 欧美高清dvd| 不卡的av在线播放| 蜜臀国产一区二区三区在线播放 | 图片区小说区区亚洲影院| 久久九九久久九九| 51久久夜色精品国产麻豆| 懂色av一区二区三区蜜臀| 视频一区欧美精品| 亚洲欧洲日本在线| 26uuu国产日韩综合| 色94色欧美sute亚洲线路一ni| 麻豆成人在线观看| 亚洲精品免费播放| 国产欧美日韩激情| 日韩一区二区三区视频在线观看| 99久精品国产| 成人美女视频在线观看18| 捆绑调教美女网站视频一区| 一区二区三区日韩精品视频| 国产亚洲精品bt天堂精选| 91精品国产91久久久久久一区二区| av中文字幕一区| 国产在线看一区| 日本网站在线观看一区二区三区 | 国产精品美女久久久久久2018| 欧美一级高清大全免费观看| 不卡一区在线观看| 成人晚上爱看视频| 国产精品资源在线观看| 麻豆传媒一区二区三区| 天堂va蜜桃一区二区三区 | 欧美日韩一级大片网址| 99国产一区二区三精品乱码| 国产精品综合久久| 国产成人综合视频| 国产成人精品综合在线观看 | 国产精品中文有码| 日日摸夜夜添夜夜添国产精品| 亚洲一区日韩精品中文字幕| 亚洲色图清纯唯美| 国产精品不卡一区| 国产精品美女一区二区| 国产精品国产三级国产aⅴ入口 | 久久久精品天堂| 久久久久久久久久美女| 国产喷白浆一区二区三区| 欧美极品美女视频| 中文字幕在线一区| 亚洲精品美国一| 日韩激情视频网站| 精品一区二区三区在线播放视频| 国内精品在线播放| 国产成人免费视频| 一本久久综合亚洲鲁鲁五月天| 色婷婷精品大视频在线蜜桃视频| 在线亚洲欧美专区二区| 欧美日韩一区二区在线观看| 欧美日韩日日骚| 欧美成人aa大片| 中文字幕在线观看不卡视频| 亚洲综合网站在线观看| 日韩成人免费看| 国产成人午夜99999| 色偷偷久久人人79超碰人人澡| 欧美日韩国产高清一区二区三区| 日韩欧美中文一区二区| 国产日韩欧美不卡在线| 亚洲人午夜精品天堂一二香蕉| 亚洲午夜一区二区| 麻豆成人久久精品二区三区小说| 福利电影一区二区三区| 在线看日韩精品电影| 精品嫩草影院久久| 日韩毛片一二三区| 日韩影院免费视频| 国产成人av在线影院| 在线观看一区二区视频| 欧美电影免费提供在线观看| 中文字幕成人在线观看| 亚洲线精品一区二区三区| 国产一区二区福利| 欧美日韩一区二区三区在线看| 久久综合资源网| 一区二区三区视频在线观看| 国产专区综合网| 欧美日韩一区久久| 中文天堂在线一区| 麻豆91在线看| 欧美日韩一区二区欧美激情| www久久久久| 亚洲成人激情社区| 成人av网站在线观看免费| 4438x成人网最大色成网站| 亚洲欧美怡红院| 国内精品视频一区二区三区八戒| 91久久一区二区| 国产精品久久午夜夜伦鲁鲁| 美女久久久精品| 欧美色综合网站| ●精品国产综合乱码久久久久| 国内外成人在线| 欧美一区二区三区不卡| 夜夜揉揉日日人人青青一国产精品| 国产美女视频91| 欧美一区二区三区成人| 一区二区三区四区国产精品| 成人v精品蜜桃久久一区| 日韩美女视频一区二区在线观看| 亚洲一线二线三线视频| 91香蕉视频在线| 日韩一区中文字幕| 高清不卡一区二区在线| 久久一区二区三区国产精品| 日韩电影网1区2区| 在线观看91av| 午夜久久福利影院| 欧美人与性动xxxx| 亚洲第一激情av| 欧美在线你懂得| 午夜视频在线观看一区| 欧美日韩在线直播| 亚洲国产精品久久人人爱蜜臀 | 一区二区高清在线| 91极品视觉盛宴| 亚洲九九爱视频| 日本黄色一区二区| 夜夜揉揉日日人人青青一国产精品 | 91美女在线观看| 最近日韩中文字幕|