📄 r_count.php
字号:
<?php
include"../cache/config.inc.php";
include"begin.php";
adminlogin();
if (!$_GET["off"]) {
if (is_numeric($_GET["s"])) {
$tos = $_GET["s"];
$tosg = $tos + 500;
} else {
$tos = 0;
$tosg = 500;
}
$result = mysql_query("select cid from {$db_prefix}title ORDER BY id LIMIT $tos,500", $myconn);
$title_ = mysql_num_rows($result);
$off_ = $title_ < 500?1:0;
while ($row = mysql_fetch_array($result)) {
unset($temp);
$result2 = mysql_query("select id from {$db_prefix}posts where tid='$row[cid]'", $myconn);
$temp = mysql_num_rows($result2)-1;
mysql_query("update {$db_prefix}title set replies='$temp' where cid='$row[cid]'", $myconn);
}
$reuser = "宸茬粺璁′富棰榹$tosg}...";
$reurl = 'r_count.php?s=' . $tosg . '&off=' . $off_;
echoioy(0);
}
$result = mysql_query("select username from {$db_prefix}members ORDER BY id DESC", $myconn);
$r_userc = mysql_num_rows($result);
$row = mysql_fetch_array($result);
$r_user = $row["username"];
mysql_query("update {$db_prefix}bbsinfo set newmember='$r_user',totalmember='$r_userc'", $myconn);
$result = mysql_query("select fid from {$db_prefix}forums where fup!='0'", $myconn);
while ($row = mysql_fetch_array($result)) {
unset($plus_, $titleplus);
$result2 = mysql_query("select replies from {$db_prefix}title where fid='$row[fid]'", $myconn);
$titleplus = mysql_num_rows($result2);
while ($row2 = mysql_fetch_array($result2)) {
$plus_ += $row2["replies"];
}
$plus_ += $titleplus;
mysql_query("update {$db_prefix}forums set tcount='$titleplus',pcount='$plus_' where fid='$row[fid]'", $myconn);
}
$reurl = "main.php";
echoioy(26);
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -