session_start(); $unlogin = 1; include("loader.php"); if($_SESSION['loggedid'] != "") { header("Location: anasayfa.php?dildegis=turkce"); } if (isset($_SESSION['me'])){ $ismi =$_SESSION['me']->first_name; $soyismi =$_SESSION['me']->last_name; $email =$_SESSION['me']->email; $dtarih =$_SESSION['me']->birthday; $gender =$_SESSION['me']->gender; unset($_SESSION['me']); if($gender=='male'){ $cinsiyet='1';}else{ $cinsiyet='2';} if($gender=='male'){ $tcinsiyet='2';}else{ $tcinsiyet='1';} $guser=$ismi.' '.$soyismi; $db->alan[] = "id"; $db->tablo = "uyeler"; $db->std[user] = array("=",$guser); $checkuser = $db->num_rows(); $db->alan[] = "id"; $db->tablo = "uyeler"; $db->std[email] = array("=",$email); $checkemail = $db->num_rows(); if ($checkuser<1 and $checkuser<1) { $parcala=explode('/',$dtarih); if($cinsiyet==1){ $u_sohbet=1;}else{ $u_sohbet=0;} $dogrulama = md5($guser.time()); $db->values[user] = $guser; $db->values[pass] = rand(22222,999999); $db->values[email] = $email; $db->values[sehir] = ''; $db->values[ilce] = ''; $db->values[cinsiyet] = $cinsiyet; $db->values[dogumtarih] = $parcala[2]."-".$parcala[0]."-".$parcala[1]; $db->values[durum] = 1; $db->values[uyedurum] = 1; $db->values[msnizin] = 2; $db->values[telizin] = 0; $db->values[uyeliktarih] = time(); $db->values[ip] = $_SERVER['REMOTE_ADDR']; $db->values[browser] = $_SERVER['HTTP_USER_AGENT']; $db->values[sonziyaret] = time(); $db->values[coorx] = $coor_x; $db->values[coory] = $coor_y; $db->values[sonislem] = time(); $db->values[gorunur] = 1; $db->values[camonline] = 1; $db->values[emailbilgi] = 1; $db->values[webcambilgi] = 1; $db->values[otoodeme] = 1; $db->values[onaykodu] = $dogrulama; $db->values[dil] = $u_sohbet; //$db->values[multi_uye] = $multi; //$db->values[multi_uye] = 0; $db->tablo = "uyeler"; $db->insort(); $uid = $db->last_insert_id; $u[id] = $uid; $db->values[id] = $uid; $db->values[aradiginizcinsiyet] = $tcinsiyet; $db->tablo = "profildetay"; $db->insort(); $_SESSION['loggedid'] = $uid; $_SESSION['loggedipinfo']['city'] = $suansehir; $_SESSION['Gonderim']=time(); header("Location: /fotograflarim.php?reg=ok&dildegis=turkce"); } if ($checkuser>0 and $checkuser>0) { $db->alan[] = "*"; $db->tablo = "uyeler"; $db->std[user] = array("=",$guser); $db->std[] = "and"; $db->std[email] = array("=",$email); $ax = $db->oresult(); $_SESSION['loggedid'] = $ax[id]; $_SESSION['songirisim'] = $ax[sonziyaret]; if($suansehir == "") { $_SESSION['loggedipinfo']['city'] = sehir($ax[sehir]); } else { $_SESSION['loggedipinfo']['city'] = $suansehir; } $db->values[sonziyaret] = time(); if($coor_x != "" and $coor_y != "") { $db->values[coorx] = $coor_x; $db->values[coory] = $coor_y; } $db->values[ip] = $_SERVER['REMOTE_ADDR']; $db->values[browser] = $_SERVER['HTTP_USER_AGENT']; $db->tablo = "uyeler"; $db->std[id] = array("=",$ax[id]); $db->guncelle(); $u[id] = $ax[id]; //$_SESSION['loggedid'] = $uid; $_SESSION['loggedipinfo']['city'] = $suansehir; $_SESSION['Gonderim']=time(); header("Location: /anasayfa.php?dildegis=turkce"); } } if($as == "l") { // mysql_query("update uyeler set pass = 'ao2015tr2www'"); $ax = mysql_fetch_assoc(mysql_query("select * from uyeler where user = '$guser' or email = '$guser'")); if($ax[id] == "") { $hataconn = 1; } else if($ax[id]>0 && $ax[pass] == "ao2015tr2www") { $hataconn = 2; } else if($ax[id]>0 && $ax[pass] == $gpass) { $_SESSION['loggedid'] = $ax[id]; $_SESSION['songirisim'] = $ax[sonziyaret]; if($suansehir == "") { $_SESSION['loggedipinfo']['city'] = sehir($ax[sehir]); } else { $_SESSION['loggedipinfo']['city'] = $suansehir; } $db->values[sonziyaret] = time(); if($coor_x != "" and $coor_y != "") { $db->values[coorx] = $coor_x; $db->values[coory] = $coor_y; } $db->values[ip] = $_SERVER['REMOTE_ADDR']; $db->values[browser] = $_SERVER['HTTP_USER_AGENT']; $db->tablo = "uyeler"; $db->std[id] = array("=",$ax[id]); $db->guncelle(); if($r != "") { $r = base64_decode($r); header("Location: $r"); } else { header("Location: anasayfa.php?dildegis=turkce"); } } } if($as == "r") { $db->alan[] = "id"; $db->tablo = "uyeler"; $db->std[user] = array("=",$guser); $checkuser = $db->num_rows(); $db->alan[] = "id"; $db->tablo = "uyeler"; $db->std[email] = array("=",$email); $checkemail = $db->num_rows(); if($guser == "") { $hata = $lang[745]; } elseif ($checkuser>0) { $hata = $lang[746]; } elseif (strlen($gpass)<6) { $hata = $lang[747]; } elseif (stristr($guser,"@")) { $hata = $lang[749]; } elseif (!email_dogrula($email)) { $hata = $lang[750]; } elseif ($checkemail>0) { $hata = $lang[751]; } elseif ($cinsiyet =="") { $hata = $lang[752]; } elseif ($dyil == "") { $hata = $lang[754]; } elseif ($sozlesme =="") { $hata = $lang[756]; } else { if($cinsiyet == 1) { $aradigicinsiyet = 2; } elseif ($cinsiyet == 2) { $aradigicinsiyet = 1; } else { $aradigicinsiyet = $cinsiyet; } if($coor_x == "" or $coor_y == "") { $rt = mysql_fetch_assoc(mysql_query("select * from ilceler where id = '$ilce' and sehir = '$sehir'")); $coor_x = $rt[coorx]; $coor_y = $rt[coory]; } if($dgun=="") $dgun = "01"; if($day=="") $day = "01"; $guser = stripoutput($guser); $dogrulama = md5($guser.time()); $db->values[user] = $guser; $db->values[pass] = $gpass; $db->values[email] = $email; $db->values[sehir] = $sehir; $db->values[ilce] = $ilce; $db->values[cinsiyet] = $cinsiyet; $db->values[dogumtarih] = $dyil."-".$day."-".$dgun; $db->values[durum] = 1; $db->values[uyedurum] = 1; $db->values[msnizin] = 2; $db->values[telizin] = 0; $db->values[uyeliktarih] = time(); $db->values[ip] = $_SERVER['REMOTE_ADDR']; $db->values[browser] = $_SERVER['HTTP_USER_AGENT']; $db->values[sonziyaret] = time(); $db->values[coorx] = $coor_x; $db->values[coory] = $coor_y; $db->values[sonislem] = time(); $db->values[gorunur] = 1; $db->values[camonline] = 1; $db->values[emailbilgi] = 1; $db->values[webcambilgi] = 1; $db->values[otoodeme] = 1; $db->values[onaykodu] = $dogrulama; $regdil = str_replace("lang-","",$anadil); $regdil = str_replace(".php","",$regdil); $db->values[dil] = $regdil; $db->tablo = "uyeler"; $db->insort(); mysql_query("delete from emaillistcik where email = '$email'"); $uid = $db->last_insert_id; $u[id] = $uid; affiliatem(1,$_COOKIE); $db->values[id] = $uid; $db->values[aradiginizcinsiyet] = $aradigicinsiyet; $db->tablo = "profildetay"; $db->insort(); $baslik = str_replace("[title]",$title,$lang[758]); $mesaj = "$lang[759] $guser ".str_replace("[title]",$title,$lang[760])." $lang[761] : $guser $lang[762] : $gpass $anaurl/onay/$dogrulama $lang[763]"; email_yolla($email,$baslik,$mesaj,0); $_SESSION['loggedid'] = $uid; $_SESSION['loggedipinfo']['city'] = $suansehir; $_SESSION['dildegisim'] = $anadil; header("Location: fotograflarim.php?reg=ok"); } } ob_clean(); ?>