case 'json_home_tab_latest':
case 'json_exg_ava':
require_once DISCUZ_ROOT.'./forumdata/cache/cache_exgbit_ava.php';
$top = array();
$i = 0;
foreach($exgava as $exgav) {
$i++;
$exga[$i]['uidav'] = $exgav['uidav'];
$exga[$i]['picav'] = $exgav['picav'];
$exga[$i]['nameav'] = iconv('gbk', 'utf-8', $exgav['nameav']);
$exga[$i]['nicknameav'] = iconv('gbk', 'utf-8', $exgav['nicknameav']);
}
header('Content-type: text/plain; charset=utf-8');
header('Cache-control: no-cache, must-revalidate');
if (function_exists('json_encode')) {
$encoded = json_encode($exga);
} else {
$encoded = Zend_Json::encode($exht);
}
echo $encoded;
break;
/*Parasy || Exgbit Ajax Avatar*/
function exg_avas() {
global $db, $_DCACHE, $timestamp, $tablepre, $discuz_uid, $member;
$data = array();
$query_exgava = $db->query("SELECT cm.uid,username,nickname,avatar from {$tablepre}members cm LEFT JOIN {$tablepre}memberfields cdm ON cm.uid=cdm.uid WHERE avatar !='' ORDER BY rand() LIMIT 20");
while($exgava = $db->fetch_array($query_exgava)) {
$data['exgava'][$exgava[uid]]['uidav'] = $exgava['uid'];
$data['exgava'][$exgava[uid]]['nameav'] = $exgava['username'];
$data['exgava'][$exgava[uid]]['nicknameav'] = $exgava['nickname'];
$data['exgava'][$exgava[uid]]['picav'] = $exgava['avatar'];
}
$data['exgava_expiration'] = 900 + time();
nmwritetocache(cache_exgbit_ava, '', nmgetcachevars($data),'','cache');
return $data['exgava'];
}
/*Parasy || Exgbit Ajax Avatar*/
<!--{if $show_cloud == 0}-->
<div class="maintable" align="left">
<span class="tip_i">New in NoName