и где тут код?
<?
/*
////////////////////////////////////////////////////////////////////////////////
// JohnCMS Mobile Content Management System //
// Project site: http://johncms.com //
// Support site: http://gazenwagen.com //
////////////////////////////////////////////////////////////////////////////////
// Lead Developer: Oleg Kasyanov (AlkatraZ) alkatraz@gazenwagen.com //
// Development Team: Eugene Ryabinin (john77) john77@gazenwagen.com //
// Dmitry Liseenko (FlySelf) flyself@johncms.com //
////////////////////////////////////////////////////////////////////////////////
*/
defined('_IN_JOHNCMS') or die('Error: restricted access');
$mp = new mainpage();
/*
-----------------------------------------------------------------
Блок информации
-----------------------------------------------------------------
*/
echo '<div class="phdr"><b>Новости</b></div>';
echo $mp->news;
// Ссылка на галерею
if ($set['mod_gal'] || $rights >= 7)
echo '<div class="phdr"><a href="gallery/"><b>Разделы галереи</b></a> (' . functions::stat_gallery() . ')</div>';
echo '<div class="menu"><a href="http://site.ru/gallery/index.php?id=4">Рисунок</a></div>';
echo '<div class="menu"><a href="http://site.ru/gallery/index.php?id=64">Бодиарт</a></div>';
echo '<div class="menu"><a href="http://site.ru/gallery/index.php?id=1">Татуировка</a></div>';
// Ссылка на библиотеку
if ($set['mod_lib'] || $rights >= 7)
echo '<div class="phdr"><a href="library/"><b>Статьи про искусство</b></a> (' . functions::stat_library() . ')</div>';
echo '<div class="menu"><a href="http://site.ru/library/index.php?id=1">Уроки рисования</a></div>';
echo '<div class="menu"><a href="http://site.ru/library/index.php?id=10">Великие художники</a></div>';
echo '<div class="menu"><a href="http://site.ru/library/index.php?id=4">О искусстве</a></div>';
/*
-----------------------------------------------------------------
Блок общения
-----------------------------------------------------------------
*/
/*
-----------------------------------------------------------------
Блок полезного
-----------------------------------------------------------------
*/
if ($user_id || $set['active']) {
echo '<div class="phdr"><b>Дополнительное меню</b></div>';
echo '<div class="menu"><a href="news/index.php">Новости сайта</a> (' . $mp->newscount . ')</div>';
echo '<div class="menu"><a href="users/index.php">Ценители искусства</a> (' . functions::stat_users() . ')</div>' .
'<div class="menu"><a href="users/album.php">Фото ценителей</a> (' . functions::count_photo() . ')</div>';
// Ссылка на Форум
if ($set['mod_forum'] || $rights >= 7)
echo '<div class="menu"><a href="forum/"><b>Форум</b></a> (' . functions::stat_forum() . ')</div>';
if ($set['mod_down'] || $rights >= 7)
echo '<div class="menu"><a href="download/">' . $lng['downloads'] . '</a> (' . functions::stat_download() . ')</div>';
echo '<div class="menu"><a href="pages/faq.php">Информация</a></div>';
echo '<div class="phdr"><a href="http://реклама.гг/advpage.php?
sub=11616">ЗАХОДИ НЕ БОЙСЯ</a></div>';
}
?>