<?php
require_once('./system/global.php');
// Инициализация переменных
$max = NAROD_MAX_SITES;
$protectData = protect_get();
$protectImg = protect_url(urlencode(protect_crypt($protectData[2])));
if (!$items = cache_get('narod_items', 300)) {
$number = 0;
$qGetNarodParticipants = $DB->query("SELECT `id`, `project_name`, `project_url`, `votes` FROM `narod_participants` WHERE `status` = 'approved' ORDER BY `votes` DESC LIMIT 50;");
while ($participant = $DB->fetchObject($qGetNarodParticipants)) {
$number++;
$participant->project_surl = narod_prepare_url($participant->project_url);
$participant->votes = number_format($participant->votes, 0, '', ' ');
eval('$items .= "' . template_get('narod_vote_item') . '";');
}