View file pages/mainmenu.php

File size: 2.14Kb
<?php
defined('_IN_JOHNCMS') or die('Error: restricted access');
$mp = new mainpage();
echo '<div class="phdr"><b>Меню сайта</b></div>';
echo '<div class="menu"><img src="/images/icons/news.png" alt="*"/> <a href="news/index.php">' . $lng['news_archive'] . '</a> (' . $mp->newscount . ')</div>';
echo $mp->news;
echo '<div class="phdr"><b>' . $lng['dialogue'] . '</b></div>';
if ($set['mod_guest'] || $rights >= 7)
echo '<div class="menu"><img src="/images/icons/guests.png" alt="*"/> <a href="guestbook/index.php">' . $lng['guestbook'] . '</a> (' . counters::guestbook() . ')</div>';
if ($set['mod_forum'] || $rights >= 7)
echo '<div class="menu"><img src="/images/icons/forum.png" alt="*"/> <a href="forum/">' . $lng['forum'] . '</a> (' . counters::forum() . ')</div>';
echo '<div class="phdr"><b>' . $lng['useful'] . '</b></div>';
if ($set['mod_down'] || $rights >= 7)
echo '<div class="menu"><img src="/images/icons/download.png" alt="*"/> <a href="download/">' . $lng['downloads'] . '</a> (' . counters::downloads() . ')</div>';
if ($set['mod_lib'] || $rights >= 7)
echo '<div class="menu"><img src="/images/icons/libs.png" alt="*"/> <a href="library/">' . $lng['library'] . '</a> (' . counters::library() . ')</div>';
if ($set['mod_gal'] || $rights >= 7)
echo '<div class="menu"><img src="/images/icons/gal.png" alt="*"/> <a href="gallery/">' . $lng['gallery'] . '</a> (' . counters::gallery() . ')</div>';
if ($user_id || $set['active']) {
echo '<div class="phdr"><b>Другое</b></div>' .
'<div class="menu"><img src="/images/icons/info.png" alt="*"/> <a href="pages/faq.php">' . $lng['information'] . '</a></div>' .
'<div class="menu"><img src="/images/icons/board.png" alt="*"/> <a href="/board/">Объявления</a>&nbsp;(' . counters::board() . ')</div>' .
'<div class="menu"><img src="/images/icons/fotos.png" alt="*"/> <a href="users/album.php">' . $lng['photo_albums'] . '</a> (' . counters::album() . ')</div>' .
'<div class="menu"><img src="/images/icons/users.png" alt="*"/> <a href="users/index.php">' . $lng['users'] . '</a> (' . counters::users() . ')</div>';
}
echo '<div class="phdr">';
echo date('d.m.20y');
echo '</div>';
?>