zhangjingyu
sort.php
“} elseif ($action == 'member') {
$_SORTDB = $member = array();
$array = array('todaypost','monthpost','monoltime','postnum','digests','onlinetime','rvrc','money','currency','credit','f_num','postMostUser');
foreach ($_CREDITDB as $key => $value) {
array_push($array,$key);
}
if ($db_ifpwcache & 1) {
$element = L::loadClass('element');
$element->setDefaultNum($cachenum);
$_SORTDB = $element->getAllUserSort();
} else {
$cachetime = pwFilemtime(D_P."data/bbscache/member_sort.php");
if (!$per || !file_exists(D_P."data/bbscache/member_sort.php") || ($timestamp-$cachetime>$per*3600)) {
$step = $_GET['step'] ? intval($_GET['step']) : 0;
if ($array[$step]) {
//* @include pwCache::getPath(D_P."data/bbscache/member_tmp.php");
pwCache::getData(D_P."data/bbscache/member_tmp.php");
$element = L::loadClass('element');
$element->setDefaultNum($cachenum);
$member = $element->userSort($array[$step],0,false);
unset($_SORTDB[$array[$step]]);
foreach ($member as $v ) {
$_SORTDB[$array[$step]][] = array($v['addition']['uid'],$v['title'],$v['value']);
}
$step++;
pwCache::setData(D_P.'data/bbscache/member_tmp.php',"");
refreshto("sort.php?action=member&step=$step",'update_cache');
} else {
//* @include pwCache::getPath(D_P."data/bbscache/member_tmp.php");
pwCache::getData(D_P."data/bbscache/member_tmp.php");
pwCache::writeover(D_P.'data/bbscache/member_sort.php',"");