PHP config <?php
//DB baglanti
function db_baglanti()
{
$db_host = "localhost";
$db_kullanici = "****"; // Db kullanici adiniz
$db_sifre = "*****"; // Db sifreniz
$db_adi = "*****"; // Db adiniz
$baglanti = @mysql_connect($db_host,$db_kullanici,$db_sifre);
if(!$baglanti){ die("Database Bağlantısı Sağlanamadı: " . mysql_errno()); }
$select = @mysql_select_db($db_adi,$baglanti);
if(!$select){ die("Database Seçilemedi: " . mysql_errno()); }
@mysql_query("SET NAMES 'latin5'");
@mysql_query("SET CHARACTER SET latin5");
@mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'");
@mysql_free_result($baglanti);
}
if(file_exists("../install.php")):
$log = explode('/',$_SERVER['PHP_SELF']);
if($log[2] != "install.php"):
header("Location: install.php");
exit;
endif;
endif;
?>