2024-11-15 00:10 10:1
Post Terhangat
';
//
$req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' AND `close`!='1' ORDER BY `time` DESC LIMIT 2");
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`, `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);
$np = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_rdm` WHERE `time` >= '" . $arr['time'] . "' AND `topic_id` = '" . $arr['id'] . "' AND `user_id`='$user_id'"), 0);
echo is_integer($i / 2) ? '' : '
';
/*Qchat*/
if($user_id){
echo '';
// ??????
$icons = array(
($np ? (!$arr['vip'] ? '' : '') : ''),
($arr['vip'] ? '' : ''),
($arr['realid'] ? '' : ''),
(
$arr['edit'] ? '' : '')
);
echo functions::display_menu($icons, '^', '^');
echo '' . $arr['text'] . ' [' . $colmes1 . ']';
if ($cpg > 1)
echo ' >>';
echo '
';
$i++;
}
echo '';
echo '' . $nam['from']. ' ' . date("d.m.y / H:i", $nam['time']) . '';
echo '
Komentar Anda
';
echo '';
// bentuk input pesan baru
$req = mysql_query("SELECT COUNT(*) FROM `qchat`");
$req = mysql_query("SELECT `qchat`.*, `users`.`name`, `users`.`rights`, `users`.`lastdate`, `users`.`sex`, `users`.`status`, `users`.`datereg`, `users`.`ip` , `users`.`browser` FROM `qchat` LEFT JOIN `users` ON `qchat`.`user_id` = `users`.`id` ORDER BY `time` DESC LIMIT 3");
while ($res = mysql_fetch_array($req))
{
echo '';
}
}
?>
#Main Share: