<?php
include('./kernel/active.class.php');
$class=new Activ; global $connect;
$MySQL=mysqli_query($connect,'SELECT login FROM config');
$row=mysqli_fetch_assoc($MySQL);
?>
	<div class="navbar navbar-default navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<a href="?home" class="navbar-brand">Sniff admin</a>
			</div>
			<div class="navbar-collapse collapse" id="navbar-main">
				<ul class="nav navbar-nav" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut">
					<li<?=$class->array['home'];?>>
						<a href="?home"><?=$GLOBALS['lang']['m1'];?></a>
					</li>
					<li<?=$class->array['cards'];?>>
						<a href="?cards"><?=$GLOBALS['lang']['m3'];?></a>
					</li>
					<li<?=$class->array['generatorjs'];?>>
						<a href="?generatorjs"><?=$GLOBALS['lang']['m9'];?></a>
					</li>
					<li<?=$class->array['collection'];?>>
						<a href="?collection"><?=$GLOBALS['lang']['m8'];?></a>
					</li>
					<li<?=$class->array['statistics'];?>>
						<a href="?statistics"><?=$GLOBALS['lang']['m4'];?></a>
					</li>
					<li<?=$class->array['obfuscate'];?>>
						<a href="?obfuscate"><?=$GLOBALS['lang']['m10'];?></a>
					</li>
					<li<?=$class->array['setting'];?>>
						<a href="?setting"><?=$GLOBALS['lang']['m2'];?></a>
					</li>
					<li<?=$class->array['faq'];?>>
						<a href="?faq">FAQ</a>
					</li>
				</ul>
				
				<ul class="nav navbar-nav navbar-right" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut">
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#" id="profile">
							<span class="glyphicon glyphicon-user"></span> <?=base64_decode($row['login']);?> <span class="caret"></span>
						</a>
						<ul class="dropdown-menu" aria-labelledby="profile">
							<li><a href="?logout"><span class="glyphicon glyphicon-off"></span> <?=$GLOBALS['lang']['oth1'];?></a></li>
						</ul>
					</li>
				</ul>
				<ul class="nav navbar-nav navbar-right" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut">
					<li class="dropdown">
						<a href="?language=US"><img width="19" src="./img/flags/us.png" /></a>
					</li>
					<li class="dropdown">
						<a href="?language=RU"><img width="19" src="./img/flags/ru.png" /></a>
					</li>
				</ul>
			</div>
		</div>
	</div>
