Просмотр поста

.
Foxuz

mne nujen pomsh

//CHat 
$chat_online = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > '" . ($realtime - 800) . "' AND `place` LIKE 'chat%'"), 0); 
$chat='1'; 
echo '<td class="tfoot_td"><a href="' . $home . '/chat/?id=1"><img  src="' . $home . '/images/panel/chat.png" width="16" height="16" alt="Chat" /> ' . $chat_online . '</a>'; 
$chatlencnr = mysql_query("SELECT COUNT(*) FROM `yosh_chat_lenta` WHERE `id_u` = '" . $user_id . "'");  
$chatlencnt = mysql_result($chatlencnr, 0);  
if ($chatlencnt > 0) {  
echo '<center>';  
$chatlenreq = mysql_query("select * from `yosh_chat_lenta` where  id_u='" . $user_id . "' limit 2;");  
while ($chatlenres = mysql_fetch_array($chatlenreq)) {  

echo '<a href="../users/profile.php?user='.$chatlenres['id_a'].'">' . $chatlenres['name'] . '</a>';  
}  
echo'</center>';  
} 


//Forum 
$new_forum='1'; 

if ($new_forum) $list[] = '<td class="tfoot_td"><a href="' . $home . '/forum/?act=new"> <img  src="' . $home . '/images/panel/flenta.png" width="16" height="16" alt="Chat" />' . counters::new_forum(0) . '</a></td>'; 




echo '' . functions::display_menu($list, ' ') . ''; 
      
echo'</tr></table></div>'; 

} 

if ($headmod != "friend") { 
$new_frends = mysql_result(mysql_query("SELECT COUNT(*) FROM `friend_notice` WHERE `user` = '$user_id'"), 0); 
if ($new_frends) 

$list[] = '<a href="' . $set['homeurl'] . '/users/friend.php?act=new">Оповещение (+' . $new_frends . ')</a>'; 
    }
head.php