Размер файла: 2.02Kb
<?php
#############################################
# 0JXRgdC70Lgg0YLRiyDRh9C40YLQsNC10YjRjCDRj #
# dGC0L4g0YHQvtC+0LHRidC10L3QuNC1LCDQt9C90L #
# DRh9C40YIg0YLRiyDQvdC10LzQvdC+0LPQviDQt9C #
# 90LDQtdGI0YwgUEhQIQ== #
#__---------------------------------------__#
#__ 0JrQu9C40Log0JrQu9GD0LE= __#
# --------------------------------------- #
# 0JDQstGC0L7RgCA6IE1vcmdhbg== #
# SUNRIDog0L3QtSDRgdC60LDQttGDIHhE #
# #
#############################################
require '../inc/start.php';
require '../inc/regvars.php';
require '../inc/db.php';
require '../inc/config.php';
require '../inc/funct.php';
require '../inc/antidos.php';
require '../inc/gzip.php';
require '../inc/header.php';
only_reg('/aut.php?',true);
if($user_prof['admin']<$config['enable_log_aut']){location('menu/index.php');}
$title = 'Логи авторизаций';
require '../inc/head.php';
echo '<div class="sec">
Логи авторизаций
</div><div class="vstavka">';
$count_logs = mysql_result(query("SELECT COUNT(*) FROM `$db[prefix]logs_aut` WHERE `user` = '$user_prof[id]'"),0);
if($count_logs > 0)
{
$str = ceil($count_logs/$set_on_page);
if($page>$str)location('menu/laut.php');
$res = query("SELECT * FROM `$db[prefix]logs_aut` WHERE `user`='$user_prof[id]' ORDER BY `date` DESC LIMIT $p_str,$set_on_page");
$num = $p_str;
while($log = mysql_fetch_array($res))
{
$num ++;
echo '<div class="ie"><b>'.$num.'.</b> <b>'.formatdate($log['date']).'</b><br />
<span class="info">('.strtok($log['ua'],' ').' - '.$log['ip'].')</span></div>';
}
navigator($str,$page,'laut.php','',true,true);
}else{echo 'Нет записей';}
echo '<hr/>
.<a href="/menu/">Кабинет</a><br />';
require '../inc/foot.php';
################################################
# 0KHQutGA0LjQv9GCINC90LUg0L/QsNCx0LvQuNC6IQ== #
# 0KHRgtCw0LLRgNC+0L/QvtC70YwsIDIwMDkg0LMu #
################################################
?>