📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv10.demodesign.com.tr
/
includes
/
post
/
users
📝
sifremiunuttumpost.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 && isset($_POST["newPassword"])) { $sifre1 = trim(strip_tags($_POST["yenisifre"])); $sifre2 = trim(strip_tags($_POST["yenisifre_tekrar"])); $hash = trim(strip_tags($_POST["hash"])); $hashSorgu = $db->prepare("select * from uyeler_reset_sifre where kod=:kod and durum=:durum "); $hashSorgu->execute(["kod" => $hash, "durum" => "0"]); $hashRow = $hashSorgu->fetch(PDO::FETCH_ASSOC); if ("0" < $hashSorgu->rowCount()) { if ($sifre1 && $sifre2) { if ($sifre1 == $sifre2) { $sifre = md5($sifre1); $guncelle = $db->prepare("UPDATE uyeler SET\r\n uyesifre=:uyesifre\r\n WHERE id=" . $hashRow["uye_id"] . " \r\n "); $sonuc = $guncelle->execute(["uyesifre" => $sifre]); if ($sonuc) { $_SESSION["sifredegis_durum"] = "success"; header("Location:" . $ayar["site_url"] . "uye-girisi/"); $silmeislem = $db->prepare("DELETE from uyeler_reset_sifre WHERE kod=:kod"); $silmeislem->execute(["kod" => $hash]); } else { echo "Veritabanı Hatası"; } } else { $_SESSION["sifredegis_durum"] = "sifrefarkli"; header("Location:" . $ayar["site_url"] . "sifre-sifirla/?hash=" . $hash . ""); } } else { $_SESSION["sifredegis_durum"] = "empty"; header("Location:" . $ayar["site_url"] . "sifre-sifirla/?hash=" . $hash . ""); } } 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