File size: 1.46Kb
<?
require_once '../core/system.php';
$req = mysql_query("SELECT * from `ban` where `id_us` = '".$user['id']."' and `time`>'".$_SERVER['REQUEST_TIME']."'");
$ban = mysql_fetch_array($req);
if($ban['ban'] == 3){
header('Location: /moduls/ban');
}
if(!isset($user['id'])) header('Location: /');
$header = 'Список приглашенных друзей';
require_once H.'core/head.php';
$req = mysql_query("SELECT * FROM `user` WHERE `inv`='".$user['id']."'");
$eerx = mysql_num_rows($req);
echo "<div class='but-list'>";
While($zur = mysql_fetch_array($req)){
$ank = mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='".$zur['id']."'"));
if($ank['prava'] == 5){
$status = "<font color='ffc22b'>[A]</font>";
$tcolor = 'F7990D';
}
if($ank['prava'] == 4){
$status = "<font color='ffc22b'>[a]</font>";$tcolor='EBC621';
}
if($ank['prava'] == 3){
$status = "<font color='ffc22b'>[M]</font>";
}
if($ank['prava'] == 2){
$status = "<font color='ffc22b'>[m]</font>";
}
echo"<a href=\"/user/".$ank['id']."/\">";
echo online($ank['id']);
echo"<font color='".$ank['font']."'> ".$ank['nick']."</font>";
if($ank['prava'] > 2) echo $status;
echo', <img src="/images/icon/level.png"> '.$ank['level'].'
<span class="float-right">
'.vremja($zur['time']).'
<span>
</a>';
}
if($eerx == 0) echo"<div class='player'>
Список пуст
</div>";
if ($k_page > 1){
echo "<div class='dot-line'></div>";
str('?',$k_page,$page);
}
echo '</div>';
require_once H.'core/foot.php';
?>