File size: 1.28Kb
<?php
# Coding by LinX
# ICQ 339890
s_header("Админ Панель::Рефы");
echo '<div class="gt">Рефы</div><div class="cont">';
//Все рефы за сегодня
$nall = mysql_result(mysql_query("SELECT COUNT(*) FROM `referer` WHERE `time` >= '". $_CONF['today'] ."'"),0);
if ($nall > 0)
{
if (isset($_GET['page']) && !empty($_GET['page'])) {
$page = abs(intval($_GET['page']));
if ($page > 0) {
$start = ($page - 1) * $_CONF['tcount'];
} else {
$start = 0;
}
} else {
$start = 0;
}
$Query = mysql_query("SELECT * FROM `referer` WHERE `time` >= '". $_CONF['today'] ."' ORDER BY `time` DESC LIMIT ". $start .",".$_CONF['pcount']);
while($r = mysql_fetch_assoc($Query))
{
echo '<div class="raz">URL: '. $r['from'] .'['. s_formattime($r['time']) .']</div>
<small>ip: <b>'. $r['ip'] .'</b>Браузер: <b>'. $r['browser'] .'</b></small><br />';
}
s_nav($nall,$_CONF['pcount'],'mode=control&act=referer');
}
else{
echo 'Сегодня на сайте не обнаружено рефоф<hr />';
}
echo '<a href="'.MYURL.'control">Админ-Панель</a>';
echo '</div>';
s_footer();
?>