$str) { if (function_exists("mb_substr")) $kelime = mb_substr($kelime, 0, $str, "UTF-8").'..'; else $kelime = substr($kelime, 0, $str).'..'; } return $kelime; } // Harfleri Büyütme function tr_up($str){ $str = str_replace('i', 'İ', $str); $str = str_replace('ı', 'I', $str); return $str; } function seoDescription($text, $limit = 160) { // HTML etiketlerini temizle $text = strip_tags($text); // Tırnak gibi karakterleri temizle $text = str_replace(['"', "'"], '', $text); // Baş ve sondaki boşlukları kırp $text = trim($text); // Uzunsa kısalt if (mb_strlen($text, 'UTF-8') > $limit) { // Önce limit kadar al $cut = mb_substr($text, 0, $limit, 'UTF-8'); // En son boşluk neredeyse oradan kes $lastSpace = mb_strrpos($cut, ' ', 0, 'UTF-8'); if ($lastSpace !== false) { $cut = mb_substr($cut, 0, $lastSpace, 'UTF-8'); } return $cut . ''; } return $text; } $urlsayfa = 'https://'.$_SERVER['SERVER_NAME']; $urlsayfatam = 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; include_once('class/basharflerikucultme.php'); require_once "class/seo_class.php"; // Seo require_once "class/tarih.php"; // tarih require_once "class/etiketolustur.php"; // Etiket Oluştur $seourl = new seo(); ?>prepare("SELECT * from siteayar "); $xsay2_slider_ayar->execute(array()); $sliderhome_ayar = $xsay2_slider_ayar->fetch(PDO::FETCH_OBJ); $ayar = json_decode($sliderhome_ayar->aciklama,true); function clearspace($string) { $string = preg_replace("/\s+/", "", $string); $string = trim($string); return $string; } ?> prepare("SELECT * from siteayar "); $xsay2_slider_ayar->execute(array()); $sliderhome_ayar = $xsay2_slider_ayar->fetch(PDO::FETCH_OBJ); $ayar = json_decode($sliderhome_ayar->aciklama,true); $xsay2mod = $db->prepare("SELECT * from anasayfa where id='1' "); $xsay2mod->execute(array()); $xsyfamod = $xsay2mod->fetch(PDO::FETCH_OBJ); $baslikmod = json_decode($xsyfamod->aciklama,true); $title_s = $ayar['sayfatitle']; $description_s = $ayar['description']; $keywords_s = $ayar['keywords']; $og_title = $ayar['sayfatitle']; $og_description = $ayar['description']; $twitter_title = $ayar['sayfatitle']; $twitter_description = $ayar['twitter_description']; $twitter_hashtags = $ayar['twitter_hashtags']; $altetiketi = $ayar['altetiketi']; $sorularlink = "#"; ?> tur == 1) { include('sayfadetay.php'); exit; } if ($xsyfamod->tur == 2) { include('blog.php'); exit; } if ($xsyfamod->tur == 3) { include('galeri.php'); exit; } if ($xsyfamod->tur == 5) { header("Location: /"); exit; } if ($xsyfamod->tur == 6) { include('googleyorumlari.php'); exit; } ?>