<?php
//Определение текущего адреса
$om = '1';
$now_url = parse_url($_SERVER['REQUEST_URI']);
$now_path = $now_url['path'];
switch ($now_path) {
case '/register':
$me = '1'; $om = '2';
break;
case '/lostpassword':
$me = '2'; $om = '2';
break;
case '/auth':
$me = '0'; $om = '2';
break;
}
?>

<div class="sidebar-content animated fadeIn" style="display: block;">
<ul class="navigation">
    <?php
    //Меню панели управления
    if (stristr(SITE.$now_path, SITE.'/'.ADMINPATH)) {
        include('wu-actions/wu_checkadmin.php');
    ?>

<li class="active">
<a href="#"><span>Меню</span> <i class="icon-paragraph-justify2"></i></a>
<ul>
<li><a href="/<?php echo ADMINPATH; ?>/">Главная</a></li>
<li><a href="/<?php echo ADMINPATH; ?>/support">Поддержка<?php $tq = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT COUNT(id) AS `ti` FROM `".DB_PREFIX."_tickets_main` WHERE new_a='1'")); if ($tq['ti'] > 0) { echo "<span class='label label-danger'>$tq[ti]</span>"; } ?></a></li>
<li><a href="/<?php echo ADMINPATH; ?>/activity">Актиность пользователей<?php $act = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT COUNT(id) AS `c` FROM `".DB_PREFIX."_adm_act` WHERE new='1'")); if ($act['c'] > 0) { echo "<span class='label label-danger'>$act[c]</span>"; } ?></a></li>
<li><a href="/<?php echo ADMINPATH; ?>/activity_finance">Финансовая активность<?php $fa = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT COUNT(id) AS `c` FROM `".DB_PREFIX."_adm_operations` WHERE new='1'")); if ($fa['c'] > 0) { echo "<span class='label label-danger'>$fa[c]</span>"; } ?></a></li>
<li><a href="/<?php echo ADMINPATH; ?>/activity_auth">История авторизаций<?php $auth = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT COUNT(id) AS `c` FROM `".DB_PREFIX."_adm_auth` WHERE new='1'")); if ($auth['c'] > 0) { echo "<span class='label label-danger'>$auth[c]</span>"; } ?></a></li>
<li><a href="/<?php echo ADMINPATH; ?>/cashout"<?php $ou = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT COUNT(id) AS `c` FROM `".DB_PREFIX."_adm_cash_out`")); if ($ou['c'] > 0) { echo "<span class='label label-danger'>$ou[c]</span>"; } ?>>Вывод средств</a></li>
</ul>
</li>

<li>
<a href="#"><span>Пользователи</span> <i class="icon-users"></i></a>
<ul class="hidden-ul">
<li><a href="/<?php echo ADMINPATH; ?>/users">Управление пользователями</a></li>
</ul>
</li>

<li>
<a href="#"><span>Товары</span> <i class="icon-plus"></i></a>
<ul class="hidden-ul">
<li><a href="/<?php echo ADMINPATH; ?>/eshop/moderation">Товары на модерации<?php $ees = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT COUNT(id) AS `c` FROM `".DB_PREFIX."_es` WHERE st = 0")); if ($ees['c'] > 0) { echo "<span class='label label-danger'>$ees[c]</span>"; } ?></a></li>
</ul>
</li>

    <?php
    //Меню пользователя
    } else {
    ?>
    
<li class="active has-ul">
<a href="#"><span>Категории</span> <i class="icon-paragraph-justify2"></i></a>
<ul>
<li><a href="/category/port_script">Скрипты порталов</a></li>
<li><a href="/category/kazino_script">Скрипты казино</a></li>
<li><a href="/category/doska_script">Доски объявлений</a></li>
<li><a href="/category/shop_script">Интернет магазины</a></li>
<li><a href="/category/cap_script">Скрипты буксов,CAP</a></li>
<li><a href="/category/hayp_script">Скрипты хайпов</a></li>
<li><a href="/category/games_script">Экономические игры</a></li>
<li><a href="/category/moduls_cms">Модули для CMS</a></li>
<li><a href="/category/other">Остальное</a></li>
</ul>
</li>
<li class="bbor">
<a href="#"><span>Дополнительно</span> <i class="icon-plus"></i></a>
<ul class="hidden-ul">
<li><a href="/eshop_popular">Популярные товары</a></li>
<li><a href="/eshop_viewed">Последние просмотренные</a></li>
</ul>
  

</div>
</div>
</li>




<?php } ?>
<div id="pretop"></div>
<div id="toTop" style="display: none;">

</div>
</ul>
</div>