Файл: Space race/admin/header.php
Строк: 123
<?php ob_start(); ?>
<?php if (!isset($_SESSION)) session_start(); ?>
<?php include_once(dirname(dirname(__FILE__)) . '/classes/translate.class.php'); ?>
<?php include_once(dirname(__FILE__) . '/classes/functions.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Админ панель</title>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="../assets/css/bootstrap.min.css" rel="stylesheet">
<link href="../css/fonts.css" rel="stylesheet">
<link href="../assets/css/sr3d.css" rel="stylesheet">
<link href="assets/css/datepicker.css" rel="stylesheet">
<link href="assets/js/select2/select2.css" rel="stylesheet">
<link href="assets/css/prettify.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!-- Added library to header in order to load reports -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>
<body>
<!-- Navigation
================================================== -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">МЕНЮ</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.php">Star Race 3D</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav" id="findme">
<li><a href="index.php">Панель управления</a></li>
<li><a href="settings.php">Настройки</a></li>
<li><a href="../profile.php">Мой аккаунт</a></li>
</ul>
<?php if(isset($_SESSION['starrace']['username'])) { ?>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<p class="navbar-text dropdown-toggle" data-toggle="dropdown" id="userDrop"><?php echo $_SESSION['starrace']['gravatar']; ?> <a href="#"><?php echo $_SESSION['starrace']['username']; ?></a><b class="caret"></b></p>
<ul class="dropdown-menu">
<?php if(in_array(1, $_SESSION['starrace']['user_level'])) { ?>
<li><a href="index.php"><i class="glyphicon glyphicon-home"></i> Панель управления</a></li>
<li><a href="settings.php"><i class="glyphicon glyphicon-cog"></i> Настройки</a></li> <?php } ?>
<li><a href="../profile.php"><i class="glyphicon glyphicon-user"></i> Мой аккаунт</a></li>
<li><a href="../help.php"><i class="glyphicon glyphicon-info-sign"></i> Помощь</a></li>
<li class="divider"></li>
<li><a href="../logout.php">Выход</a></li>
</ul>
</li>
</ul>
<?php } else { ?>
<ul class="nav navbar-nav navbar-right">
<li><a href="../login.php" class="signup-link"><em>Уже зарегистрированы?</em> <strong>Войти</strong></a></li>
</ul>
<?php } ?>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
</nav>
<!-- Main content
================================================== -->
<div class="container">
<div class="row">
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="<?php echo strstr($_SERVER['SCRIPT_NAME'], 'settings') !== false ? 'settings.php' : 'index.php' ?>"><?php _e(strstr($_SERVER['SCRIPT_NAME'], 'settings') !== false ? 'Настройки' : 'Панель управления'); ?></a></li>
<?php if (strstr($_SERVER['SCRIPT_NAME'], 'users.php') !== false): ?>
<li><a href="index.php#/user-control">Пользователи</a></li>
<li class="active"><?php echo !empty($_GET['uid']) ? $_GET['uid'] : -1; ?></li>
<?php endif ?>
<?php if (strstr($_SERVER['SCRIPT_NAME'], 'levels.php') !== false): ?>
<li><a href="index.php#/level-control">Группы</a></li>
<li class="active"><?php echo !empty($_GET['lid']) ? $_GET['lid'] : -1; ?></li>
<?php endif ?>
</ol>