20 lines
301 B
PHP
20 lines
301 B
PHP
|
<html>
|
||
|
<head>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Активные игроки:</h1>
|
||
|
<?php
|
||
|
|
||
|
$online = mysql_query("SELECT u.login
|
||
|
FROM `online` o
|
||
|
JOIN `users` u ON o.id = u.id
|
||
|
WHERE `o`.`real_time` >= ".(time()-60).";");
|
||
|
|
||
|
while($v = mysql_fetch_array($online))
|
||
|
{
|
||
|
echo "<li>{$v[0]}</li>";
|
||
|
}
|
||
|
?>
|
||
|
</ol>
|
||
|
</body>
|
||
|
</html>
|