Файл: main_menu.php
Строк: 66
<?
echo'<div class="bzx1"><img src="/style/themes/default/img/n5.png" /> Главное меню</div>';
$q_menu=mysql_query("SELECT * FROM `menu` ORDER BY `pos` ASC");
while ($post_menu = mysql_fetch_assoc($q_menu))
{
if ($post_menu['type']=='link')echo "<div class='main_menu'>";
if (!isset($post_menu['icon']))mysql_query('ALTER TABLE `menu` ADD `icon` VARCHAR( 32 ) NULL DEFAULT NULL');
if (!isset($post_menu['type']))mysql_query("ALTER TABLE `menu` ADD `type` ENUM('link', 'razd') NOT NULL DEFAULT 'link' AFTER `id`");
if ($post_menu['type']=='link')echo "<img src='/style/themes/default/img/iconz.png' alt='*'> ";
if ($post_menu['type']=='link')echo "<a href='$post_menu[url]'>";
else echo "<div class='menu_razd'>";
echo $post_menu['name'];
if ($post_menu['type']=='link')echo "</a>n";
if ($post_menu['counter']!=NULL && is_file(H.$post_menu['counter']))
{
@include H.$post_menu['counter'];
}
echo "</div>";
}
echo "<div class='main_menu'>n";
echo "<img src='/style/themes/default/img/iconz.png' alt='*'> На сайте <a href='/online.php'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)."</a> & n";
echo "<a href='/online_g.php'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)."</a> n";
if (!$set['web'])
echo "</div>";
echo "<div class='main_menu'>n";
echo "<img src='/style/themes/default/img/iconz.png' alt='*'> <a href='/?t=web'>WEB версия</a>";
echo "</div>";
if (user_access('adm_panel_show')){
echo "<div class='main2'>n";
echo "<img src='/style/icons/adm.gif' alt='S' /> <a href='plugins/admin/'>Админ кабинет</a> ";
include_once "plugins/admin/count.php";
echo "</div>";
}
?>