View file referers/index.php

File size: 803B
<?php

include './core.php';

if(@$_GET['pass'] != $pass) exit('Облом :(');

if($count = mysql_result(mysql_query("SELECT COUNT(*) FROM `referers`"), 0)) {

$query = mysql_query("SELECT * FROM `referers` ORDER BY `id` DESC");

echo '<a href="http://'. $site .'/referers/clean.php?pass='. $pass .'">Очистить базу</a><hr />';

while($referer = mysql_fetch_assoc($query)) {
echo '<b>IP адрес:</b> '. $referer['ip'] .'<br />';
echo '<b>Устройство:</b> '. htmlspecialchars($referer['ua']) .'<br />';
echo '<b>Откуда:</b> <a href="'. htmlspecialchars($referer['url']) .'">'. htmlspecialchars($referer['url']) .'</a><br />';
echo '<b>Когда:</b> '. date('d.m.Y в H:i', $referer['time']) .'<br /><br />';
}
}

else echo 'База пуста';

?>