' . $error . '

'; } $headmod = $id ? 'forum,' . $id : 'forum'; /* ----------------------------------------------------------------- Список Категорий форума ----------------------------------------------------------------- */ $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files`" . ($rights >= 7 ? '' : " WHERE `del` != '1'")), 0); /////////// ///////////////Новости///////////////// echo '
' . $lng['information'] . '
'; $mp = new mainpage(); echo $mp->news; ///////////////////////////////////////// //echo '
Мы работаем с каждым человеком!
'; /////////////// echo '
' . $lng['news_archive'] . ' (' . $mp->newscount . ')
FAQ | ' . $lng['users'] . ' | ' . $lng['photo_albums'] . ' (' . counters::album() . ')
' . $lng_forum['forum_rules'] . ' | ' . $lng['search'] . ' | ' . $lng_forum['files_forum'] . ' (' . $count . ')
' . $lng['administration'] . ' | ' . $lng['guestbook'] . ' (' . counters::guestbook() . ')
'; ///////// echo '
' . counters::forum_new(1) . '
'; ///////// $req = mysql_query("SELECT `id`, `text`, `soft` FROM `forum` WHERE `type`='f' ORDER BY `realid`"); $i = 0; while (($res = mysql_fetch_array($req)) !== false) { echo $i % 2 ? '
' : '
'; $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='r' and `refid`='" . $res['id'] . "'"), 0); echo '' . $res['text'] . ' [' . $count . ']'; if (!empty($res['soft'])) echo '
' . $res['soft'] . '
'; echo '
'; ++$i; } echo '
' . $lng['statistics'] . '
'; //////////////Статистика форума/////////// $total_msg = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type` = 'm'"), 0); $total_files = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files`"), 0); $res = mysql_fetch_array(mysql_query("SELECT * FROM `users` ORDER BY `datereg` DESC LIMIT 1;")); echo '

'; ////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// unset($_SESSION['fsort_id']); unset($_SESSION['fsort_users']); } ?>