

<div class="menu">
'. (isset($user) && $settings['img_site'] == 2?NULL:'<img src="/design/icons/cabinet/friends.png" alt="" /> ') .'<a href="/friends/index.php">Ваши друзья</a> ('. mysql_result(mysql_query("SELECT COUNT(*) FROM `friends` WHERE `user_id` = '$user[id]' AND `active` = '1'"), 0) . (mysql_result(mysql_query("SELECT COUNT(*) FROM `friends` WHERE `user_id` = '$user[id]' AND `active` = '0'"), 0) != 0?'/<span class="green">+'. mysql_result(mysql_query("SELECT COUNT(*) FROM `friends` WHERE `user_id` = '$user[id]' AND `active` = '0'"), 0) .'</span>':NULL) .')
</div>

