📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
belediyescripti.demodesign.com.tr
/
_class
📝
site_islem.php
← Geri Dön
<?php ob_start(); session_start(); session_regenerate_id(); require_once "baglan.php"; require_once "fonksiyon.php"; require_once "class.upload.php"; require_once "class.phpmailer.php"; $logo = url . tema . "/uploads/logo/footer/" . footerlogo; $domain_bilgi = url; if ($moduller["alan20"] == "1") { $html = ".html"; } else { $html = ""; } if (isset($_POST["aidatsorgubtn"])) { $tc = nl2br(strip_tags($_POST["tc"], "<b><p><i>")); if (0 < strlen($_POST["kontrol"])) { header("Location:../" . $htc["aidaturl"] . $html . ""); exit; } if (empty($tc)) { $_SESSION["aidatsorgubtn"] = "bos"; header("Location:../" . $htc["aidaturl"] . $html . ""); exit; } $varmi = $db->prepare("SELECT * FROM aidatlar WHERE BINARY tc = ?"); $varmi->execute([$tc]); if ($varmi->rowCount()) { $ASonuc = $varmi->fetch(PDO::FETCH_ASSOC); $_SESSION["aidat_TC"] = $ASonuc["tc"]; header("Location:../" . $htc["aidatlisteurl"] . $html . ""); exit; } $_SESSION["aidatsorgubtn"] = "no"; header("Location:../" . $htc["aidaturl"] . $html . ""); exit; } if (isset($_POST["mesajbtn"])) { $isim = nl2br(strip_tags($_POST["isim"], "<b><p><i>")); $email = nl2br(strip_tags($_POST["email"], "<b><p><i>")); $konu = nl2br(strip_tags($_POST["konu"], "<b><p><i>")); $telefon = nl2br(strip_tags($_POST["telefon"], "<b><p><i>")); $mesaj = nl2br(strip_tags($_POST["mesaj"], "<b><p><i>")); $iletisimurl = nl2br(strip_tags($_POST["iletisimurl"], "<b><p><i>")); $tarih = tr_tarih("Y-m-d H:i:s"); $bgntarih = tr_tarih("Y-m-d"); $buguntarih = strtotime($bgntarih); $ip = ip(); if ($ayar["demo"] == 0) { if (0 < strlen($_POST["kontrol"])) { header("Location:" . $iletisimurl . ""); exit; } $sablon = $db->query("SELECT * FROM bildirim_sablonu WHERE id = '1'")->fetch(PDO::FETCH_ASSOC); $gelendegisken = explode(",", $sablon["degiskenler"]); $yenitarih = tarih($tarih); $gidendegisken = [$isim, $konu, $email, $telefon, $mesaj, $yenitarih, $ip, $logo, $domain_bilgi]; if (empty($isim) || empty($email) || empty($mesaj)) { $_SESSION["mesajbtn"] = "bos"; header("Location:" . $iletisimurl . ""); } else { $sorgu = $db->prepare("INSERT INTO mesajlar SET\r\n\t\t\t\tisim\t\t= :isim,\r\n\t\t\t\temail \t\t= :email,\r\n\t\t\t\tkonu \t\t= :konu,\r\n\t\t\t\ttelefon \t= :telefon,\r\n\t\t\t\tmesaj\t\t= :mesaj,\r\n\t\t\t\tip\t\t\t= :ip,\r\n\t\t\t\ttarih\t\t= :tarih,\r\n\t\t\t\tbuguntarih \t= :buguntarih"); $Ekle = $sorgu->execute(["isim" => $isim, "email" => $email, "konu" => $konu, "telefon" => $telefon, "mesaj" => $mesaj, "ip" => $ip, "tarih" => $tarih, "buguntarih" => $buguntarih]); if ($Ekle) { $last_id = $db->lastInsertId(); $btarih = tr_tarih("Y-m-d H:i:s"); $kayitt = tr_tarih("Y-m-d"); $bildirimkt = strtotime($kayitt); $bildirimt = strtotime($btarih); $BSorgu = $db->prepare("INSERT INTO bildirimler SET\r\n\t\t\t\t\tbaslik\t\t= :baslik,\r\n\t\t\t\t\ticon\t\t= :icon,\r\n\t\t\t\t\tbid\t\t\t= :bid,\r\n\t\t\t\t\tbildirim\t= :bildirim,\r\n\t\t\t\t\tktarih\t\t= :ktarih,\r\n\t\t\t\t\ttarih \t\t= :tarih"); $BEkle = $BSorgu->execute(["baslik" => "Yeni Mesaj", "icon" => "icon-envelope-open", "bid" => $last_id, "bildirim" => "<strong>" . $isim . "</strong> mesaj gönderdi.", "ktarih" => $bildirimkt, "tarih" => $bildirimt]); if ($sablon["sbildirim"] == "1") { $uyesmssablon = $sablon["icerik3"]; smsgonder($gelendegisken, $gidendegisken, $uyesmssablon, $telefon, $uyesmssablon); } if ($sablon["ysbildirim"] == "1") { $adminsmssablon = $sablon["icerik4"]; smsgonder($gelendegisken, $gidendegisken, $adminsmssablon, sms_kime, $adminsmssablon); } if ($sablon["ubildirim"] == "1") { $uyekonu = turkce($sablon["konu"]); $uyesablon = $sablon["icerik"]; mailgonder($gelendegisken, $gidendegisken, $uyesablon, $email, " " . $uyekonu . "", $uyesablon); } if ($sablon["abildirim"] == "1") { $adminkonu = turkce($sablon["konu2"]); $adminsablon = $sablon["icerik2"]; mailgonder($gelendegisken, $gidendegisken, $adminsablon, m_kime, " " . $adminkonu . "", $adminsablon); } $_SESSION["mesajbtn"] = "yes"; header("Location:" . $iletisimurl . ""); } else { $_SESSION["mesajbtn"] = "no"; header("Location:" . $iletisimurl . ""); } } } else { $_SESSION["sitedemo"] = "no"; header("Location:" . $iletisimurl . ""); } } ?>
💾 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