sitebaslik_tr; @$sitekelime_tr=@$okugenelayarlar->sitekelime_tr; @$siteaciklama_tr=@$okugenelayarlar->siteaciklama_tr; @$sitebaslik_en=@$okugenelayarlar->sitebaslik_en; @$sitekelime_en=@$okugenelayarlar->sitekelime_en; @$siteaciklama_en=@$okugenelayarlar->siteaciklama_en; @$sitesahibi=@$okugenelayarlar->sitesahibi; @mysql_free_result($sorgugenelayarlar); ?> '; $sonuc.=''; $sonuc.=UTF8::UTF8Yap('').''; $sonuc.=''.stripslashes($okumenu[$ismideg]).''; $sonuc.=''; } return $sonuc; } public function AnaMenuleriVer($lang) { $sormenu=mysql_query("SELECT menu_anaid,menu_ismi_$lang,menu_seo_$lang,menu_direklink,menu_yenipencere,menu_sira FROM menuler WHERE menu_anaid='0' ORDER BY menu_sira ASC"); $ismideg="menu_ismi_".$lang; $seodeg="menu_seo_".$lang; while($okumenu=mysql_fetch_array($sormenu)) { $link=$okumenu['menu_direklink']; if($okumenu['menu_yenipencere']=="E"){ $target="_blank"; } else{ $target="_self"; } $sonuc.=''.stripslashes($okumenu[$ismideg]).' | '; } return $sonuc; } } class GenelAyarlar { public function GenelAyarlariCek() { $sorgenelayarlar=mysql_query("SELECT * FROM genelayarlar"); $okugenelayarlar=mysql_fetch_array($sorgenelayarlar); $genelayar["sitebaslik"]=stripslashes($okugenelayarlar['baslik_tr']); $genelayar["sitekelime"]=stripslashes($okugenelayarlar['kelime_tr']); $genelayar["siteaciklama"]=stripslashes($okugenelayarlar['aciklama_tr']); $genelayar["sitetelif"]=stripslashes($okugenelayarlar['telifhakki_tr']); return $genelayar; } } class SiteAyarlari { public function SiteAyariVer($dil) { $sorsiteayar=mysql_query("SELECT sitebaslik_$dil,sitekelime_$dil,siteaciklama_$dil,sitemail FROM genelayarlar"); $okusiteayar=mysql_fetch_array($sorsiteayar); $baslikdeg="sitebaslik_".$dil; $kelimedeg="sitekelime_".$dil; $aciklamadeg="siteaciklama_".$dil; $siteayar[$baslikdeg]=stripslashes($okusiteayar[$baslikdeg]); $siteayar[$kelimedeg]=stripslashes($okusiteayar[$kelimedeg]); $siteayar[$aciklamadeg]=stripslashes($okusiteayar[$aciklamadeg]); $siteayar['sitemail']=stripslashes($okusiteayar['sitemail']); return $siteayar; } } function ayristir($message) { $message = nl2br($message); $message = str_replace("'", " ", $message); $message = str_replace("þ", "s", $message); $message = str_replace("ö", "o", $message); $message = str_replace("ü", "u", $message); $message = str_replace("ý", "i", $message); $message = str_replace("ç", "c", $message); $message = str_replace("ð", "g", $message); $message = str_replace("Þ", "s", $message); $message = str_replace("Ö", "o", $message); $message = str_replace("Ü", "u", $message); $message = str_replace("Ý", "i", $message); $message = str_replace("Ç", "c", $message); $message = str_replace("Ð", "g", $message); $message = str_replace("$", "", $message); $message = str_replace("&", "", $message); $message = str_replace("@", "", $message); $message = str_replace("^", "", $message); $message = str_replace("%", "", $message); $message = str_replace("+", "", $message); $message = str_replace("-", "", $message); $message = str_replace("*", "", $message); $message = str_replace("[", "", $message); $message = str_replace("]", "", $message); $message = str_replace("=", "", $message); $message = str_replace("?", "", $message); $message = str_replace("~", "", $message); $message = str_replace(";", "", $message); $message = str_replace(",", "", $message); $message = str_replace("!", "", $message); $message = str_replace("#", "", $message); $message = str_replace("(", "", $message); $message = str_replace(")", "", $message); $message = str_replace(">", "", $message); $message = str_replace("<", "", $message); $message = str_replace("|", "", $message); $message = str_replace("é", "", $message); $message = str_replace(":", "", $message); $message = str_replace("-", "", $message); $message = str_replace(".", "-", $message); return $message; } class SEO { public function SEOYap($seoicin) { $word = new UTF8(); $seoicin=$word->UTF8GeriVer($seoicin); $seoicin=str_replace('"','',$seoicin); $seoicin=str_replace(" ","-",$seoicin); $seoicin=str_replace("'", "", $seoicin); $seoicin = str_replace("$", "", $seoicin); $seoicin = str_replace("&", "", $seoicin); $seoicin = str_replace("@", "", $seoicin); $seoicin = str_replace("^", "", $seoicin); $seoicin = str_replace("%", "", $seoicin); $seoicin = str_replace("+", "", $seoicin); $seoicin = str_replace("*", "", $seoicin); $seoicin = str_replace("[", "", $seoicin); $seoicin = str_replace("]", "", $seoicin); $seoicin = str_replace("=", "", $seoicin); $seoicin = str_replace("?", "", $seoicin); $seoicin = str_replace("~", "", $seoicin); $seoicin = str_replace(";", "", $seoicin); $seoicin = str_replace(",", "", $seoicin); $seoicin = str_replace("!", "", $seoicin); $seoicin = str_replace("#", "", $seoicin); $seoicin = str_replace("(", "-", $seoicin); $seoicin = str_replace(")", "-", $seoicin); $seoicin = str_replace(">", "", $seoicin); $seoicin = str_replace("<", "", $seoicin); $seoicin = str_replace("|", "", $seoicin); $seoicin = str_replace("", "", $seoicin); $seoicin = str_replace(":", "", $seoicin); $seoicin = str_replace("/", "", $seoicin); $seoicin = str_replace("\\", "", $seoicin); $seoicin = str_replace(".", "-", $seoicin); $seoicin = str_replace(array('i', '', '', '', '', '', '', '', 'I', '', '', '', '', ''), array('i', 'i', 'u', 'g', 's', 'o', 'c', 'i', 'i', 'u', 'g', 's', 'o', 'c'), $seoicin); return strtolower($seoicin); } } ?>