Файл: profiwm.pp.ua/online_g.php
Строк: 24
<?php
require 'system/sid.php';
require 'system/config.php';
include 'system/user.php';
include 'system/head.php';
include 'system/navigator.php';
whorm(0, 'onlg');
echo $div_title . 'Онлайн ' . $count . $div_end;
$count = mysql_result(mysql_query("SELECT COUNT(ip) FROM `guests` WHERE `date_last` > '" . (time() - 200) . "' AND `pereh` > '0'"), 0);
if ($count != 0)
{
$n = new navigator($count, 10, '?');
$i = 0;
$s = mysql_query("SELECT * FROM guests WHERE `date_last` > '" . (time() - 200) . "' AND `pereh` > '0' ORDER BY `date_last` DESC {$n->limit}");
$cols = 0;
while($a = mysql_fetch_assoc($s))
{
++$cols;
$num = ($n->start + $cols);
echo ($i ++ % 2) ? $div_razdel : $div_tworazdel;
echo $num . '. ' . long2ip($a['ip']) . '<br/>' . $a['ua'] . $div_end;
}
echo $n->navi();
} else {
echo 'Гостей нет.<br/>';
}
include 'system/foot.php';
?>