zhangjingyu
在read.htm文件中,像:
注册时间{$read}
最后登录{$read}
发帖$read
这样的代码中的变量大多可以直接或(通过read.php)稍加转换就可以输出。有的字段和今日发帖数的字段“todaypost”一样存在于会员数据表(pw_memberdata)中。所以我想,添加“今日发帖{$read['micon'] = $pwMembers[$k]['icon'];
unset($pwMembers[$k]['icon']);
}
}
} else {
$_dbCacheService = Perf::gatherCache('pw_membersdbcache');
list($pwMembers, $customdb, $colonydb) = $_dbCacheService->getUserDBCacheByUserIds($_userIds, $showCustom, $db_showcolony, $showfield);
/**
$skey = array();
foreach ($_uids as $key=>$value) {
$skey[$value] = $key;
$db_showcolony && $skey['UID_GROUP_'.$key] = $key;
$showCustom && $skey['UID_CREDIT_'.$key] = $key;
}
$_cache = getDatastore();
$arrValues = $_cache->get(array_keys($skey));
$tmpUIDs = $tmpGROUPs = $tmpGROUPs = $tmpCacheData = $tmpColonydb = $tmpCustomdb = array();
foreach ($skey as $key=>$value) {
$prefix = substr($key,0,strrpos($key,'_'));
switch ($prefix) {
case 'UID' :
if (!isset($arrValues[$key])) {
$tmpUIDs[$key] = $value;
$tmpCacheData[$key] = '';
} else {
$pwMembers[$value] = $arrValues[$key];
}
break;
case 'UID_CREDIT' :
if (!isset($arrValues[$key])) {
$tmpCREDITs[$key] = $value;
&