HOME Upload Chát
///New Advanced Statistics/// echo '
New Advanced Statistics
'; if (!$is_mobile){ echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; $req = mysql_query("SELECT * FROM `users` WHERE `postforum` > 0 ORDER BY `postforum` DESC LIMIT 15"); if (mysql_num_rows($req)) { $i = 0; while ($res = mysql_fetch_assoc($req)) { echo '
'; echo '
'.$res['name'].' '.$res['postforum'].'
'; ++$i; } } else { echo ' '; } echo '
'; $req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' and kedit='0' AND `close`!='1' ORDER BY `time` DESC LIMIT 12"); while ($arr = mysql_fetch_array($req)) { $q3 = mysql_query("select `id`, `refid`, `text` from `forum` where type='r' and id='" . $arr['refid'] . "'"); $razd = mysql_fetch_array($q3); $q4 = mysql_query("select `id`, `refid`, `text` from `forum` where type='f' and id='" . $razd['refid'] . "'"); $frm = mysql_fetch_array($q4); $nikuser = mysql_query("SELECT `from`,`id`, `time` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $arr['id'] . "'ORDER BY time DESC"); $colmes1 = mysql_num_rows($nikuser); $cpg = ceil($colmes1 / $kmess); $nam = mysql_fetch_array($nikuser); echo is_integer($i / 2) ? '
' : '
'; echo ''; if ($arr['realid'] == 1) echo ' '; if ($cpg > 1) { echo ' ' . $arr['text'] . ' (' . $colmes1 . ')'; } else { echo ' ' . $arr['text'] . ' (' . $colmes1 . ')'; } if (!empty ($nam['from'])) { echo ' ' . $nam['from']. '
'; } echo '
'; $i++; } echo '
'; }else{ $req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' and kedit='0' AND `close`!='1' ORDER BY `time` DESC LIMIT 12"); while ($arr = mysql_fetch_array($req)) { $q3 = mysql_query("select `id`, `refid`, `text` from `forum` where type='r' and id='" . $arr['refid'] . "'"); $razd = mysql_fetch_array($q3); $q4 = mysql_query("select `id`, `refid`, `text` from `forum` where type='f' and id='" . $razd['refid'] . "'"); $frm = mysql_fetch_array($q4); $nikuser = mysql_query("SELECT `from`,`id`, `time` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $arr['id'] . "'ORDER BY time DESC"); $colmes1 = mysql_num_rows($nikuser); $cpg = ceil($colmes1 / $kmess); $nam = mysql_fetch_array($nikuser); echo is_integer($i / 2) ? '
' : '
'; echo ''; if ($arr['realid'] == 1) echo ' '; if ($cpg > 1) { echo ' ' . $arr['text'] . ' (' . $colmes1 . ')'; } else { echo ' ' . $arr['text'] . ' (' . $colmes1 . ')'; } if (!empty ($nam['from'])) { echo ' ' . $nam['from']. '
'; } echo '
'; $i++; } } ///New Advanced Statistics///
Free Wapbuilder
Kết quả xổ số




ImageChia Sẻ Trang
Chia sẻ trang này:
Image Facebook Image Twitter Image SMS
Link wap :
BBcode:
© Copyright bylangtm
Powered by wap24vn
ImageBộ Đếm
0nline :
Hôm nay :
Tổng cộng :
google analytics