Файл: system/head.php
Строк: 186
<?
$microtime = microtime(1);
echo'<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<link rel="icon" href="http://'.$set['home'].'/style/web/static/ui/img/favicon.ico">
<head>
<script type="text/javascript">!function(){var cookieName="resolution";var i,key,value,prevSet,cookies=document.cookie.split(";");function isCookieSet(){for(i=0;i<cookies.length;i++){key=cookies[i].substr(0,cookies[i].indexOf("="));value=cookies[i].substr(cookies[i].indexOf("=")+1);key=key.replace(/^s+|s+$/g,"");if(key==cookieName)return true}return false}prevSet=isCookieSet();document.cookie=cookieName+"="+screen.width+":"+screen.height+":"+(window.devicePixelRatio?window.devicePixelRatio:1)+"; path=/";if(navigator.cookieEnabled&&!prevSet)document.location.reload(true)}(document,screen);</script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css" />
<script src="http://'.$set['home'].'/style/web/static/ui/lib/jquery/2.1.4/jquery.min.js"></script>
<script src="http://'.$set['home'].'/style/web/static/ui/lib/underscore/1.8.3/underscore-min.js"></script>
<script src="http://'.$set['home'].'/style/web/static/ui/js/scripts.js"></script>
<script src="http://'.$set['home'].'/style/web/static/ui/js/core.js"></script>
<script src="http://'.$set['home'].'/style/web/static/ui/js/authorization.js"></script>
<script src="http://'.$set['home'].'/style/web/static/ui/js/projects/vote.js"></script>
<link href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/base.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/picol.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/non-responsive.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/styles.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/project.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/user-cabinet.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/search-server.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/my.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/responsive.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="http://'.$set['home'].'/style/web/static/ui/css/swipebox.min.css" rel="stylesheet">
<title>'.$title.' - '.$set['top_name'].'</title>
</head><body>';
echo"
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-15518922-18', 'auto');
ga('send', 'pageview');
</script>
<div class='container'>
<div id='stats'>
</div>
</div>
";
//<!-- Fixed navbar -->
echo'
<nav class="navbar navbar-default navbar-fixed-top" role="navigation" data-spy="affix" data-offset-top="160">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><img src="/img/logo.png" height="19" width="132" alt=""></a>
</div>
<div id="navbar" class="navbar-collapse collapse">';
echo'<ul class="nav navbar-nav">
<li><a href="/modules/category">Категории</a></li>
<li><a href="/modules/search">Поиск</a></li>
<li><a href="/modules/ban">Бан Лист</a></li>
<li><a href="/modules/news.php">Новости</a></li>
<li><a href="/modules/users.php">Пользователи</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">';
if($user_data)
{
echo'<ul class="nav navbar-nav navbar-right">
<li id="userLogoutWrap" class="dropdown user-menu">
<a href="#" class="dropdown-toggle usr-menu-lnk" data-toggle="dropdown"><img src="/images/ava.png" class="usr-menu-lnk__img" alt=""><span>'.$user_data['login'].'</span></a>
<div class="dropdown-menu usr-menu-popup">
<div class="usr-menu-popup__info">
<dl class="dl-horizontal">
<dt>Мой ID:</dt>
<dd>'.$user_data['id'].'</dd>
<dt>Мой баланс:</dt>
<dd>'.$user_data['balance'].' руб.</dd>
</dl>
</div>
<form id="logoutForm" method="POST" action="/accounts/logout/">
<ul class="list-unstyled usr-menu-popup__l">';
if($user_data['level'] == 2){
echo'<li><a href="/admin/index.php">Админ-панель</a></li>';
}
echo'<li><a href="/modules/office/settings">Мой профиль</a></li>
<li><a href="/modules/office/platforms">Мои проекты</a></li>
<li><a href="#">Платные услуги</a></li>
<li><i class="fa fa-sign-out"></i> <a href="/exit" id="logout">Выйти</a></li>
</ul>
</form>
</div>
</li>
</ul>';
}else{
echo'<li><a href="/modules/authentication" class="dropdown-toggle usr-login-lnk"><span>Вход</span></a></li>
<li><a href="/modules/rules" class="dropdown-toggle usr-login-lnk"><span>Регистрация</span></a></li>';
}
echo' </ul>
</div><!--/.nav-collapse -->
</div>
</nav>
';
//<!-- End of Fixed navbar -->
?>