<?php define('access',"False"); 
require_once ("include/connect.php"); require_once ("include/tarihfonksiyonu.php"); require_once ("include/zamanfonksiyonu.php");
$getseo = htmlspecialchars($_GET['seo'], ENT_QUOTES, 'utf-8');
$yaziCek = $conn->prepare("select * from blog where seo = ? and durum = ?");
$yaziCek->execute(array($getseo, 'Aktif'));
$yaziYaz = $yaziCek->fetch();
$url	= $yaziYaz['id'];
$hit = $yaziYaz['hit'];
$a = $hit+1;
$guncelle = $conn->prepare("update blog set hit = ? where id = ?");
$guncelle->execute(array($a, $url));

if(!$url){
Header("Location:".$SiteBilgi['siteurl']."404.php"); exit();
}
if($yaziYaz["seo"] != $_GET["seo"]){
Header("Location:".$SiteBilgi['siteurl']."404.php"); exit();
}
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<base href="<?php echo $SiteBilgi["siteurl"]; ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title><?php echo $yaziYaz["baslik"]; ?></title>
<meta name="keywords" content="<?php echo $yaziYaz["anahtar"]; ?>" />
<meta name="description" content="<?php $metin = mb_substr($yaziYaz['aciklama'],0,170).''; echo strip_tags($metin); ?>">
<link rel="amphtml" href="<?php echo $SiteBilgi["ampurl"]; ?>escort/<?php echo $yaziYaz["seo"]; ?>" />
<link rel="canonical" href="<?php echo $SiteBilgi["siteurl"]; ?>escort/<?php echo $yaziYaz["seo"]; ?>" />
<?php echo $SiteBilgi["head"]; ?>
<link rel="icon" href="img/favicon.png">
<link rel="stylesheet" href="css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/site.php">
<link href="vendor/lity/lity.css" rel="stylesheet"/>
<script src="vendor/lity/jquery.js"></script>
<script src="vendor/lity/lity.js"></script>
<script src="js/jquery-1.10.2.js"></script>
<script src="js/anasayfa.js"></script>
<script type="application/ld+json">{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "<?php echo $yaziYaz['baslik']; ?>",
"author": "Gerçek Escort Bayan İlanları",
"datePublished":"<?php echo $yaziYaz['yil']; ?>-<?php echo $yaziYaz['tarih']; ?>T<?php echo $yaziYaz['saat']; ?>+00:00",
"dateModified":"<?php echo date('Y-m-d'); ?>T<?php echo date('H:i:s'); ?>+00:00",
"dateline": "Istanbul, TR",
"mainEntityOfPage": "true",
"articleSection": "Internet",
"articleBody": "<?php echo $yaziYaz['baslik']; ?> - <?php echo $SiteBilgi["logoyazi"]; ?>",
"image": {
"@type": "imageObject",
"url": "<?php echo $SiteBilgi["siteurl"]; ?>BlogResim/<?php echo $yaziYaz['resim']; ?>",
"height": "400",
"width": "300"
},
"publisher": {
"@type": "Organization",
"name": "Gerçek Escort Bayan İlanları",
"logo": {
"@type": "imageObject",
"url": "<?php echo $SiteBilgi["siteurl"]; ?>BlogResim/<?php echo $yaziYaz['resim']; ?>"
}
}
}</script>
</head>
<body id="top">
<?php include('include/ustmenu.php'); ?>
<div class="Header_Alani">
<h1><?php echo $yaziYaz["baslik"]; ?></h1>
</div>
<div class="container">
<div class="col-md-8">				
<div class="well"> 
<div class="row">
<div class="col-md-12">              
<div class="pull-left col-md-4 col-xs-12 thumb-contenido">
<a href="<?php if($yaziYaz['resim'] != ''){ echo 'BlogResim/'.$yaziYaz['resim']; }else{ echo 'img/resimsiz.jpg'; } ?>" data-lity><img class="center-block img-responsive img-thumbnail" src='<?php if($yaziYaz['resim'] != ''){ echo 'BlogResim/'.$yaziYaz['resim']; }else{ echo 'img/resimsiz.jpg'; } ?>' alt="<?php echo $yaziYaz["baslik"]; ?>"/></a></div>
<div id="YaziDetay">
<?php echo $yaziYaz['aciklama']; ?>
</div><hr/>
<small><?php echo turkcetarih('j F Y',$yaziYaz['yil'].'-'.$yaziYaz['tarih']); ?> tarihinde yayınlandı, <?php echo $yaziYaz["hit"]; ?> kez okundu</small>
</div>
</div>
</div>
<div class="item-content-block tags">
<span class="btn btn-xs btn-danger disabled">ETİKETLER</span>  
<?php $TagSql = $conn->prepare("SELECT DISTINCT seo id,baslik,seo,konu FROM etiketler WHERE konu = ?");  
$TagSql->execute(array($yaziYaz['id']));
while ( $Etiket = $TagSql->fetch() ){
echo '<a class="button" href="etiket/'.$Etiket['seo'].'" data-toggle="tooltip" title="'.$Etiket['baslik'].'"/>'.$Etiket['baslik'].'</a> '; 
} ?>
</div>
</div>
<div class="col-md-4">	
<?php include('include/sidebar.php'); ?>			
</div>		
<div class="temizle"></div>
<?php include('include/alt.php'); ?>
</div><!--/.container-->
<script src="js/bootstrap.js"></script>
</body>
</html>