'.(isset($user)&& $settings['img_site']==2?NULL:'<img src="/design/icons/news/index.png" alt="" /> ').(mysql_result(mysql_query("SELECT COUNT(*) FROM `news`"),0)!=0?'<a href="/news/index.php?news_id='. mysql_result(mysql_query("SELECT `id` FROM `news` ORDER BY time DESC LIMIT 1"),0).'">'. mysql_result(mysql_query("SELECT `title` FROM `news` ORDER BY time DESC LIMIT 1"),0).'</a> ('. vtime(mysql_result(mysql_query("SELECT `time` FROM `news` ORDER BY time DESC LIMIT 1"),0)).')':'<a href="/news/index.php">Новости сайта</a>').'
</div>
<div class="menu">
'.(isset($user)&& $settings['img_site']==2?NULL:'<img src="/design/icons/forum/index.png" alt="" /> ').'<a href="/forum/">Форум</a> ('. mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_t`"),0).'/'. mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_p`"),0).')<br />
</div>';
echo '<div class="title">Загруз-центр</div>';
# Количество файлов/папок
$k_downloads = mysql_result(mysql_query("SELECT COUNT(*) FROM `downloads` WHERE `dir_id` = '0'"),0);
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `downloads` WHERE `path` LIKE '%$download[path]%' AND `id` != '$download[id]' AND `type` = '2' AND `time` > '".(time()-3600*24*3)."'"),0)!=0) $new1 ='<span class="green">+'. mysql_result(mysql_query("SELECT COUNT(*) FROM `downloads` WHERE `path` LIKE '%$download[path]%' AND `id` != '$download[id]' AND `type` = '2' AND `time` > '".(time()-3600*24*3)."'"),0).'</span>';
else $new1 ='';
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `downloads` WHERE `path` LIKE '%$download[path]%' AND `id` != '$download[id]' AND `type` = '2' AND `time` > '".(time()-3600*24*7)."'"),0)!=0) $new2 ='<span class="red">+'. mysql_result(mysql_query("SELECT COUNT(*) FROM `downloads` WHERE `path` LIKE '%$download[path]%' AND `id` != '$download[id]' AND `type` = '2' AND `time` > '".(time()-3600*24*7)."'"),0).'</span>';