Просмотр файла book/who.php

Размер файла: 1.97Kb
<? 
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
if (getenv("HTTP_X_FORWARDED_FOR"))
 { $ip=getenv("HTTP_X_FORWARDED_FOR"); }
   else { $ip=getenv("REMOTE_ADDR"); }
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
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\">
<link rel=\"shortcut icon\" href=\"http://visavi.net/favicon.ico\"><title>VISAVI.NET</title>
<style type=\"text/css\">
body { font-weight: normal; font-size: normal; font-family: georgia; color: #666699; background-color: #CCCCFF }
a:link,a:active,a:visited { text-decoration: underline; color : #0066FF }
a:hover { text-decoration: none; color : #FF0000 }
div { margin: 1px 0px 1px 0px; padding: 5px 5px 5px 5px; font-weight: bold;}
div.blue{ background-color: #3333FF; padding-top: 5px; padding-bottom: 5px; padding-left: 4px;  border: 1px solid;  text-align: center;}
a {font-weight: bold;}
div.a {margin: 0px 0px 3px 0px; padding: 0px 0px 1px 0px; border: 1px solid #669999;}
div.b {margin: 0px; border-top: 5px solid #E3E3FC; border-bottom: 5px solid #ACACFA; padding: 5px; vertical-align: middle; }
</style></head>
<body bgcolor=\"#CCCCFF\">";	
echo"<div class=\"blue\"><font color=\"#FF0000\">VISAVI.NET</font></div><div>"; 
print '<br/>';
$data = file('online.dat');
foreach($data as $val)
{
   $ex = explode('::', $val);
   $ex1 = explode('::', $ex[1]);
   $ex2 = explode(' ', $ex[0]);
  
   print ''.date('H:i:s', (int)(trim($ex[2]))).'<br/><b>'.$ex2[0].' </b> ['.$ex[1].']<hr/>';
}
print '<br/><br/><a href="http://visavi.net">&#169; VISAVI.NET</a>
</div>
</body>
</html>';
?>