// ÜYE KAYIT
if ($_POST['kk_kayit']) {
$vd_k = "uye";
$kk_adi = htmlspecialchars($_POST['kk_adi'],ENT_QUOTES);
$kk_sifre = md5($_POST['kk_sifre']);
$kk_sifre_2 = md5($_POST['kk_sifre_2']);
$kk_kontrol=mysqli_query($baglan, "select * from $vd_k where kullanici_adi='$kk_adi'");
$kk_onay=mysqli_num_rows($kk_kontrol);
if (($_POST['kk_adi']) && ($_POST['kk_sifre']) && ($_POST['kk_sifre_2'])) {
if ($kk_sifre==$kk_sifre_2) {
if ($kk_onay=="1") {
header('Location:set/user/data/kayit.php?reg=kk');
} else {
$vd_logger_kayit = "ayarlar";
$u_ekle_kayit=mysqli_query($baglan, "select * from $vd_logger_kayit where kayit='1'");
$u_sorgu_kayit=mysqli_num_rows($u_ekle_kayit);
if ($u_sorgu_kayit=="1") {
$çke_sonuç = çke_kod_uret();
$ekle=mysqli_query($baglan, "INSERT INTO $vd_k (ip,kullanici_adi,kullanici_sifre,cke) VALUES ('$ip', '$kk_adi', '$kk_sifre', '$çke_sonuç')");
if ($ekle) {
header('Location:set/user/data/giris.php?reg=ok');
} else {
header('Location:set/user/data/kayit.php?reg=no');
}
}else {
header('Location:set/user/data/kayit.php?reg=block');
}
}
} else {
header('Location:set/user/data/kayit.php?reg=pas');
}
} else {
header('Location:set/user/data/kayit.php?reg=bos');
}
}
//