Файл: online/include.onlines.php
Строк: 22
<?php
$on24 = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '" . TIME_TODAY . "'"), 0);
$on1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` >" . (time() - 300) . ""), 0);
$on2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > " . (time() - 500) . " AND `pereh` > '0'"), 0);
$on3 = $on1 + $on2;
echo "<div class = 'foot'><center>";
echo "<a href = '/online/'>Онлайн " . mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > " . (TIME - 300) . ""), 0) . "</a>";
echo " | ";
echo "<a href = '/online/guest.php'>Гостей " . mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > " . (TIME - 500) . " AND `pereh` > '0'"), 0) . "</a>";
echo " <span id = 'hide'><a href = '/online/info.php' title = 'Подробнее'><img src = '/style/icons/info_mini.png' /></a></span>";
echo "</center></div>";