Файл: peremenki.php
Строк: 28
<?
$online = count($game['players']);
$year = date('d.m.y');
$times = date('H:m');
$version = "<font color=red>Test Version</font>";
$vremya = "$year $times";
$brouzer=$_SERVER["HTTP_USER_AGENT"];
$logo = "<br/><img src="/logotip.gif" alt="logo"></a><br/>";
$index = "<br/><a href="index.php">На главную</a>";
$dir = opendir ("./users");
while ($file = readdir ($dir))
{if (($file !="index.php") &&($file !="zip.php") &&($file !=".htaccess"))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
$ccc=count($game["players"]);
$s1="Всего: ".$total."";
$subt = file_get_contents("./data/max_on.dat");
$max = explode("|", $subt);
$max_onl = $max[0];
$max_on_time = $max[1];
if ($online >= $max_onl)
{
$fp55 = fopen("data/max_on.dat", 'w');
fwrite($fp55, "$online|$vremya|");
fclose($fp55);
}
$file=@file('data/news.dat');
$file = array_reverse($file);
$newsdate=explode('||',$file[0]);
?>