Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* * @ PHP 7.2 * @ Decoder version : 1.0.0.3 * @ Release on : 14/04/2021 * ..

Decoded Output download

<?php 
/* 
 * @ PHP 7.2 
 * @ Decoder version : 1.0.0.3 
 * @ Release on : 14/04/2021 
 * @ Website    : http://EasyToYou.eu 
 */ 
 
require_once "class.database.php"; 
require_once "class.define.php"; 
require_once "class.mobile.php"; 
$detect = new Mobile_Detect(); 
$tarih = date("Y-m-d"); 
$saat = date("H:i:s"); 
$site = site("site_http") . site("site_www") . site("site_url"); 
$dosyam = site("site_http") . site("site_www") . site("site_url"); 
$gsitekey = site("google_sitekey"); 
$gssecretkey = site("google_secret"); 
if (site("site_www") == "") { 
    if (substr($_SERVER["HTTP_HOST"], 0, 4) == "www.") { 
        header("Location: http" . (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" ? "s" : "") . "://" . substr($_SERVER["HTTP_HOST"], 4) . $_SERVER["REQUEST_URI"]); 
        exit; 
    } 
} else { 
    if (substr($_SERVER["HTTP_HOST"], 0, 4) != "www.") { 
        header("Location: http" . (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" ? "s" : "") . "://www." . substr($_SERVER["HTTP_HOST"], 0) . $_SERVER["REQUEST_URI"]); 
        exit; 
    } 
} 
if (site("site_http") == "https://" && (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] == "")) { 
    $redirect = "https://" . str_replace(site("site_www"), "", $_SERVER["HTTP_HOST"]) . $_SERVER["REQUEST_URI"]; 
    header("HTTP/1.1 301 Moved Permanently"); 
    header("Location: " . $redirect); 
} 
$dil = $_COOKIE["dil"]; 
$dil_get = $_GET["dil"]; 
if ($dil == "") { 
    $dil = site("site_dil"); 
} else { 
    $dilsorgu = $db->table("wm_dil")->where("kisa_adi", "=", $dil)->getAll(); 
    if ($db->numRows() == 0) { 
        $dil = site("site_dil"); 
    } 
} 
if ($dil_get != "") { 
    $dilsorgu = $db->table("wm_dil")->where("kisa_adi", "=", $dil)->getAll(); 
    if ($db->numRows() != 0) { 
        setcookie("dil", $dil_get, time() + 2592000, "/"); 
        $dil = $dil_get; 
        yonlen($site); 
    } 
} 
$dilck = $_COOKIE["dil"]; 
$lg = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2); 
$bakkvrmi = $db->table("wm_dil")->where("kisa_adi", "=", $lg)->getAll(); 
if (0 < $db->numRows() && $dil != $lg && $dilck == "") { 
    $dil = $lg; 
} 
$latx = file_get_contents($site . "/languages/" . $dil . ".po"); 
function site($bilgi) 
{ 
    global $db; 
    $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_ = $db->table("wm_site_ayar")->select($bilgi)->limit(1)->getRow(); 
    return $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_->{$bilgi}; 
} 
function SiteResim($bilgi) 
{ 
    global $db; 
    $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_ = $db->table("wm_ana_sayfa")->select($bilgi)->limit(1)->getRow(); 
    return $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_->{$bilgi}; 
} 
function SiteModul($bilgi) 
{ 
    global $db; 
    $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_ = $db->table("wm_modul")->select($bilgi)->limit(1)->getRow(); 
    return $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_->{$bilgi}; 
} 
function CDN() 
{ 
    if (site("cdn_sistemi")) { 
        echo site("cdn_sistemi") . "/"; 
    } 
} 
function yonlen($url) 
{ 
    if (!headers_sent()) { 
        header("Location: " . $url); 
        exit; 
    } 
    echo "<script type=\"text/javascript\">"; 
    echo "window.location.href=\"" . $url . "\";"; 
    echo "</script><noscript>"; 
    echo "<meta http-equiv=\"refresh\" content=\"0;url=" . $url . "\" />"; 
    echo "</noscript>"; 
    exit; 
} 
function NoTemizle($n) 
{ 
    $n = stripslashes($n); 
    $n = str_replace("(", "", $n); 
    $n = str_replace(")", "", $n); 
    $n = str_replace("-", "", $n); 
    $n = str_replace(" ", "", $n); 
    return trim($n); 
} 
function alert($tip, $mesaj, $nereye, $sure) 
{ 
    $bilgi = "<br><div class=\"col-sm-12 col-md-12 col-xs-12\">
				  <div class=\"alert alert-" . $tip . " alert-dismissable\">
					<strong>" . $mesaj . "</strong> Ltfen Bekleyin, Ynlendiriliyorsunuz.
					<meta http-equiv=\"refresh\" content=\"" . $sure . ";URL=" . $nereye . "\" />
				  </div>
				  </div>"; 
    return $bilgi; 
} 
function bilgi($tip, $mesaj) 
{ 
    $bilgi = "<br><div class=\"col-sm-12 col-md-12 col-xs-12\">
				  <div class=\"alert alert-" . $tip . "\">
					<strong style=\"font-size:13px;\"><center>" . $mesaj . "</center></strong>
				  </div>
				  </div>"; 
    return $bilgi; 
} 
function Gizle($string, $action = "e") 
{ 
    $_obfuscated_0D282C141E370133252E053D311526071C0E1F143B5B01_ = SECRET_KEY; 
    $_obfuscated_0D0E01340D253F02112113122A3C14173C3E112C162822_ = SECRET_IV; 
    $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_ = false; 
    $_obfuscated_0D341530361B0227392B171F3330081A132F351E3F1001_ = "AES-256-CBC"; 
    $key = hash("sha256", $_obfuscated_0D282C141E370133252E053D311526071C0E1F143B5B01_); 
    $_obfuscated_0D253B221424372C2D05403116335C3B26040D2C5C3601_ = substr(hash("sha256", $_obfuscated_0D0E01340D253F02112113122A3C14173C3E112C162822_), 0, 16); 
    if ($action == "e") { 
        $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_ = base64_encode(openssl_encrypt($string, $_obfuscated_0D341530361B0227392B171F3330081A132F351E3F1001_, $key, 0, $_obfuscated_0D253B221424372C2D05403116335C3B26040D2C5C3601_)); 
    } else { 
        if ($action == "d") { 
            $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_ = openssl_decrypt(base64_decode($string), $_obfuscated_0D341530361B0227392B171F3330081A132F351E3F1001_, $key, 0, $_obfuscated_0D253B221424372C2D05403116335C3B26040D2C5C3601_); 
        } 
    } 
    return $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_; 
} 
function GetIP() 
{ 
    if (!empty($_SERVER["HTTP_CLIENT_IP"])) { 
        $ip = $_SERVER["HTTP_CLIENT_IP"]; 
    } else { 
        if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { 
            $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; 
        } else { 
            $ip = $_SERVER["REMOTE_ADDR"]; 
        } 
    } 
    return $ip; 
} 
function FormSecurity($text) 
{ 
    $text = stripslashes($text); 
    $text = str_replace("**/", "", $text); 
    $text = str_replace("/**", "", $text); 
    $text = str_replace("0x3a", "", $text); 
    $text = str_replace("DR/**/OP/", "", $text); 
    $text = str_replace("/*", "", $text); 
    $text = str_replace("--", "", $text); 
    $text = str_replace("||", "", $text); 
    $text = str_replace("' #", "", $text); 
    $text = str_replace("++", "", $text); 
    $text = str_replace("*/", "", $text); 
    $text = str_replace("or 1=1", "", $text); 
    $text = str_replace("'1'='1", "", $text); 
    $text = str_replace("S@BUN", "", $text); 
    $text = str_replace("../", "", $text); 
    $text = str_replace("OR%", "", $text); 
    $text = str_replace("1,1", "", $text); 
    $text = str_replace("%27", "", $text); 
    $text = str_replace("%22", "", $text); 
    $text = str_replace("%0A", "", $text); 
    $text = str_replace("%0D", "", $text); 
    $text = str_replace("%3C", "", $text); 
    $text = str_replace("%3E", "", $text); 
    $text = str_replace("%00", "", $text); 
    $text = str_replace("echo.*kae", "", $text); 
    $text = str_replace("=%27\$", "", $text); 
    $text = str_replace("%2e%2e", "", $text); 
    $text = str_replace("\"", "", $text); 
    $text = str_replace("%", "", $text); 
    $text = str_replace("`", "", $text); 
    $text = str_replace("", "", $text); 
    $text = str_replace("%", "", $text); 
    $text = str_replace("<", "", $text); 
    $text = str_replace(">", "", $text); 
    return $text; 
} 
function kisalt($metin, $uzunluk) 
{ 
    $_obfuscated_0D17151521045B275C181F342D2801041F24303D320611_ = strlen($metin); 
    if ($uzunluk < $_obfuscated_0D17151521045B275C181F342D2801041F24303D320611_) { 
        $metin = substr($metin, 0, $uzunluk) . "..."; 
        $_obfuscated_0D093938165B030B3C302A1705100C1A05103517020C22_ = strrchr($metin, " "); 
        $metin = str_replace($_obfuscated_0D093938165B030B3C302A1705100C1A05103517020C22_, " ...", $metin); 
    } 
    return $metin; 
} 
function cevirtarih($tarih) 
{ 
    $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_ = explode("-", $tarih); 
    $_obfuscated_0D04401E3410141026211C2F2A3B141B03172C03072922_ = $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_[2] . "-" . $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_[1] . "-" . $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_[0]; 
    return $_obfuscated_0D04401E3410141026211C2F2A3B141B03172C03072922_; 
} 
function seo($str, $options = []) 
{ 
    $str = mb_convert_encoding((string) $str, "UTF-8", mb_list_encodings()); 
    $_obfuscated_0D310222052211220E1D2C2D23191F361C0B141C2A3E32_ = ["delimiter" => "-", "limit" => NULL, "lowercase" => true, "replacements" => [], "transliterate" => true]; 
    $options = array_merge($_obfuscated_0D310222052211220E1D2C2D23191F361C0B141C2A3E32_, $options); 
    $_obfuscated_0D04113624253930140C3B3C5B07103E5B1C0421333F11_ = ["" => "A", "" => "A", "" => "A", "" => "A", "" => "A", "" => "A", "" => "AE", "" => "C", "" => "E", "" => "E", "" => "E", "" => "E", "" => "I", "" => "I", "" => "I", "" => "I", "" => "D", "" => "N", "" => "O", "" => "o", "" => "O", "" => "O", "" => "O", "" => "O", "" => "O", "" => "U", "" => "U", "" => "U", "" => "U", "" => "U", "" => "Y", "" => "TH", "" => "ss", "" => "a", "" => "a", "" => "a", "" => "a", "" => "a", "" => "a", "" => "ae", "" => "c", "" => "e", "" => "e", "" => "e", "" => "e", "" => "i", "" => "i", "" => "i", "" => "i", "" => "d", "" => "n", "" => "o", "" => "o", "" => "o", "" => "o", "" => "o", "" => "o", "" => "o", "" => "u", "" => "u", "" => "u", "" => "u", "" => "u", "" => "y", "" => "th", "" => "y", "" => "(c)", "" => "A", "" => "B", "" => "G", "" => "D", "" => "E", "" => "Z", "" => "H", "" => "8", "" => "I", "" => "K", "" => "L", "" => "M", "" => "N", "" => "3", "" => "O", "" => "P", "" => "R", "" => "S", "" => "T", "" => "Y", "" => "F", "" => "X", "" => "PS", "" => "W", "" => "A", "" => "E", "" => "I", "" => "O", "" => "Y", "" => "H", "" => "W", "" => "I", "" => "Y", "" => "a", "" => "b", "" => "g", "" => "d", "" => "e", "" => "z", "" => "h", "" => "8", "" => "i", "" => "k", "" => "l", "" => "m", "" => "n", "" => "3", "" => "o", "" => "p", "" => "r", "" => "s", "" => "t", "" => "y", "" => "f", "" => "x", "" => "ps", "" => "w", "" => "a", "" => "e", "" => "i", "" => "o", "" => "y", "" => "h", "" => "w", "" => "s", "" => "i", "" => "y", "" => "y", "" => "i", "" => "S", "" => "I", "" => "G", "" => "s", "" => "i", "" => "g", "" => "A", "" => "B", "" => "V", "" => "G", "" => "D", "" => "E", "" => "Yo", "" => "Zh", "" => "Z", "" => "I", "" => "J", "" => "K", "" => "L", "" => "M", "" => "N", "" => "O", "" => "P", "" => "R", "" => "S", "" => "T", "" => "U", "" => "F", "" => "H", "" => "C", "" => "Ch", "" => "Sh", "" => "Sh", "" => "", "" => "Y", "" => "", "" => "E", "" => "Yu", "" => "Ya", "" => "a", "" => "b", "" => "v", "" => "g", "" => "d", "" => "e", "" => "yo", "" => "zh", "" => "z", "" => "i", "" => "j", "" => "k", "" => "l", "" => "m", "" => "n", "" => "o", "" => "p", "" => "r", "" => "s", "" => "t", "" => "u", "" => "f", "" => "h", "" => "c", "" => "ch", "" => "sh", "" => "sh", "" => "", "" => "y", "" => "", "" => "e", "" => "yu", "" => "ya", "" => "Ye", "" => "I", "" => "Yi", "" => "G", "" => "ye", "" => "i", "" => "yi", "" => "g", "" => "C", "" => "D", "" => "E", "" => "N", "" => "R", "" => "S", "" => "T", "" => "U", "" => "Z", "" => "c", "" => "d", "" => "e", "" => "n", "" => "r", "" => "s", "" => "t", "" => "u", "" => "z", "" => "A", "" => "C", "" => "e", "" => "L", "" => "N", "" => "S", "" => "Z", "" => "Z", "" => "a", "" => "c", "" => "e", "" => "l", "" => "n", "" => "s", "" => "z", "" => "z", "" => "A", "" => "E", "" => "G", "" => "i", "" => "k", "" => "L", "" => "N", "" => "u", "" => "a", "" => "e", "" => "g", "" => "i", "" => "k", "" => "l", "" => "n", "" => "u"]; 
    $str = preg_replace(array_keys($options["replacements"]), $options["replacements"], $str); 
    if ($options["transliterate"]) { 
        $str = str_replace(array_keys($_obfuscated_0D04113624253930140C3B3C5B07103E5B1C0421333F11_), $_obfuscated_0D04113624253930140C3B3C5B07103E5B1C0421333F11_, $str); 
    } 
    $str = preg_replace("/[^\p{L}\p{Nd}]+/u", $options["delimiter"], $str); 
    $str = preg_replace("/(" . preg_quote($options["delimiter"], "/") . "){2,}/", "\$1", $str); 
    $str = mb_substr($str, 0, $options["limit"] ? $options["limit"] : mb_strlen($str, "UTF-8"), "UTF-8"); 
    $str = trim($str, $options["delimiter"]); 
    return $options["lowercase"] ? mb_strtolower($str, "UTF-8") : $str; 
} 
function turkcetarih($f, $zt = "now") 
{ 
    $z = date((string) $f, strtotime($zt)); 
    $_obfuscated_0D32151D5B1B2D172122342B0438373D041B17372F5B11_ = ["Monday" => "Pazartesi", "Tuesday" => "Sal", "Wednesday" => "aramba", "Thursday" => "Perembe", "Friday" => "Cuma", "Saturday" => "Cumartesi", "Sunday" => "Pazar", "January" => "Ocak", "February" => "ubat", "March" => "Mart", "April" => "Nisan", "May" => "Mays", "June" => "Haziran", "July" => "Temmuz", "August" => "Austos", "September" => "Eyll", "October" => "Ekim", "November" => "Kasm", "December" => "Aralk", "Mon" => "Pts", "Tue" => "Sal", "Wed" => "ar", "Thu" => "Per", "Fri" => "Cum", "Sat" => "Cts", "Sun" => "Paz", "Jan" => "Oca", "Feb" => "ub", "Mar" => "Mar", "Apr" => "Nis", "Jun" => "Haz", "Jul" => "Tem", "Aug" => "Au", "Sep" => "Eyl", "Oct" => "Eki", "Nov" => "Kas", "Dec" => "Ara"]; 
    foreach ($_obfuscated_0D32151D5B1B2D172122342B0438373D041B17372F5B11_ as $_obfuscated_0D1C0C075C32142F2F101713181D36331D132F2C3D3811_ => $_obfuscated_0D402607362B2A0D1207314033011A31232C1F3B5B2501_) { 
        $z = str_replace($_obfuscated_0D1C0C075C32142F2F101713181D36331D132F2C3D3811_, $_obfuscated_0D402607362B2A0D1207314033011A31232C1F3B5B2501_, $z); 
    } 
    if (strpos($z, "Mays") !== false && strpos($f, "F") === false) { 
        $z = str_replace("Mays", "May", $z); 
    } 
    return $z; 
} 
function addhttp($url) 
{ 
    return substr($url, 0, 7) == "http://" || substr($url, 0, 8) == "https://" ? $url : "http://" . $url; 
} 
function UrunMenuKat() 
{ 
    global $db; 
    global $dil; 
    $_obfuscated_0D3C102D2A2E012911351203333C0E3807221C250C3932_ = $db->table("wm_sektorler")->where("dil", "=", $dil)->where("sektor_durum", "=", "Aktif")->orderBy("sektor_adi", "ASC")->getAll(); 
    foreach ($_obfuscated_0D3C102D2A2E012911351203333C0E3807221C250C3932_ as $_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_) { 
        $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_ .= "<li><a href=\"c/" . $_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_->sektor_id . "/" . seo($_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_->sektor_adi) . "\">" . $_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_->sektor_adi . "</a></li>"; 
    } 
    return $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_; 
} 
function ProjeMenuKat() 
{ 
    global $db; 
    global $dil; 
    $_obfuscated_0D250D3B23272E2F2C09180814241F1C2623091A0D0A32_ = $db->table("wm_proje_kat")->where("dil", "=", $dil)->where("pkat_durum", "=", "Aktif")->orderBy("pkat_adi", "ASC")->getAll(); 
    foreach ($_obfuscated_0D250D3B23272E2F2C09180814241F1C2623091A0D0A32_ as $_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_) { 
        $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_ .= "<li><a href=\"proje-kategori/" . $_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_->ProjeKatID . "/" . seo($_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_->pkat_adi) . "\">" . $_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_->pkat_adi . "</a></li>"; 
    } 
    return $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_; 
} 
function HaberMenuKat() 
{ 
    global $db; 
    global $dil; 
    $_obfuscated_0D12373C5B18171534310C150B3F2C33372307090C2F32_ = $db->table("wm_blog_kat")->where("dil", "=", $dil)->orderBy("blog_kat_adi", "ASC")->getAll(); 
    foreach ($_obfuscated_0D12373C5B18171534310C150B3F2C33372307090C2F32_ as $_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_) { 
        $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_ .= "<li><a href=\"kategori/" . $_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_->BlogKatID . "/" . seo($_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_->blog_kat_adi) . "\">" . $_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_->blog_kat_adi . "</a></li>"; 
    } 
    return $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_; 
} 
function MenuListele($kategoriArray, $ebeveyn = 0, $kademe_pixel = 5, $i = 0, $menuler = NULL, $nested = false) 
{ 
    global $db; 
    if (empty($kategoriArray)) { 
        return NULL; 
    } 
    if (!$nested) { 
        foreach ($kategoriArray as $row) { 
            $_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$row["menu_altid"]][] = $row; 
        } 
    } else { 
        $_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_ = $kategoriArray; 
    } 
    foreach ($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$ebeveyn] as $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_) { 
        $_obfuscated_0D06273E1A2C2E2A402838160B1730152C332422143D32_ = str_repeat(" ", $i * $kademe_pixel); 
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "") { 
            if (isset($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"]])) { 
                $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL; 
            } else { 
                $menuler .= "<li><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL; 
            } 
        } 
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "UKAT") { 
            $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>
				<ul>
				" . urunmenukat() . "
				</ul>" . PHP_EOL; 
        } 
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "PKAT") { 
            $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>
				<ul>
				" . projemenukat() . "
				</ul>" . PHP_EOL; 
        } 
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "HKAT") { 
            $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>
				<ul>
				" . habermenukat() . "
				</ul>" . PHP_EOL; 
        } 
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "SAYFA") { 
            $_obfuscated_0D25283F1F3123050812011502352F371C072E1D363601_ = $db->customQuery("SELECT * FROM wm_sayfa WHERE SayfaID='" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_sayfa"] . "'")->getRow("array"); 
            if (isset($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"]])) { 
                $menuler .= "<li class=\"dropdown\"><a href=\"" . seo($_obfuscated_0D25283F1F3123050812011502352F371C072E1D363601_->sayfa_adi) . "/" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_sayfa"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL; 
            } else { 
                $menuler .= "<li><a href=\"sayfa/" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_sayfa"] . "/" . seo($_obfuscated_0D25283F1F3123050812011502352F371C072E1D363601_["sayfa_adi"]) . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL; 
            } 
        } 
        if (isset($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"]])) { 
            $menuler .= "<ul>" . PHP_EOL; 
            $menuler = MenuListele($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_, $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"], $kademe_pixel, $i + 1, $menuler, true); 
            $menuler .= "</ul>" . PHP_EOL; 
        } 
        $menuler .= "</li>" . PHP_EOL; 
    } 
    return $menuler; 
} 
function sec_session_start() 
{ 
    $domain = $site; 
    $session_name = "sec_session_id"; 
    $_obfuscated_0D2D29210B2E1611105B5C085B1C3510351F3024222832_ = false; 
    $_obfuscated_0D3103281E403009192B211D2F1A2C1A0B1C2C30021E11_ = true; 
    ini_set("session.use_only_cookies", 0); 
    $_obfuscated_0D161F210E332332321105170B06240C0A2D5C381C0411_ = session_get_cookie_params(); 
    session_set_cookie_params($_obfuscated_0D161F210E332332321105170B06240C0A2D5C381C0411_["lifetime"], $_obfuscated_0D161F210E332332321105170B06240C0A2D5C381C0411_["path"], $domain, $_obfuscated_0D2D29210B2E1611105B5C085B1C3510351F3024222832_, $_obfuscated_0D3103281E403009192B211D2F1A2C1A0B1C2C30021E11_); 
    session_name($session_name); 
    session_start(); 
} 
function LogProcess($email, $durum) 
{ 
    global $db; 
    global $tarih; 
    global $saat; 
    $data = ["log_ip" => getip(), "log_username" => $email, "log_date" => $tarih, "log_time" => $saat, "log_durum" => $durum]; 
    $db->table("wm_loglar")->insert($data); 
} 
function dil($key) 
{ 
    global $latx; 
    preg_match("@" . $key . "={(.*?)}@si", $latx, $res); 
    return $res[1]; 
} 
function AnaKatSayi($AnaKatID) 
{ 
    global $db; 
    $db->table("wm_urun")->select("urun_kat_id", "urun_durum")->where("urun_kat_id", "=", $AnaKatID)->where("urun_durum", "=", "Aktif")->getAll(); 
    return $db->numRows(); 
} 
function AltKatSayi($AltKatID) 
{ 
    global $db; 
    $db->table("wm_urun")->select("urun_kat_id", "urun_durum")->where("urun_alt_kat_id", "=", $AltKatID)->where("urun_durum", "=", "Aktif")->getAll(); 
    return $db->numRows(); 
} 
function UrunYorumSay($UrunID) 
{ 
    global $db; 
    $db->table("wm_yorum")->select("YorumID", "yorum_urun_id", "yorum_durum")->where("yorum_urun_id", "=", $UrunID)->where("yorum_durum", "=", "Aktif")->getAll(); 
    return $db->numRows(); 
} 
function HaberKatSayi($HaberKatID) 
{ 
    global $db; 
    $db->table("wm_blog")->select("blog_kat_id")->where("blog_kat_id", "=", $HaberKatID)->getAll(); 
    return $db->numRows(); 
} 
function UrunYorumSonuc($id) 
{ 
    global $db; 
    $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_ = "SELECT AVG(yorum_puan) AS av FROM wm_yorum WHERE yorum_urun_id='" . $id . "' AND yorum_durum = 'Aktif'"; 
    $result = $db->customQuery($_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_)->getRow("array"); 
    $_obfuscated_0D4037103F28221A050102110128180B1E30313B1A5B01_ = round($result["av"]); 
    for ($i = 0; $i < $_obfuscated_0D4037103F28221A050102110128180B1E30313B1A5B01_; $i++) { 
        echo "<i class=\"fa fa-star\" style=\"padding-right:3px; color:#FFDF00;\"></i>"; 
    } 
    for ($i = $_obfuscated_0D4037103F28221A050102110128180B1E30313B1A5B01_; $i < 5; $i++) { 
        echo "<i class=\"fa fa-star-o\" style=\"padding-right:3px; color:#FFDF00;\"></i>"; 
    } 
} 
function UyeYorumSonuc($id) 
{ 
    global $db; 
    $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_ = $db->customQuery("SELECT * FROM wm_yorum WHERE YorumID='" . $id . "' AND yorum_durum = 'Aktif'")->getRow(); 
    for ($i = 0; $i < $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_->yorum_puan; $i++) { 
        echo "<i class=\"fa fa-star\" style=\"padding-right:3px; color:#FFDF00;\"></i>"; 
    } 
    for ($i = $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_->yorum_puan; $i < 5; $i++) { 
        echo "<i class=\"fa fa-star-o\" style=\"padding-right:3px; color:#FFDF00;\"></i>"; 
    } 
} 
 
?>

Did this file decode correctly?

Original Code

<?php
/*
 * @ PHP 7.2
 * @ Decoder version : 1.0.0.3
 * @ Release on : 14/04/2021
 * @ Website    : http://EasyToYou.eu
 */

require_once "class.database.php";
require_once "class.define.php";
require_once "class.mobile.php";
$detect = new Mobile_Detect();
$tarih = date("Y-m-d");
$saat = date("H:i:s");
$site = site("site_http") . site("site_www") . site("site_url");
$dosyam = site("site_http") . site("site_www") . site("site_url");
$gsitekey = site("google_sitekey");
$gssecretkey = site("google_secret");
if (site("site_www") == "") {
    if (substr($_SERVER["HTTP_HOST"], 0, 4) == "www.") {
        header("Location: http" . (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" ? "s" : "") . "://" . substr($_SERVER["HTTP_HOST"], 4) . $_SERVER["REQUEST_URI"]);
        exit;
    }
} else {
    if (substr($_SERVER["HTTP_HOST"], 0, 4) != "www.") {
        header("Location: http" . (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" ? "s" : "") . "://www." . substr($_SERVER["HTTP_HOST"], 0) . $_SERVER["REQUEST_URI"]);
        exit;
    }
}
if (site("site_http") == "https://" && (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] == "")) {
    $redirect = "https://" . str_replace(site("site_www"), "", $_SERVER["HTTP_HOST"]) . $_SERVER["REQUEST_URI"];
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: " . $redirect);
}
$dil = $_COOKIE["dil"];
$dil_get = $_GET["dil"];
if ($dil == "") {
    $dil = site("site_dil");
} else {
    $dilsorgu = $db->table("wm_dil")->where("kisa_adi", "=", $dil)->getAll();
    if ($db->numRows() == 0) {
        $dil = site("site_dil");
    }
}
if ($dil_get != "") {
    $dilsorgu = $db->table("wm_dil")->where("kisa_adi", "=", $dil)->getAll();
    if ($db->numRows() != 0) {
        setcookie("dil", $dil_get, time() + 2592000, "/");
        $dil = $dil_get;
        yonlen($site);
    }
}
$dilck = $_COOKIE["dil"];
$lg = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2);
$bakkvrmi = $db->table("wm_dil")->where("kisa_adi", "=", $lg)->getAll();
if (0 < $db->numRows() && $dil != $lg && $dilck == "") {
    $dil = $lg;
}
$latx = file_get_contents($site . "/languages/" . $dil . ".po");
function site($bilgi)
{
    global $db;
    $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_ = $db->table("wm_site_ayar")->select($bilgi)->limit(1)->getRow();
    return $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_->{$bilgi};
}
function SiteResim($bilgi)
{
    global $db;
    $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_ = $db->table("wm_ana_sayfa")->select($bilgi)->limit(1)->getRow();
    return $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_->{$bilgi};
}
function SiteModul($bilgi)
{
    global $db;
    $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_ = $db->table("wm_modul")->select($bilgi)->limit(1)->getRow();
    return $_obfuscated_0D3707191C030D5C2D162D180D0B2F2323302430310901_->{$bilgi};
}
function CDN()
{
    if (site("cdn_sistemi")) {
        echo site("cdn_sistemi") . "/";
    }
}
function yonlen($url)
{
    if (!headers_sent()) {
        header("Location: " . $url);
        exit;
    }
    echo "<script type=\"text/javascript\">";
    echo "window.location.href=\"" . $url . "\";";
    echo "</script><noscript>";
    echo "<meta http-equiv=\"refresh\" content=\"0;url=" . $url . "\" />";
    echo "</noscript>";
    exit;
}
function NoTemizle($n)
{
    $n = stripslashes($n);
    $n = str_replace("(", "", $n);
    $n = str_replace(")", "", $n);
    $n = str_replace("-", "", $n);
    $n = str_replace(" ", "", $n);
    return trim($n);
}
function alert($tip, $mesaj, $nereye, $sure)
{
    $bilgi = "<br><div class=\"col-sm-12 col-md-12 col-xs-12\">\r\n\t\t\t\t  <div class=\"alert alert-" . $tip . " alert-dismissable\">\r\n\t\t\t\t\t<strong>" . $mesaj . "</strong> Ltfen Bekleyin, Ynlendiriliyorsunuz.\r\n\t\t\t\t\t<meta http-equiv=\"refresh\" content=\"" . $sure . ";URL=" . $nereye . "\" />\r\n\t\t\t\t  </div>\r\n\t\t\t\t  </div>";
    return $bilgi;
}
function bilgi($tip, $mesaj)
{
    $bilgi = "<br><div class=\"col-sm-12 col-md-12 col-xs-12\">\r\n\t\t\t\t  <div class=\"alert alert-" . $tip . "\">\r\n\t\t\t\t\t<strong style=\"font-size:13px;\"><center>" . $mesaj . "</center></strong>\r\n\t\t\t\t  </div>\r\n\t\t\t\t  </div>";
    return $bilgi;
}
function Gizle($string, $action = "e")
{
    $_obfuscated_0D282C141E370133252E053D311526071C0E1F143B5B01_ = SECRET_KEY;
    $_obfuscated_0D0E01340D253F02112113122A3C14173C3E112C162822_ = SECRET_IV;
    $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_ = false;
    $_obfuscated_0D341530361B0227392B171F3330081A132F351E3F1001_ = "AES-256-CBC";
    $key = hash("sha256", $_obfuscated_0D282C141E370133252E053D311526071C0E1F143B5B01_);
    $_obfuscated_0D253B221424372C2D05403116335C3B26040D2C5C3601_ = substr(hash("sha256", $_obfuscated_0D0E01340D253F02112113122A3C14173C3E112C162822_), 0, 16);
    if ($action == "e") {
        $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_ = base64_encode(openssl_encrypt($string, $_obfuscated_0D341530361B0227392B171F3330081A132F351E3F1001_, $key, 0, $_obfuscated_0D253B221424372C2D05403116335C3B26040D2C5C3601_));
    } else {
        if ($action == "d") {
            $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_ = openssl_decrypt(base64_decode($string), $_obfuscated_0D341530361B0227392B171F3330081A132F351E3F1001_, $key, 0, $_obfuscated_0D253B221424372C2D05403116335C3B26040D2C5C3601_);
        }
    }
    return $_obfuscated_0D331D351432051B07352C2331135B5C5C163E03121022_;
}
function GetIP()
{
    if (!empty($_SERVER["HTTP_CLIENT_IP"])) {
        $ip = $_SERVER["HTTP_CLIENT_IP"];
    } else {
        if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
            $ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
        } else {
            $ip = $_SERVER["REMOTE_ADDR"];
        }
    }
    return $ip;
}
function FormSecurity($text)
{
    $text = stripslashes($text);
    $text = str_replace("**/", "", $text);
    $text = str_replace("/**", "", $text);
    $text = str_replace("0x3a", "", $text);
    $text = str_replace("DR/**/OP/", "", $text);
    $text = str_replace("/*", "", $text);
    $text = str_replace("--", "", $text);
    $text = str_replace("||", "", $text);
    $text = str_replace("' #", "", $text);
    $text = str_replace("++", "", $text);
    $text = str_replace("*/", "", $text);
    $text = str_replace("or 1=1", "", $text);
    $text = str_replace("'1'='1", "", $text);
    $text = str_replace("S@BUN", "", $text);
    $text = str_replace("../", "", $text);
    $text = str_replace("OR%", "", $text);
    $text = str_replace("1,1", "", $text);
    $text = str_replace("%27", "", $text);
    $text = str_replace("%22", "", $text);
    $text = str_replace("%0A", "", $text);
    $text = str_replace("%0D", "", $text);
    $text = str_replace("%3C", "", $text);
    $text = str_replace("%3E", "", $text);
    $text = str_replace("%00", "", $text);
    $text = str_replace("echo.*kae", "", $text);
    $text = str_replace("=%27\$", "", $text);
    $text = str_replace("%2e%2e", "", $text);
    $text = str_replace("\"", "", $text);
    $text = str_replace("%", "", $text);
    $text = str_replace("`", "", $text);
    $text = str_replace("", "", $text);
    $text = str_replace("%", "", $text);
    $text = str_replace("<", "", $text);
    $text = str_replace(">", "", $text);
    return $text;
}
function kisalt($metin, $uzunluk)
{
    $_obfuscated_0D17151521045B275C181F342D2801041F24303D320611_ = strlen($metin);
    if ($uzunluk < $_obfuscated_0D17151521045B275C181F342D2801041F24303D320611_) {
        $metin = substr($metin, 0, $uzunluk) . "...";
        $_obfuscated_0D093938165B030B3C302A1705100C1A05103517020C22_ = strrchr($metin, " ");
        $metin = str_replace($_obfuscated_0D093938165B030B3C302A1705100C1A05103517020C22_, " ...", $metin);
    }
    return $metin;
}
function cevirtarih($tarih)
{
    $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_ = explode("-", $tarih);
    $_obfuscated_0D04401E3410141026211C2F2A3B141B03172C03072922_ = $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_[2] . "-" . $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_[1] . "-" . $_obfuscated_0D0A1B1721371F28250E113B04143237142E1D2B232B22_[0];
    return $_obfuscated_0D04401E3410141026211C2F2A3B141B03172C03072922_;
}
function seo($str, $options = [])
{
    $str = mb_convert_encoding((string) $str, "UTF-8", mb_list_encodings());
    $_obfuscated_0D310222052211220E1D2C2D23191F361C0B141C2A3E32_ = ["delimiter" => "-", "limit" => NULL, "lowercase" => true, "replacements" => [], "transliterate" => true];
    $options = array_merge($_obfuscated_0D310222052211220E1D2C2D23191F361C0B141C2A3E32_, $options);
    $_obfuscated_0D04113624253930140C3B3C5B07103E5B1C0421333F11_ = ["" => "A", "" => "A", "" => "A", "" => "A", "" => "A", "" => "A", "" => "AE", "" => "C", "" => "E", "" => "E", "" => "E", "" => "E", "" => "I", "" => "I", "" => "I", "" => "I", "" => "D", "" => "N", "" => "O", "" => "o", "" => "O", "" => "O", "" => "O", "" => "O", "" => "O", "" => "U", "" => "U", "" => "U", "" => "U", "" => "U", "" => "Y", "" => "TH", "" => "ss", "" => "a", "" => "a", "" => "a", "" => "a", "" => "a", "" => "a", "" => "ae", "" => "c", "" => "e", "" => "e", "" => "e", "" => "e", "" => "i", "" => "i", "" => "i", "" => "i", "" => "d", "" => "n", "" => "o", "" => "o", "" => "o", "" => "o", "" => "o", "" => "o", "" => "o", "" => "u", "" => "u", "" => "u", "" => "u", "" => "u", "" => "y", "" => "th", "" => "y", "" => "(c)", "" => "A", "" => "B", "" => "G", "" => "D", "" => "E", "" => "Z", "" => "H", "" => "8", "" => "I", "" => "K", "" => "L", "" => "M", "" => "N", "" => "3", "" => "O", "" => "P", "" => "R", "" => "S", "" => "T", "" => "Y", "" => "F", "" => "X", "" => "PS", "" => "W", "" => "A", "" => "E", "" => "I", "" => "O", "" => "Y", "" => "H", "" => "W", "" => "I", "" => "Y", "" => "a", "" => "b", "" => "g", "" => "d", "" => "e", "" => "z", "" => "h", "" => "8", "" => "i", "" => "k", "" => "l", "" => "m", "" => "n", "" => "3", "" => "o", "" => "p", "" => "r", "" => "s", "" => "t", "" => "y", "" => "f", "" => "x", "" => "ps", "" => "w", "" => "a", "" => "e", "" => "i", "" => "o", "" => "y", "" => "h", "" => "w", "" => "s", "" => "i", "" => "y", "" => "y", "" => "i", "" => "S", "" => "I", "" => "G", "" => "s", "" => "i", "" => "g", "" => "A", "" => "B", "" => "V", "" => "G", "" => "D", "" => "E", "" => "Yo", "" => "Zh", "" => "Z", "" => "I", "" => "J", "" => "K", "" => "L", "" => "M", "" => "N", "" => "O", "" => "P", "" => "R", "" => "S", "" => "T", "" => "U", "" => "F", "" => "H", "" => "C", "" => "Ch", "" => "Sh", "" => "Sh", "" => "", "" => "Y", "" => "", "" => "E", "" => "Yu", "" => "Ya", "" => "a", "" => "b", "" => "v", "" => "g", "" => "d", "" => "e", "" => "yo", "" => "zh", "" => "z", "" => "i", "" => "j", "" => "k", "" => "l", "" => "m", "" => "n", "" => "o", "" => "p", "" => "r", "" => "s", "" => "t", "" => "u", "" => "f", "" => "h", "" => "c", "" => "ch", "" => "sh", "" => "sh", "" => "", "" => "y", "" => "", "" => "e", "" => "yu", "" => "ya", "" => "Ye", "" => "I", "" => "Yi", "" => "G", "" => "ye", "" => "i", "" => "yi", "" => "g", "" => "C", "" => "D", "" => "E", "" => "N", "" => "R", "" => "S", "" => "T", "" => "U", "" => "Z", "" => "c", "" => "d", "" => "e", "" => "n", "" => "r", "" => "s", "" => "t", "" => "u", "" => "z", "" => "A", "" => "C", "" => "e", "" => "L", "" => "N", "" => "S", "" => "Z", "" => "Z", "" => "a", "" => "c", "" => "e", "" => "l", "" => "n", "" => "s", "" => "z", "" => "z", "" => "A", "" => "E", "" => "G", "" => "i", "" => "k", "" => "L", "" => "N", "" => "u", "" => "a", "" => "e", "" => "g", "" => "i", "" => "k", "" => "l", "" => "n", "" => "u"];
    $str = preg_replace(array_keys($options["replacements"]), $options["replacements"], $str);
    if ($options["transliterate"]) {
        $str = str_replace(array_keys($_obfuscated_0D04113624253930140C3B3C5B07103E5B1C0421333F11_), $_obfuscated_0D04113624253930140C3B3C5B07103E5B1C0421333F11_, $str);
    }
    $str = preg_replace("/[^\\p{L}\\p{Nd}]+/u", $options["delimiter"], $str);
    $str = preg_replace("/(" . preg_quote($options["delimiter"], "/") . "){2,}/", "\$1", $str);
    $str = mb_substr($str, 0, $options["limit"] ? $options["limit"] : mb_strlen($str, "UTF-8"), "UTF-8");
    $str = trim($str, $options["delimiter"]);
    return $options["lowercase"] ? mb_strtolower($str, "UTF-8") : $str;
}
function turkcetarih($f, $zt = "now")
{
    $z = date((string) $f, strtotime($zt));
    $_obfuscated_0D32151D5B1B2D172122342B0438373D041B17372F5B11_ = ["Monday" => "Pazartesi", "Tuesday" => "Sal", "Wednesday" => "aramba", "Thursday" => "Perembe", "Friday" => "Cuma", "Saturday" => "Cumartesi", "Sunday" => "Pazar", "January" => "Ocak", "February" => "ubat", "March" => "Mart", "April" => "Nisan", "May" => "Mays", "June" => "Haziran", "July" => "Temmuz", "August" => "Austos", "September" => "Eyll", "October" => "Ekim", "November" => "Kasm", "December" => "Aralk", "Mon" => "Pts", "Tue" => "Sal", "Wed" => "ar", "Thu" => "Per", "Fri" => "Cum", "Sat" => "Cts", "Sun" => "Paz", "Jan" => "Oca", "Feb" => "ub", "Mar" => "Mar", "Apr" => "Nis", "Jun" => "Haz", "Jul" => "Tem", "Aug" => "Au", "Sep" => "Eyl", "Oct" => "Eki", "Nov" => "Kas", "Dec" => "Ara"];
    foreach ($_obfuscated_0D32151D5B1B2D172122342B0438373D041B17372F5B11_ as $_obfuscated_0D1C0C075C32142F2F101713181D36331D132F2C3D3811_ => $_obfuscated_0D402607362B2A0D1207314033011A31232C1F3B5B2501_) {
        $z = str_replace($_obfuscated_0D1C0C075C32142F2F101713181D36331D132F2C3D3811_, $_obfuscated_0D402607362B2A0D1207314033011A31232C1F3B5B2501_, $z);
    }
    if (strpos($z, "Mays") !== false && strpos($f, "F") === false) {
        $z = str_replace("Mays", "May", $z);
    }
    return $z;
}
function addhttp($url)
{
    return substr($url, 0, 7) == "http://" || substr($url, 0, 8) == "https://" ? $url : "http://" . $url;
}
function UrunMenuKat()
{
    global $db;
    global $dil;
    $_obfuscated_0D3C102D2A2E012911351203333C0E3807221C250C3932_ = $db->table("wm_sektorler")->where("dil", "=", $dil)->where("sektor_durum", "=", "Aktif")->orderBy("sektor_adi", "ASC")->getAll();
    foreach ($_obfuscated_0D3C102D2A2E012911351203333C0E3807221C250C3932_ as $_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_) {
        $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_ .= "<li><a href=\"c/" . $_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_->sektor_id . "/" . seo($_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_->sektor_adi) . "\">" . $_obfuscated_0D39312722132B3E1F2922333E181C121C170E28313C22_->sektor_adi . "</a></li>";
    }
    return $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_;
}
function ProjeMenuKat()
{
    global $db;
    global $dil;
    $_obfuscated_0D250D3B23272E2F2C09180814241F1C2623091A0D0A32_ = $db->table("wm_proje_kat")->where("dil", "=", $dil)->where("pkat_durum", "=", "Aktif")->orderBy("pkat_adi", "ASC")->getAll();
    foreach ($_obfuscated_0D250D3B23272E2F2C09180814241F1C2623091A0D0A32_ as $_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_) {
        $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_ .= "<li><a href=\"proje-kategori/" . $_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_->ProjeKatID . "/" . seo($_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_->pkat_adi) . "\">" . $_obfuscated_0D080A0B2C1F250B1E0701160C345C400D07080F373532_->pkat_adi . "</a></li>";
    }
    return $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_;
}
function HaberMenuKat()
{
    global $db;
    global $dil;
    $_obfuscated_0D12373C5B18171534310C150B3F2C33372307090C2F32_ = $db->table("wm_blog_kat")->where("dil", "=", $dil)->orderBy("blog_kat_adi", "ASC")->getAll();
    foreach ($_obfuscated_0D12373C5B18171534310C150B3F2C33372307090C2F32_ as $_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_) {
        $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_ .= "<li><a href=\"kategori/" . $_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_->BlogKatID . "/" . seo($_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_->blog_kat_adi) . "\">" . $_obfuscated_0D1F1327293D010D0F1A030A2B28050B1905063B2B1D22_->blog_kat_adi . "</a></li>";
    }
    return $_obfuscated_0D01231A123C0122185C133624225C400B2D101A0A5B32_;
}
function MenuListele($kategoriArray, $ebeveyn = 0, $kademe_pixel = 5, $i = 0, $menuler = NULL, $nested = false)
{
    global $db;
    if (empty($kategoriArray)) {
        return NULL;
    }
    if (!$nested) {
        foreach ($kategoriArray as $row) {
            $_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$row["menu_altid"]][] = $row;
        }
    } else {
        $_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_ = $kategoriArray;
    }
    foreach ($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$ebeveyn] as $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_) {
        $_obfuscated_0D06273E1A2C2E2A402838160B1730152C332422143D32_ = str_repeat(" ", $i * $kademe_pixel);
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "") {
            if (isset($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"]])) {
                $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL;
            } else {
                $menuler .= "<li><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL;
            }
        }
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "UKAT") {
            $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>\r\n\t\t\t\t<ul>\r\n\t\t\t\t" . urunmenukat() . "\r\n\t\t\t\t</ul>" . PHP_EOL;
        }
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "PKAT") {
            $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>\r\n\t\t\t\t<ul>\r\n\t\t\t\t" . projemenukat() . "\r\n\t\t\t\t</ul>" . PHP_EOL;
        }
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "LINK" && $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_liste"] == "HKAT") {
            $menuler .= "<li class=\"dropdown\"><a href=\"" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_link"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>\r\n\t\t\t\t<ul>\r\n\t\t\t\t" . habermenukat() . "\r\n\t\t\t\t</ul>" . PHP_EOL;
        }
        if ($_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_tipi"] == "SAYFA") {
            $_obfuscated_0D25283F1F3123050812011502352F371C072E1D363601_ = $db->customQuery("SELECT * FROM wm_sayfa WHERE SayfaID='" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_sayfa"] . "'")->getRow("array");
            if (isset($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"]])) {
                $menuler .= "<li class=\"dropdown\"><a href=\"" . seo($_obfuscated_0D25283F1F3123050812011502352F371C072E1D363601_->sayfa_adi) . "/" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_sayfa"] . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL;
            } else {
                $menuler .= "<li><a href=\"sayfa/" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_sayfa"] . "/" . seo($_obfuscated_0D25283F1F3123050812011502352F371C072E1D363601_["sayfa_adi"]) . "\">" . $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_baslik"] . "</a>" . PHP_EOL;
            }
        }
        if (isset($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_[$_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"]])) {
            $menuler .= "<ul>" . PHP_EOL;
            $menuler = MenuListele($_obfuscated_0D0C0631193D232A232D0A31320F09145C2E3E16011C22_, $_obfuscated_0D33323609133B0A211206220C071030100C1228103601_["menu_id"], $kademe_pixel, $i + 1, $menuler, true);
            $menuler .= "</ul>" . PHP_EOL;
        }
        $menuler .= "</li>" . PHP_EOL;
    }
    return $menuler;
}
function sec_session_start()
{
    $domain = $site;
    $session_name = "sec_session_id";
    $_obfuscated_0D2D29210B2E1611105B5C085B1C3510351F3024222832_ = false;
    $_obfuscated_0D3103281E403009192B211D2F1A2C1A0B1C2C30021E11_ = true;
    ini_set("session.use_only_cookies", 0);
    $_obfuscated_0D161F210E332332321105170B06240C0A2D5C381C0411_ = session_get_cookie_params();
    session_set_cookie_params($_obfuscated_0D161F210E332332321105170B06240C0A2D5C381C0411_["lifetime"], $_obfuscated_0D161F210E332332321105170B06240C0A2D5C381C0411_["path"], $domain, $_obfuscated_0D2D29210B2E1611105B5C085B1C3510351F3024222832_, $_obfuscated_0D3103281E403009192B211D2F1A2C1A0B1C2C30021E11_);
    session_name($session_name);
    session_start();
}
function LogProcess($email, $durum)
{
    global $db;
    global $tarih;
    global $saat;
    $data = ["log_ip" => getip(), "log_username" => $email, "log_date" => $tarih, "log_time" => $saat, "log_durum" => $durum];
    $db->table("wm_loglar")->insert($data);
}
function dil($key)
{
    global $latx;
    preg_match("@" . $key . "={(.*?)}@si", $latx, $res);
    return $res[1];
}
function AnaKatSayi($AnaKatID)
{
    global $db;
    $db->table("wm_urun")->select("urun_kat_id", "urun_durum")->where("urun_kat_id", "=", $AnaKatID)->where("urun_durum", "=", "Aktif")->getAll();
    return $db->numRows();
}
function AltKatSayi($AltKatID)
{
    global $db;
    $db->table("wm_urun")->select("urun_kat_id", "urun_durum")->where("urun_alt_kat_id", "=", $AltKatID)->where("urun_durum", "=", "Aktif")->getAll();
    return $db->numRows();
}
function UrunYorumSay($UrunID)
{
    global $db;
    $db->table("wm_yorum")->select("YorumID", "yorum_urun_id", "yorum_durum")->where("yorum_urun_id", "=", $UrunID)->where("yorum_durum", "=", "Aktif")->getAll();
    return $db->numRows();
}
function HaberKatSayi($HaberKatID)
{
    global $db;
    $db->table("wm_blog")->select("blog_kat_id")->where("blog_kat_id", "=", $HaberKatID)->getAll();
    return $db->numRows();
}
function UrunYorumSonuc($id)
{
    global $db;
    $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_ = "SELECT AVG(yorum_puan) AS av FROM wm_yorum WHERE yorum_urun_id='" . $id . "' AND yorum_durum = 'Aktif'";
    $result = $db->customQuery($_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_)->getRow("array");
    $_obfuscated_0D4037103F28221A050102110128180B1E30313B1A5B01_ = round($result["av"]);
    for ($i = 0; $i < $_obfuscated_0D4037103F28221A050102110128180B1E30313B1A5B01_; $i++) {
        echo "<i class=\"fa fa-star\" style=\"padding-right:3px; color:#FFDF00;\"></i>";
    }
    for ($i = $_obfuscated_0D4037103F28221A050102110128180B1E30313B1A5B01_; $i < 5; $i++) {
        echo "<i class=\"fa fa-star-o\" style=\"padding-right:3px; color:#FFDF00;\"></i>";
    }
}
function UyeYorumSonuc($id)
{
    global $db;
    $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_ = $db->customQuery("SELECT * FROM wm_yorum WHERE YorumID='" . $id . "' AND yorum_durum = 'Aktif'")->getRow();
    for ($i = 0; $i < $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_->yorum_puan; $i++) {
        echo "<i class=\"fa fa-star\" style=\"padding-right:3px; color:#FFDF00;\"></i>";
    }
    for ($i = $_obfuscated_0D210707382B0422290A282C072E5C1F0F0F3823390722_->yorum_puan; $i < 5; $i++) {
        echo "<i class=\"fa fa-star-o\" style=\"padding-right:3px; color:#FFDF00;\"></i>";
    }
}

?>

Function Calls

None

Variables

None

Stats

MD5 3ce49a0dfc7e062d746c0344790c7f9b
Eval Count 0
Decode Time 106 ms