Файл: public_html/ignor.php
Строк: 14
<?php
include ('./system/system.php');
$title = 'Игнор список';
include ('./system/head.php');
if(!$user) {
header('location: /index.php');
exit();
}
$max = 10;
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `ignor` WHERE `user` = '".$user['id']."'"),0);
$k_page = k_page($k_post,$max);
$page = page($k_page);
$start = $max*$page-$max;
$q = mysql_query("SELECT * FROM `ignor` WHERE `user` = '".$user['id']."' ORDER BY `id` DESC LIMIT $start, $max");
while($ong = mysql_fetch_assoc($q)) {
$ig = mysql_query('SELECT * FROM `users` WHERE `id` = "'.$ong['who'].'"');
$ig = mysql_fetch_array($ig);
echo '<a href="/profile.php?id='.$ig['id'].'" class="link"><img src="/images/race/'.$ig['race'].'.png"> '.$ig['login'].'</a>';
}
if($k_post<1) {
echo '<div class="block small red center">Никого нет!</div>';
}
if($k_page>1) echo str('?',$k_page,$page);
include ('./system/foot.php');
?>