Файл: masteram_us/user/avt.php
Строк: 14
<?
require'../shaxty.php'; // waphp.ru - закрытый клуб вап мастеров!
check_login();
$title = 'Логи авторизации ';
$align = 'left';
$head = 'Логи авторизации ';
include_once (H.'shaxty/head.php');
$mod = check($mod);
switch($mod) {
default:
$max = $user['max'];
$k_post=mysql_result(mysql_query("select count(*) as num from avtoriz where user_id = '".$user['id']."'"),0);
$k_page=k_page($k_post,$max);
$page=page($k_page);
$start=$max*$page-$max;
$r = mysql_query ("Select * from avtoriz where user_id = '".$user['id']."' order by time desc LIMIT $start, $max");
if (($max*$page)<$k_post) $maxi = $max*$page; else $maxi = $k_post;
echo $div1.'Показаны записи '.($start+1).'-'.$maxi.' из '.$k_post.''.$div9.'<br />';
$post_k=$start+1;
while($a = @mysql_fetch_array($r)){
echo '<div class="c2"><b>'.$a['ip'].'</b> ('.times($a['time']).')<br />'.$a['br'].'<br /> ';
if($a['yes']!=0){echo '<span style="color:#00DD00">Успешная авторизация</span><br />';
}else{ echo '<span style="color:#FF0000">Неудачная авторизация</span><br />';
echo 'Попыток: '.$a['kol'].' ';
}
echo '</div>';
}
echo $div9.'</small><dt></dt>';
echo '<dl></dl>';
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
echo "<br/><dl><dt></dt></dl>";
break;
}
echo '<br />';
echo $div1.'<a href="'.H.'user/index.php">Личный кабинет</a>'.$div9;
include_once (H.'shaxty/foot.php');
?>