Файл: vkollektive2014/play/top_users.php
Строк: 53
<?
//------------------------------------Подключаем скрипт------------------------//
include '../connect.php';
$location = '(В топ рейтингах)';
if(!$u['id']){
header ("Location: /registration.php?err=1");
exit;
}
require_once("../core/ip.php");
//------------------------------------Name страницы------------------------//
$title = $title . ' : Топы';
//------------------------------------Тема------------------------//
require_once("../head.php");
########Запросы
$cphotos_top = mysql_result(mysql_query("SELECT COUNT(*) FROM `photos_photo` WHERE `top` = '1'"), 0);
$rating = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `stat_forum_messages` > 0"), 0);
$ratings = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `stat_arbour` > 0"), 0);
$ratongs = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `stat_chat` > 0"), 0);
$cusers = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"), 0);
$cusers_online = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `online` > '" . (time() - $system['online_time']) . "'"), 0);
$cusers2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `anketa_datareg` > '" . (time() - 60*60*24) . "'"), 0); if ($cusers2 > 0) $cusers_new = '<font color = "red">+' . $cusers2 . '</font>';
######Конец хуйни всякой сука
#<font color="red"> NEW</font>
echo '<div class="div"><a href = "http://vkollektive.net/photos_top.php"><img src="http://vkollektive.net/about/img/str.png"> Топ фотографии [' . $cphotos_top . ']</a></div>';
echo '<div class="div"><a href = "http://vkollektive.net/play/forum_top_rating.php"> <img src="http://vkollektive.net/about/img/str.png"> Топ пользователей форума</a> ['.$rating.']</a></div>';
echo '<div class="div"><a href = "http://vkollektive.net/play/top_besedky.php"> <img src="http://vkollektive.net/about/img/str.png"> Топ пользователей беседки</a> ['.$ratings.']</a></div>';
echo '<div class="div"><a href = "http://vkollektive.net/play/top_chat.php"> <img src="http://vkollektive.net/about/img/str.png"> Топ пользователей чата</a> ['.$ratongs.']</a></div>';
echo '<div class="div"><a href = "http://vkollektive.net/play/users_rating.php"> <img src="http://vkollektive.net/about/img/str.png"> Топ лучших по рейтингу</a> [' . $cusers . '] ' . $cusers_new . '</a><font colot="red"> NEW </font></div>';
echo "<div class='div'><a href='random_user_profile.php'><img src='http://vkollektive.net/about/img/str.png'>Топ 10-ка случайных анкет </a><font color = '#777777'>[10]</font></div>";
include '../foot.php';