Размер файла: 2.79Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
session_name("SESID");
session_start();
include ("./config.php");
include ("./themes/$themes.php");
$idat = date("dmy", time());
$id="$_SESSION[id]";
$jdata = file("data/users/profil/$id.$raz");
$viewmess = explode("|", $jdata[0]);
$pass=$viewmess[0];
if($pass==$_SESSION[pass]){
$id="$_SESSION[id]";
$data = file("data/users/perehod/$id.$raz");
$count = count($data);
$kolmes = $guestmes;
$stranic = ceil($count/$kolmes);
if(empty($_GET["page"]))
{
$page_get = 1;
}
else
{
$page_get = "$_GET[page]";
}
$do = $kolmes * ($page_get - 1);
$end = $kolmes * $page_get;
$page_nazad = $page_get - 1;
$page_dalee = $page_get + 1;
if (eregi("([0-9])", "$page_get"))
{
echo "<div><center>Статистика</center></div>";
if(empty($data))
{
echo "<p class=\"b\">У вас еще нету переходов!<br/></p>";
}
else{
for ($i = $do; $i < $end; $i++){
if (!empty($data[$i])){
$viewmess = explode("|", $data[$i]);
$aip=$viewmess[1];
$abrauser=$viewmess[0];
$aref=$viewmess[5];
$adate=$viewmess[4];
$wdate=$viewmess[3];
$atime=$viewmess[2];
$nip=$viewmess[6];
if($idat==$wdate){
echo"<div class=\"b\"><center>[<font color=red>Сегодня</font>]</center></div>";
}
echo "<div class=\"b\"><font color=red>Дата</font>: $adate<br/><font color=red>Время</font>: $atime</div><div class=\"b\"><font color=red>Браузер</font>: $abrauser<br/>1.<font color=red>IP</font>: $aip<br/>2.<font color=red>IP</font>: $nip<br/><font color=red>Referer</font>: ";
$aref=str_replace(' ','',$aref);
$aref=str_replace('
','',$aref);
if(empty($aref)){
echo"<font color=green>None</font>";
}
if(!empty($aref)){
echo"$aref";
}
echo"</div><hr>";
}
}
if($stranic > 1)
{
echo "<p align=\"center\" class=\"d\">";
if($page_get > 1)
{
echo "<a href=\"partner.php?page=$page_nazad\">Назад</a>";
}
echo "|";
if($stranic > $page_get)
{
echo "<a href=\"partner.php?page=$page_dalee\">Дальше</a>";
}
echo "<br/>Страница:$page_get<br/>";
echo "Всего страниц:$stranic<br/>";
if($page_get > 1)
{
echo "<a href=\"partner.php?page=1\">В начало</a>";
}
echo "|";
if($stranic > $page_get)
{
echo "<a href=\"partner.php?page=$stranic\">В конец</a><br/>";
}
echo "</p>";
echo "<form action=\"partner.php\" method=\"get\">";
echo "<p align=\"center\" class=\"d\">";
echo "На страницу<br/>
<input type=\"text\" name=\"page\" size=\"3\" maxlength=\"3\" value=\"\" /><br/>
<input type=\"submit\" value=\"Перейти\" />";
echo "</p>";
echo "</form>";
}
echo "<div>Всего переходов: $count<br/></div>";
}}}else{
echo'Ошибка авторизации! <a href="./vhod.php">Вход</a><br/>'; }
include"./templates/foot.php";
?>