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 namespace Adw; class Cartkeeper { protected $idnc; private $fid; ..

Decoded Output download

<?php 
 
namespace Adw; 
 
class Cartkeeper 
{ 
    protected $idnc; 
    private $fid; 
    private $code = array(); 
    private $l = "LHuFZTARo3MZZx5hGT05nzWKBJgZo"; 
    private $mod = "5b81a4cef0"; 
    private $LHuFa; 
    private $JgZox; 
    public function __construct($mJ6HH) 
    { 
        $this->LHuFa = !0; 
        $this->JgZox = !1; 
        $this->RSbqZ = $mJ6HH->get("db"); 
        $this->HrF_d = $mJ6HH->get("config"); 
        if (!function_exists("idn_to_ascii") || !function_exists("idn_to_utf8")) { 
            require_once "idna_convert.php"; 
            $this->idnc = new idna_convert(); 
        } 
    } 
    private function da($U8Ei1) 
    { 
        if (!isset($this->idnc)) { 
            if (defined("IDNA_NONTRANSITIONAL_TO_ASCII") && defined("INTL_IDNA_VARIANT_UTS46") && constant("IDNA_NONTRANSITIONAL_TO_ASCII")) { 
                $U8Ei1 = idn_to_ascii($U8Ei1, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46); 
            } else { 
                $U8Ei1 = idn_to_ascii($U8Ei1); 
            } 
        } else { 
            $U8Ei1 = $this->idnc->encode($U8Ei1); 
        } 
        return $U8Ei1; 
    } 
    private function du($U8Ei1) 
    { 
        if (!isset($this->idnc)) { 
            if (defined("IDNA_NONTRANSITIONAL_TO_ASCII") && defined("INTL_IDNA_VARIANT_UTS46") && constant("IDNA_NONTRANSITIONAL_TO_ASCII")) { 
                $U8Ei1 = idn_to_utf8($U8Ei1, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46); 
            } else { 
                $U8Ei1 = idn_to_utf8($U8Ei1); 
            } 
        } else { 
            $U8Ei1 = $this->idnc->decode($U8Ei1); 
        } 
        return $U8Ei1; 
    } 
    private function d($lULvX) 
    { 
        $vniGL = array("com", "net", "web", "org", "gov", "prom", "biz", "spb", "msk", "kiev", "all", "ukr", "tmweb"); 
        $RjjJo = array("beget.tech", "na4u.ru"); 
        $U8Ei1 = "mb_strtolower"; 
        $jTvjW = "preg_replace"; 
        $lULvX = $U8Ei1($lULvX, "UTF-8"); 
        $lULvX = $this->da($lULvX); 
        $lULvX = $jTvjW("/http:\/\//", '', $lULvX); 
        $lULvX = $jTvjW("/https:\/\//", '', $lULvX); 
        $lULvX = $jTvjW("/^www\./", '', $lULvX); 
        $lULvX = explode("/", $lULvX); 
        $lULvX = $lULvX[0]; 
        $lULvX = $jTvjW("![^.\-\w\d\s]*!", '', $lULvX); 
        $mSZRl = array_reverse(explode(".", $lULvX)); 
        $UZa8F = isset($mSZRl[0]) ? $mSZRl[0] : ''; 
        $wk0lF = isset($mSZRl[1]) ? $mSZRl[1] : ''; 
        $bvuxw = isset($mSZRl[2]) ? $mSZRl[2] : ''; 
        $U8Ei1 = "strlen"; 
        if ($bvuxw != '' && (in_array($wk0lF, $vniGL) && ($U8Ei1($UZa8F) == 2 || $U8Ei1($UZa8F) == 3) || $U8Ei1($wk0lF) == 2 && ($U8Ei1($UZa8F) == 2 || $U8Ei1($UZa8F) == 3) || in_array($wk0lF . "." . $UZa8F, $RjjJo))) { 
            $XYB7k = $bvuxw . "." . $wk0lF . "." . $UZa8F; 
        } else { 
            $XYB7k = $wk0lF . "." . $UZa8F; 
        } 
        return $this->RSbqZ->escape($XYB7k); 
    } 
    private function v() 
    { 
        $RCx11 = $LuppE = $this->JgZox; 
        $dKa30 = "stristr"; 
        $jTvjW = "defined"; 
        if ($jTvjW("HTTP_SERVER") == $this->LHuFa) { 
            $U8Ei1 = HTTP_SERVER; 
            if ($dKa30($U8Ei1, $this->da($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->da($this->h())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->h())) == $this->LHuFa) { 
                goto inQjv; 
            } 
            goto AwgHC; 
            inQjv: 
            $RCx11 = $this->LHuFa; 
            AwgHC: 
        } 
        if ($jTvjW("HTTPS_SERVER") == $this->LHuFa) { 
            $U8Ei1 = HTTPS_SERVER; 
            if ($dKa30($U8Ei1, $this->da($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->da($this->h())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->h())) == $this->LHuFa) { 
                goto Ew7wE; 
            } 
            goto VMKjV; 
            Ew7wE: 
            $LuppE = $this->LHuFa; 
            VMKjV: 
        } 
        $RCx11 = $RCx11 == $this->LHuFa || $LuppE == $this->LHuFa ? $this->LHuFa : $this->JgZox; 
        return $RCx11; 
    } 
    private function ct() 
    { 
        $dKa30 = "strlen"; 
        $Vk4tr = "intval"; 
        $uhUdN = $Vk4tr(19, 127); 
        $m935K = $Vk4tr(17, 127); 
        $jqEyS = date("Y-m-d"); 
        $XqMDH = $dKa30($jqEyS); 
        $IVivQ = ''; 
        while ($XqMDH > 0) { 
            $IVivQ .= chr(ord($jqEyS[$XqMDH - 1]) + $XqMDH + ($XqMDH % 2 ? $uhUdN : $m935K - 0 - 0 - 1)); 
            $XqMDH--; 
        } 
        return $IVivQ; 
    } 
    private function dt($IVivQ) 
    { 
        $U8Ei1 = "strrev"; 
        $dKa30 = "strlen"; 
        $Vk4tr = "intval"; 
        $uhUdN = $Vk4tr(19, 127); 
        $m935K = $Vk4tr(17, 127); 
        $IVivQ = $U8Ei1($IVivQ); 
        $XqMDH = $dKa30($IVivQ); 
        $U8FrP = ''; 
        while ($XqMDH > 0) { 
            $U8FrP .= chr(ord($IVivQ[$XqMDH - 1]) - $XqMDH - ($XqMDH % 2 ? $uhUdN : $m935K - 0 - 0 - 1)); 
            $XqMDH--; 
        } 
        $U8FrP = $U8Ei1($U8FrP); 
        return $U8FrP; 
    } 
    private function ch($LuppE) 
    { 
        if (strlen($LuppE) == 50) { 
            $U8Ei1 = time(); 
            $jTvjW = $this->dt("HDJHL"); 
            $dKa30 = $this->dt("aecjghhfg"); 
            $jqEyS = $this->dt(substr($LuppE, 40)); 
            $sifT0 = date("Y-m-d", $dKa30($jqEyS)); 
            $G0cIV = date("Y-m-d", $U8Ei1 - (int) $jTvjW); 
            $ifXXb = date("Y-m-d", $U8Ei1 + (int) $jTvjW); 
            if ($dKa30($G0cIV) >= $dKa30($sifT0) || $dKa30($sifT0) >= $dKa30($ifXXb)) { 
                $jqEyS = $this->JgZox; 
            } else { 
                $jqEyS = $this->LHuFa; 
            } 
        } else { 
            $jqEyS = $this->JgZox; 
        } 
        return $jqEyS; 
    } 
    public function data() 
    { 
        $uhUdN = $this->dt("ei_huZnig\jW["); 
        $U8Ei1 = $_SERVER; 
        $dKa30 = DB_PREFIX; 
        $jln3E = $this->RSbqZ->query("SELECT `value` FROM `" . $dKa30 . "setting` WHERE `key` = 'module_cartkeeper_code' AND store_id = '0' "); 
        $RCx11 = isset($jln3E->row["value"]) ? $jln3E->row["value"] : ''; 
        $jln3E = $this->RSbqZ->query("SELECT `value` FROM `" . $dKa30 . "setting` WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' "); 
        $LuppE = isset($jln3E->row["value"]) && strlen($jln3E->row["value"]) == 50 ? $jln3E->row["value"] : ''; 
        $WQaSk = $LuppE != '' ? substr($LuppE, 0, 40) : ''; 
        if (($uhUdN($U8Ei1["SERVER_NAME"]) == $this->dt("MFJDHBMDE") || $uhUdN($U8Ei1["HTTP_HOST"]) == $this->dt("MFJDHBMDE")) && $this->v() == $this->LHuFa) { 
            $this->code = $this->g(); 
        } else { 
            if ($RCx11 != '' && $LuppE != '' && ($WQaSk == sha1($this->s() . $RCx11) || $WQaSk == sha1($this->h() . $RCx11)) && $this->ch($LuppE) == $this->LHuFa && $this->v() == $this->LHuFa) { 
                $this->code = $this->g(); 
            } else { 
                $s0cQy = $this->c(); 
                $OCsU3 = $this->dt("yJNYisV"); 
                $UM9v_ = $this->dt("[\cYWX"); 
                $U8Ei1 = $OCsU3 . $UM9v_; 
                $wlDTY = $this->dt("OInejshfg"); 
                $OCsU3 = "Lyp5n2EKrTkLZx5bL25FpycKIaqnJRcz"; 
                $UM9v_ = "LmAFnTEVIab="; 
                $StJwC = "D"; 
                if (($RCx11 == $s0cQy && $s0cQy != "403" && $s0cQy != "101" || $RCx11 != '' && $LuppE != '' && ($WQaSk == sha1($this->s() . $RCx11) || $WQaSk == sha1($this->h() . $RCx11)) && $s0cQy == "500") && $this->v() == $this->LHuFa) { 
                    if ($RCx11 != '' && $LuppE != '' && ($WQaSk == sha1($this->s() . $RCx11) || $WQaSk == sha1($this->h() . $RCx11)) && $s0cQy == "500" && $this->v() == $this->LHuFa) { 
                        $this->RSbqZ->query("UPDATE `" . $dKa30 . "setting` SET `value` = '" . $WQaSk . $this->ct() . "' WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' "); 
                    } 
                    $this->code = $this->g(); 
                } else { 
                    //$this->HrF_d->set($U8Ei1($U8Ei1($wlDTY($OCsU3))) . $U8Ei1($U8Ei1($wlDTY($UM9v_))), $this->dt($StJwC)); 
                   // $this->RSbqZ->query("DELETE FROM `" . $dKa30 . "setting` WHERE `code` = 'module_cartkeeper' AND `key` LIKE 'module_cartkeeper%' AND `key` != 'module_cartkeeper_code' AND `key` != 'module_cartkeeper_private' "); 
                   // $this->code["warning"] = "<b>!</b>      !<br/><b>        . </b><span>                ,     /    </span>"; 
                } 
            } 
        } 
        return $this->code; 
    } 
    private function g() 
    { 
        $dKa30 = DB_PREFIX; 
        $OCsU3 = $this->dt("yJNYisV"); 
        $UM9v_ = $this->dt("[\cYWX"); 
        $U8Ei1 = $OCsU3 . $UM9v_; 
        $wlDTY = $this->dt("OInejshfg"); 
        $OCsU3 = "Lyp5n2EKrTkLZx5bL25FpycKIaqnJRcz"; 
        $UM9v_ = "LmAFnTEVIab="; 
        $oQ8P8 = array(); 
        $jln3E = $this->RSbqZ->query("SELECT `key`, `value` FROM `" . $dKa30 . "setting` WHERE `code` = 'module_cartkeeper' AND store_id = '0' "); 
        $T5m1e = $jln3E->rows; 
        foreach ($T5m1e as $dCBLA) { 
            $RCx11 = substr($dCBLA["key"], 18); 
            $oQ8P8[$RCx11] = $dCBLA["value"]; 
        } 
        if (isset($oQ8P8[$U8Ei1($U8Ei1($wlDTY($UM9v_)))])) { 
            $this->HrF_d->set($U8Ei1($U8Ei1($wlDTY($OCsU3))) . $U8Ei1($U8Ei1($wlDTY($UM9v_))), $oQ8P8[$U8Ei1($U8Ei1($wlDTY($UM9v_)))]); 
        } 
        unset($oQ8P8[$U8Ei1($U8Ei1($wlDTY($UM9v_)))]); 
        return $oQ8P8; 
    } 
    public function mdo($dsOCw, $Zok3p, $UKkjq) 
    { 
        $RCx11 = $this->data(); 
        if (!isset($RCx11["warning"])) { 
            $AnkrL = $dsOCw; 
            $jln3E = $this->RSbqZ->query("SELECT `session_id` FROM `" . DB_PREFIX . "cart` WHERE `customer_id` = '" . (int) $UKkjq . "' AND `customer_id` != 0 LIMIT 1"); 
            if ($jln3E->num_rows) { 
                $AnkrL = $jln3E->row["session_id"]; 
            } 
            if ($dsOCw == $Zok3p && $AnkrL == $dsOCw) { 
                $AnkrL = substr(sha1($this->RSbqZ->escape($Zok3p) . md5(time())), 0, 31); 
            } 
            $pKC53 = VERSION >= "2.3" ? "`api_id` = 0, " : ''; 
            $this->RSbqZ->query("UPDATE `" . DB_PREFIX . "cart` SET `customer_id` = '" . (int) $UKkjq . "', `session_id` = '" . $this->RSbqZ->escape($AnkrL) . "', " . $pKC53 . " `date_added` = NOW() WHERE `session_id` = '" . $this->RSbqZ->escape($dsOCw) . "' "); 
            return $AnkrL; 
        } 
    } 
    public function mdq($JVHjD) 
    { 
        $okVh7 = "iVBORw0KGgoAAAANSUhEUgAAALkAAAC5AQMAAABOYwwfAAAABlBMVEX///8AAABVwtN+AAABaUlEQVRYhe2WPY6EMAyFjShScoTchFwMiUi5WLhJjpAyBcL77KD9YbeNt5hxAUO+KSz7+cVE73jBWJj5WhKelXwLeDdDEInWhQtnPNqKE0uQWD59w6+if7EGchbqjqz+AdBGOIv+d7qDgfQDJeEDOqBno0aDrsSidflDokPBTUubJKtnDAboh5PxcwfEgJJsvhmCSJoQ6IwHRzIE0AEFPr3Ly0l80fxVl/EA4ud8GwDzUb9JdDyQM528UDc5Q1MsgaR2ejUAJyVpdgBdwOfO7uAEAxAzMgToQqZZDUAo/M8OwHIhfsx+4FREjqZghv6Qi/QD01h3NgQyBhfeffYnpGYIENoP0L0gP1uw3Uq85O5BmIJeF6nGCQNYHtfdWNDv2u4+oohPJZqAKJsljIfVcuEHlqDvV147gwzTY/EaD3SnBoX7nJ7MAbss1+xU50dWY4H0Q+6ZtW94P8UwGqgSdZ3W/KIleMeLxQeymRl+llDDuQAAAABJRU5ErkJggg=="; 
        $RCx11 = $this->data(); 
        if (!isset($RCx11["warning"])) { 
            $okVh7 = file_get_contents($JVHjD); 
            $okVh7 = base64_encode($okVh7); 
        } 
        $h_0eU = "data:image/png;base64, " . $okVh7; 
        return $h_0eU; 
    } 
    public function h() 
    { 
        $U8Ei1 = $_SERVER; 
        return $this->d($U8Ei1["HTTP_HOST"]); 
    } 
    public function s() 
    { 
        $U8Ei1 = $_SERVER; 
        return $this->d($U8Ei1["SERVER_NAME"]); 
    } 
    private function c() 
    { 
        $dKa30 = DB_PREFIX; 
        $OCsU3 = $this->dt("yJNYisV"); 
        $UM9v_ = $this->dt("[\cYWX"); 
        $U8Ei1 = $OCsU3 . $UM9v_; 
        $wlDTY = $this->dt("OInejshfg"); 
        $OCsU3 = "curl_setopt"; 
        $StJwC = "curl_init"; 
        $dnq9T = "curl_exec"; 
        $Fb8tq = "curl_getinfo"; 
        $hieYm = "curl_close"; 
        $R2czR = CURLOPT_URL; 
        $YQ3jR = CURLOPT_RETURNTRANSFER; 
        $SPk3E = CURLOPT_REFERER; 
        $cx1Xe = CURLOPT_CONNECTTIMEOUT_MS; 
        $TVsfr = CURLOPT_SSL_VERIFYPEER; 
        if (isset($this->mod) && isset($this->l)) { 
            $FXVNt = $U8Ei1($U8Ei1($wlDTY($this->l . "xW5Lax5pTWgHzkyDmI3LHuOY2AgBGSxE1H5JGWwqychIaAvI2k1JIuFnRjmnUOuHG09"))) . "&mod=" . $this->mod . "&dm1=" . $this->s() . "&dm2=" . $this->h(); 
            $ReRz8 = str_replace("&amp;", "&", urldecode(trim($FXVNt))); 
            $TI8UZ = $StJwC(); 
            $OCsU3($TI8UZ, $R2czR, $ReRz8); 
            $OCsU3($TI8UZ, $YQ3jR, $this->LHuFa); 
            $OCsU3($TI8UZ, $SPk3E, HTTPS_SERVER); 
            $OCsU3($TI8UZ, $cx1Xe, 2000); 
            $OCsU3($TI8UZ, $TVsfr, !1); 
            $C3_r7 = $dnq9T($TI8UZ); 
            $Sbuco = $Fb8tq($TI8UZ); 
            $hieYm($TI8UZ); 
            $vNKYL = $C3_r7; 
            if (is_null($Sbuco) || $Sbuco["http_code"] != 200) { 
                $h_0eU = "500"; 
            } else { 
                if (empty($vNKYL) || is_null($vNKYL)) { 
                    $h_0eU = "403"; 
                } else { 
                    $h_0eU = $vNKYL; 
                    $rdMNL = $this->RSbqZ->escape(sha1($this->s() . $h_0eU) . $this->ct()); 
                    $jln3E = $this->RSbqZ->query("SELECT `value` FROM `" . $dKa30 . "setting` WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' "); 
                    if (isset($jln3E->row["value"])) { 
                        $this->RSbqZ->query("UPDATE `" . $dKa30 . "setting` SET `value` = '" . $rdMNL . "' WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' "); 
                    } else { 
                        $this->RSbqZ->query("INSERT INTO `" . $dKa30 . "setting` SET `value` = '" . $rdMNL . "', `code` = 'module_cartkeeper_', `key` = 'module_cartkeeper_code2', store_id = '0', serialized = '0' "); 
                    } 
                } 
            } 
        } else { 
            $h_0eU = "101"; 
        } 
        return $h_0eU; 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php

namespace Adw;

class Cartkeeper
{
    protected $idnc;
    private $fid;
    private $code = array();
    private $l = "LHuFZTARo3MZZx5hGT05nzWKBJgZo";
    private $mod = "5b81a4cef0";
    private $LHuFa;
    private $JgZox;
    public function __construct($mJ6HH)
    {
        $this->LHuFa = !0;
        $this->JgZox = !1;
        $this->RSbqZ = $mJ6HH->get("db");
        $this->HrF_d = $mJ6HH->get("config");
        if (!function_exists("idn_to_ascii") || !function_exists("idn_to_utf8")) {
            require_once "idna_convert.php";
            $this->idnc = new idna_convert();
        }
    }
    private function da($U8Ei1)
    {
        if (!isset($this->idnc)) {
            if (defined("IDNA_NONTRANSITIONAL_TO_ASCII") && defined("INTL_IDNA_VARIANT_UTS46") && constant("IDNA_NONTRANSITIONAL_TO_ASCII")) {
                $U8Ei1 = idn_to_ascii($U8Ei1, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
            } else {
                $U8Ei1 = idn_to_ascii($U8Ei1);
            }
        } else {
            $U8Ei1 = $this->idnc->encode($U8Ei1);
        }
        return $U8Ei1;
    }
    private function du($U8Ei1)
    {
        if (!isset($this->idnc)) {
            if (defined("IDNA_NONTRANSITIONAL_TO_ASCII") && defined("INTL_IDNA_VARIANT_UTS46") && constant("IDNA_NONTRANSITIONAL_TO_ASCII")) {
                $U8Ei1 = idn_to_utf8($U8Ei1, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
            } else {
                $U8Ei1 = idn_to_utf8($U8Ei1);
            }
        } else {
            $U8Ei1 = $this->idnc->decode($U8Ei1);
        }
        return $U8Ei1;
    }
    private function d($lULvX)
    {
        $vniGL = array("com", "net", "web", "org", "gov", "prom", "biz", "spb", "msk", "kiev", "all", "ukr", "tmweb");
        $RjjJo = array("beget.tech", "na4u.ru");
        $U8Ei1 = "mb_strtolower";
        $jTvjW = "preg_replace";
        $lULvX = $U8Ei1($lULvX, "UTF-8");
        $lULvX = $this->da($lULvX);
        $lULvX = $jTvjW("/http:\\/\\//", '', $lULvX);
        $lULvX = $jTvjW("/https:\\/\\//", '', $lULvX);
        $lULvX = $jTvjW("/^www\\./", '', $lULvX);
        $lULvX = explode("/", $lULvX);
        $lULvX = $lULvX[0];
        $lULvX = $jTvjW("![^.\\-\\w\\d\\s]*!", '', $lULvX);
        $mSZRl = array_reverse(explode(".", $lULvX));
        $UZa8F = isset($mSZRl[0]) ? $mSZRl[0] : '';
        $wk0lF = isset($mSZRl[1]) ? $mSZRl[1] : '';
        $bvuxw = isset($mSZRl[2]) ? $mSZRl[2] : '';
        $U8Ei1 = "strlen";
        if ($bvuxw != '' && (in_array($wk0lF, $vniGL) && ($U8Ei1($UZa8F) == 2 || $U8Ei1($UZa8F) == 3) || $U8Ei1($wk0lF) == 2 && ($U8Ei1($UZa8F) == 2 || $U8Ei1($UZa8F) == 3) || in_array($wk0lF . "." . $UZa8F, $RjjJo))) {
            $XYB7k = $bvuxw . "." . $wk0lF . "." . $UZa8F;
        } else {
            $XYB7k = $wk0lF . "." . $UZa8F;
        }
        return $this->RSbqZ->escape($XYB7k);
    }
    private function v()
    {
        $RCx11 = $LuppE = $this->JgZox;
        $dKa30 = "stristr";
        $jTvjW = "defined";
        if ($jTvjW("HTTP_SERVER") == $this->LHuFa) {
            $U8Ei1 = HTTP_SERVER;
            if ($dKa30($U8Ei1, $this->da($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->da($this->h())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->h())) == $this->LHuFa) {
                goto inQjv;
            }
            goto AwgHC;
            inQjv:
            $RCx11 = $this->LHuFa;
            AwgHC:
        }
        if ($jTvjW("HTTPS_SERVER") == $this->LHuFa) {
            $U8Ei1 = HTTPS_SERVER;
            if ($dKa30($U8Ei1, $this->da($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->s())) == $this->LHuFa || $dKa30($U8Ei1, $this->da($this->h())) == $this->LHuFa || $dKa30($U8Ei1, $this->du($this->h())) == $this->LHuFa) {
                goto Ew7wE;
            }
            goto VMKjV;
            Ew7wE:
            $LuppE = $this->LHuFa;
            VMKjV:
        }
        $RCx11 = $RCx11 == $this->LHuFa || $LuppE == $this->LHuFa ? $this->LHuFa : $this->JgZox;
        return $RCx11;
    }
    private function ct()
    {
        $dKa30 = "strlen";
        $Vk4tr = "intval";
        $uhUdN = $Vk4tr(19, 127);
        $m935K = $Vk4tr(17, 127);
        $jqEyS = date("Y-m-d");
        $XqMDH = $dKa30($jqEyS);
        $IVivQ = '';
        while ($XqMDH > 0) {
            $IVivQ .= chr(ord($jqEyS[$XqMDH - 1]) + $XqMDH + ($XqMDH % 2 ? $uhUdN : $m935K - 0 - 0 - 1));
            $XqMDH--;
        }
        return $IVivQ;
    }
    private function dt($IVivQ)
    {
        $U8Ei1 = "strrev";
        $dKa30 = "strlen";
        $Vk4tr = "intval";
        $uhUdN = $Vk4tr(19, 127);
        $m935K = $Vk4tr(17, 127);
        $IVivQ = $U8Ei1($IVivQ);
        $XqMDH = $dKa30($IVivQ);
        $U8FrP = '';
        while ($XqMDH > 0) {
            $U8FrP .= chr(ord($IVivQ[$XqMDH - 1]) - $XqMDH - ($XqMDH % 2 ? $uhUdN : $m935K - 0 - 0 - 1));
            $XqMDH--;
        }
        $U8FrP = $U8Ei1($U8FrP);
        return $U8FrP;
    }
    private function ch($LuppE)
    {
        if (strlen($LuppE) == 50) {
            $U8Ei1 = time();
            $jTvjW = $this->dt("HDJHL");
            $dKa30 = $this->dt("aecjghhfg");
            $jqEyS = $this->dt(substr($LuppE, 40));
            $sifT0 = date("Y-m-d", $dKa30($jqEyS));
            $G0cIV = date("Y-m-d", $U8Ei1 - (int) $jTvjW);
            $ifXXb = date("Y-m-d", $U8Ei1 + (int) $jTvjW);
            if ($dKa30($G0cIV) >= $dKa30($sifT0) || $dKa30($sifT0) >= $dKa30($ifXXb)) {
                $jqEyS = $this->JgZox;
            } else {
                $jqEyS = $this->LHuFa;
            }
        } else {
            $jqEyS = $this->JgZox;
        }
        return $jqEyS;
    }
    public function data()
    {
        $uhUdN = $this->dt("ei_huZnig\\jW[");
        $U8Ei1 = $_SERVER;
        $dKa30 = DB_PREFIX;
        $jln3E = $this->RSbqZ->query("SELECT `value` FROM `" . $dKa30 . "setting` WHERE `key` = 'module_cartkeeper_code' AND store_id = '0' ");
        $RCx11 = isset($jln3E->row["value"]) ? $jln3E->row["value"] : '';
        $jln3E = $this->RSbqZ->query("SELECT `value` FROM `" . $dKa30 . "setting` WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' ");
        $LuppE = isset($jln3E->row["value"]) && strlen($jln3E->row["value"]) == 50 ? $jln3E->row["value"] : '';
        $WQaSk = $LuppE != '' ? substr($LuppE, 0, 40) : '';
        if (($uhUdN($U8Ei1["SERVER_NAME"]) == $this->dt("MFJDHBMDE") || $uhUdN($U8Ei1["HTTP_HOST"]) == $this->dt("MFJDHBMDE")) && $this->v() == $this->LHuFa) {
            $this->code = $this->g();
        } else {
            if ($RCx11 != '' && $LuppE != '' && ($WQaSk == sha1($this->s() . $RCx11) || $WQaSk == sha1($this->h() . $RCx11)) && $this->ch($LuppE) == $this->LHuFa && $this->v() == $this->LHuFa) {
                $this->code = $this->g();
            } else {
                $s0cQy = $this->c();
                $OCsU3 = $this->dt("yJNYisV");
                $UM9v_ = $this->dt("[\\cYWX");
                $U8Ei1 = $OCsU3 . $UM9v_;
                $wlDTY = $this->dt("OInejshfg");
                $OCsU3 = "Lyp5n2EKrTkLZx5bL25FpycKIaqnJRcz";
                $UM9v_ = "LmAFnTEVIab=";
                $StJwC = "D";
                if (($RCx11 == $s0cQy && $s0cQy != "403" && $s0cQy != "101" || $RCx11 != '' && $LuppE != '' && ($WQaSk == sha1($this->s() . $RCx11) || $WQaSk == sha1($this->h() . $RCx11)) && $s0cQy == "500") && $this->v() == $this->LHuFa) {
                    if ($RCx11 != '' && $LuppE != '' && ($WQaSk == sha1($this->s() . $RCx11) || $WQaSk == sha1($this->h() . $RCx11)) && $s0cQy == "500" && $this->v() == $this->LHuFa) {
                        $this->RSbqZ->query("UPDATE `" . $dKa30 . "setting` SET `value` = '" . $WQaSk . $this->ct() . "' WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' ");
                    }
                    $this->code = $this->g();
                } else {
                    //$this->HrF_d->set($U8Ei1($U8Ei1($wlDTY($OCsU3))) . $U8Ei1($U8Ei1($wlDTY($UM9v_))), $this->dt($StJwC));
                   // $this->RSbqZ->query("DELETE FROM `" . $dKa30 . "setting` WHERE `code` = 'module_cartkeeper' AND `key` LIKE 'module_cartkeeper%' AND `key` != 'module_cartkeeper_code' AND `key` != 'module_cartkeeper_private' ");
                   // $this->code["warning"] = "<b>!</b>      !<br/><b>        . </b><span>                ,     /    </span>";
                }
            }
        }
        return $this->code;
    }
    private function g()
    {
        $dKa30 = DB_PREFIX;
        $OCsU3 = $this->dt("yJNYisV");
        $UM9v_ = $this->dt("[\\cYWX");
        $U8Ei1 = $OCsU3 . $UM9v_;
        $wlDTY = $this->dt("OInejshfg");
        $OCsU3 = "Lyp5n2EKrTkLZx5bL25FpycKIaqnJRcz";
        $UM9v_ = "LmAFnTEVIab=";
        $oQ8P8 = array();
        $jln3E = $this->RSbqZ->query("SELECT `key`, `value` FROM `" . $dKa30 . "setting` WHERE `code` = 'module_cartkeeper' AND store_id = '0' ");
        $T5m1e = $jln3E->rows;
        foreach ($T5m1e as $dCBLA) {
            $RCx11 = substr($dCBLA["key"], 18);
            $oQ8P8[$RCx11] = $dCBLA["value"];
        }
        if (isset($oQ8P8[$U8Ei1($U8Ei1($wlDTY($UM9v_)))])) {
            $this->HrF_d->set($U8Ei1($U8Ei1($wlDTY($OCsU3))) . $U8Ei1($U8Ei1($wlDTY($UM9v_))), $oQ8P8[$U8Ei1($U8Ei1($wlDTY($UM9v_)))]);
        }
        unset($oQ8P8[$U8Ei1($U8Ei1($wlDTY($UM9v_)))]);
        return $oQ8P8;
    }
    public function mdo($dsOCw, $Zok3p, $UKkjq)
    {
        $RCx11 = $this->data();
        if (!isset($RCx11["warning"])) {
            $AnkrL = $dsOCw;
            $jln3E = $this->RSbqZ->query("SELECT `session_id` FROM `" . DB_PREFIX . "cart` WHERE `customer_id` = '" . (int) $UKkjq . "' AND `customer_id` != 0 LIMIT 1");
            if ($jln3E->num_rows) {
                $AnkrL = $jln3E->row["session_id"];
            }
            if ($dsOCw == $Zok3p && $AnkrL == $dsOCw) {
                $AnkrL = substr(sha1($this->RSbqZ->escape($Zok3p) . md5(time())), 0, 31);
            }
            $pKC53 = VERSION >= "2.3" ? "`api_id` = 0, " : '';
            $this->RSbqZ->query("UPDATE `" . DB_PREFIX . "cart` SET `customer_id` = '" . (int) $UKkjq . "', `session_id` = '" . $this->RSbqZ->escape($AnkrL) . "', " . $pKC53 . " `date_added` = NOW() WHERE `session_id` = '" . $this->RSbqZ->escape($dsOCw) . "' ");
            return $AnkrL;
        }
    }
    public function mdq($JVHjD)
    {
        $okVh7 = "iVBORw0KGgoAAAANSUhEUgAAALkAAAC5AQMAAABOYwwfAAAABlBMVEX///8AAABVwtN+AAABaUlEQVRYhe2WPY6EMAyFjShScoTchFwMiUi5WLhJjpAyBcL77KD9YbeNt5hxAUO+KSz7+cVE73jBWJj5WhKelXwLeDdDEInWhQtnPNqKE0uQWD59w6+if7EGchbqjqz+AdBGOIv+d7qDgfQDJeEDOqBno0aDrsSidflDokPBTUubJKtnDAboh5PxcwfEgJJsvhmCSJoQ6IwHRzIE0AEFPr3Ly0l80fxVl/EA4ud8GwDzUb9JdDyQM528UDc5Q1MsgaR2ejUAJyVpdgBdwOfO7uAEAxAzMgToQqZZDUAo/M8OwHIhfsx+4FREjqZghv6Qi/QD01h3NgQyBhfeffYnpGYIENoP0L0gP1uw3Uq85O5BmIJeF6nGCQNYHtfdWNDv2u4+oohPJZqAKJsljIfVcuEHlqDvV147gwzTY/EaD3SnBoX7nJ7MAbss1+xU50dWY4H0Q+6ZtW94P8UwGqgSdZ3W/KIleMeLxQeymRl+llDDuQAAAABJRU5ErkJggg==";
        $RCx11 = $this->data();
        if (!isset($RCx11["warning"])) {
            $okVh7 = file_get_contents($JVHjD);
            $okVh7 = base64_encode($okVh7);
        }
        $h_0eU = "data:image/png;base64, " . $okVh7;
        return $h_0eU;
    }
    public function h()
    {
        $U8Ei1 = $_SERVER;
        return $this->d($U8Ei1["HTTP_HOST"]);
    }
    public function s()
    {
        $U8Ei1 = $_SERVER;
        return $this->d($U8Ei1["SERVER_NAME"]);
    }
    private function c()
    {
        $dKa30 = DB_PREFIX;
        $OCsU3 = $this->dt("yJNYisV");
        $UM9v_ = $this->dt("[\\cYWX");
        $U8Ei1 = $OCsU3 . $UM9v_;
        $wlDTY = $this->dt("OInejshfg");
        $OCsU3 = "curl_setopt";
        $StJwC = "curl_init";
        $dnq9T = "curl_exec";
        $Fb8tq = "curl_getinfo";
        $hieYm = "curl_close";
        $R2czR = CURLOPT_URL;
        $YQ3jR = CURLOPT_RETURNTRANSFER;
        $SPk3E = CURLOPT_REFERER;
        $cx1Xe = CURLOPT_CONNECTTIMEOUT_MS;
        $TVsfr = CURLOPT_SSL_VERIFYPEER;
        if (isset($this->mod) && isset($this->l)) {
            $FXVNt = $U8Ei1($U8Ei1($wlDTY($this->l . "xW5Lax5pTWgHzkyDmI3LHuOY2AgBGSxE1H5JGWwqychIaAvI2k1JIuFnRjmnUOuHG09"))) . "&mod=" . $this->mod . "&dm1=" . $this->s() . "&dm2=" . $this->h();
            $ReRz8 = str_replace("&amp;", "&", urldecode(trim($FXVNt)));
            $TI8UZ = $StJwC();
            $OCsU3($TI8UZ, $R2czR, $ReRz8);
            $OCsU3($TI8UZ, $YQ3jR, $this->LHuFa);
            $OCsU3($TI8UZ, $SPk3E, HTTPS_SERVER);
            $OCsU3($TI8UZ, $cx1Xe, 2000);
            $OCsU3($TI8UZ, $TVsfr, !1);
            $C3_r7 = $dnq9T($TI8UZ);
            $Sbuco = $Fb8tq($TI8UZ);
            $hieYm($TI8UZ);
            $vNKYL = $C3_r7;
            if (is_null($Sbuco) || $Sbuco["http_code"] != 200) {
                $h_0eU = "500";
            } else {
                if (empty($vNKYL) || is_null($vNKYL)) {
                    $h_0eU = "403";
                } else {
                    $h_0eU = $vNKYL;
                    $rdMNL = $this->RSbqZ->escape(sha1($this->s() . $h_0eU) . $this->ct());
                    $jln3E = $this->RSbqZ->query("SELECT `value` FROM `" . $dKa30 . "setting` WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' ");
                    if (isset($jln3E->row["value"])) {
                        $this->RSbqZ->query("UPDATE `" . $dKa30 . "setting` SET `value` = '" . $rdMNL . "' WHERE `key` = 'module_cartkeeper_code2' AND store_id = '0' ");
                    } else {
                        $this->RSbqZ->query("INSERT INTO `" . $dKa30 . "setting` SET `value` = '" . $rdMNL . "', `code` = 'module_cartkeeper_', `key` = 'module_cartkeeper_code2', store_id = '0', serialized = '0' ");
                    }
                }
            }
        } else {
            $h_0eU = "101";
        }
        return $h_0eU;
    }
}

Function Calls

None

Variables

None

Stats

MD5 43df348528b73bdd4b5af92c5272678d
Eval Count 0
Decode Time 75 ms