View file forum/on/online.php

File size: 843B
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);

$maindir = $_SERVER['DOCUMENT_ROOT'];
$OnlineDir="$maindir/forum/data/online";

include_once "../../css/red/index.php";
echo'<title>'.$_SERVER['HTTP_HOST'].' - онлайн online</title>';
echo'<div class="agr"><center><b>Онлайн - посетители</b></center></div><div class=bgr>
<center><b>Время: '.$OnlineDate.'</b></center>';

$dir=opendir("$OnlineDir");
while($file=readdir($dir)){
if(($file != ".") && ($file != "..")){
$filetext = @file("$OnlineDir/$file");
$on_dt = explode("|",$filetext[0]);
$g++;
echo"<b>".check($g).".</b> IP: $on_dt[0]<br>Browser: $on_dt[1]<br>На сайте находится с: $on_dt[5]<br>-------<br>";

}} closedir ($dir);
echo'</div>';
include_once "../../css/red/foot.php";

?>