<?php

	# mark core  v1.0
    # author Drk in
	# date 24.10.19 

	echo '
	<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta http-equiv="Content-Language" content="ru" />
	<meta name="apple-mobile-web-app-capable" content="yes" />

	<meta name="description" content="'.$description.'" />
	<meta name="keywords" content="'.$keywords.'"/>	

	<meta name="apple-mobile-web-app-capable" content="yes" />

	<meta property="og:site_name" content="'.$title.'" />
	<meta property="og:title" content="'.$title.'">
	<meta property="og:type" content="video.adult">
	<meta property="og:locale" content="ru_RU" />
	<meta property="og:url" content="http://'.domain.'">
	<meta property="ya:ovs:adult" content="true" />
	<meta property="ya:ovs:status" content="published" />
	<meta property="ya:ovs:login" content="AJAL" />	
	<meta property="og:description" content="'.$description.'">
	<meta property="og:image" content="http:'.ico.'logo.png">	
	<meta property="ya:ovs:available_platform" content="Mobile" />
	<meta property="ya:ovs:allow_embed" content="false" />
	<meta property="ya:ovs:languages" content="ru" />
	<meta property="ya:ovs:feed_url" content="http://'.domain.''.system::check($_SERVER['REQUEST_URI']).'" />

	<title>'.$title.'</title>	

	<meta name="robots" content="INDEX,ALL" />
	<meta name="document-state" content="dynamic" />
	<meta name="revisit-after" content="1 days" />
	<link rel="shortcut icon" href="'.ico.'favicon.ico" />
	<link href="'.site.'css/style.css" rel="stylesheet">
	<link rel="canonical" href="http://'.domain.''.system::check($_SERVER['REQUEST_URI']).'" />
	<link rel="alternate" type="application/rss+xml" title="'.$title.'" href="http://'.domain.'/sitemap.xml" />

	</head>
	<body>

	<div class="logo">
	<a href="/"><img src="'.ico.'logo.png" alt="'.domain.'" rel="nofollow"></a>
	</div>

	'.($_SERVER['PHP_SELF'] == '/index.php' ? '<div class="block">
	'.(isset($user) ? '
	'.($user['admin'] == 1 ? '<a href="'.site.'admin" class="login">Админка</a>':'').'
	<a href="'.site.'office" class="login">Кабинет</a>
	<a href="'.site.'exit/CK'.$user['CK'].'" class="login">Выход</a>
	':'
	<a href="'.site.'aut" class="login">Вход</a>
	<a href="'.site.'reg" class="login">Регистрация</a>').'
	<a href="'.site.'pay/gold" class="login">Покупка GOLD</a>
	</div>':'').'

	'.($tl != null ? '<div class="block">'.$tl.'</div>':'').'
	'.(isset( $_SESSION['err'] ) ? '<div class="err">'.$_SESSION['err'].'</div>':'').'
	'.(isset( $_SESSION['show'] ) ? '<div class="show">'.$_SESSION['show'].'</div>':'').'
	';

?>

