Размер файла: 1.3Kb
<?php
// (c) vavok.net
require_once"../include/startup.php";
// page settings
$data_on_page = 10; // referere links per page
$my_title = "Referer";
require_once BASEDIR . "themes/" . MY_THEME . "/index.php";
if (empty($_GET['page']) || $_GET['page'] < 1) {
$page = 1;
} else {
$page = check($_GET['page']);
}
if ($config["showRefPage"] == "1" || $users->is_administrator()) {
$file = file("../used/referer.dat");
$file = array_reverse($file);
$total = count($file);
$navigation = new Navigation($data_on_page, $total, $page, 'referer.php?'); // start navigation
$start = $navigation->start()['start']; // starting point
$end = $navigation->start()['end']; // ending point
for ($i = $start; $i < $end; $i++) {
$data = explode("|", $file[$i]);
$datime = date("H:i:s", $data[1]);
echo '<b><a href="' . transfer_protocol() . $data[0] . '">' . $data[0] . '</a></b> (' . $datime . ')<br />' . $lang_page['visits'] . ': ' . $data[3] . '<br /><hr />';
}
echo $navigation->get_navigation();
} else {
echo '<p><img src="../images/img/reload.gif" alt="" /> ' . $lang_page['pgviewoff'] . '<br></p>';
}
echo '<p><a href="../" class="btn btn-primary homepage">' . $lang_home['home'] . '</a></p>';
require_once BASEDIR . "themes/" . MY_THEME . "/foot.php";
?>