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 /* * author - MagExt * version - 1.0.0 * website - http://magext.com */ c..

Decoded Output download

<?php 
/* 
 * author - MagExt 
 * version - 1.0.0 
 * website - http://magext.com 
 */ 
 class MagExt_Automation_Block_Adminhtml_Facebook_Config_Authorize extends Mage_Adminhtml_Block_System_Config_Form_Field { public function __construct() { $this->client = Mage::getSingleton("magext_automation/facebook_client"); 
 $this->accessToken = Mage::getStoreConfig("automation/facebook/access_token"); 
 Mage::getSingleton("adminhtml/session")->setFacebookCsrf($CBAyt = md5(uniqid(rand(), TRUE))); 
 $this->client->setState($CBAyt); 
 } protected function _getElementHtml(Varien_Data_Form_Element_Abstract $L_S4W) { $this->setElement($L_S4W); 
 $GEnh6 = $this->_getButtonUrl(); 
 $rkB6k = $this->getLayout()->createBlock("adminhtml/widget_button")->setType("button")->setClass("scalable")->setLabel($this->_getButtonText())->setOnClick("setLocation('{$GEnh6}')")->toHtml(); 
 return $rkB6k; 
 } protected function _getButtonUrl() { if (!$this->accessToken) { goto WEivD; 
 } return Mage::helper("adminhtml")->getUrl("adminhtml/facebook/reauthorize"); 
 goto ir26o; 
 WEivD: return $this->client->createAuthUrl(); 
 ir26o: } protected function _getButtonText() { if (!$this->accessToken) { goto ThTpe; 
 } $rKKYQ = $this->__("Reauthorize"); 
 goto IhXHN; 
 ThTpe: $rKKYQ = $this->__("Authorize"); 
 IhXHN: return $rKKYQ; 
 } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*
 * author - MagExt
 * version - 1.0.0
 * website - http://magext.com
 */
 class MagExt_Automation_Block_Adminhtml_Facebook_Config_Authorize extends Mage_Adminhtml_Block_System_Config_Form_Field { public function __construct() { $this->client = Mage::getSingleton("\x6d\x61\147\x65\x78\164\137\141\165\x74\x6f\x6d\141\x74\151\157\156\x2f\x66\141\x63\x65\142\157\x6f\153\x5f\143\154\x69\x65\156\x74");
 $this->accessToken = Mage::getStoreConfig("\x61\165\x74\157\x6d\x61\164\x69\x6f\156\x2f\x66\141\x63\145\142\157\x6f\153\x2f\141\x63\143\145\x73\x73\137\x74\157\153\145\x6e");
 Mage::getSingleton("\x61\144\155\x69\156\x68\x74\x6d\154\x2f\163\x65\163\163\151\157\x6e")->setFacebookCsrf($CBAyt = md5(uniqid(rand(), TRUE)));
 $this->client->setState($CBAyt);
 } protected function _getElementHtml(Varien_Data_Form_Element_Abstract $L_S4W) { $this->setElement($L_S4W);
 $GEnh6 = $this->_getButtonUrl();
 $rkB6k = $this->getLayout()->createBlock("\x61\144\155\151\x6e\150\164\155\154\57\x77\151\144\147\145\x74\x5f\x62\x75\164\164\x6f\156")->setType("\x62\165\164\164\x6f\156")->setClass("\x73\143\141\x6c\141\142\x6c\x65")->setLabel($this->_getButtonText())->setOnClick("\x73\145\x74\114\x6f\x63\x61\x74\x69\x6f\x6e\50\x27{$GEnh6}\47\x29")->toHtml();
 return $rkB6k;
 } protected function _getButtonUrl() { if (!$this->accessToken) { goto WEivD;
 } return Mage::helper("\x61\144\155\x69\x6e\x68\x74\x6d\154")->getUrl("\141\144\155\x69\x6e\150\x74\x6d\x6c\57\146\141\143\x65\142\157\x6f\153\57\162\x65\x61\x75\164\150\157\162\151\x7a\145");
 goto ir26o;
 WEivD: return $this->client->createAuthUrl();
 ir26o: } protected function _getButtonText() { if (!$this->accessToken) { goto ThTpe;
 } $rKKYQ = $this->__("\x52\145\x61\x75\164\150\157\162\151\172\x65");
 goto IhXHN;
 ThTpe: $rKKYQ = $this->__("\x41\165\164\150\157\162\x69\172\x65");
 IhXHN: return $rKKYQ;
 } }

Function Calls

None

Variables

None

Stats

MD5 27c5bb1dbf5920e274fb36d044109cfc
Eval Count 0
Decode Time 71 ms