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 ${"\x47L\x4fBAL\x53"}["\x6c\x6d\x70\x6b\x77\x66ax\x64\x6e\x72"] = "f\x69el\x64\x73";..

Decoded Output download

<?php ${"GLOBALS"}["lmpkwfaxdnr"] = "fields"; 
${"GLOBALS"}["fwjaixbey"] = "write"; 
${"GLOBALS"}["donfsljmi"] = "domainDetail"; 
${"GLOBALS"}["qhegqixqj"] = "medmaTable"; 
${"GLOBALS"}["defunqtmhmi"] = "query"; 
${"GLOBALS"}["kyakdsgu"] = "read"; 
${"GLOBALS"}["zxlhjio"] = "moduleName"; 
${"GLOBALS"}["beuznfljf"] = "observer"; 
${"GLOBALS"}["lomwkevclfu"] = "info"; 
${"GLOBALS"}["vlwcgykzgzaf"] = "generalEmail"; 
${"GLOBALS"}["bmqswyyoa"] = "domainName"; 
${"GLOBALS"}["rkyiiovced"] = "ch"; 
 
class Medma_Assigncategory_Model_Authenticate { 
 
    const MEDMA_DOMAIN_TABLE_NAME = "medma_domain"; 
    const MEDMA_SERVER_URL = "magento-development.medma.net/extensions_domain.php"; 
    const MODULE_NAME = "Medma_Assigncategory"; 
 
    protected function registerDomain($domainName, $moduleName, $generalEmail) { 
        ${"GLOBALS"}["hmvnnsfgvq"] = "data"; 
        $nmvfbspm = "output"; 
        $rchjidnifym = "output"; 
        ${"GLOBALS"}["ikjpajmcs"] = "data"; 
        ${"GLOBALS"}["yrdydkf"] = "ch"; 
        ${"GLOBALS"}["uqoymrucs"] = "moduleName"; 
        ${${"GLOBALS"}["rkyiiovced"]} = curl_init(); 
        curl_setopt(${${"GLOBALS"}["yrdydkf"]}, CURLOPT_URL, Medma_Assigncategory_Model_Authenticate::MEDMA_SERVER_URL); 
        curl_setopt(${${"GLOBALS"}["rkyiiovced"]}, CURLOPT_RETURNTRANSFER, 1); 
        curl_setopt(${${"GLOBALS"}["rkyiiovced"]}, CURLOPT_POST, true); 
        ${"GLOBALS"}["kjfimtdpupmh"] = "ch"; 
        ${${"GLOBALS"}["hmvnnsfgvq"]} = array("domain_name" => ${${"GLOBALS"}["bmqswyyoa"]}, "medma_module" => ${${"GLOBALS"}["uqoymrucs"]}, "email" => ${${"GLOBALS"}["vlwcgykzgzaf"]},); 
        curl_setopt(${${"GLOBALS"}["rkyiiovced"]}, CURLOPT_POSTFIELDS, ${${"GLOBALS"}["ikjpajmcs"]}); 
        ${$rchjidnifym} = curl_exec(${${"GLOBALS"}["rkyiiovced"]}); 
        ${${"GLOBALS"}["lomwkevclfu"]} = curl_getinfo(${${"GLOBALS"}["rkyiiovced"]}); 
        curl_close(${${"GLOBALS"}["kjfimtdpupmh"]}); 
        return${$nmvfbspm}; 
    } 
 
    public function saveDomain($observer) { 
        $bhvpfzvqx = "domainName"; 
        ${"GLOBALS"}["nkcujifqd"] = "medmaTable"; 
        ${${"GLOBALS"}["nkcujifqd"]} = Mage::getSingleton("core/resource")->getTableName(Medma_Assigncategory_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME); 
        ${"GLOBALS"}["pgkvtwcfi"] = "result"; 
        ${$bhvpfzvqx} = ${${"GLOBALS"}["beuznfljf"]}["domain_name"]; 
        $sdscdckte = "domainName"; 
        ${${"GLOBALS"}["vlwcgykzgzaf"]} = ${${"GLOBALS"}["beuznfljf"]}["email"]; 
        ${${"GLOBALS"}["zxlhjio"]} = Medma_Assigncategory_Model_Authenticate::MODULE_NAME; 
        $jxmmhvlstxgu = "result"; 
        ${${"GLOBALS"}["kyakdsgu"]} = Mage::getSingleton("core/resource")->getConnection("core_read"); 
        ${${"GLOBALS"}["defunqtmhmi"]} = $read->select()->from(${${"GLOBALS"}["qhegqixqj"]})->where("domain_name=?", ${${"GLOBALS"}["bmqswyyoa"]})->where("medma_module=?", ${${"GLOBALS"}["zxlhjio"]}); 
        ${$jxmmhvlstxgu} = $read->fetchRow(${${"GLOBALS"}["defunqtmhmi"]}); 
        ${${"GLOBALS"}["donfsljmi"]} = array(array("domain_name" => ${$sdscdckte}, "email" => ${${"GLOBALS"}["vlwcgykzgzaf"]}, "module_name" => ${${"GLOBALS"}["zxlhjio"]}),); 
        if (count(${${"GLOBALS"}["pgkvtwcfi"]}) <= 1) { 
            $rmqjtrl = "domainName"; 
            ${${"GLOBALS"}["fwjaixbey"]} = Mage::getSingleton("core/resource")->getConnection("core_write"); 
            $write->beginTransaction(); 
            ${${"GLOBALS"}["lmpkwfaxdnr"]} = array(); 
            ${${"GLOBALS"}["lmpkwfaxdnr"]}["domain_name"] = ${$rmqjtrl}; 
            ${${"GLOBALS"}["lmpkwfaxdnr"]}["medma_module"] = ${${"GLOBALS"}["zxlhjio"]}; 
            $write->insert(${${"GLOBALS"}["qhegqixqj"]}, ${${"GLOBALS"}["lmpkwfaxdnr"]}); 
            ${"GLOBALS"}["ubwcxntyys"] = "moduleName"; 
            $write->commit(); 
            $this->registerDomain(${${"GLOBALS"}["bmqswyyoa"]}, ${${"GLOBALS"}["ubwcxntyys"]}, ${${"GLOBALS"}["vlwcgykzgzaf"]}); 
        } 
    } 
 
} 
 
?> 

Did this file decode correctly?

Original Code

<?php ${"\x47L\x4fBAL\x53"}["\x6c\x6d\x70\x6b\x77\x66ax\x64\x6e\x72"] = "f\x69el\x64\x73";
${"\x47\x4cOB\x41L\x53"}["\x66wja\x69x\x62ey"] = "\x77\x72\x69t\x65";
${"\x47\x4cOB\x41\x4c\x53"}["d\x6f\x6e\x66s\x6cj\x6d\x69"] = "\x64\x6f\x6da\x69\x6e\x44et\x61\x69\x6c";
${"G\x4c\x4fBA\x4c\x53"}["\x71\x68e\x67\x71\x69x\x71\x6a"] = "\x6d\x65\x64\x6da\x54\x61\x62\x6c\x65";
${"GLOB\x41L\x53"}["\x64\x65\x66\x75\x6eq\x74m\x68\x6d\x69"] = "\x71\x75\x65\x72\x79";
${"\x47L\x4f\x42\x41\x4cS"}["\x6b\x79\x61\x6bd\x73\x67\x75"] = "\x72\x65a\x64";
${"\x47L\x4fBA\x4c\x53"}["\x7ax\x6c\x68\x6a\x69\x6f"] = "mod\x75leNa\x6d\x65";
${"G\x4c\x4fB\x41\x4c\x53"}["\x62\x65\x75\x7a\x6e\x66\x6cjf"] = "\x6f\x62\x73\x65r\x76e\x72";
${"\x47\x4cOB\x41\x4c\x53"}["\x6c\x6f\x6d\x77\x6b\x65\x76\x63\x6c\x66\x75"] = "i\x6efo";
${"G\x4c\x4fB\x41\x4c\x53"}["v\x6c\x77\x63\x67\x79\x6b\x7a\x67\x7a\x61\x66"] = "g\x65\x6e\x65\x72\x61\x6cEm\x61\x69\x6c";
${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62m\x71\x73\x77\x79yo\x61"] = "\x64\x6f\x6d\x61\x69\x6e\x4eam\x65";
${"G\x4c\x4f\x42A\x4c\x53"}["\x72\x6b\x79\x69i\x6f\x76\x63\x65\x64"] = "\x63h";

class Medma_Assigncategory_Model_Authenticate {

    const MEDMA_DOMAIN_TABLE_NAME = "m\x65\x64m\x61\x5fd\x6fma\x69n";
    const MEDMA_SERVER_URL = "\x6d\x61g\x65n\x74\x6f-\x64\x65v\x65lo\x70\x6dent\x2e\x6d\x65\x64m\x61.\x6e\x65\x74/\x65\x78\x74\x65\x6e\x73\x69o\x6e\x73_d\x6fm\x61i\x6e\x2e\x70hp";
    const MODULE_NAME = "M\x65\x64\x6d\x61_As\x73ig\x6e\x63\x61teg\x6f\x72y";

    protected function registerDomain($domainName, $moduleName, $generalEmail) {
        ${"\x47\x4cOB\x41\x4c\x53"}["\x68m\x76\x6ens\x66\x67\x76\x71"] = "da\x74\x61";
        $nmvfbspm = "o\x75\x74pu\x74";
        $rchjidnifym = "\x6fu\x74p\x75\x74";
        ${"\x47L\x4fB\x41L\x53"}["\x69\x6bj\x70\x61j\x6d\x63\x73"] = "\x64\x61\x74\x61";
        ${"\x47\x4c\x4f\x42AL\x53"}["yr\x64\x79\x64\x6bf"] = "\x63\x68";
        ${"G\x4cO\x42\x41\x4c\x53"}["\x75\x71\x6f\x79\x6dru\x63s"] = "\x6d\x6fd\x75\x6ceN\x61\x6d\x65";
        ${${"G\x4cOBA\x4cS"}["\x72\x6b\x79\x69\x69o\x76\x63\x65\x64"]} = curl_init();
        curl_setopt(${${"\x47\x4cO\x42\x41\x4cS"}["\x79\x72\x64\x79d\x6b\x66"]}, CURLOPT_URL, Medma_Assigncategory_Model_Authenticate::MEDMA_SERVER_URL);
        curl_setopt(${${"G\x4c\x4fBA\x4c\x53"}["rk\x79\x69\x69o\x76\x63e\x64"]}, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt(${${"\x47L\x4fB\x41\x4c\x53"}["r\x6b\x79\x69i\x6fv\x63e\x64"]}, CURLOPT_POST, true);
        ${"GL\x4f\x42\x41\x4cS"}["k\x6afi\x6d\x74d\x70\x75p\x6d\x68"] = "\x63\x68";
        ${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68\x6d\x76\x6e\x6e\x73\x66\x67v\x71"]} = array("\x64o\x6d\x61\x69\x6e\x5f\x6e\x61\x6d\x65" => ${${"\x47\x4cOB\x41L\x53"}["\x62\x6d\x71\x73wy\x79\x6f\x61"]}, "\x6d\x65\x64\x6d\x61_mo\x64ule" => ${${"G\x4c\x4f\x42\x41L\x53"}["\x75q\x6f\x79\x6dr\x75\x63\x73"]}, "\x65m\x61\x69l" => ${${"\x47\x4cOB\x41\x4c\x53"}["\x76\x6cw\x63\x67\x79\x6b\x7agz\x61\x66"]},);
        curl_setopt(${${"\x47\x4c\x4f\x42\x41L\x53"}["r\x6byi\x69\x6f\x76c\x65\x64"]}, CURLOPT_POSTFIELDS, ${${"\x47\x4c\x4fB\x41\x4c\x53"}["i\x6b\x6a\x70\x61\x6a\x6d\x63\x73"]});
        ${$rchjidnifym} = curl_exec(${${"\x47\x4cOB\x41\x4c\x53"}["\x72k\x79i\x69\x6fv\x63\x65\x64"]});
        ${${"\x47\x4c\x4fB\x41LS"}["\x6co\x6dw\x6bev\x63\x6c\x66u"]} = curl_getinfo(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x6b\x79i\x69\x6f\x76ce\x64"]});
        curl_close(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["k\x6af\x69m\x74\x64\x70u\x70\x6d\x68"]});
        return${$nmvfbspm};
    }

    public function saveDomain($observer) {
        $bhvpfzvqx = "\x64\x6f\x6d\x61i\x6eN\x61\x6d\x65";
        ${"\x47\x4c\x4f\x42AL\x53"}["\x6e\x6b\x63uj\x69\x66\x71\x64"] = "\x6d\x65dm\x61\x54a\x62le";
        ${${"G\x4c\x4fBA\x4c\x53"}["\x6e\x6bcu\x6a\x69f\x71d"]} = Mage::getSingleton("c\x6fr\x65/\x72\x65s\x6f\x75\x72c\x65")->getTableName(Medma_Assigncategory_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME);
        ${"\x47L\x4fB\x41\x4cS"}["p\x67\x6b\x76\x74w\x63f\x69"] = "\x72\x65\x73ult";
        ${$bhvpfzvqx} = ${${"G\x4c\x4f\x42\x41LS"}["b\x65uz\x6ef\x6c\x6a\x66"]}["\x64omai\x6e\x5fn\x61\x6de"];
        $sdscdckte = "d\x6f\x6d\x61\x69\x6e\x4e\x61m\x65";
        ${${"GLO\x42\x41L\x53"}["\x76\x6c\x77\x63g\x79\x6bzg\x7a\x61\x66"]} = ${${"\x47LO\x42\x41\x4c\x53"}["\x62euz\x6e\x66lj\x66"]}["\x65ma\x69\x6c"];
        ${${"\x47LOBA\x4c\x53"}["\x7a\x78l\x68\x6ai\x6f"]} = Medma_Assigncategory_Model_Authenticate::MODULE_NAME;
        $jxmmhvlstxgu = "\x72\x65\x73\x75l\x74";
        ${${"GL\x4f\x42\x41\x4c\x53"}["kya\x6bd\x73\x67u"]} = Mage::getSingleton("co\x72e/r\x65s\x6fur\x63\x65")->getConnection("\x63\x6f\x72e_\x72\x65ad");
        ${${"G\x4cO\x42\x41\x4c\x53"}["\x64e\x66\x75n\x71tm\x68\x6d\x69"]} = $read->select()->from(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x68e\x67\x71\x69x\x71\x6a"]})->where("\x64oma\x69n_na\x6d\x65\x3d?", ${${"\x47LO\x42A\x4cS"}["b\x6d\x71sw\x79\x79\x6fa"]})->where("\x6de\x64\x6da_m\x6f\x64ule=?", ${${"\x47\x4c\x4f\x42AL\x53"}["\x7a\x78\x6chji\x6f"]});
        ${$jxmmhvlstxgu} = $read->fetchRow(${${"\x47L\x4f\x42\x41\x4cS"}["\x64\x65\x66\x75\x6e\x71\x74\x6dh\x6di"]});
        ${${"\x47L\x4fBAL\x53"}["\x64\x6f\x6ef\x73\x6cj\x6di"]} = array(array("\x64\x6f\x6d\x61in_name" => ${$sdscdckte}, "email" => ${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76\x6c\x77\x63\x67\x79\x6bz\x67\x7aa\x66"]}, "m\x6f\x64\x75le\x5fn\x61\x6de" => ${${"\x47\x4c\x4fB\x41\x4c\x53"}["zxlh\x6a\x69o"]}),);
        if (count(${${"\x47\x4c\x4f\x42\x41\x4cS"}["p\x67\x6b\x76\x74\x77c\x66\x69"]}) <= 1) {
            $rmqjtrl = "\x64o\x6dainN\x61\x6d\x65";
            ${${"\x47\x4c\x4fBA\x4c\x53"}["f\x77\x6a\x61\x69xb\x65\x79"]} = Mage::getSingleton("\x63o\x72\x65/reso\x75rc\x65")->getConnection("core\x5fwr\x69\x74\x65");
            $write->beginTransaction();
            ${${"\x47LOB\x41\x4cS"}["\x6c\x6dpkw\x66a\x78\x64\x6e\x72"]} = array();
            ${${"GL\x4f\x42A\x4cS"}["l\x6d\x70\x6b\x77\x66\x61x\x64nr"]}["\x64o\x6dai\x6e_\x6eam\x65"] = ${$rmqjtrl};
            ${${"\x47\x4cOB\x41L\x53"}["l\x6d\x70\x6b\x77\x66\x61\x78d\x6er"]}["me\x64ma\x5f\x6do\x64ul\x65"] = ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x7a\x78lh\x6a\x69o"]};
            $write->insert(${${"\x47\x4cO\x42\x41L\x53"}["\x71h\x65\x67\x71ix\x71j"]}, ${${"\x47\x4cO\x42\x41LS"}["\x6c\x6d\x70\x6b\x77\x66\x61\x78\x64\x6e\x72"]});
            ${"GL\x4f\x42\x41\x4cS"}["\x75b\x77\x63x\x6e\x74\x79\x79\x73"] = "\x6do\x64u\x6c\x65Na\x6de";
            $write->commit();
            $this->registerDomain(${${"\x47L\x4fB\x41\x4c\x53"}["b\x6d\x71\x73\x77\x79\x79\x6fa"]}, ${${"\x47L\x4f\x42\x41LS"}["\x75\x62wcxnt\x79\x79\x73"]}, ${${"\x47\x4c\x4f\x42\x41L\x53"}["v\x6c\x77\x63gyk\x7agz\x61f"]});
        }
    }

}

?>

Function Calls

None

Variables

GLOBALS [{'key': 'lmpkwfaxdnr', 'value': 'fields'}, {'key': 'fwjaixbey', 'value': 'write'}, {'key': 'donfsljmi', 'value': 'domainDetail'}, {'key': 'qhegqixqj', 'value': 'medmaTable'}, {'key': 'defunqtmhmi', 'value': 'query'}, {'key': 'kyakdsgu', 'value': 'read'}, {'key': 'zxlhjio', 'value': 'moduleName'}, {'key': 'beuznfljf', 'value': 'observer'}, {'key': 'lomwkevclfu', 'value': 'info'}, {'key': 'vlwcgykzgzaf', 'value': 'generalEmail'}, {'key': 'bmqswyyoa', 'value': 'domainName'}, {'key': 'rkyiiovced', 'value': 'ch'}]

Stats

MD5 1403d186ea1baa0f295883d233c5204b
Eval Count 0
Decode Time 114 ms