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\Controller\Actions; use Magento\Backend\App\Actio..
Decoded Output download
<?php
namespace MiniOrange\OAuth\Controller\Actions;
use Magento\Backend\App\Action\Context;
use Magento\Backend\Model\Auth\Session;
use Magento\Framework\Controller\Result\Redirect;
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use MiniOrange\OAuth\Helper\OAuthUtility;
use Magento\Backend\Model\Auth;
use Magento\Framework\Event\ManagerInterface;
use Magento\Backend\Model\UrlInterface;
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\Data\Form\FormKey;
use MiniOrange\OAuth\Helper\OAuthConstants;
class PostlogoutAction extends BaseAction implements HttpGetActionInterface
{
protected $authSession;
protected $auth;
protected $eventManager;
public $context;
protected $_response;
protected $backendUrl;
protected $oauthUtility;
protected $formKey;
public function __construct(Context $N4, Session $aq, OAuthUtility $Dz, Auth $Q4, ManagerInterface $qb, UrlInterface $Kd, ResponseInterface $HW, FormKey $Vq)
{
parent::__construct($N4, $Dz);
$this->authSession = $aq;
$this->auth = $Q4;
$this->eventManager = $qb;
$this->backendUrl = $Kd;
$this->_response = $HW;
$this->formKey = $Vq;
}
public function execute()
{
$Y3 = $this->oauthUtility->getSessionData("customer_post_logout");
$yU = $this->oauthUtility->getAdminSessionData("admin_post_logout");
$this->oauthUtility->log_debug("post logout action : Execute:admin_post_logout" . $yU);
$this->oauthUtility->log_debug("post logout action : Execute:customer_post_logout" . $Y3);
if ($Y3) {
goto Dl;
}
$this->oauthUtility->log_debug("post logout action : Execute:admin post logout and admin active set null");
$Cw = $this->oauthUtility->getAdminSessionData("admin_logout_url");
$this->oauthUtility->log_debug("post logout action : Execute:admin logout url" . $Cw);
$this->oauthUtility->setAdminSessionData("admin_logout_url", null);
$this->oauthUtility->setAdminSessionData("admin_post_logout", null);
if ($Cw != null) {
goto MH;
}
$this->oauthUtility->redirectURL($this->oauthUtility->getAdminPageUrl());
goto mi;
MH:
$this->oauthUtility->redirectURL($Cw);
mi:
goto XE;
Dl:
$this->oauthUtility->setSessionData("customer_post_logout", null);
$Mw = $this->oauthUtility->getBaseUrl() . "customer/account/logout";
$this->oauthUtility->redirectURL($Mw);
XE:
exit;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MiniOrange\OAuth\Controller\Actions;
use Magento\Backend\App\Action\Context;
use Magento\Backend\Model\Auth\Session;
use Magento\Framework\Controller\Result\Redirect;
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use MiniOrange\OAuth\Helper\OAuthUtility;
use Magento\Backend\Model\Auth;
use Magento\Framework\Event\ManagerInterface;
use Magento\Backend\Model\UrlInterface;
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\Data\Form\FormKey;
use MiniOrange\OAuth\Helper\OAuthConstants;
class PostlogoutAction extends BaseAction implements HttpGetActionInterface
{
protected $authSession;
protected $auth;
protected $eventManager;
public $context;
protected $_response;
protected $backendUrl;
protected $oauthUtility;
protected $formKey;
public function __construct(Context $N4, Session $aq, OAuthUtility $Dz, Auth $Q4, ManagerInterface $qb, UrlInterface $Kd, ResponseInterface $HW, FormKey $Vq)
{
parent::__construct($N4, $Dz);
$this->authSession = $aq;
$this->auth = $Q4;
$this->eventManager = $qb;
$this->backendUrl = $Kd;
$this->_response = $HW;
$this->formKey = $Vq;
}
public function execute()
{
$Y3 = $this->oauthUtility->getSessionData("\x63\165\163\x74\157\155\x65\162\x5f\x70\157\163\x74\x5f\x6c\x6f\x67\157\x75\x74");
$yU = $this->oauthUtility->getAdminSessionData("\141\144\x6d\x69\x6e\137\160\x6f\x73\164\137\x6c\157\147\157\x75\164");
$this->oauthUtility->log_debug("\x70\x6f\163\164\40\154\157\147\157\x75\164\x20\x61\x63\x74\x69\x6f\156\40\x3a\40\105\x78\145\x63\165\x74\x65\72\141\144\x6d\151\x6e\x5f\160\x6f\163\x74\x5f\x6c\x6f\x67\157\x75\164" . $yU);
$this->oauthUtility->log_debug("\160\x6f\x73\x74\40\154\157\x67\157\165\164\x20\141\143\x74\x69\x6f\x6e\40\x3a\40\105\x78\x65\x63\x75\x74\x65\x3a\x63\165\163\x74\x6f\155\145\x72\x5f\160\157\163\164\x5f\154\x6f\x67\x6f\165\164" . $Y3);
if ($Y3) {
goto Dl;
}
$this->oauthUtility->log_debug("\x70\x6f\163\x74\x20\154\157\x67\x6f\x75\164\x20\141\x63\x74\151\x6f\156\x20\x3a\x20\105\x78\145\143\x75\x74\145\x3a\141\144\x6d\x69\156\x20\x70\157\x73\x74\x20\154\157\147\157\165\x74\x20\141\156\x64\40\141\144\155\x69\x6e\x20\141\x63\164\151\x76\145\x20\163\x65\x74\40\156\x75\x6c\154");
$Cw = $this->oauthUtility->getAdminSessionData("\141\144\x6d\x69\156\137\x6c\x6f\147\157\x75\x74\x5f\x75\162\x6c");
$this->oauthUtility->log_debug("\x70\157\x73\164\x20\x6c\157\147\157\165\x74\40\x61\x63\x74\x69\157\x6e\40\72\40\105\170\x65\x63\165\164\145\72\141\x64\155\151\156\x20\40\x6c\x6f\147\x6f\x75\164\40\165\162\x6c" . $Cw);
$this->oauthUtility->setAdminSessionData("\x61\144\155\x69\x6e\137\154\157\x67\x6f\x75\164\x5f\x75\162\154", null);
$this->oauthUtility->setAdminSessionData("\141\144\x6d\x69\156\137\160\x6f\x73\164\137\154\x6f\x67\157\x75\164", null);
if ($Cw != null) {
goto MH;
}
$this->oauthUtility->redirectURL($this->oauthUtility->getAdminPageUrl());
goto mi;
MH:
$this->oauthUtility->redirectURL($Cw);
mi:
goto XE;
Dl:
$this->oauthUtility->setSessionData("\x63\165\163\x74\x6f\x6d\145\x72\137\160\157\163\164\137\x6c\157\x67\x6f\165\x74", null);
$Mw = $this->oauthUtility->getBaseUrl() . "\143\165\x73\164\157\155\145\162\x2f\141\143\143\x6f\165\156\x74\57\154\x6f\147\x6f\165\x74";
$this->oauthUtility->redirectURL($Mw);
XE:
exit;
}
}
Function Calls
None |
Stats
MD5 | 44190ff6cc85131511c2d05c0016b8ab |
Eval Count | 0 |
Decode Time | 60 ms |