📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv10.demodesign.com.tr
/
includes
/
post
/
loginPost
📝
comment_loginpost.php
← Geri Dön
<?php /* * @ https://EasyToYou.eu - IonCube v11 Decoder Online * @ PHP 7.2 * @ Decoder version: 1.0.4 * @ Release: 01/09/2021 */ echo !defined("GUVENLIK") ? exit : NULL; if (isset($_POST["userlogin"])) { $returnID = trim(strip_tags($_POST["return_id"])); $returnSEO = trim(strip_tags($_POST["return_product"])); $ip = $_SERVER["REMOTE_ADDR"]; $urun = $db->prepare("select id,seo_url from urun where durum=:durum and dil=:dil and seo_url=:seo_url and id=:id"); $urun->execute(["durum" => "1", "dil" => $_SESSION["dil"], "seo_url" => $returnSEO, "id" => $returnID]); $urunRow = $urun->fetch(PDO::FETCH_ASSOC); if ("0" < $urun->rowCount()) { $epostaname = trim(strip_tags($_POST["emailadress"])); $sifrebak = $_POST["password"]; $pass_sifre = md5($_POST["password"]); if (filter_var($epostaname, FILTER_VALIDATE_EMAIL)) { if ($epostaname && $sifrebak) { $kullanicisor = $db->prepare("SELECT * from uyeler where eposta=:eposta and uyesifre=:uyesifre"); $kullanicisor->execute(["eposta" => $epostaname, "uyesifre" => $pass_sifre]); $say = $kullanicisor->rowCount(); $uyeRow = $kullanicisor->fetch(PDO::FETCH_ASSOC); if ("0" < $say) { $timestamp = date("Y-m-d G:i:s"); $_SESSION["user_email_address"] = $epostaname; if ($uyeRow["onay"] == "0") { $_SESSION["user_email_address_onaysiz"] = $epostaname; $_SESSION["uyelik_durum"] = "success_onay"; } else { $_SESSION["login_success"] = "success"; } header("Location:" . $ayar["site_url"] . "" . $urunRow["seo_url"] . "-P" . $urunRow["id"] . ""); $guncelle = $db->prepare("UPDATE uyeler SET\r\n son_giris=:son_giris\r\n WHERE id=" . $uyeRow["id"] . " \r\n "); $sonuc = $guncelle->execute(["son_giris" => $timestamp]); if ($ayar["uye_log"] == "1") { $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" => $uyeRow["id"], "ip" => $ip, "islem" => "1", "tarih" => $timestamp]); } } else { $_SESSION["login_error"] = "nouser"; header("Location:uye-girisi/"); } } else { $_SESSION["login_error"] = "empty"; header("Location:uye-girisi/"); } } else { $_SESSION["login_error"] = "emailerror"; header("Location:uye-girisi/"); } } else { header("Location:" . $ayar["site_url"] . "404"); } } 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