","refresh","location","\n","?","&","'","select","SELECT",",","txt","php","html","."); $dkod = array("","","","","","","","","","","","
","","","","","","","","","",""); $ykod = str_replace($gkod,$dkod,$text); return $ykod; } //############################################## MODULE DOSYALARINI ÇAĞIRIYORUZ###################################################################### function module($module) { if (temizle($module) == ""){ include "./module/main.php"; } else { $varmi = file_exists("./module/".$module.".php"); if (!$varmi){echo "
Modül Yok Yada Aktif Değil. !
";}else{ include "./module/".$module.".php"; }} } //############################################## MESAJ FONKSÝYONU #########################################################################################- function mesaj($mesaj,$geri_adres){ echo '
'.$mesaj.'
'; } //############################################## MESAJ HATA FONKSÝYONU #########################################################################################- function hata($mesaj){ echo '

'.$mesaj.'

'; } function resize($hedef,$resim,$yukseklik,$genislik,$khedef) { if($khedef=="") { $khedef = $hedef; } // alt iki satýrda dosyayý belirliyor be onu % kaç resize edicemiyi yazýoruz. $filename = $hedef.'/'.$resim; $percent = 0.10; list($width, $height) = getimagesize($filename); // Yüksekliðe Göre Resize $newwidth = (int)($width/($height/$yukseklik)); // artýk kaynaðý yeni boyutlarý ile ayarladýk. $thumb = imagecreatetruecolor($newwidth, $yukseklik); $source = imagecreatefromjpeg($filename); // resim bu bölümde son halini yani yeni boyutlarýný aldý imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $yukseklik, $width, $height); // ve dosyayý istenen % olarak kalite ile istenen adrese kaydettik imagejpeg($thumb, "$khedef/".$resim."", 100); /// $filename = $khedef.'/'.$resim; list($width, $height) = getimagesize($filename); //echo $width."
".$height."

"; if($width>$genislik) { $filename = $khedef.'/'.$resim; $percent = 0.5; // Geniþliðe Göre Resize $newheight = (int)($height/($width/$genislik)); // artýk kaynaðý yeni boyutlarý ile ayarladýk. $thumb = imagecreatetruecolor($genislik, $newheight); $source = imagecreatefromjpeg($filename); // resim bu bölümde son halini yani yeni boyutlarýný aldý imagecopyresampled($thumb, $source, 0, 0, 0, 0, $genislik, $newheight, $width, $height); imagejpeg($thumb, "$khedef/".$resim."", 75); list($width, $height) = getimagesize($filename); //echo $width."
".$height."

"; } } ############################################## GOOGLE SEO İÇİN CANONİCAL LİNK ######################################################################################### function site_URL(){ $tam_adres = $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; $bolunmus = explode("/", $tam_adres); echo "http://".$bolunmus[0]; } function site_link(){ $tam_link = $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; $parcalanmis = explode("/", $tam_link); echo "www.".$parcalanmis[0]; } ############################################## SAYFA LİNK FONKSİYONU REPLACE ETTİRME (URL) ######################################################################################### function link_donustur($gelen_deger){ $gelen_deger = str_replace(" ","-",$gelen_deger); $gelen_deger = str_replace("ş","s",$gelen_deger); $gelen_deger = str_replace("ı","i",$gelen_deger); $gelen_deger = str_replace("ğ","g",$gelen_deger); $gelen_deger = str_replace("ç","c",$gelen_deger); $gelen_deger = str_replace("ö","o",$gelen_deger); $gelen_deger = str_replace("ü","u",$gelen_deger); $gelen_deger = str_replace("A","a",$gelen_deger); $gelen_deger = str_replace("B","b",$gelen_deger); $gelen_deger = str_replace("C","c",$gelen_deger); $gelen_deger = str_replace("Ç","c",$gelen_deger); $gelen_deger = str_replace("D","d",$gelen_deger); $gelen_deger = str_replace("E","e",$gelen_deger); $gelen_deger = str_replace("F","f",$gelen_deger); $gelen_deger = str_replace("G","g",$gelen_deger); $gelen_deger = str_replace("Ğ","g",$gelen_deger); $gelen_deger = str_replace("H","h",$gelen_deger); $gelen_deger = str_replace("I","i",$gelen_deger); $gelen_deger = str_replace("İ","i",$gelen_deger); $gelen_deger = str_replace("J","j",$gelen_deger); $gelen_deger = str_replace("K","k",$gelen_deger); $gelen_deger = str_replace("L","l",$gelen_deger); $gelen_deger = str_replace("M","m",$gelen_deger); $gelen_deger = str_replace("N","n",$gelen_deger); $gelen_deger = str_replace("O","o",$gelen_deger); $gelen_deger = str_replace("Ö","o",$gelen_deger); $gelen_deger = str_replace("P","p",$gelen_deger); $gelen_deger = str_replace("R","r",$gelen_deger); $gelen_deger = str_replace("S","s",$gelen_deger); $gelen_deger = str_replace("Ş","s",$gelen_deger); $gelen_deger = str_replace("T","t",$gelen_deger); $gelen_deger = str_replace("U","u",$gelen_deger); $gelen_deger = str_replace("Ü","u",$gelen_deger); $gelen_deger = str_replace("V","v",$gelen_deger); $gelen_deger = str_replace("Y","y",$gelen_deger); $gelen_deger = str_replace("Z","z",$gelen_deger); $gelen_deger = str_replace("W","w",$gelen_deger); $gelen_deger = str_replace("X","x",$gelen_deger); $gelen_deger = str_replace("Q","q",$gelen_deger); $gelen_deger = str_replace(";","-",$gelen_deger); $gelen_deger = str_replace(":","-",$gelen_deger); $gelen_deger = str_replace(",","-",$gelen_deger); $gelen_deger = str_replace("(","-",$gelen_deger); $gelen_deger = str_replace(")","-",$gelen_deger); $gelen_deger = str_replace("´","-",$gelen_deger); $gelen_deger = str_replace("/","-",$gelen_deger); $gelen_deger = str_replace(".","-",$gelen_deger); $gelen_deger = str_replace("?","-",$gelen_deger); $gelen_deger = str_replace("+","-",$gelen_deger); $gelen_deger = str_replace("|","-",$gelen_deger); $gelen_deger = str_replace("â","a",$gelen_deger); $gelen_deger = str_replace("Â","a",$gelen_deger); $gelen_deger = str_replace("û","u",$gelen_deger); $gelen_deger = str_replace("Û","u",$gelen_deger); $gelen_deger = str_replace("î","i",$gelen_deger); $gelen_deger = str_replace("Î","i",$gelen_deger); $gelen_deger = str_replace("&","-",$gelen_deger); $gelen_deger = str_replace("'","-",$gelen_deger); $gelen_deger = str_replace("<","-",$gelen_deger); $gelen_deger = str_replace(">","-",$gelen_deger); echo $gelen_deger.".html"; } ############################################## VERİ TABANINDAN GELEN TARİHİ İSTENİLEN FORMATA ÇEVİRME FONKSİYONU ######################################################################################### function urun_tarih($gelen_tarih){ $parcalanmis_tarih = explode("-", $gelen_tarih); if ($parcalanmis_tarih[1] == "01") { $ay = "Ocak"; } if ($parcalanmis_tarih[1] == "02") { $ay = "Şubat"; } if ($parcalanmis_tarih[1] == "03") { $ay = "Mart"; } if ($parcalanmis_tarih[1] == "04") { $ay = "Nisan"; } if ($parcalanmis_tarih[1] == "05") { $ay = "Mayıs"; } if ($parcalanmis_tarih[1] == "06") { $ay = "Haziran"; } if ($parcalanmis_tarih[1] == "07") { $ay = "Temmuz"; } if ($parcalanmis_tarih[1] == "08") { $ay = "Ağustos"; } if ($parcalanmis_tarih[1] == "09") { $ay = "Eylül"; } if ($parcalanmis_tarih[1] == "10") { $ay = "Ekim"; } if ($parcalanmis_tarih[1] == "11") { $ay = "Kasım"; } if ($parcalanmis_tarih[1] == "12") { $ay = "Aralık"; } echo $parcalanmis_tarih[1]." ".$ay.",  ".$parcalanmis_tarih[2]; } function stok($stok_durumu){ if($stok_durumu <= "0"){ echo " Stokta yok !"; }else{ echo "Stokta Var "."(".$stok_durumu.")"; } } ?> Anasayfa | ParkeM | Parke & Mimarlık