-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchat_users.php
More file actions
24 lines (23 loc) · 926 Bytes
/
Copy pathchat_users.php
File metadata and controls
24 lines (23 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?
include "includes/classes.inc.php";
$statement = "select team.team_name, team.team_id, team_owner
from team where team.team_chat_time > '".date("Y-m-d H:i:s", strtotime("-10 seconds"))."'
order by team_name";
$result = mysql_query($statement);
echo mysql_error();
$users = array();
while ($row = mysql_fetch_array($result)) {
if ($row['team_id'] != $login->team_id()) {
if ( $row['team_id']=='1' )
$users[] = '<a href="javascript:private_chat(\''.$row['team_id'].'\')">Admin</a>';
else
$users[] = '<a href="javascript:private_chat(\''.$row['team_id'].'\')">'.$row['team_name'].'-'.$row['team_owner'].'</a>';
} else {
if ( $row['team_id']=='1' )
$users[] = 'Admin';
else
$users[] = $row['team_name'].'-'.$row['team_owner'];
}
}
echo '<p style="font-size: 13px; line-height: 15px; font-weight: bold">'.implode("<br>",$users);
?>