📄 r_user.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;
}
$ug = array();
$result3 = mysql_query("select * from {$db_prefix}groupuser where groupid>10 ORDER BY id", $myconn);
while ($row3 = mysql_fetch_array($result3)) {
$ug[$row3['username']] .= "|" . $row3["groupid"] . "," . $row3["byname"];
}
$ui = array();
$result2 = mysql_query("select authorid from {$db_prefix}posts", $myconn);
while ($row2 = mysql_fetch_array($result2)) {
$ui[$row2['authorid']]++;
}
$result = mysql_query("select id,username from {$db_prefix}members ORDER BY id LIMIT $tos,500", $myconn);
$user_ = mysql_num_rows($result);
$result2 = mysql_query("select * from {$db_prefix}config where id='53'", $myconn);
$honors = mysql_fetch_array($result2);
$honort = explode("\t", $honors['value']);
$honora = array();
foreach($honort as $key => $c) {
$key++;
if (trim($c) != '') $honora[$key] = true;
}
$off_ = $user_ < 500?1:0;
while ($row = mysql_fetch_array($result)) {
$honorlist = '';
$honorb = array();
if ($row['honor']) {
$honor = explode('|', $row['honor']);
while (list (, $val) = @each($honor)) {
if (isset($honora[$val])) $honorb[] = $val;
}
$honorlist = implode('|', $honorb);
}
$temp = $ui[$row['id']];
$groupl_ = $ug[$row['username']];
mysql_query("update {$db_prefix}members set postnum='$temp',groups='$groupl_',honor='$honorlist' where id='$row[id]'", $myconn);
}
$reuser = "宸茬粺璁$敤鎴穥$tosg}...";
$reurl = 'r_user.php?s=' . $tosg . '&off=' . $off_;
echoioy(0);
}
$reurl = "main.php";
echoioy(27);
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -