Файл: public_html/onlinetime.php
Строк: 51
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
$title = 'Online';
include './system/h.php';
?>
<?$online1 = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (60) ).''') );
$online2 = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (3600) ).''') );
$online3 = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (21600) ).''') );
$online4 = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (86400) ).''') );
$online5 = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (100000) ).''') );
?>
Онлайн:</br>
1 мин.:<?=n_f($online1)?></br>
1час.:<?=n_f($online2)?></br>
6 часов.:<?=n_f($online3)?></br>
24 часа.:<?=n_f($online4)?>
</br>
28 часoв.;<?=n_f($online5)?> </br>
<hr>
<?
include './system/f.php';
?>