friends fixes
This commit is contained in:
parent
809a04be4c
commit
32dfb990fc
19
friend.php
19
friend.php
@ -230,7 +230,7 @@ return s;
|
||||
<TR>
|
||||
<TD colspan="4" align="center"><h4>Контакты</h4></TD>
|
||||
</TR>
|
||||
<?
|
||||
<?php
|
||||
$data=mysql_query("SELECT `notinlist`,`comment` FROM `friends` WHERE `user` = '".$user['id']."' and `notinlist`>0;");
|
||||
while ($row = mysql_fetch_array($data)) {
|
||||
$us = mysql_fetch_array(mysql_query("SELECT `id`,`login`,`klan`,`level`,`align`,`room`, `invis`, (select `id` from `online` WHERE `date` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `id` = '".$row['notinlist']."';"));?>
|
||||
@ -242,13 +242,13 @@ return s;
|
||||
|
||||
if ($us['online'] > 0 && !$us["invis"]) {
|
||||
echo '<a HREF="javascript:top.AddToPrivate(\'',nick7($us['id']),'\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
|
||||
echo mick2s($us['id'], 0);
|
||||
nickname($us['id']);
|
||||
$rrm = $rooms[$us['room']];
|
||||
echo ' - <i>',$rrm,'</i><BR>';
|
||||
}else{
|
||||
|
||||
echo '<font color=gray><img src="i/offline.gif" width=20 height=15 alt="Нет в клубе">';
|
||||
echo mick2s($us['id'], 0);
|
||||
nickname($us['id']);
|
||||
echo '</font> - Нет в клубе<BR>';
|
||||
|
||||
}
|
||||
@ -277,13 +277,13 @@ if ($us['online'] > 0 && !$us["invis"]) {
|
||||
|
||||
if ($us['online'] > 0 && !$us["invis"]) {
|
||||
echo '<A HREF="javascript:top.AddToPrivate(\'',nick7($us['id']),'\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
|
||||
echo mick2s($us['id'], 0);
|
||||
nickname($us['id']);
|
||||
$rrm = $rooms[$us['room']];
|
||||
echo ' - <i>',$rrm,'</i><BR>';
|
||||
}else{
|
||||
|
||||
echo '<font color=gray><img src="i/offline.gif" width=20 height=15 alt="Нет в клубе">';
|
||||
echo mick2s($us['id'], 0);
|
||||
nickname($us['id']);
|
||||
echo '</font> - Нет в клубе<BR>';
|
||||
|
||||
}
|
||||
@ -313,7 +313,7 @@ echo mick2s($us['id'], 0);
|
||||
|
||||
if ($us['online'] > 0 && !$us["invis"]) {
|
||||
echo '<A HREF="javascript:top.AddToPrivate(\'',nick7($us['id']),'\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
|
||||
echo mick2s($us['id'], 0);
|
||||
nickname($us['id']);
|
||||
if($us['room']>500 && $us['room']<561)
|
||||
$rrm = "Башня Смерти";
|
||||
else
|
||||
@ -322,7 +322,7 @@ echo mick2s($us['id'], 0);
|
||||
}else{
|
||||
|
||||
echo '<font color=gray><img src="i/offline.gif" width=20 height=15 alt="Нет в клубе">';
|
||||
echo mick2s($us['id'], 0);
|
||||
nickname($us['id']);
|
||||
echo '</font> - Нет в клубе<BR>';
|
||||
|
||||
}
|
||||
@ -358,7 +358,7 @@ echo mick2s($us['id'], 0);
|
||||
while ($row = mysql_fetch_array($data)) {
|
||||
if ($row['online']>0 && $row['id']>0) {
|
||||
echo '<tr><td><A HREF="javascript:top.AddToPrivate(\'',$row['login'],'\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
|
||||
echo mick2s($row['id'], 0);
|
||||
nickname($row['id']);
|
||||
echo'</tr></td>';
|
||||
}
|
||||
}
|
||||
@ -379,7 +379,7 @@ echo mick2s($us['id'], 0);
|
||||
if($row['id'] == 777 || $row['id'] == 9081 ) { $row["invis"] = 1; }
|
||||
if ($row['online']>0 && $row['id']>0 && !$row["invis"]) {
|
||||
echo '<tr><td><A HREF="javascript:top.AddToPrivate(\'',$row['login'],'\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
|
||||
echo mick2s($row['id'], 0);
|
||||
nickname($row['id']);
|
||||
echo'</tr></td>';
|
||||
}
|
||||
}
|
||||
@ -394,5 +394,4 @@ echo mick2s($us['id'], 0);
|
||||
</TR>
|
||||
|
||||
</TABLE>
|
||||
<!--Тут рейтинг-->
|
||||
</HTML>
|
Loading…
Reference in New Issue
Block a user