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 MiniOrange\OAuth\Observer; use Magento\Framework\Event\ObserverInt..
Decoded Output download
<?php
namespace MiniOrange\OAuth\Observer;
use Magento\Framework\Event\ObserverInterface;
use MiniOrange\OAuth\Helper\OAuthMessages;
use Magento\Framework\Event\Observer;
use MiniOrange\OAuth\Controller\Actions\ReadAuthorizationResponse;
use MiniOrange\OAuth\Helper\OAuthConstants;
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\App\Response\RedirectInterface;
class OAuthLogoutObserver implements ObserverInterface
{
private $requestParams = array("option");
private $messageManager;
private $logger;
private $readAuthorizationResponse;
private $oauthUtility;
private $adminLoginAction;
private $testAction;
private $currentControllerName;
private $currentActionName;
private $requestInterface;
private $request;
protected $_redirect;
protected $_response;
public function __construct(\Magento\Framework\Message\ManagerInterface $B3, \Psr\Log\LoggerInterface $ag, \MiniOrange\OAuth\Controller\Actions\ReadAuthorizationResponse $l4, \MiniOrange\OAuth\Helper\OAuthUtility $AX, \MiniOrange\OAuth\Controller\Actions\AdminLoginAction $oM, \Magento\Framework\App\Request\Http $hE, \Magento\Framework\App\RequestInterface $CB, \MiniOrange\OAuth\Controller\Actions\ShowTestResultsAction $Rz, RedirectInterface $d6, ResponseInterface $um)
{
$this->messageManager = $B3;
$this->logger = $ag;
$this->readAuthorizationResponse = $l4;
$this->oauthUtility = $AX;
$this->adminLoginAction = $oM;
$this->currentControllerName = $hE->getControllerName();
$this->currentActionName = $hE->getActionName();
$this->request = $CB;
$this->testAction = $Rz;
$this->_redirect = $d6;
$this->_response = $um;
}
public function execute(Observer $jN)
{
$py = $this->oauthUtility->getStoreConfig(OAuthConstants::LOGOUT_AUTO_REDIRECT_URL);
$this->oauthUtility->log_debug("logout_redirect url - " . $py);
if (!empty($py)) {
goto iGs;
}
$this->oauthUtility->log_debug("inside else: logout_redirect is empty. ");
goto G3c;
iGs:
$this->oauthUtility->log_debug("inside if: logout_redirect not empty- " . $py);
$this->_response->setRedirect($py)->sendResponse();
exit;
G3c:
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MiniOrange\OAuth\Observer;
use Magento\Framework\Event\ObserverInterface;
use MiniOrange\OAuth\Helper\OAuthMessages;
use Magento\Framework\Event\Observer;
use MiniOrange\OAuth\Controller\Actions\ReadAuthorizationResponse;
use MiniOrange\OAuth\Helper\OAuthConstants;
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\App\Response\RedirectInterface;
class OAuthLogoutObserver implements ObserverInterface
{
private $requestParams = array("\x6f\x70\164\151\x6f\156");
private $messageManager;
private $logger;
private $readAuthorizationResponse;
private $oauthUtility;
private $adminLoginAction;
private $testAction;
private $currentControllerName;
private $currentActionName;
private $requestInterface;
private $request;
protected $_redirect;
protected $_response;
public function __construct(\Magento\Framework\Message\ManagerInterface $B3, \Psr\Log\LoggerInterface $ag, \MiniOrange\OAuth\Controller\Actions\ReadAuthorizationResponse $l4, \MiniOrange\OAuth\Helper\OAuthUtility $AX, \MiniOrange\OAuth\Controller\Actions\AdminLoginAction $oM, \Magento\Framework\App\Request\Http $hE, \Magento\Framework\App\RequestInterface $CB, \MiniOrange\OAuth\Controller\Actions\ShowTestResultsAction $Rz, RedirectInterface $d6, ResponseInterface $um)
{
$this->messageManager = $B3;
$this->logger = $ag;
$this->readAuthorizationResponse = $l4;
$this->oauthUtility = $AX;
$this->adminLoginAction = $oM;
$this->currentControllerName = $hE->getControllerName();
$this->currentActionName = $hE->getActionName();
$this->request = $CB;
$this->testAction = $Rz;
$this->_redirect = $d6;
$this->_response = $um;
}
public function execute(Observer $jN)
{
$py = $this->oauthUtility->getStoreConfig(OAuthConstants::LOGOUT_AUTO_REDIRECT_URL);
$this->oauthUtility->log_debug("\154\x6f\147\157\x75\164\x5f\162\x65\x64\x69\x72\145\x63\164\x20\x75\162\154\x20\x2d\x20" . $py);
if (!empty($py)) {
goto iGs;
}
$this->oauthUtility->log_debug("\x69\x6e\163\151\144\145\x20\x65\x6c\x73\145\72\40\154\157\x67\157\x75\164\x5f\162\x65\x64\x69\162\x65\143\x74\40\151\163\40\145\155\x70\x74\x79\56\x20");
goto G3c;
iGs:
$this->oauthUtility->log_debug("\151\156\163\151\144\145\40\x69\146\x3a\x20\x6c\157\x67\x6f\165\164\x5f\x72\x65\144\151\x72\145\143\x74\40\x6e\157\x74\40\x65\155\160\164\x79\55\40" . $py);
$this->_response->setRedirect($py)->sendResponse();
exit;
G3c:
}
}
Function Calls
None |
Stats
MD5 | 36bdfbbbddc35e9b7bbe18d942f4047f |
Eval Count | 0 |
Decode Time | 50 ms |