View file pages/referer.php

File size: 1.16Kb
<?php

require_once ("../includes/start.php");
require_once ("../includes/functions.php");
require_once ("../includes/header.php");
include_once ("../themes/".$config['themes']."/verh.dat");

if (isset($_GET['start'])) {$start = (int)$_GET['start'];} else {$start = 0;}

show_title('Ссылки');



$file = file(DATADIR.'referer.dat');
$file = array_reverse($file);
$total = count($file);

if ($total>0){

if ($start < 0 || $start >= $total){$start = 0;}
if ($total < $start + $config['showref']){ $end = $total; }
else {$end = $start + $config['showref']; }
for ($i = $start; $i < $end; $i++){

$data = explode("|",$file[$i]);

echo'<div class="b">'.($i+1).'. <b><a href="http://'.$data[0].'">'.$data[0].'</a></b> ('.date_fixed($data[2]).')</div>';
echo'Переходов: '.$data[1].'<br>';
echo'Последний IP: '.$data[3].'<br>';
}

page_jumpnavigation('referer.php?', $config['showref'], $start, $total);
page_strnavigation('referer.php?', $config['showref'], $start, $total);

}

echo'<br><small>Сайты откуда к нам заходили.</small></br>';


echo'<br>
 <a href="../index.php">Глав</a>';

include_once ("../themes/".$config['themes']."/niz.dat");
?>