xchieclax (SV!) [Off] [#] (22.10.2016 / 14:07) Đang tìm người yêu |
// Hop chat echo '<div class="phdr"><a href="'.$home.'/guestbook/index.php"><b>Hộp Chat</b></a></div>'; if($user_id){ `adm` = '0', `user_id` = '".$user_id."', `name` = '".$from['name']."', `ip` = '" . core::$ip."', `otvet` = '' "); }else{ echo '<div class="rmenu">Quá ít kí tự, tối thiểu 5 kí tự!</div>'; } }else{ echo '<div class="rmenu">Bạn chưa đăng nhập để tham gia CHAT!</div>'; } } echo '<div class="list1"><form action="" method="post"> <input type="text" name="text" style="width:80%;"/><input type="submit" name="submitc" title="Gửi"/></form></div>'; $sqlchat = mysql_query("SELECT * FROM `guest` WHERE `adm`=0 ORDER by `time` DESC, `id` DESC LIMIT 0,10"); $txtchat = functions::checkout($chat['text'],1,1); $txtchat = functions::smileys($txtchat,1); $onli = mysql_fetch_array(mysql_query("SELECT `lastdate` FROM `users` WHERE `id` = " . $chat['user_id'])); echo '<div class="list1">'.(time() > $onli['lastdate'] + 300 ? ' <img src="'.$home.'/images/red.gif" alt="offline" width="10"/> ' : ' <img src="'.$home.'/images/green.gif" alt="online" width="10"/> '). '<b>'.nick($chat['user_id']).'</b>: '.$txtchat.'</div>'; } // Ket thuc hop Chat
__________
Tin học như cơm bình dân
Bài viết liên quan:
Xem chủ để ngoại tuyến (Offline)Sắp xếp theo thứ tự từ dưới lên