Hoşgeldin Misafir

Hddizayn Eticaret Scripti Decode Ama Çalışmıyor

EuroMyth

21 Nis 2021
23 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Hddizayn e-ticaret scriptinin function.php 'si ioncode ile şifrelenmişti, kırdırdım ama bağlatı sağlayamıyorum yardımcı olabilicek varmı, kullana bilen kullansın 
Teşekkürler
Scriptin konusu; https://www.turkhacks.com/konu-profesyonel-e-ticaret-scripti.html

PHP:
<?php
/*
 * @ PHP 7.2
 * @ Decoder version : 10.02
 * @ Release on : 14/04/2021
 * @ Website    : http://iodecoder.com
 */

include "ayarlar.php";
error_reporting(0);
$AlanAdi = $_SERVER["HTTP_HOST"];
$ipAdresi = $_SERVER["SERVER_ADDR"];
if (ini_get("allow_url_fopen") == 1) {
    $Cek = file_get_contents("https://www.hddizayn.com/lisans/orumcek.php");
    preg_match("@<div>(.*?)</div>@si", $Cek, $Yazdir);
    $Gonder = "https://www.hddizayn.com/lisans/orumcek.php?domain=" . $AlanAdi . "&ipadresi=" . $ipAdresi;
    $AlanAdi = file_get_contents($Gonder);
    $Durum = $Yazdir[1];
} else {
    $Gonder = "domain=" . $AlanAdi . "&ipadresi=" . $ipAdresi;
    $Kontrol = "https://www.hddizayn.com/lisans/orumcek.php?" . $Gonder;
    $Baslat = curl_init();
    curl_setopt($Baslat, CURLOPT_URL, $Kontrol);
    curl_setopt($Baslat, CURLOPT_RETURNTRANSFER, true);
    $LisansDurum = curl_exec($Baslat);
    curl_close($Baslat);
    function StartCurl($site_url, $timeout = 5)
    {
        $ch = curl_init();
        $tarayici = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0";
        curl_setopt($ch, CURLOPT_URL, $site_url);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
        curl_setopt($ch, CURLOPT_USERAGENT, $tarayici);
        $result = curl_exec($ch);
        curl_close($ch);
        return $result;
    }
    $Site = StartCurl("https://www.hddizayn.com/lisans/orumcek.php");
    preg_match("@<div>(.*?)</div>@si", $Site, $Yazdir);
    $Durum = $Yazdir[1];
}
$AlanAdi = $_SERVER["HTTP_HOST"];
if ($Durum == 0) {
    echo "<html>\n\t\t\t<head>\n\t\t\t\t<title>Lisanssız Kullanım ! HDDIZAYN WEB YAZILIM</title>\n\t\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\t\t\t\t<link rel=\"shortcut icon\" href=\"https://www.hddizayn.com/assets/images/favicon.ico\">\n\t\t\t\t<meta name=\"robots\" content=\"noindex\">\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n\t\t\t\t<link href=\"https://fonts.googleapis.com/css?family=Oswald:400,100,300,500,700%7CTitillium+Web:400,300,700,900&amp;subset=latin,latin-ext\" rel=\"stylesheet\" type=\"text/css\">\n\t\t\t\t<link rel=\"stylesheet\" href=\"https://www.hddizayn.com/assets/css/lisans.css\">\n\t\t\t</head>\n\t\t\t<body oncontextmenu=\"return false\" onselectstart=\"return false\" ondragstart=\"return false\">\n\t\t\t<center>\n\t\t\t\t<img src=\"https://hddizayn.com/images/hddizayn-yasak.png\" width=\"300\" height=\"150\" style=\"margin-top:40px;\">\n\t\t\t\t<div class=\"transbox\" style=\"color:black;font-weight:bold;\" align=\"center\">\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<h3>Uyarı : Lisanssız Kullanım !</h3>\n\t\t\t\t\t\tYasadışı (illegal) Kullanım Tespit Edildi. Bilgileriniz Kayıt Altına Alındı !<br>\n\t\t\t\t\t\t<span style=\"color:#013d9f;\">Domain: " . $AlanAdi . " | Sunucu IP: (" . $ipAdresi . ")</span>\n\t\t\t\t\t\t<br/>Sistemi Yasal olarak Aktif hale getirmek için &nbsp;<a style=\"color:red; text-decoration:none;\" href=\"https://www.hddizayn.com \"target=\"_blank\">“HDDIZAYN.COM” </a>  Adresinden Ürünü Lisanslı Olarak Satın Alınız.</br>\n\t\t\t\t\t\t<span style=\"text-decoration: underline;\">Aksi takdirde yasal işlem başlatılacaktır.</span>\n\t\t\t\t\t\t<br/>E-Posta: [email protected]<br>Tel: 0551 555 82 93\n\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\tHDDIZAYN WEB YAZILIM\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</center>\n\t\t\t</body>\n\t\t</html>";
} else {
    if ($Durum == 1) {
        date_default_timezone_set("Europe/Istanbul");
        $Ayarlar = $Baglan->query("SELECT * FROM hddizayn_site_ayarlari");
        $HDDizayn = $Ayarlar->fetch_array();
        $SmtpSorgu = $Baglan->query("SELECT * FROM hddizayn_smtp_ayarlari");
        $Smtp = $SmtpSorgu->fetch_object();
        $Protocol = strtolower(substr($_SERVER["SERVER_PROTOCOL"], 0, 5)) == "https" ? "https" : "http";
        $Protocol = isset($_SERVER["HTTPS"]) ? "https://" : "http://";
        $Author = "HDDIZAYN WEB YAZILIM";
        $Sorgu = $Baglan->query("SELECT * FROM hddizayn_uyeler WHERE id = '" . $_SESSION["uye_id"] . "'");
        $Uye = $Sorgu->fetch_object();
        $Sure = 60;
        $Zaman = time();
        $Hesap = $Zaman - $Sure;
        if (isset($_SESSION["kullanici"])) {
            $Guncelle = $Baglan->query("UPDATE hddizayn_uyeler SET son_islem = '" . $Zaman . "' WHERE eposta = '" . $_SESSION["eposta"] . "'");
        }
        function Menu()
        {
            include "ayarlar.php";
            echo "<div class=\"block-nav-categori\">\n\t<div class=\"block-title\">\n\t\t<span>Kategoriler</span>\n\t</div>\n\t<div class=\"block-content\">\n\t\t<ul class=\"ui-categori\">";
            $Sorgu = $Baglan->query("SELECT * FROM hddizayn_kategori WHERE durum = 1 ORDER BY id ASC");
            while ($Sonuc = $Sorgu->fetch_object()) {
                echo "<li class=\"" . $Sonuc->menu_durumu . "\">";
                echo "<a href=\"kategori/" . $Sonuc->seflink . "/" . $Sonuc->no . "\">";
                echo "<span class=\"icon\"><i class=\"" . $Sonuc->ikon . "\"></i></span>";
                echo $Sonuc->baslik;
                echo "</a><span class=\"toggle-submenu\"></span><div class=\"submenu\">";
                if ($Sonuc->resim != "") {
                    echo "<div class=\"categori-img\">";
                    echo "<a href=\"kategori/" . $Sonuc->seflink . "/" . $Sonuc->no . "\"><img src=\"dosyalar/kategori/" . $Sonuc->resim . "\" alt=\"categori-img\"></a>";
                    echo "</div>";
                }
                echo "<ul class=\"categori-list\">";
                $Sorgula = $Baglan->query("SELECT * FROM hddizayn_kategori_alt WHERE durum = 1 and ust = '" . $Sonuc->id . "' ORDER BY id ASC");
                while ($Sonucla = $Sorgula->fetch_object()) {
                    echo "<li class=\"col-sm-3\">";
                    echo "<strong class=\"title\"><a href=\"kategori/" . $Sonucla->seflink . "/" . $Sonucla->no . "\">" . $Sonucla->baslik . "</a></strong>";
                    echo "<ul>";
                    $Sorgucu = $Baglan->query("SELECT * FROM hddizayn_categori_alt WHERE durum = 1 and ust = '" . $Sonucla->id . "' ORDER BY id ASC");
                    while ($Sonuccu = $Sorgucu->fetch_object()) {
                        echo "<li><a href=\"kategori/" . $Sonuccu->seflink . "/" . $Sonuccu->no . "\">" . $Sonuccu->baslik . "</a></li>";
                    }
                    echo "</ul></li>";
                }
                echo "</ul></div></li>";
            }
            echo "</ul>\n\t\t<div class=\"view-all-categori\">\n\t\t\t<a class=\"open-cate btn-view-all\">Tüm Kategoriler</a>\n\t\t</div>\n\t</div>\n</div>";
        }
        function slider()
        {
            include "ayarlar.php";
            echo "<div class=\"block-section-top block-section-top1\">\n\t\t<div class=\"container\">\n\t\t\t<div class=\"box-section-top\">";
            Menu();
            echo "\n\t\t\t\t<div class=\"block-slide-main slide-opt-1\">\n\t\t\t\t\t<!-- slide -->\n\t\t\t\t\t<div class=\"owl-carousel\" \n\t\t\t\t\t\tdata-nav=\"true\" \n\t\t\t\t\t\tdata-dots=\"true\" \n\t\t\t\t\t\tdata-margin=\"0\" \n\t\t\t\t\t\tdata-items=\"1\" \n\t\t\t\t\t\tdata-autoplayTimeout=\"1600\" \n\t\t\t\t\t\tdata-autoplay=\"true\" \n\t\t\t\t\t\tdata-loop=\"true\">";
            $Sorgu = $Baglan->query("SELECT * FROM hddizayn_slider WHERE durum = 1 ORDER BY id DESC");
            while ($Sonuc = $Sorgu->fetch_object()) {
                echo "<div class=\"item item" . $Sonuc->stil . "\" style=\"background-image: url(dosyalar/slider/" . $Sonuc->resim . ");\">";
                echo "\t<div class=\"description\">";
                if ($Sonuc->baslik_durum == 1) {
                    echo "<span class=\"title\">" . $Sonuc->baslik_tr . "</span>";
                }
                if ($Sonuc->alt_baslik_durum == 1) {
                    echo "<span class=\"subtitle\">" . $Sonuc->alt_baslik_tr . "</span>";
                }
                if ($Sonuc->aciklama_durum == 1) {
                    echo "<span class=\"des\">" . $Sonuc->aciklama_tr . "</span>";
                }
                if ($Sonuc->buton_durum == 1) {
                    echo "<a style=\"font-weight:bold;\" href=\"" . $Sonuc->sliderlink . "\" class=\"btn\">" . $Sonuc->buton_tr . "</a>";
                }
                echo "</div></div>";
            }
            echo "</div></div><div class=\"banner-slide\">";
            $Sorgucu = $Baglan->query("SELECT * FROM hddizayn_reklam WHERE durum = 1 and reklam_alani = 'slider_alani' ORDER BY id ASC LIMIT 2");
            while ($Sonucla = $Sorgucu->fetch_object()) {
                echo "<a href=\"" . $Sonucla->reklam_link . "\" class=\"box-img\"><img src=\"dosyalar/afis/" . $Sonucla->resim . "\" alt=\"" . $Sonucla->reklam_aciklama . "\" width=\"207\" height=\"226\"></a>";
            }
            echo "</div></div></div></div>";
        }
        function OzelKategori()
        {
            include "ayarlar.php";
            $KategoriSorgu = $Baglan->query("SELECT * FROM hddizayn_kategori WHERE durum = 1 AND anasayfa = 1 ORDER BY id ASC");
            while ($Kategori = $KategoriSorgu->fetch_object()) {
                echo "<div class=\"block-floor-products block-floor-products-opt1 floor-products" . $Kategori->anasayfa_renk . "\" id=\"floor0-" . $Kategori->anasayfa_renk . "\">";
                echo "<div class=\"container\"><div class=\"block-title \">";
                echo "<span class=\"title\" style=\"font-size:16px;\">" . $Kategori->baslik . "</span>";
                echo "<div class=\"links dropdown\"><button class=\"dropdown-toggle\"  type=\"button\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\"><i class=\"fa fa-bars\" aria-hidden=\"true\"></i></button><div class=\"dropdown-menu\" ><ul class=\"bold\">";
                $AltSorgu = $Baglan->query("SELECT * FROM hddizayn_kategori_alt WHERE durum = 1 AND ust = " . $Kategori->id . " LIMIT 6");
                $Sira = 1;
                while ($Alt = $AltSorgu->fetch_object()) {
                    $SayiAl = $Baglan->query("SELECT * FROM hddizayn_urunler WHERE durum = 1 AND kategori_alt = " . $Alt->id . "  ORDER BY ID ASC");
                    echo "<li role=\"presentation\" class=\"" . ($Sira++ == "1" ? "active" : "") . "\"><a href=\"#" . $Alt->seflink . "\"  role=\"tab\" data-toggle=\"tab\">" . $Alt->baslik . " <!--<span class=\"label-cat\"><?php echo \$SayiAl->num_rows;?></span>---></a></li>";
                }
                echo "</ul></div></div><div class=\"actions\"><a href=\"javascript:;\" class=\"action action-up\"><i class=\"fa fa-angle-up\" aria-hidden=\"true\"></i></a><a href=\"javascript:;\" class=\"action action-down\"><i class=\"fa fa-angle-down\" aria-hidden=\"true\"></i></a></div></div><div class=\"block-banner-floor\"></div><div class=\"block-content\"><div class=\"col-banner\">";
                echo "<span class=\"label-featured\"><img src=\"images/ikon/cerceve-kategori.png\" alt=\"" . $Kategori->baslik . "\"></span>";
                echo "<a href=\"kategori/" . $Kategori->seflink . "/" . $Kategori->no . "\" class=\"box-img\"><img src=\"dosyalar/kategori/vitrin/" . $Kategori->resim_vitrin . "\" width=\"234\" height=\"350\" alt=\"" . $Kategori->baslik . "\"></a>";
                echo "</div><div class=\"col-products tab-content\">";
                $AltSorgu = $Baglan->query("SELECT * FROM hddizayn_kategori_alt WHERE durum = 1 AND ust = " . $Kategori->id . " LIMIT 6");
                $Sira = 1;
                while ($Alt = $AltSorgu->fetch_object()) {
                    echo "<div class=\"tab-pane " . ($Sira++ == "1" ? "active" : "") . " in  fade\" id=\"" . $Alt->seflink . "\" role=\"tabpanel\">";
                    echo "\n\t\t\t\t\t\t\t\t<div class=\"owl-carousel\" \n\t\t\t\t\t\t\t\t\tdata-nav=\"true\" \n\t\t\t\t\t\t\t\t\tdata-dots=\"false\" \n\t\t\t\t\t\t\t\t\tdata-margin=\"0\">";
                    $Sorgu = $Baglan->query("SELECT * FROM hddizayn_urunler WHERE durum = 1 AND kategori_alt = " . $Alt->id . "  ORDER BY ID ASC");
                    while ($Sonuc = $Sorgu->fetch_object()) {
                        echo "<div class=\"product-item  product-item-opt-1\"><div class=\"product-item-info\"><div class=\"product-item-photo\">";
                        echo "<a href=\"" . $Sonuc->seflink . ".html\" class=\"product-item-img\"><img src=\"dosyalar/urunler/" . $Sonuc->resim . "\" alt=\"" . $Sonuc->baslik . "\"></a>";
                        echo "<a href=\"" . $Sonuc->seflink . ".html\" class=\"btn btn-cart\" type=\"button\"><span>Sepete Ekle</span></a>";
                        echo "</div><div class=\"product-item-detail\">";
                        if ($Sonuc->indirim == 1) {
                            $AnaFiyat = $Sonuc->urunfiyat;
                            $Hesapla = $Sonuc->urunfiyat - $Sonuc->indirimli_fiyat;
                            $Yuzde = $Hesapla / $AnaFiyat * 100;
                            echo "<span class=\"product-item-label label-sale-off\" align=\"center\" style=\"font-size:13px; font-weight:bold;\">% " . floor($Yuzde) . "<span style=\"padding-top:5px;\">İndirim</span></span>";
                            echo "<strong class=\"product-item-name\"><a href=\"" . $Sonuc->seflink . ".html\">" . $Sonuc->baslik . "</a></strong>";
                            echo "<div class=\"clearfix\"><div class=\"t-center\">";
                            echo "<span class=\"price main-color bold\" style=\"font-size:18px;\">" . number_format($Sonuc->indirimli_fiyat, 2, ",", ",") . " " . $Sonuc->para_birimi . "</span>";
                            echo "<span class=\"old-price\" style=\"text-decoration:line-through;font-size:16px;\">" . number_format($Sonuc->urunfiyat, 2, ",", ",") . " " . $Sonuc->para_birimi . "</span>";
                            echo "</div></div>";
                        } else {
                            echo "<strong class=\"product-item-name\"><a href=\"" . $Sonuc->seflink . ".html\">" . $Sonuc->baslik . "</a></strong>";
                            echo "<div class=\"clearfix\"><div class=\"t-center\">";
                            echo "<span class=\"main-color bold\" style=\"font-size:18px;\">" . number_format($Sonuc->urunfiyat, 2, ",", ",") . " " . $Sonuc->para_birimi . "</span>";
                            echo "</div></div>";
                        }
                        echo "</div></div></div>";
                    }
                    echo "</div></div>";
                }
                echo "</div></div></div></div>";
            }
        }
        function POST($par, $st = false)
        {
            if ($st) {
                return htmlspecialchars(addslashes(trim(htmlentities($_POST[$par]))));
            }
            return addslashes(trim(htmlentities($_POST[$par])));
        }
        function GET($par)
        {
            return strip_tags(trim(addslashes(htmlentities($_GET[$par]))));
        }
        function tarih($par)
        {
            $Ayir = explode(" ", $par);
            $Parcala = explode("-", $Ayir[0]);
            $zaman = substr($Ayir[1], 0, 5);
            if ($Parcala[1] == "01") {
                $ay = "Ocak";
            } else {
                if ($Parcala[1] == "02") {
                    $ay = "Şubat";
                } else {
                    if ($Parcala[1] == "03") {
                        $ay = "Mart";
                    } else {
                        if ($Parcala[1] == "04") {
                            $ay = "Nisan";
                        } else {
                            if ($Parcala[1] == "05") {
                                $ay = "Mayıs";
                            } else {
                                if ($Parcala[1] == "06") {
                                    $ay = "Haziran";
                                } else {
                                    if ($Parcala[1] == "07") {
                                        $ay = "Temmuz";
                                    } else {
                                        if ($Parcala[1] == "08") {
                                            $ay = "Ağustos";
                                        } else {
                                            if ($Parcala[1] == "09") {
                                                $ay = "Eylül";
                                            } else {
                                                if ($Parcala[1] == "10") {
                                                    $ay = "Ekim";
                                                } else {
                                                    if ($Parcala[1] == "11") {
                                                        $ay = "Kasım";
                                                    } else {
                                                        if ($Parcala[1] == "12") {
                                                            $ay = "Aralık";
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            return $Parcala[2] . " " . $ay . " " . $Parcala[0] . ", " . $zaman;
        }
        function tarihsaat()
        {
            date_default_timezone_set("Europe/Istanbul");
            setlocale(LC_ALL, "turkish");
            $Gun = iconv("latin5", "utf-8", strftime("%A", strtotime("now")));
            $AyveYil = iconv("latin5", "utf-8", strftime("%d %B %Y", strtotime("now")));
            echo " " . $AyveYil . " ";
            echo "  /  ";
            echo " " . $Gun . " ";
            echo "  /  ";
            $Saat = date("H:i:s");
            echo $Saat;
        }
        function kontrol($Deger)
        {
            $Kontrol = ["Salak", "Aptal", "Geri Zekalı", "Mal", "Http://www.", "http://", "Www", ".Com", ".Net", "meta", "Http", "equiv", "refresh", "Content", "url", "Piç", ";", "=", "piç"];
            $Degistir = ["***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***", "***"];
            $islem = str_replace($Kontrol, $Degistir, ucwords(strtolower($Deger)));
            return $islem;
        }
        function IP()
        {
            if (getenv("HTTP_CLIENT_IP")) {
                $ip = getenv("HTTP_CLIENT_IP");
            } else {
                if (getenv("HTTP_X_FORWARDED_FOR")) {
                    $ip = getenv("HTTP_X_FORWARDED_FOR");
                    if (strstr($ip, ",")) {
                        $tmp = explode(",", $ip);
                        $ip = trim($tmp[0]);
                    }
                } else {
                    $ip = getenv("REMOTE_ADDR");
                }
            }
            return $ip;
        }
        function yonlen($url, $time = 0)
        {
            if ($time) {
                header("Refresh: " . $time . "; url=" . $url);
            } else {
                header("Location: " . $url);
            }
        }
        function Hata404()
        {
            echo "<script>window.location.href = \"" . $HDDizayn["site_adresi"] . "/" . "404.html\";</script>";
        }
        function gizlibilgi($str, $start, $end)
        {
            $after = mb_substr($str, 0, $start, "utf8");
            $repeat = str_repeat("*", $end);
            $before = mb_substr($str, $start + $end, strlen($str), "utf8");
            return $after . $repeat . $before;
        }
        function seflink($String)
        {
            $Turkce = ["ş", "Ş", "ı", "ü", "Ü", "ö", "Ö", "ç", "Ç", "ş", "Ş", "ı", "ğ", "Ğ", "İ", "ö", "Ö", "Ç", "ç", "ü", "Ü"];
            $Cevir = ["s", "s", "i", "u", "u", "o", "o", "c", "c", "s", "s", "i", "g", "g", "i", "o", "o", "c", "c", "u", "u"];
            $String = str_replace($Turkce, $Cevir, $String);
            return strtolower(trim(preg_replace("~[^0-9a-z]+~i", "-", html_entity_decode(preg_replace("~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i", "\$1", htmlentities($String, ENT_QUOTES, "UTF-8")), ENT_QUOTES, "UTF-8")), "-"));
        }
        function etiket($Kontrol)
        {
            $Turkce = ["ş", "Ş", "ı", "ü", "Ü", "ö", "Ö", "ç", "Ç", "ş", "Ş", "ı", "ğ", "Ğ", "İ", "ö", "Ö", "Ç", "ç", "ü", "Ü"];
            $Duzelt = ["s", "s", "i", "u", "u", "o", "o", "c", "c", "s", "s", "i", "g", "g", "i", "o", "o", "c", "c", "u", "u"];
            $Kontrol = str_replace($Turkce, $Duzelt, $Kontrol);
            return strtolower($Kontrol);
        }
        function kes($Kelime, $Limit)
        {
            $Kelime = substr($Kelime, 0, $Limit) . "...";
            $metin_son = strrchr($Kelime, " ");
            $Kelime = str_replace($metin_son, " ...", $Kelime);
            return $Kelime;
        }
        function buyukharf($metin)
        {
            $bul = ["ı", "i", "ğ", "ü", "ş", "ö", "ç", "Ì"];
            $degistir = ["I", "İ", "Ğ", "Ü", "Ş", "Ö", "Ç", "Ü"];
            $metin = str_replace($bul, $degistir, $metin);
            return $metin;
        }
        function sistembakim()
        {
            include "ayarlar.php";
            $ayarlar = $Baglan->query("SELECT * FROM hddizayn_site_ayarlari");
            $site_ayar = $ayarlar->fetch_array();
            if ($site_ayar["bakimmodu"] == 1) {
                if (!($_SESSION["yetki"] == 5 || $_SESSION["yetki"] == 4 || $_SESSION["yetki"] == 3)) {
                    header("location:" . $site_ayar["site_adresi"] . "/" . "bakim.html");
                }
            }
        }
        function giriskontrol()
        {
            $Anahtar = MD5(SHA1($_SERVER["HTTP_USER_AGENT"]));
            if ($_SESSION["giris"] != $Anahtar) {
                echo "<script language=\"javascript\">window.location=\"index.php\";</script>";
            }
        }
        function kullanici()
        {
            if ($_SESSION["yetki"] == "0") {
                header("location:hesabim.html");
            }
        }
        $_SESSION["zamankontrol"] = time();
        $inactive = 1800;
        if (isset($_SESSION["zamankontrol"])) {
            $session_life = time() - $_SESSION["zamankontrol"];
            if ($inactive < $session_life) {
                session_destroy();
            }
        }
        function uyekontrol()
        {
            include "ayarlar.php";
            $Anahtar = MD5(SHA1(CRC32($_SERVER["HTTP_USER_AGENT"])));
            if ($_SESSION["uyegiris"] == $Anahtar) {
                $eposta = $_SESSION["eposta"];
                $Sifre = $_SESSION["sifre"];
                $Sorgu = $Baglan->query("SELECT * FROM hddizayn_uyeler WHERE durum = '1' and eposta = '" . $eposta . "' and sifre ='" . $Sifre . "'");
                $Kontrol = $Sorgu->fetch_array();
                if (!$Kontrol) {
                    header("Location: giris.html");
                }
            } else {
                header("Location: giris.html");
            }
        }
        function footer_kurumsal()
        {
            include "ayarlar.php";
            $Sorgu = $Baglan->query("SELECT * FROM hddizayn_kurumsal_kategori WHERE durum = 1 ORDER BY id ASC LIMIT 4");
            while ($Sonuc = $Sorgu->fetch_object()) {
                echo "<div class=\"col-md-2 col-lg-2 col-xs-6 col\"><div class=\"links\">";
                echo "<h3 class=\"title\" style=\"color:white;\">" . $Sonuc->baslik . "</h3>";
                echo "<ul>";
                $Sorduk = $Baglan->query("SELECT * FROM hddizayn_kurumsal WHERE durum = 1 AND kategori = '" . $Sonuc->id . "' ORDER BY id ASC");
                while ($Bulduk = $Sorduk->fetch_object()) {
                    echo "<li>";
                    if ($Bulduk->tur == 0) {
                        echo "<a href=\"bilgi/" . $Bulduk->seflink . ".html\">" . $Bulduk->baslik . "</a>";
                    } else {
                        echo "<a href=\"" . $Bulduk->link . "\">" . $Bulduk->baslik . "</a>";
                    }
                    echo "</li>";
                }
                echo "</ul></div></div>";
            }
        }
        function info()
        {
            echo "<a href=\"https://hddizayn.com\" target=\"_blank\" class=\"footer-link\" style=\"font-weight:bold; color:#000;\"><i class=\"fa fa-code\"></i> HDDIZAYN WEB TASARIM <i class=\"fa fa-code\"></i></a>";
        }
        function zaman()
        {
            include "ayarlar.php";
            $Sorgu = $Baglan->query("SELECT * FROM hddizayn_uyeler WHERE id = '" . $_SESSION["uye_id"] . "'");
            $Uye = $Sorgu->fetch_object();
            $Sure = 60;
            $Zaman = time();
            $Hesap = $Zaman - $Sure;
            if (isset($_SESSION["eposta"])) {
                $Guncelle = $Baglan->query("UPDATE hddizayn_uyeler SET son_islem = '" . $Zaman . "' WHERE eposta = '" . $_SESSION["eposta"] . "'");
            }
        }
        $Copyright = file_get_contents("footer.php");
        if (!preg_match("#<a href=\"https://www.hddizayn.com\" target=\"_blank\"><span style=\"color:OrangeRed;font-weight:bold;\">HDDIZAYN WEB YAZILIM</span></a>#", $Copyright)) {
            exit("<html>\n\t\t<head>\n\t\t\t<title>Telif Hakkı ihlali - HDDIZAYN WEB YAZILIM</title>\n\t\t\t<meta name=\"robots\" content=\"noindex\">\n\t\t\t<meta charset=\"UTF-8\">\n\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n\t\t\t<link href=\"https://fonts.googleapis.com/css?family=Oswald:400,100,300,500,700%7CTitillium+Web:400,300,700,900&amp;subset=latin,latin-ext\" rel=\"stylesheet\" type=\"text/css\">\n\t\t\t<link rel=\"stylesheet\" href=\"https://www.hddizayn.com/assets/css/lisans.css\">\n\t\t</head>\n\t\t<body oncontextmenu=\"return false\" onselectstart=\"return false\" ondragstart=\"return false\">\n\t\t<center>\n\t\t\t<img src=\"https://hddizayn.com/images/hddizayn-yasak.png\" width=\"300\" height=\"150\" style=\"margin-top:40px;\">\n\t\t\t<div class=\"transbox\" style=\"color:black;font-weight:bold;\" align=\"center\">\n\t\t\t\t<p>\n\t\t\t\t\t<h3>Uyarı : Telif Hakkı (Copyright) ihlali tespit edildi.</h3>\n\t\t\t\t\tBu Yazılım &nbsp;<a style=\"color:red; text-decoration:none;\" href=\"https://www.hddizayn.com \"target=\"_blank\">HDDIZAYN WEB YAZILIM</a>  Tarafından Kodlanmıştır.</br>\n\t\t\t\t\tCopyright'da Yaptığınız Değişikliği Geri Almazsanız, Uyarı Sayfası, Ekranda Ebedi Olarak Kalacak,<br/>Konuyla ilgili Teknik destek verilmeyecektir !\n\t\t\t\t\t<br><br>\n\t\t\t\t\tHDDIZAYN WEB YAZILIM\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</center>\n\t\t</body>\n\t</html>");
        }
    } else {
        echo "<html>\n\t\t\t<head>\n\t\t\t\t<title>Bağlantı Hatası</title>\n\t\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\t\t\t\t<meta name=\"robots\" content=\"noindex\">\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n\t\t\t\t<link href=\"https://fonts.googleapis.com/css?family=Oswald:400,100,300,500,700%7CTitillium+Web:400,300,700,900&amp;subset=latin,latin-ext\" rel=\"stylesheet\" type=\"text/css\">\n\t\t\t\t<link rel=\"stylesheet\" href=\"https://www.hddizayn.com/assets/css/lisans.css\">\n\t\t\t</head>\n\t\t\t<body oncontextmenu=\"return false\" onselectstart=\"return false\" ondragstart=\"return false\">\n\t\t\t<center>\n\t\t\t\t<img src=\"https://hddizayn.com/images/hddizayn-yasak.png\" width=\"300\" height=\"150\" style=\"margin-top:40px;\">\n\t\t\t\t<div class=\"transbox\" style=\"color:black;font-weight:bold;\" align=\"center\">\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<h3>Uyarı : Bağlantı Hatası !</h3>\n\t\t\t\t\t\tSunucu ile bağlantı kurulamıyor.\n\t\t\t\t\t\t<br/>Sunucuda bakım çalışması yapılmaktadır. &nbsp;<a style=\"color:red; text-decoration:none;\" href=\"https://www.hddizayn.com \"target=\"_blank\">HDDIZAYN.COM </a>  Adresinden bilgi alabilirsiniz.</br>\n\t\t\t\t\t\tAnlayışınız için teşekkür ederiz.\n\t\t\t\t\t\t<br/>E-Posta: [email protected]\n\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\tHDDIZAYN WEB YAZILIM\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</center>\n\t\t\t</body>\n\t\t</html>";
    }
}

?>