📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
paketsatisscripti.demodesign.com.tr
📝
app.php
← Geri Dön
<?php ob_start(); session_start(); $yol=htmlentities(str_replace("goweb/paket/","",ltrim($_SERVER["REQUEST_URI"],"/")), ENT_QUOTES, "UTF-8"); function sendTelegramMessage($chatID, $messaggio, $token) { echo "sending message to " . $chatID . "\n"; $url = "https://api.telegram.org/bot" . $token . "/sendMessage?chat_id=" . $chatID; $url = $url . "&text=" . urlencode($messaggio); $ch = curl_init(); $optArray = array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true ); curl_setopt_array($ch, $optArray); $result = curl_exec($ch); curl_close($ch); return $result; } include("config/config.php"); if(isset($_POST["status"])){// $status = $_POST["status"]; $invoiceId = $_POST["platform_order_id"]; $transactionId = $_POST["payment_id"]; $installment = $_POST["installment"]; $signature = $_POST["signature"]; $data = $_POST["random_nr"] . $_POST["platform_order_id"] . $_POST["total_order_value"] . $_POST["currency"]; $signature = base64_decode($signature); $expected = hash_hmac('SHA256', $data, $shopierSecret, true); if ($status == "success") { //İşlem başarılı ise yapacaklarınız mysqli_query($baglanti,"UPDATE siparis SET durum='Ödeme Alındı' WHERE sip_id = '$invoiceId'"); header("Location:siparis-basarili?key=".$invoiceId.""); die(); } else{ // İşlem başarısız ise yapacaklarınız. header("Location: siparis-basarisiz"); die(); } }// // get yanıtları $get=explode("?",$yol); if(@$get[1]!=Null){ $arr=str_replace("?","",$get[1]); $arr=explode("&",$arr); foreach ($arr as $value) { $deger=explode("=",$value); $_GET[str_replace("amp;","",$deger[0])]=$deger[1]; } $yol=explode("?",$yol)[0]; } if(strstr($yol,"admin")){ $kontrol = file_exists($yol); if(str_replace("/","",str_replace("admin","",$yol))==Null){ include("admin/index.php"); exit; } if ($kontrol){ include($yol); exit; } } if(strstr($yol,"upload")){ include($yol); exit; } if(strstr($yol,".php")){ $dosya=explode(".php",$yol)[0]; header("Location: ".$dosya); // include(explode("?",$yol)[0]); exit; } include("app/backend/genel.php"); include("app/lang/".$ayar["lang"]); if(strstr($yol,"sitemap.xml")){ include("sitemap.php"); exit; } if($ayar["cache_durum"]=="2"){ $cache_klasor = 'cache/'; if(@$_POST!=Null){ $dosya_isim = md5($_SERVER['REQUEST_URI'].rand()); } else{ $dosya_isim = md5($_SERVER['REQUEST_URI']); } $dosya_yolu = $cache_klasor.$dosya_isim. '.html'; $cache_suresi = $ayar["cache_sure"] * 60 * 60; if (file_exists($dosya_yolu)){ if(time() - $cache_suresi < filemtime($dosya_yolu)){ readfile($dosya_yolu); exit; }else{ unlink($dosya_yolu); } } } $seourl=0; if($yol==Null || $yol=="index"){ include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/index.php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } $data= mysqli_query($baglanti,"select * from ayar_url where url='$yol' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ $seourl=1; $seo_ad=$data["ad"]; ////////////// ////////////// if($data["sayfa"]!="Sipariş Başarılı" && $data["sayfa"]!="Sipariş Başarısız"){ $seo_desc=$data["aciklama"]; } else{ $seo_desc="Sipariş sonuç ekranıdır."; if(@$_GET["key"]==Null){ header("Location: ".$site); exit; } $key=htmlentities($_GET['key'], ENT_QUOTES, "UTF-8"); $siparis= mysqli_query($baglanti,"select * from siparis where sip_id='$key' ORDER BY id DESC"); $siparis=mysqli_fetch_array($siparis); if(@$siparis["id"]==Null){ header("Location: ".$site); exit; } $servisid=$siparis["servis"]; $servis=mysqli_query($baglanti,"select * from service where id='$servisid' ORDER BY id DESC"); $servis=mysqli_fetch_array($servis); } $seo_index=$data["indexleme"]; include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/".$data["dosya"].".php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } if(strstr($yol,$blog["url"]."/")){ $deger=explode("/",$yol)[1]; $data= mysqli_query($baglanti,"select * from blog where url='$deger' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ $seourl=1; $seo_ad=$data["baslik"]; $seo_desc=$data["aciklama"]; $seo_index=1; include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/blogoku.php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } } if(strstr($yol,$siparis["url"]."/")){ $deger=explode("/",$yol)[1]; $data= mysqli_query($baglanti,"select * from service where url='$deger' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ $kateid=$data["kate"]; $kate= mysqli_query($baglanti,"select * from kategori where id='$kateid' ORDER BY id DESC"); $kate=mysqli_fetch_array($kate); $seourl=1; $seo_ad=$siparis["ad"]; $seo_desc=$siparis["aciklama"]; $seo_index=1; include("app/backend/siparis.php"); include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/siparis.php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } } if(strstr($yol,"/")){ $deger1=explode("/",$yol)[0]; $deger2=explode("/",$yol)[1]; if(@$deger2==Null){ $deger1=str_replace("/","",$deger1); $data= mysqli_query($baglanti,"select * from platform where url='$deger1' and durum='1' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/urun-kategori.php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } }else{ $deger1=str_replace("/","",$deger1); $data= mysqli_query($baglanti,"select * from platform where url='$deger1' and durum='1' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ $platid=$data["id"]; $deger2=str_replace("/","",$deger2); $data= mysqli_query($baglanti,"select * from kategori where url='$deger2' and platform='$platid' and durum='1' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/urun.php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } } } } else{ $deger1=str_replace("/","",$yol); $data= mysqli_query($baglanti,"select * from platform where url='$deger1' and durum='1' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/urun-kategori.php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } } $data= mysqli_query($baglanti,"select * from sayfa where url='$yol' ORDER BY id DESC"); $data=mysqli_fetch_array($data); if($data["id"]!=Null){ $seourl=1; $seo_ad=$data["baslik"]; $seo_desc=$data["aciklama"]; $seo_index=1; include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/sayfa.php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } /* if($yol!="urun-kategori" && $yol!="urun" && $yol!="platform" ){ $kontrol = file_exists("app/theme/".$ayar["theme"]."/".$yol.".php"); if ($kontrol){ $kontrol = file_exists("app/backend/".$yol.".php"); if ($kontrol){ @include("app/backend/".$yol.".php"); } include("app/theme/".$ayar["theme"]."/menu/header.php"); include("app/theme/".$ayar["theme"]."/".$yol.".php"); include("app/theme/".$ayar["theme"]."/menu/footer.php"); cacheson(); exit; } }*/ header("Location: ".$site.$er404["url"]); cacheson(); ?>
💾 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