Файл: trus/system/header.php
Строк: 126
<?php
echo '<!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">
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no"/>
<meta name="keywords" content="Файлообменник , files , wap , web , tk , file , файлы , импорт , загрузка , хранение файлов , прочее">
<meta name="description" content="IooI - это файлообменник в катором ты можешь хранить свои нужные файлы более 3 месяцев . Быстрая загрузка и у добный функционал порадуют тебя .">';
?>
<!-- Bootstrap 4 CSS -->
<link rel="stylesheet" href="/style/css/bootstrap.css">
<link rel="stylesheet" href="/style/css/tether.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/style/css/style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="shortcut icon" href="/style/icons/special.png" />
<link rel="stylesheet" href="/css/animation.css" type="text/css" />
<link rel="stylesheet" href="/css/iooi.css" type="text/css" />
<link rel="stylesheet" href="/design/css/iooi-codes.css" type="text/css" />
<link rel="stylesheet" href="/design/css/iooi-embedded.css" type="text/css" />
<link rel="stylesheet" href="/design/css/iooi-ie7.css" type="text/css" />
<link rel="stylesheet" href="/design/css/iooi-ie7-codes.css" type="text/css" />
<script src="/style/js/jquery.min.js" ></script>
<script src="/style/js/materialize.js" ></script>
<script src="/style/js/bootstrap.js" ></script>
<script src="/style/js/drop.js" ></script>
<script src="/style/js/tether.js" ></script>
<script type="text/javascript" src="http://vk.com/js/api/share.js?93" charset="windows-1251"></script>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
$('#myTab a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})
</script>
<?
Echo '
<title>'. $title .'</title></head><body>';
##Блок рекламы
if (empty($user['max'])) $user['max']=10;
$max = $user['max'];
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `ads`"),0);
$k_page = k_page($k_post,$max);
$page = page($k_page);
$start = $max*$page-$max;
$qwerty = mysql_query("SELECT * FROM `ads` ORDER BY `id` DESC LIMIT $start, $max");
if($rek != 3) {
echo "<div class='list-group-item list-group-item-warning'>";
while($sql = mysql_fetch_assoc($qwerty)){
echo '<span class="icon-star"> </span><a href="'.$sql['url'].'">';
echo $sql['name']
;
echo '</a> <br>';
if($rek > 3) ;
}
echo '</div>';
}
if(!$user['id']) {
echo '
<nav class="navbar navbar-light" style="
background-color: #FFF;
border: 1px #e1e8ed solid;">
<ul class="nav navbar-nav">
<div class="bd-example">
<a class="btn btn-primary btn-sm" href="/user/login.php"><i class="fa fa-sign-in fa-fw"></i> Войти</a>
<a class="btn btn-secondary btn-sm" href="/user/registr.php"><i class="fa fa-user-plus fa-fw"></i> Создать аккаунт</a>
</div>
</ul>
</nav> ';
}else {
if (@$_GET['del'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `mess` WHERE `id` = '" . intval($_GET['del']) . "'"), 0) == 1) {
$post = mysql_fetch_assoc(mysql_query("SELECT * FROM `mess` WHERE `id` = '" . intval($_GET['del']) . "' LIMIT 1"));
mysql_query("DELETE FROM `mess` WHERE `id` = '$post[id]'");
}
$q = mysql_result(mysql_query("SELECT COUNT(*) FROM `mess` WHERE `id_kont` = '$user[id]' AND `read` = '0'"), 0);
if ($q != 0) {
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `mess` WHERE `id_kont` = '" . $user['id'] . "'"), 0);
$k_page = k_page($k_post, $set['p_str']);
$page = page($k_page);
$start = $set['p_str'] * $page - $set['p_str'];
$qis = mysql_query("SELECT * FROM `mess` WHERE `id_kont` = '" . $user['id'] . "' ORDER BY id DESC LIMIT 1");
while ($post = mysql_fetch_array($qis)) {
echo "<div class='list-group-item list-group-item-info'>";
echo "<div style='float:right' id='hides'>";
echo "<a href = '?del=$post[id]' data-toggle='tooltip' data-placement='left' title='Очистить'><i class='material-icons'>clear_all</i></a>";
echo "</div>";
echo "<i class='material-icons'>chat_bubble</i> " . toOutput($post['msg']) . "<br />";
echo "</div>";
}
}
echo "<nav class='navbar navbar-light' style='
background-color: #009688;
color: #fff;'>";
echo "<ul class='nav navbar-nav'>";
echo "<li class='nav-item'><i class='fa fa-user fa-fw'></i> ".$user[login]."</li>";
#уведомления о сообщениях
$mail = mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `id_kont` = '$user[id]' AND `read` = '0' AND `deleted` != '$user[id]' AND `deleted` != '-1' AND `flaggedTo` = 'inbox'"), 0);
if ($mail != 0) {
echo "<li class='nav-item'><a href='/user/mail/' class='nav-link'><i class='fa fa-envelope fa-fw'></i> $mail</a></li>";
}
echo '
<div class="modal fade bd-example-modal-sm" id="menu_aut" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-sm">
<a class="list-group-item" href="/index.php"><i class="fa fa-home fa-fw"></i> Главная</a>
<a class="list-group-item" href="/user/cab.php"><i class="fa fa-cogs fa-fw"></i> Кабинет </a>';
if ($user['level'] == 3) {
echo '<a class="list-group-item" href="/user/mail/"><i class="fa fa-envelope fa-fw"></i> Сообщения</a>';
echo ' <a class="list-group-item" href="/user/panel.php"><i class="fa fa-th fa-fw"></i>Панель управления </a>';
}
echo ' <a class="list-group-item" href="/user/exit.php"><i class="fa fa-sign-in fa-fw"></i> Выход</a>
</div>
</div>
<div class="dropdown" style="float: right;">
<span data-toggle="tooltip" data-placement="left" title="Меню"><a data-toggle="modal" data-target="#menu_aut" class="nav-link">
<i class="fa fa-navicon"></i>
</a>
</span>
</div>
</ul>
</nav>
';
}
$t = microtime(1);
?>