📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv10.demodesign.com.tr
/
includes
/
post
/
users
📝
hesap_ayar_degispost.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 && "0" < $userSorgusu->rowCount()) { $tcno = trim(strip_tags($_POST["tc_no"])); $isim = trim(strip_tags($_POST["name"])); $soyisim = trim(strip_tags($_POST["surname"])); $eposta = $userCek["eposta"]; $telefon = trim(strip_tags($userCek["telefon"])); $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"); if ($demo != "1") { if (trim(strip_tags($_POST["smsonay"])) == "1") { $smsekle = "1"; } else { $smsekle = "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) { if ($tcno && strlen($tcno) != "11") { $_SESSION["ayardegis_durum"] = "tcuzunluk"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); exit; } $guncelle = $db->prepare("UPDATE uyeler SET\r\n isim=:isim,\r\n soyisim=:soyisim,\r\n uye_tip=:uye_tip,\r\n ip=:ip,\r\n tc_no=:tc_no,\r\n sms_ekle=:sms_ekle,\r\n eposta_ekle=:eposta_ekle\r\n WHERE id=" . $userCek["id"] . " \r\n "); $sonuc = $guncelle->execute(["isim" => $isim, "soyisim" => $soyisim, "uye_tip" => $uyetip, "ip" => $ip, "tc_no" => $tcno, "sms_ekle" => $smsekle, "eposta_ekle" => $epostaekle]); if ($sonuc) { $_SESSION["ayardegis_durum"] = "success"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); if ($smsekle == "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 gsm=:gsm\r\n "); $sonuc = $kaydet->execute(["isim" => $isim . " " . $soyisim, "gsm" => $telefon]); } } if ($smsekle == "0" && $uyeayar["sms_ekle"] == "1") { $smsSorgusu = $db->prepare("select * from sms_numaralar where gsm=:gsm "); $smsSorgusu->execute(["gsm" => $telefon]); if ("0" < $smsSorgusu->rowCount()) { $silmeislem = $db->prepare("DELETE from sms_numaralar WHERE gsm=:gsm"); $silmeislem->execute(["gsm" => $telefon]); } } if ($epostaekle == "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 ($epostaekle == "0" && $uyeayar["eposta_ekle"] == "1") { $postaSorgusu = $db->prepare("select * from ebulten where eposta=:eposta "); $postaSorgusu->execute(["eposta" => $eposta]); if ("0" < $postaSorgusu->rowCount()) { $silmeislem = $db->prepare("DELETE from ebulten WHERE eposta=:eposta"); $silmeislem->execute(["eposta" => $eposta]); } } } else { echo "Veritabanı Hatası"; } } else { $_SESSION["ayardegis_durum"] = "empty"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); } } if ($uyetip == "2") { if ($isim && $soyisim && $vergino) { $guncelle = $db->prepare("UPDATE uyeler SET\r\n isim=:isim,\r\n soyisim=:soyisim,\r\n uye_tip=:uye_tip,\r\n ip=:ip,\r\n vergi_dairesi=:vergi_dairesi,\r\n vergi_no=:vergi_no,\r\n firma_unvan=:firma_unvan,\r\n sms_ekle=:sms_ekle,\r\n eposta_ekle=:eposta_ekle\r\n WHERE id=" . $userCek["id"] . " \r\n "); $sonuc = $guncelle->execute(["isim" => $isim, "soyisim" => $soyisim, "uye_tip" => $uyetip, "ip" => $ip, "vergi_dairesi" => $vergidairesi, "vergi_no" => $vergino, "firma_unvan" => $firma, "sms_ekle" => $smsekle, "eposta_ekle" => $epostaekle]); if ($sonuc) { $_SESSION["ayardegis_durum"] = "success"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); if ($smsekle == "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 gsm=:gsm\r\n "); $sonuc = $kaydet->execute(["isim" => $isim . " " . $soyisim, "gsm" => $telefon]); } } if ($smsekle == "0" && $uyeayar["sms_ekle"] == "1") { $smsSorgusu = $db->prepare("select * from sms_numaralar where gsm=:gsm "); $smsSorgusu->execute(["gsm" => $telefon]); if ("0" < $smsSorgusu->rowCount()) { $silmeislem = $db->prepare("DELETE from sms_numaralar WHERE gsm=:gsm"); $silmeislem->execute(["gsm" => $telefon]); } } if ($epostaekle == "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 ($epostaekle == "0" && $uyeayar["eposta_ekle"] == "1") { $postaSorgusu = $db->prepare("select * from ebulten where eposta=:eposta "); $postaSorgusu->execute(["eposta" => $eposta]); if ("0" < $postaSorgusu->rowCount()) { $silmeislem = $db->prepare("DELETE from ebulten WHERE eposta=:eposta"); $silmeislem->execute(["eposta" => $eposta]); } } } else { echo "Veritabanı Hatası"; } } else { $_SESSION["ayardegis_durum"] = "empty"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); } } } else { header("Location:" . $ayar["site_url"] . "404"); } } if ($uyeayar["basit_form"] == "1") { if ($isim && $soyisim) { $guncelle = $db->prepare("UPDATE uyeler SET\r\n isim=:isim,\r\n soyisim=:soyisim,\r\n uye_tip=:uye_tip,\r\n ip=:ip,\r\n sms_ekle=:sms_ekle,\r\n eposta_ekle=:eposta_ekle\r\n WHERE id=" . $userCek["id"] . " \r\n "); $sonuc = $guncelle->execute(["isim" => $isim, "soyisim" => $soyisim, "uye_tip" => "1", "ip" => $ip, "sms_ekle" => $smsekle, "eposta_ekle" => $epostaekle]); if ($sonuc) { $_SESSION["ayardegis_durum"] = "success"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); if ($smsekle == "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 gsm=:gsm\r\n "); $sonuc = $kaydet->execute(["isim" => $isim . " " . $soyisim, "gsm" => $telefon]); } } if ($smsekle == "0" && $uyeayar["sms_ekle"] == "1") { $smsSorgusu = $db->prepare("select * from sms_numaralar where gsm=:gsm "); $smsSorgusu->execute(["gsm" => $telefon]); if ("0" < $smsSorgusu->rowCount()) { $silmeislem = $db->prepare("DELETE from sms_numaralar WHERE gsm=:gsm"); $silmeislem->execute(["gsm" => $telefon]); } } if ($epostaekle == "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 ($epostaekle == "0" && $uyeayar["eposta_ekle"] == "1") { $postaSorgusu = $db->prepare("select * from ebulten where eposta=:eposta "); $postaSorgusu->execute(["eposta" => $eposta]); if ("0" < $postaSorgusu->rowCount()) { $silmeislem = $db->prepare("DELETE from ebulten WHERE eposta=:eposta"); $silmeislem->execute(["eposta" => $eposta]); } } } else { echo "Veritabanı Hatası"; } } else { $_SESSION["ayardegis_durum"] = "empty"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); } } } else { $_SESSION["demo_alert"] = "demo"; header("Location:" . $ayar["site_url"] . "hesabim/ayarlar/"); } } 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