View file who.php

File size: 872B
<?php
@$pas=$_GET['pas'];
Header('Cache-Control: no-cache, must-revalidate');
Header('Content-Type:application/xhtml+xml;charset=utf-8');
print '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"><head><title>Кто он-лайн</title>
<link rel="stylesheet" type="text/css" href="style.css" /></head><body><div><div class="fr">';
$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> '.date('H:i',($who[2])).'<hr />';
}
for($i=0;$i<$c;$i++){ show($arr,$i); }
print '</div>[<a href="index.php';
if($pas) print '?pas='.$pas;
print '">К темам</a>]</div></body></html>';
?>