$lng_stars = core::load_lng('stars');
$allstar = mysql_result(mysql_query("select count(`id`) from `stars` where `type` = '1'"),0);
$allstar_new = mysql_result(mysql_query("select count(`id`) from `stars` where `type` = '1' and `date` > '" . (time() - 259200) . "'"),0);
$allstar_new_7 = mysql_result(mysql_query("select count(`id`) from `stars` where `type` = '1' and `date` > '" . (time() - 604800) . "'"),0);
// Звезды
echo '<div class="menu"><a href="stars/">' . $lng_stars['stars'] . '</a> (' . $allstar .
($allstar_new > 0 ? ' / <a href="stars/new.php"><span style="color: red">+ ' . $allstar_new . '</span></a>' : null) .
($allstar_new_7 > 0 ? ' / <a href="stars/new.php?type=1"><span style="color: green">+ ' . $allstar_new_7 . '</span></a>' : null) .
')<div class="status">[<small><span style="color: red">+ x</span> - ' . $lng_stars['aboutnew'] . ' / <span style="color: green">+ x</span> - ' . $lng_stars['aboutnew2'] . ' </small>]</div>' .
'</div>';
Мне надо вставить вот этот код, чтоб ошибок не было