File size: 1.51Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);
extract($HTTP_SESSION_VARS);
session_name("ID");
session_start();
//////////////////
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>Кто онлайн</title></head><body><table width=\"100%\" bgcolor=\"#888888\" border=\"1\" style=\"font-family:Verdana; font-size:12px;\">
<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr>";
$t=date("H:i:s", mktime(date ("H")-0));
echo"<tr><td bgcolor=\"#CCCCFF\" align=\"left\"><font color=\"#BA323D\">Время системы: $t</font></td></tr><tr><td bgcolor=\"#E8E8FF\" align=\"left\">";
$arr=file('online.dat');
$c=count($arr);
function show($who,$i){
$who=explode(':||:',$who[$i]);
$who[0]=strtok($who[0],' ');
print ($i+1).'.<u class="bl">'.$who[0].'</u><hr />'; }
for($i=0;$i<$c;$i++) { show($arr,$i); }
print '[<a href="index.php';
if($pas) print '?pas='.$pas;
print '">Назад</a>]<br/>';
print "<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>";
?>