<?
$keywords = isset($keywords) ? htmlspecialchars($keywords) : 'Jesk, Павел Желобцов';
$description = isset($description) ? htmlspecialchars($description) : 'Личный блог Павла Желобцова';
echo '<!-- Копирование материалов сайта запрещено! -->' .
    "\n" . '<!-- Гадов-плагиаторов прибью насмерть! -->' .
    "\n" . '<!DOCTYPE html>' .
    "\n" . '<html lang="ru">' .
    "\n" . '<head>' .
    "\n" . '<meta charset="utf-8">' .
    "\n" . '<title>' . $title . '</title>' .
    "\n" . '<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">' .
    "\n" . '<link rel="icon" href="/favicon.ico" type="image/x-icon">' .
   "\n" . '<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">' .
    "\n" . '<link rel="stylesheet" href="/bootstrap/css/font-awesome.min.css">' .
    "\n" . '<link rel="stylesheet" href="/design/style.css">' .
    "\n" . '<script src="/bootstrap/js/jquery.min.js"></script>' .
    "\n" . '<meta http-equiv="X-UA-Compatible" content="IE=edge">' .
    "\n" . '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes">' .
    "\n" . '<meta name="HandheldFriendly" content="true">' .
    "\n" . '<meta name="MobileOptimized" content="width">' .
    "\n" . '<meta content="yes" name="apple-mobile-web-app-capable">' .
    "\n" . '<meta name="apple-mobile-web-app-title" content="JESK.INFO">' .
    "\n" . '<meta name="application-name" content="JESK.INFO">' .
    "\n" . '<meta name="msapplication-config" content="/browserconfig.xml">' .
    "\n" . '<meta name="msapplication-TileColor" content="#59a4a2">' .
    "\n" . '<meta name="msapplication-TileImage" content="/img/icons/apple/ms-icon-144x144.png">' .
    "\n" . '<meta name="theme-color" content="#59a4a2">' .
    "\n" . '<meta name="Generator" content="JESK.INFO">' .
    "\n" . '<meta name="Author" content="Jesk">' .
    "\n" . '<meta name="Reply-to" content="Jcms@List.Ru">' .
    "\n" . '<meta name="Copyright" content="JESK.INFO">' .
    "\n" . '<meta name="keywords" content="' . $keywords . '">' .
     "\n" . '<meta name="description" content="' . $description . '">' .
    "\n" . '<meta property="og:title" content="' . $title . '">' .
    "\n" . '<meta property="og:description" content="' . $description . '">' .
    "\n" . '<meta property="og:image" content="/img/icons/apple/apple-icon-precomposed.png">' .
    "\n" . '<link rel="apple-touch-icon-precomposed" href="/img/icons/apple/apple-icon-precomposed.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="57x57" href="/img/icons/apple/apple-icon-57x57.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="60x60" href="/img/icons/apple/apple-icon-60x60.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="72x72" href="/img/icons/apple/apple-icon-72x72.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="76x76" href="/img/icons/apple/apple-icon-76x76.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="114x114" href="/img/icons/apple/apple-icon-114x114.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="120x120" href="/img/icons/apple/apple-icon-120x120.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="144x144" href="/img/icons/apple/apple-icon-144x144.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="152x152" href="/img/icons/apple/apple-icon-152x152.png">' .
    "\n" . '<link rel="apple-touch-icon" sizes="180x180" href="/img/icons/apple/apple-icon-180x180.png">' .
    "\n" . '<link rel="icon" type="image/png" sizes="192x192"  href="/img/icons/apple/android-icon-192x192.png">' .
    "\n" . '<link rel="icon" type="image/png" sizes="32x32" href="/img/icons/apple/favicon-32x32.png">' .
    "\n" . '<link rel="icon" type="image/png" sizes="96x96" href="/img/icons/apple/favicon-96x96.png">' .
    "\n" . '<link rel="icon" type="image/png" sizes="16x16" href="/img/icons/apple/favicon-16x16.png">' .
    "\n" . '<link rel="manifest" href="/img/icons/apple/manifest.json">' .
    "\n" . '</head><body><div class="head center"><a href="/"><img src="/img/logo.png" alt="JESK.INFO" class="icon"/></a></div>';
$t = microtime(1);
// Проверка на блокировку аккаунта
if ($user->blocking == 1){
echo $div->div_err.'<span style="color: #DD0000">Аккаунт заблокирован</span></div>';
include_once 'foot.php';
exit;
}
echo '<div class="mhead">';
if (!isset($_SESSION['user_id'])) {
    echo '<a href="/login">Авторизация</a><a href="/reg">Регистрация</a></div>';
} else {
	echo '<a href="/pages/user/user.cabinet.php">Личное</a><a href="/?exit">Выход</a>';

echo '</div><div class="maintxt">';
mysql_query("UPDATE `user` SET `time_last` = '". time() ."' WHERE `id` = '". $user->id ."' LIMIT 1");
}
?>