View file book/who.php

File size: 822B
<?php
include "config.php";
header("Content-type:text/html; charset=utf-8");
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>';
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
<title>$zag</title></head><body bgcolor=\"#000000\" text=\"white\"><p>";
print "<font color=\"#33FF33\">Кто в онлайне:</font><br/><br/>";
$data = file('online.dat');
foreach($data as $val)
{
   $ex = explode('::', $val);
   $ex2 = explode(' ', $ex[0]);
   print "<b><font color=\"#FF0033\">".$ex2[0]."</font></b><font color=\"white\"> - ".date('H:i:s', (int)(trim($ex[2])))."</font><br/><br/>";
}
print "<a href=\"$gl\"><font color=\"#FFFF33\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</font></a>
</p>
</body>
</html>";
?>