Файл: vsime.com/user/inc/act_loghist.php
Строк: 35
<?
$ank = profile(intval(@$_GET['id']));
if (!@$ank['id'] || !isset($moderate_site) && $ank['id']!=$user['id'])$ank = $user;
if (isset($user) && $user['id'] == $ank['id'])$title = 'Моя страничка';
else $title = $ank['nick'];
$links_hist['name'] = "$ank[nick] / История входов";
$links_hist['link'] = "$config[profile_page]?act=loghist&id=$ank[id]";
$title .= ' - История входов';
ex_head();
$fst_log = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `loghist` WHERE `id_user` = '$ank[id]' ORDER BY `time` ASC LIMIT 1"));
$query = mysqli_query($dbi, "SELECT * FROM `loghist` WHERE `id_user` = '$ank[id]' AND `id` <> '$fst_log[id]' ORDER BY `time` DESC LIMIT 5");
while ($post = mysqli_fetch_array($query))
{
echo "<div class='list'>n";
echo "<b>Дата:</b> ".vremja($post['time'])."<br />n";
echo "<b>Браузер:</b> ".hsc($post['browser'])."<br />n";
echo "<b>IP-адрес:</b> ".hsc($post['ip'])."<br />n";
echo "</div>n";
}
echo "<div class='blbot'>n";
echo "Самый первый вход:<br />n";
echo "</div>n";
echo "<div class='list'>n";
echo "<b>Дата:</b> ".vremja($fst_log['time'])."<br />n";
echo "<b>Браузер:</b> ".hsc($fst_log['browser'])."<br />n";
echo "<b>IP-адрес:</b> ".hsc($fst_log['ip'])."<br />n";
echo "</div>n";
echo "<div class='foot'>n";
echo image_back()." <a href='/start'>Назад</a>n";
echo "</div>n";
ex_foot();
?>