📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv10.demodesign.com.tr
/
includes
/
post
/
users
📝
urun_iade.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 ($_POST) { $id = trim(strip_tags($_POST["productNo"])); $hash = trim(strip_tags($_POST["product"])); $urunCek = $db->prepare("select * from siparis_urunler where id=:id "); $urunCek->execute(["id" => $id]); if ("0" < $urunCek->rowCount()) { $urun = $urunCek->fetch(PDO::FETCH_ASSOC); if ($demo != "1") { if (md5($urun["id"]) == $hash) { if (trim(strip_tags($_POST["sebep"]))) { if ($odemeayar["siparis_urun_iade"] == "1" && $urun["iade_aksiyon"] == "1") { if ($urun["durum"] != "5" && $urun["durum"] != "6") { $timestamp = date("Y-m-d G:i:s"); $random = rand(0, (int) 99999999); $rand = rand(0, (int) 0); $kaydet = $db->prepare("INSERT INTO siparis_urunler_iade SET\r\n urun_id=:urun_id, \r\n siparis_no=:siparis_no,\r\n tarih=:tarih,\r\n durum=:durum,\r\n talep_no=:talep_no,\r\n sebep=:sebep,\r\n yeni=:yeni,\r\n uye_id=:uye_id\r\n "); $sonuc = $kaydet->execute(["urun_id" => $id, "siparis_no" => $urun["siparis_id"], "tarih" => $timestamp, "durum" => "0", "talep_no" => $random, "sebep" => trim(strip_tags($_POST["sebep"])), "yeni" => "1", "uye_id" => $userCek["id"]]); if ($sonuc) { $guncelle = $db->prepare("UPDATE siparis_urunler SET\r\n iade_aksiyon=:iade_aksiyon\r\n WHERE id=" . $id . " \r\n "); $sonuc = $guncelle->execute(["iade_aksiyon" => "0"]); if ($sonuc) { $kaydet = $db->prepare("INSERT INTO panel_bildirim SET\r\n durum=:durum,\r\n tarih=:tarih,\r\n modul=:modul,\r\n icerik_id=:icerik_id\r\n "); $sonuc = $kaydet->execute(["durum" => "1", "tarih" => $timestamp, "modul" => "uruniade", "icerik_id" => $rand]); if ($bildirimayar["durum"] == "1") { $user = $userCek["id"]; $kullaniciCek = $db->prepare("select * from uyeler where id=:id "); $kullaniciCek->execute(["id" => $user]); if ("0" < $kullaniciCek->rowCount()) { $userRow = $kullaniciCek->fetch(PDO::FETCH_ASSOC); $rand = rand(0, (int) 0); $baslik = $diller["bildirimler-text18"]; $icerik = "" . $diller["oto-eposta-content-text1"] . " " . $userCek["isim"] . " " . $userCek["soyisim"] . ", <br><br> #" . $urun["siparis_id"] . " " . $diller["bildirimler-text19"] . " "; $kaydet = $db->prepare("INSERT INTO bildirimler SET\r\n bildirim_id=:bildirim_id,\r\n baslik=:baslik,\r\n icerik=:icerik,\r\n tarih=:tarih,\r\n tur=:tur,\r\n ikon=:ikon,\r\n uye_id=:uye_id,\r\n durum=:durum,\r\n dil=:dil\r\n "); $sonuc = $kaydet->execute(["bildirim_id" => $rand, "baslik" => $baslik, "icerik" => $icerik, "tarih" => $timestamp, "tur" => "2", "ikon" => "🗘", "uye_id" => $user, "durum" => "1", "dil" => $_SESSION["dil"]]); } } $_SESSION["iade_status"] = "success"; header("Location:" . $ayar["site_url"] . "hesabim/iade-talebi/" . $random . "/"); if ($ayar["smtp_durum"] == "1") { include "includes/post/mailtemp/users/urun_iade_mail_temp.php"; } if ($sms["durum"] == "1" && ($sms["sms_uruniade_site"] == "1" || $sms["sms_uruniade_user"] == "1")) { include "includes/post/smstemp/users/product_return_sms.php"; include "includes/post/smstemp/sms_api.php"; } } else { echo "Veritabanı Hatası"; } } else { echo "Veritabanı Hatası"; } } else { header("Location:" . $ayar["site_url"] . "404"); } } else { header("Location:" . $ayar["site_url"] . "404"); } } else { $_SESSION["iade_status"] = "empty"; header("Location:" . $ayar["site_url"] . "hesabim/siparis-detay/" . $urun["siparis_id"] . "/"); } } else { header("Location:" . $ayar["site_url"] . "404"); } } else { $_SESSION["demo_alert"] = "demo"; header("Location:" . $ayar["site_url"] . "hesabim/siparis-detay/" . $urun["siparis_id"] . "/"); } } 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