1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
|
$chatcount = 0;
$result1=$db->query("SELECT * FROM bb".$n."_fc_connections WHERE userid!='NULL'");
$chatonline = mysql_num_rows($result1);
if ($chatonline != '0') {
$nameslist=$db->query("SELECT roomid,userid FROM bb".$n."_fc_connections");
while ($nali = $db->fetch_array($nameslist)) {
$nameid = $nali['userid'];
$nameslist1=$db->query("SELECT useronlinegroupid,userid,username FROM bb".$n."_users WHERE userid='$nameid'");
while ($nali1 = $db->fetch_array($nameslist1)) {
if($nali1['useronlinegroupid'] == 1 || $nali1['useronlinegroupid'] == 2 || $nali1['useronlinegroupid'] == 3) {
$chatname = "<span class="admin"><b>$nali1[username]</b></span>";
}else{
$chatname = "$nali1[username]";
}
$roomid = $nali['roomid'];
$chatroom=$db->query("SELECT name FROM bb".$n."_fc_rooms WHERE id='$roomid'");
while ($chatroom1 = $db->fetch_array($chatroom)) {
$chatraum = $chatroom1['name'];
$chatcount++;
eval("\$chat_useronlinebit_tpl = "".$tpl->get("index_useronline_chat")."";");
if ($chatcount>1) $chat_useronlinebit .= ", ".$chat_useronlinebit_tpl;
else $chat_useronlinebit .= $chat_useronlinebit_tpl;
}
}
}
}
if ($chatonline == 1) {
$anzeige = $lang->items['LANG_START_CHATUSERONLINE_ONE'];
}else{
$anzeige = $lang->items['LANG_START_CHATUSERONLINE_MORE'];
}
$anzeigeende = $lang->items['LANG_START_CHATUSERONLINE_END']; |