📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
yoresele-ticaret.demodesign.com.tr
/
includes
/
post
📝
removecoupon.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($_GET["cID"])) { $removeSorgu = $db->prepare("select * from sepet_kupon where random_id=:random_id and uye_id=:uye_id and durum=:durum and kullanim=:kullanim "); $removeSorgu->execute(["random_id" => htmlspecialchars(trim($_GET["cID"])), "uye_id" => $userCek["id"], "durum" => "1", "kullanim" => "0"]); if ("0" < $removeSorgu->rowCount()) { echo " "; $kuponSorgu = $db->prepare("select * from kupon where random=:random "); $kuponSorgu->execute(["random" => $_GET["cID"]]); $kuponRow = $kuponSorgu->fetch(PDO::FETCH_ASSOC); if ("0" < $kuponSorgu->rowCount()) { $guncelle = $db->prepare("UPDATE kupon SET\r\n adet=:adet \r\n WHERE random=" . $_GET["cID"] . " \r\n "); $sonuc = $guncelle->execute(["adet" => $kuponRow["adet"] + 1]); } $silmeislem = $db->prepare("DELETE from sepet_kupon WHERE random_id=:random_id"); $silmeislem = $silmeislem->execute(["random_id" => htmlspecialchars(trim($_GET["cID"]))]); if ($silmeislem) { header("Location:" . $siteurl . "sepet/"); $_SESSION["kupon_sil"] = "success"; } else { header("Location:" . $siteurl . "404"); } } else { header("Location:" . $siteurl . "404"); } } else { header("Location:" . $siteurl . "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