Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
class GTS { private $pid = "-\61"; private $website = null; private $request = null; p..
Decoded Output download
<? class GTS { private $pid = "-1";
private $website = null; private $request = null; private $product = null; private $id_template = null; private $googletrustedstores_gts_country = null; private $googletrustedstores_gts_gts_id = null; private $googletrustedstores_gts_badge_position = null; private $googletrustedstores_gts_language = null; private $googletrustedstores_gts_gb_id = null; private $googletrustedstores_gts_badge_container_css = null; public function __construct($request) { $x41 = array("ac" => "activation_code", "ak" => "activation_key", "bu" => "base_url", "md" => "md5", "th" => "this", "dm" => "_demo", "ext" => "gts", "ver" => "1.7.1"); $this->request = $request; $this->website = Mage::app()->getWebsite(); if (Mage::getSingleton('checkout/session')->getData('gts_badge_test') === true && $this->request->getParam('product-sku') != '') { $this->product = Mage::getModel('catalog/product')->loadByAttribute('sku', $this->request->getParam('product-sku')); } $x42 = array( "activation_key" => Mage::getStoreConfig("googletrustedstores/license/activation_key"), "activation_code" => Mage::getStoreConfig("googletrustedstores/license/activation_code"), "base_url" => Mage::getStoreConfig("web/secure/base_url", 0), ); if (Mage::getSingleton('checkout/session')->getData('gts_badge_test') === true) { $this->id_template = $this->request->getParam('googletrustedstores_gts_gs_product_id'); $this->googletrustedstores_gts_country = $this->request->getParam('googletrustedstores_gts_country'); $this->googletrustedstores_gts_gts_id = $this->request->getParam('googletrustedstores_gts_gts_id'); $this->googletrustedstores_gts_badge_position = $this->request->getParam('googletrustedstores_gts_badge_position'); $this->googletrustedstores_gts_language = $this->request->getParam('googletrustedstores_gts_language'); $this->googletrustedstores_gts_gb_id = $this->request->getParam('googletrustedstores_gts_gb_id'); $this->googletrustedstores_gts_badge_container_css = $this->request->getParam('googletrustedstores_gts_badge_container_css'); } else if (Mage::registry('current_product')) { $x43 = Mage::registry('current_product')->getId(); $this->product = Mage::getModel('catalog/product')->load($x43); $this->id_template = $this->website->getConfig("googletrustedstores/gts/gs_product_id"); $this->googletrustedstores_gts_country = $this->website->getConfig("googletrustedstores/gts/country"); $this->googletrustedstores_gts_gts_id = $this->website->getConfig("googletrustedstores/gts/gts_id"); $this->googletrustedstores_gts_badge_position = $this->website->getConfig("googletrustedstores/gts/badge_position"); $this->googletrustedstores_gts_language = $this->website->getConfig("googletrustedstores/gts/language"); $this->googletrustedstores_gts_gb_id = $this->website->getConfig("googletrustedstores/gts/gb_id"); $this->googletrustedstores_gts_badge_container_css = $this->website->getConfig("googletrustedstores/gts/badge_container_css"); } else { $this->googletrustedstores_gts_country = $this->website->getConfig("googletrustedstores/gts/country"); $this->googletrustedstores_gts_gts_id = $this->website->getConfig("googletrustedstores/gts/gts_id"); $this->googletrustedstores_gts_badge_position = $this->website->getConfig("googletrustedstores/gts/badge_position"); $this->googletrustedstores_gts_language = $this->website->getConfig("googletrustedstores/gts/language"); $this->googletrustedstores_gts_gb_id = $this->website->getConfig("googletrustedstores/gts/gb_id"); $this->googletrustedstores_gts_badge_container_css = $this->website->getConfig("googletrustedstores/gts/badge_container_css"); } if ($x42[$x41['ac']] != $x41["md"]($x41["md"]($x42[$x41['ak']]) . $x41["md"]($x42[$x41['bu']]) . $x41["md"]($x41["ext"]) . $x41["md"]($x41["ver"]))) { $$x41["ext"] = "valid"; $$x41["th"]->$x41["dm"] = true; } else { $$x41["th"]->$x41["dm"] = false; $$x41["ext"] = "valid"; } if (isset($this->product)) { if ($this->id_template != "") { $this->pid = $this->id_template; preg_match_all('/{[^}]+}/', $this->id_template, $x44, PREG_OFFSET_CAPTURE); $x45 = array_reverse($x44[0], true); foreach ($x45 as $x46) { $x44 = $x46[0]; $x47 = $x46[1]; $x48 = str_replace(array('{', '}'), array('', ''), $x44); $x49 = eval('return $this->product->get' . ucfirst($x48) . '(); '); $this->pid = substr_replace($this->pid, $x49, $x47, strlen($x44)); } } } if (!isset($$x41["ext"]) || $$x41["th"]->$x41["dm"]) { $$x41["th"]->$x41["dm"] = true; $this->googletrustedstores_gts_badge_position = "Invalid license. Please check the activation key you provide."; } } function getPid() { return $this->pid; } function getId_template() { return $this->id_template; } function getGoogletrustedstores_gts_country() { return $this->googletrustedstores_gts_country; } function getGoogletrustedstores_gts_gts_id() { return $this->googletrustedstores_gts_gts_id; } function getGoogletrustedstores_gts_badge_position() { return $this->googletrustedstores_gts_badge_position; } function getGoogletrustedstores_gts_language() { return $this->googletrustedstores_gts_language; } function getGoogletrustedstores_gts_gb_id() { return $this->googletrustedstores_gts_gb_id; } function getGoogletrustedstores_gts_badge_container_css() { return $this->googletrustedstores_gts_badge_container_css; } }; ?>
Did this file decode correctly?
Original Code
class GTS { private $pid = "-\61";
private $website = null; private $request = null; private $product = null; private $id_template = null; private $googletrustedstores_gts_country = null; private $googletrustedstores_gts_gts_id = null; private $googletrustedstores_gts_badge_position = null; private $googletrustedstores_gts_language = null; private $googletrustedstores_gts_gb_id = null; private $googletrustedstores_gts_badge_container_css = null; public function __construct($request) { $x41 = array("\141c" => "a\143\164i\166a\x74\151o\156\x5fcode", "\141k" => "\141c\x74\151v\141t\x69\157\156_\x6b\x65\171", "\x62\165" => "\x62\x61\x73e\x5f\165r\154", "\x6d\144" => "\155\144\65", "t\x68" => "\x74\150\x69\163", "d\x6d" => "_d\x65\x6d\x6f", "\x65\170\x74" => "g\164s", "v\145\x72" => "\61.\67.\61"); $this->request = $request; $this->website = Mage::app()->getWebsite(); if (Mage::getSingleton('checkout/session')->getData('gts_badge_test') === true && $this->request->getParam('product-sku') != '') { $this->product = Mage::getModel('catalog/product')->loadByAttribute('sku', $this->request->getParam('product-sku')); } $x42 = array( "\141c\x74\151v\141t\x69\157\156_\x6b\x65\171" => Mage::getStoreConfig("\x67\157\x6f\147l\x65\164\x72\165\x73\164\145\x64\x73\164or\x65\163\x2f\154\x69\x63\145\x6e\163e/\141\143\x74i\x76\x61\x74i\157n\x5f\x6b\x65y"), "a\143\164i\166a\x74\151o\156\x5fcode" => Mage::getStoreConfig("\147o\x6fgle\x74\x72\x75ste\x64sto\x72es\x2f\x6c\151\x63e\156\163\145/\141\143\x74i\x76\x61t\x69\x6fn\x5f\x63ode"), "\x62\x61\x73e\x5f\165r\154" => Mage::getStoreConfig("w\145b\57s\145\x63\165r\145/\142\141\x73\145\137\x75\162l", 0), ); if (Mage::getSingleton('checkout/session')->getData('gts_badge_test') === true) { $this->id_template = $this->request->getParam('googletrustedstores_gts_gs_product_id'); $this->googletrustedstores_gts_country = $this->request->getParam('googletrustedstores_gts_country'); $this->googletrustedstores_gts_gts_id = $this->request->getParam('googletrustedstores_gts_gts_id'); $this->googletrustedstores_gts_badge_position = $this->request->getParam('googletrustedstores_gts_badge_position'); $this->googletrustedstores_gts_language = $this->request->getParam('googletrustedstores_gts_language'); $this->googletrustedstores_gts_gb_id = $this->request->getParam('googletrustedstores_gts_gb_id'); $this->googletrustedstores_gts_badge_container_css = $this->request->getParam('googletrustedstores_gts_badge_container_css'); } else if (Mage::registry('current_product')) { $x43 = Mage::registry('current_product')->getId(); $this->product = Mage::getModel('catalog/product')->load($x43); $this->id_template = $this->website->getConfig("\x67\157\157\x67\154\x65\x74\162us\164\145ds\164\157re\163\57\147t\x73\x2f\x67\x73_p\162\x6f\144u\143\x74_\x69\x64"); $this->googletrustedstores_gts_country = $this->website->getConfig("g\157ogl\145tr\x75\x73\164e\144s\164\x6f\x72\145\163\57\x67\164s\57c\157\x75\x6e\164\x72\x79"); $this->googletrustedstores_gts_gts_id = $this->website->getConfig("\147o\x6f\x67l\145\x74\162\165\x73t\145\144stor\145\163\x2fg\x74\x73\57\x67\164\163\x5fid"); $this->googletrustedstores_gts_badge_position = $this->website->getConfig("\x67\157\157\147\154\145tru\163te\x64\163\164\x6f\162\145\163\x2fg\164\x73/b\x61\144\147\x65\x5f\x70\157\163it\x69\x6fn"); $this->googletrustedstores_gts_language = $this->website->getConfig("\x67o\157gl\145\x74\x72\165st\x65d\163to\x72\145s\57g\x74s\x2f\154\141n\x67uage"); $this->googletrustedstores_gts_gb_id = $this->website->getConfig("g\157o\147let\162us\164\145\x64\163\x74\157r\x65\x73/\147t\x73/\147b\x5f\x69d"); $this->googletrustedstores_gts_badge_container_css = $this->website->getConfig("\x67\x6fo\147l\145\x74r\165s\164\x65\x64\x73\x74o\162\145\163\57\147\164s\57\142ad\147e\x5f\143o\156\x74\x61\x69n\145r\x5f\x63\163\x73"); } else { $this->googletrustedstores_gts_country = $this->website->getConfig("g\157ogl\145tr\x75\x73\164e\144s\164\x6f\x72\145\163\57\x67\164s\57c\157\x75\x6e\164\x72\x79"); $this->googletrustedstores_gts_gts_id = $this->website->getConfig("\147o\x6f\x67l\145\x74\162\165\x73t\145\144stor\145\163\x2fg\x74\x73\57\x67\164\163\x5fid"); $this->googletrustedstores_gts_badge_position = $this->website->getConfig("\x67\157\157\147\154\145tru\163te\x64\163\164\x6f\162\145\163\x2fg\164\x73/b\x61\144\147\x65\x5f\x70\157\163it\x69\x6fn"); $this->googletrustedstores_gts_language = $this->website->getConfig("\x67o\157gl\145\x74\x72\165st\x65d\163to\x72\145s\57g\x74s\x2f\154\141n\x67uage"); $this->googletrustedstores_gts_gb_id = $this->website->getConfig("g\157o\147let\162us\164\145\x64\163\x74\157r\x65\x73/\147t\x73/\147b\x5f\x69d"); $this->googletrustedstores_gts_badge_container_css = $this->website->getConfig("\x67\x6fo\147l\145\x74r\165s\164\x65\x64\x73\x74o\162\145\163\57\147\164s\57\142ad\147e\x5f\143o\156\x74\x61\x69n\145r\x5f\x63\163\x73"); } if ($x42[$x41['ac']] != $x41["\x6d\144"]($x41["\x6d\144"]($x42[$x41['ak']]) . $x41["\x6d\144"]($x42[$x41['bu']]) . $x41["\x6d\144"]($x41["\x65\170\x74"]) . $x41["\x6d\144"]($x41["v\145\x72"]))) { $$x41["\x65\170\x74"] = "val\x69\x64"; $$x41["t\x68"]->$x41["d\x6d"] = true; } else { $$x41["t\x68"]->$x41["d\x6d"] = false; $$x41["\x65\170\x74"] = "val\x69\x64"; } if (isset($this->product)) { if ($this->id_template != "") { $this->pid = $this->id_template; preg_match_all('/{[^}]+}/', $this->id_template, $x44, PREG_OFFSET_CAPTURE); $x45 = array_reverse($x44[0], true); foreach ($x45 as $x46) { $x44 = $x46[0]; $x47 = $x46[1]; $x48 = str_replace(array('{', '}'), array('', ''), $x44); $x49 = eval('return $this->product->get' . ucfirst($x48) . '(); '); $this->pid = substr_replace($this->pid, $x49, $x47, strlen($x44)); } } } if (!isset($$x41["\x65\170\x74"]) || $$x41["t\x68"]->$x41["d\x6d"]) { $$x41["t\x68"]->$x41["d\x6d"] = true; $this->googletrustedstores_gts_badge_position = "\111\x6ev\141\154\x69\144\40\154i\x63\145\x6e\163\145.\40\120\154\145\x61\x73e c\x68\x65ck \164\150e\40\x61\143\164\151va\x74\x69\157\156 k\145\x79\x20\x79\157\165\x20\x70\x72\x6f\166\151d\x65\x2e"; } } function getPid() { return $this->pid; } function getId_template() { return $this->id_template; } function getGoogletrustedstores_gts_country() { return $this->googletrustedstores_gts_country; } function getGoogletrustedstores_gts_gts_id() { return $this->googletrustedstores_gts_gts_id; } function getGoogletrustedstores_gts_badge_position() { return $this->googletrustedstores_gts_badge_position; } function getGoogletrustedstores_gts_language() { return $this->googletrustedstores_gts_language; } function getGoogletrustedstores_gts_gb_id() { return $this->googletrustedstores_gts_gb_id; } function getGoogletrustedstores_gts_badge_container_css() { return $this->googletrustedstores_gts_badge_container_css; } };
Function Calls
| None |
Stats
| MD5 | d164002d4b6c6d5aa66a30704064413f |
| Eval Count | 0 |
| Decode Time | 90 ms |