📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv10.demodesign.com.tr
/
includes
/
post
/
users
📝
registerpost.php
← Geri Dön
<?php /* * @ https://EasyToYou.eu - IonCube v11 Decoder Online * @ PHP 7.2 * @ Decoder version: 1.0.4 * @ Release: 01/09/2021 */ if ($_POST) { if ($demo != "1") { $isim = trim(strip_tags($_POST["name"])); $soyisim = trim(strip_tags($_POST["surname"])); $eposta = trim(strip_tags($_POST["emailadress"])); $telefon = trim(strip_tags($_POST["gsm"])); $sifre = trim(strip_tags($_POST["password"])); $uyetip = trim(strip_tags($_POST["uye_tip"])); $firma = trim(strip_tags($_POST["firma_unvan"])); $vergidairesi = trim(strip_tags($_POST["vergi_dairesi"])); $vergino = trim(strip_tags($_POST["vergi_no"])); $ip = $_SERVER["REMOTE_ADDR"]; $timestamp = date("Y-m-d G:i:s"); $timestamp2 = date("Y-m-d"); if (trim(strip_tags($_POST["smsonay"])) == "1") { $smsekle = "1"; } else { $smsekle = "0"; } if ($uyeayar["oto_onay"] == "1") { $onay = "1"; } else { $onay = "0"; } if (trim(strip_tags($_POST["epostaonay"])) == "1") { $epostaekle = "1"; } else { $epostaekle = "0"; } if ($uyeayar["basit_form"] == "0") { if ($uyetip == "1" || $uyetip == "2") { if ($uyetip == "1") { if ($isim && $soyisim && $eposta && $telefon && $sifre) { if (trim(strip_tags($_POST["sozlesme_onayi"])) == "1") { if (filter_var($eposta, FILTER_VALIDATE_EMAIL)) { $epostaSorgula = $db->prepare("select * from uyeler where eposta=:eposta "); $epostaSorgula->execute(["eposta" => $eposta]); if ($epostaSorgula->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO uyeler SET\r\n isim=:isim,\r\n onay=:onay,\r\n destek=:destek,\r\n soyisim=:soyisim,\r\n telefon=:telefon,\r\n eposta=:eposta,\r\n uye_tip=:uye_tip,\r\n uyesifre=:uyesifre,\r\n ip=:ip,\r\n tarih_ymd=:tarih_ymd,\r\n tarih=:tarih,\r\n sms_ekle=:sms_ekle,\r\n eposta_ekle=:eposta_ekle,\r\n son_giris=:son_giris\r\n "); $sonuc = $kaydet->execute(["isim" => $isim, "onay" => $onay, "destek" => "1", "soyisim" => $soyisim, "telefon" => $telefon, "eposta" => $eposta, "uye_tip" => "1", "uyesifre" => md5($sifre), "ip" => $ip, "tarih_ymd" => $timestamp2, "tarih" => $timestamp, "sms_ekle" => $smsekle, "eposta_ekle" => $epostaekle, "son_giris" => $timestamp]); if ($sonuc) { if ($ayar["smtp_durum"] == "1") { include "includes/post/mailtemp/users/register_mail_temp.php"; } if (trim(strip_tags($_POST["smsonay"])) == "1" && $uyeayar["sms_ekle"] == "1") { $smsSorgusu = $db->prepare("select * from sms_numaralar where gsm=:gsm "); $smsSorgusu->execute(["gsm" => $telefon]); if ($smsSorgusu->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO sms_numaralar SET\r\n isim=:isim, \r\n destek=:destek,\r\n gsm=:gsm\r\n "); $sonuc = $kaydet->execute(["isim" => $isim . " " . $soyisim, "gsm" => $telefon]); } } if (trim(strip_tags($_POST["epostaonay"])) == "1" && $uyeayar["eposta_ekle"] == "1") { $postaSorgusu = $db->prepare("select * from ebulten where eposta=:eposta "); $postaSorgusu->execute(["eposta" => $eposta]); if ($postaSorgusu->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO ebulten SET\r\n eposta=:eposta, \r\n tarih=:tarih\r\n "); $sonuc = $kaydet->execute(["eposta" => $eposta, "tarih" => $timestamp]); } } if ($ayar["uye_log"] == "1") { $uyelerr = $db->prepare("select * from uyeler where eposta=:eposta "); $uyelerr->execute(["eposta" => $eposta]); if ("0" < $uyelerr->rowCount()) { $uyem = $uyelerr->fetch(PDO::FETCH_ASSOC); $kaydet = $db->prepare("INSERT INTO uyeler_log SET\r\n uye_id=:uye_id, \r\n ip=:ip,\r\n islem=:islem,\r\n tarih=:tarih\r\n "); $sonuc = $kaydet->execute(["uye_id" => $uyem["id"], "ip" => $ip, "islem" => "1", "tarih" => $timestamp]); } } $_SESSION["user_email_address"] = $eposta; if ($onay == "1") { $_SESSION["uyelik_durum"] = "success"; header("Location:" . $ayar["site_url"] . ""); } else { $_SESSION["user_email_address_onaysiz"] = $eposta; $_SESSION["uyelik_durum"] = "success_onay"; header("Location:" . $ayar["site_url"] . ""); } } else { echo "Veritabanı Hatası"; } } else { $_SESSION["uyelik_durum"] = "epostavar"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "eposta"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "sozlesme"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "empty"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } if ($uyetip == "2") { if ($isim && $soyisim && $eposta && $telefon && $sifre && $vergino) { if (trim(strip_tags($_POST["sozlesme_onayi"])) == "1") { if (filter_var($eposta, FILTER_VALIDATE_EMAIL)) { $epostaSorgula = $db->prepare("select * from uyeler where eposta=:eposta "); $epostaSorgula->execute(["eposta" => $eposta]); if ($epostaSorgula->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO uyeler SET\r\n isim=:isim,\r\n onay=:onay,\r\n destek=:destek,\r\n soyisim=:soyisim,\r\n firma_unvan=:firma_unvan,\r\n vergi_dairesi=:vergi_dairesi,\r\n vergi_no=:vergi_no,\r\n telefon=:telefon,\r\n eposta=:eposta,\r\n uye_tip=:uye_tip,\r\n uyesifre=:uyesifre,\r\n ip=:ip,\r\n tarih_ymd=:tarih_ymd,\r\n tarih=:tarih,\r\n sms_ekle=:sms_ekle,\r\n eposta_ekle=:eposta_ekle,\r\n son_giris=:son_giris\r\n "); $sonuc = $kaydet->execute(["isim" => $isim, "onay" => $onay, "destek" => "1", "soyisim" => $soyisim, "firma_unvan" => $firma, "vergi_dairesi" => $vergidairesi, "vergi_no" => $vergino, "telefon" => $telefon, "eposta" => $eposta, "uye_tip" => "2", "uyesifre" => md5($sifre), "ip" => $ip, "tarih_ymd" => $timestamp2, "tarih" => $timestamp, "sms_ekle" => $smsekle, "eposta_ekle" => $epostaekle, "son_giris" => $timestamp]); if ($sonuc) { if ($ayar["smtp_durum"] == "1") { include "includes/post/mailtemp/users/register_mail_temp.php"; } if (trim(strip_tags($_POST["smsonay"])) == "1" && $uyeayar["sms_ekle"] == "1") { $smsSorgusu = $db->prepare("select * from sms_numaralar where gsm=:gsm "); $smsSorgusu->execute(["gsm" => $telefon]); if ($smsSorgusu->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO sms_numaralar SET\r\n isim=:isim, \r\n destek=:destek,\r\n gsm=:gsm\r\n "); $sonuc = $kaydet->execute(["isim" => $isim . " " . $soyisim, "gsm" => $telefon]); } } if (trim(strip_tags($_POST["epostaonay"])) == "1" && $uyeayar["eposta_ekle"] == "1") { $postaSorgusu = $db->prepare("select * from ebulten where eposta=:eposta "); $postaSorgusu->execute(["eposta" => $eposta]); if ($postaSorgusu->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO ebulten SET\r\n eposta=:eposta, \r\n tarih=:tarih\r\n "); $sonuc = $kaydet->execute(["eposta" => $eposta, "tarih" => $timestamp]); } } $_SESSION["user_email_address"] = $eposta; if ($onay == "1") { $_SESSION["uyelik_durum"] = "success"; header("Location:" . $ayar["site_url"] . ""); } else { $_SESSION["uyelik_durum"] = "success_onay"; header("Location:" . $ayar["site_url"] . ""); } } else { echo "Veritabanı Hatası"; } } else { $_SESSION["uyelik_durum"] = "epostavar"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "eposta"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "sozlesme"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "empty"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } } else { header("Location:" . $ayar["site_url"] . "404"); } } if ($uyeayar["basit_form"] == "1") { if ($isim && $soyisim && $eposta && $telefon && $sifre) { if (trim(strip_tags($_POST["sozlesme_onayi"])) == "1") { if (filter_var($eposta, FILTER_VALIDATE_EMAIL)) { $epostaSorgula = $db->prepare("select * from uyeler where eposta=:eposta "); $epostaSorgula->execute(["eposta" => $eposta]); if ($epostaSorgula->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO uyeler SET\r\n isim=:isim,\r\n onay=:onay,\r\n destek=:destek,\r\n soyisim=:soyisim,\r\n telefon=:telefon,\r\n eposta=:eposta,\r\n uye_tip=:uye_tip,\r\n uyesifre=:uyesifre,\r\n ip=:ip,\r\n tarih_ymd=:tarih_ymd,\r\n tarih=:tarih,\r\n sms_ekle=:sms_ekle,\r\n eposta_ekle=:eposta_ekle,\r\n son_giris=:son_giris\r\n "); $sonuc = $kaydet->execute(["isim" => $isim, "onay" => $onay, "destek" => "1", "soyisim" => $soyisim, "telefon" => $telefon, "eposta" => $eposta, "uye_tip" => "1", "uyesifre" => md5($sifre), "ip" => $ip, "tarih_ymd" => $timestamp2, "tarih" => $timestamp, "sms_ekle" => $smsekle, "eposta_ekle" => $epostaekle, "son_giris" => $timestamp]); if ($sonuc) { if ($ayar["smtp_durum"] == "1") { include "includes/post/mailtemp/users/register_mail_temp.php"; } if (trim(strip_tags($_POST["smsonay"])) == "1" && $uyeayar["sms_ekle"] == "1") { $smsSorgusu = $db->prepare("select * from sms_numaralar where gsm=:gsm "); $smsSorgusu->execute(["gsm" => $telefon]); if ($smsSorgusu->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO sms_numaralar SET\r\n isim=:isim, \r\n destek=:destek,\r\n gsm=:gsm\r\n "); $sonuc = $kaydet->execute(["isim" => $isim . " " . $soyisim, "gsm" => $telefon]); } } if (trim(strip_tags($_POST["epostaonay"])) == "1" && $uyeayar["eposta_ekle"] == "1") { $postaSorgusu = $db->prepare("select * from ebulten where eposta=:eposta "); $postaSorgusu->execute(["eposta" => $eposta]); if ($postaSorgusu->rowCount() <= "0") { $kaydet = $db->prepare("INSERT INTO ebulten SET\r\n eposta=:eposta, \r\n tarih=:tarih\r\n "); $sonuc = $kaydet->execute(["eposta" => $eposta, "tarih" => $timestamp]); } } $_SESSION["user_email_address"] = $eposta; if ($onay == "1") { $_SESSION["uyelik_durum"] = "success"; header("Location:" . $ayar["site_url"] . ""); } else { $_SESSION["uyelik_durum"] = "success_onay"; header("Location:" . $ayar["site_url"] . ""); } } else { echo "Veritabanı Hatası"; } } else { $_SESSION["uyelik_durum"] = "epostavar"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "eposta"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "sozlesme"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { $_SESSION["uyelik_durum"] = "empty"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } $_SESSION["form_temp_register"] = ["tip" => $uyetip, "isim" => $isim, "soyisim" => $soyisim, "eposta" => $eposta, "telefon" => $telefon, "firma" => $firma, "vergino" => $vergino, "vd" => $vergidairesi]; } else { $_SESSION["demo_alert"] = "demo"; header("Location:" . $ayar["site_url"] . "uyelik/"); } } else { header("Location:" . $ayar["site_url"] . "404"); } ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula