View file top/top/online.php

File size: 1.67Kb
<?
#----------------------------------------------#
#         MOTOR 16.1 Site Rating               #
#         Mod by Voland                        #
#         WAP-Site  :  http://wapdel.net.ru    #
#----------------------------------------------#
  require_once "../template/start.php";
  require_once "../template/regglobals.php";
  require_once "../template/config.php";
  require_once "../template/functions.php";
  require_once "../template/maincore.php";
  require_once "../template/antidos.php";
  require_once "../template/cookies.php";
  require_once "../template/gzip.php";
  require_once "../template/header.php";
  require_once "../template/referer.php";
  require_once "conf.php";
  include_once "../themes/$config_themes/index.php";
  echo '<div class=a>'.$topname.'</div><hr><div>';
  $file = file("../local/datatop/online/$id.dat");
  for($i=0; $i < count($file); $i++)
    {
      $data = explode("|",$file[$i]);
      $time=date('[d.m.y / H:i]', $data[0]);
      $dat=explode('#',$data[1]);
      if ($file[0]=="" or $file[0]=="\r\n")
        {
          echo 'Онлайн: <font color="red">0</font>';
        }
      else
        {
          print'<div class=b>Время: <font color="yellow">'.$time.'</font><br>IP: <font color="yellow">['.$dat[0].']</font><br>Браузер: <font color="yellow">['.$dat[1].']</font></div>';
        }
    }
  echo '</div><hr><div><img src="../images/img/back.gif"> <a href="index.php?id='.$id.'&amp;'.SID.'">Назад</a><br>';
  echo '<img src="../images/img/act_home.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a></div>';
  include_once "../themes/$config_themes/foot.php";
  exit;
?>