zhangjingyu
经测试,后台pw缓存库对应的php文件是lib/elementupdate.class.php。楼上提到的很可能是会员排行榜的相关函数是userSortUpdate()(楼上红色标定。下面的代码略有修改,但没能成功实现):
“ function userSortUpdate($winddb) {
global $timestamp, $tdtime, $montime, $_CREDITDB;
if ($this->_inUidBlackList($winddb['uid'])) {
return false;
}
$usersort_judge = array();
//* include pwCache::getPath(D_P . 'data/bbscache/usersort_judge.php');
extract(pwCache::getData(D_P . 'data/bbscache/usersort_judge.php', false));
$winddb['lastpost'] < $tdtime && $winddb['todaypost'] = 0;
$winddb['lastpost'] < $montime && $winddb['monthpost'] = 0;
$sorttype = array(
'money',
'rvrc',
'credit',
'currency',
'todaypost',
'monthpost',
'postnum',
'monoltime',
'onlinetime',
'digests',
'f_num'
);
if ($_CREDITDB) {
$query = $this->db->query("SELECT cid,value FROM pw_membercredit WHERE uid=" . S::sqlEscape($winddb['uid']));
while ($rt = $this->db->fetch_array($query)) {
if (!$rt['value']) continue;
$winddb[$rt['cid']] = $rt['value'];
}
foreach ($_CREDITDB as $key => $val) {
is_numeric($key) && $sorttype[] = $key;
}
}
$change = $marks = array();
foreach ($sorttype as $value) {
if (in_array($value,$sorttype) && $winddb[$value]>PW_OVERFLOW_NUM) {
$this->_excuteOverflow($winddb['u