'; //--- Mod Chatbox v3 ---// echo ""; // end data chat /* ----------------------------------------------------------------- quick chat ----------------------------------------------------------------- */ echo '
qChat'; if ($rights >= 3) { echo '
[X]
'; } echo '
'; echo '
'; if($user_id){ $refer = base64_encode($_SERVER['REQUEST_URI']); $token = mt_rand(1000, 100000); $_SESSION['token'] = $token; echo '
'.bbcode::auto_bb('shoutbox', 'msg').'
'; } else { echo $lng['access_guest_forbidden']; } echo '
'; echo '
'; /* ----------------------------------------------------------------- Last post ----------------------------------------------------------------- */ echo '
 Recent Post•••
'; $sid = isset($_REQUEST['sid']) ? abs(intval($_REQUEST['sid'])) : false; $req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' AND `close`!='1' ORDER BY `time` DESC LIMIT 8"); 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"); $nik = mysql_query("SELECT `from`, `id`, `text`, `time` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $arr['id'] . "'ORDER BY time ASC"); $colmes1 = mysql_num_rows($nikuser); $cpg = ceil($colmes1 / $kmess); $nam = mysql_fetch_array($nikuser); $na = mysql_fetch_array($nik); $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) ? '
' : '
'; // e-e?ezN?eze? $icons = array( ($np ? (!$arr['vip'] ? '' : '') : ''), ($arr['vip'] ? '' : ''), ($arr['realid'] ? '' : ''), ($arr['edit'] ? '' : '') ); echo functions::display_menu($icons, ' ', ' '); echo ''; echo ' ' . $arr['text'] . ' [' . $colmes1 . '] '; if ($cpg > 1) echo '>>'; echo '
'; echo 'Author : ' . $na['from']. ' Last : ' . $nam['from']. '
'; $jpost = functions::checkout(mb_substr($na['text'], 0, 90), 1, 1); if ($set_user['smileys']) $jpost = functions::smileys($jpost, $na['text'] >= 1 ? 1 : 0); if (mb_strlen($na['text']) > 90) { echo $jpost.' '; echo '...
Read more >>'; } else { echo $na['text']; } //echo ' . date("d.m.y / H:i", $nam['time']) . ''; echo '
'; $i++; } ###Mod By EcHo Texas ?>