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 MiniOrange\OAuth\Controller\Actions\Check; 
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 $rx, Session $zX, OAuthUtility $hA, Auth $hS, ManagerInterface $XY, UrlInterface $nL, ResponseInterface $sS, FormKey $nj) 
    { 
        parent::__construct($rx, $hA); 
        $this->authSession = $zX; 
        $this->auth = $hS; 
        $this->eventManager = $XY; 
        $this->backendUrl = $nL; 
        $this->_response = $sS; 
        $this->formKey = $nj; 
    } 
    public function execute() 
    { 
        $el = $this->oauthUtility->getSessionData("customer_post_logout"); 
        $Zh = $this->oauthUtility->getAdminSessionData("admin_post_logout"); 
        $this->oauthUtility->log_debug("post logout action : Execute:admin_post_logout" . $Zh); 
        $this->oauthUtility->log_debug("post logout action : Execute:customer_post_logout" . $el); 
        if ($Zh) { 
            goto b1; 
        } 
        if ($el) { 
            goto Qk; 
        } 
        $f1 = "Someting Went Wrong. Please Close All Tabs...!"; 
        return $this->oauthUtility->errorPageRedirection($f1); 
        goto zZ; 
        b1: 
        $this->oauthUtility->log_debug("post logout action : Execute:admin post logout and admin active set null"); 
        $ya = $this->oauthUtility->getAdminSessionData("admin_logout_url"); 
        $this->oauthUtility->log_debug("post logout action : Execute:admin  logout url" . $ya); 
        $this->oauthUtility->setAdminSessionData("admin_logout_url", NULL); 
        $this->oauthUtility->setAdminSessionData("admin_post_logout", NULL); 
        if ($ya != NULL) { 
            goto ra; 
        } 
        $this->oauthUtility->redirectURL($this->oauthUtility->getAdminPageUrl()); 
        goto li; 
        ra: 
        $this->oauthUtility->redirectURL($ya); 
        li: 
        goto zZ; 
        Qk: 
        $this->oauthUtility->setSessionData("customer_post_logout", NULL); 
        $j5 = $this->oauthUtility->getBaseUrl() . "customer/account/logout"; 
        $this->oauthUtility->redirectURL($j5); 
        zZ: 
        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 MiniOrange\OAuth\Controller\Actions\Check;
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 $rx, Session $zX, OAuthUtility $hA, Auth $hS, ManagerInterface $XY, UrlInterface $nL, ResponseInterface $sS, FormKey $nj)
    {
        parent::__construct($rx, $hA);
        $this->authSession = $zX;
        $this->auth = $hS;
        $this->eventManager = $XY;
        $this->backendUrl = $nL;
        $this->_response = $sS;
        $this->formKey = $nj;
    }
    public function execute()
    {
        $el = $this->oauthUtility->getSessionData("\143\165\x73\164\x6f\155\x65\x72\x5f\160\157\x73\x74\x5f\154\157\147\157\x75\x74");
        $Zh = $this->oauthUtility->getAdminSessionData("\x61\x64\x6d\x69\156\137\x70\x6f\163\164\x5f\x6c\157\x67\157\x75\x74");
        $this->oauthUtility->log_debug("\160\157\163\164\40\x6c\157\x67\157\x75\164\x20\141\143\164\151\x6f\x6e\40\x3a\40\x45\x78\x65\143\x75\x74\145\72\141\x64\x6d\151\156\137\160\x6f\163\x74\137\x6c\157\147\x6f\x75\x74" . $Zh);
        $this->oauthUtility->log_debug("\x70\x6f\x73\164\x20\154\x6f\x67\157\x75\164\x20\x61\143\164\151\x6f\x6e\x20\x3a\40\x45\x78\145\143\x75\164\x65\72\x63\x75\x73\164\157\155\x65\162\137\160\157\x73\x74\137\154\x6f\x67\157\165\x74" . $el);
        if ($Zh) {
            goto b1;
        }
        if ($el) {
            goto Qk;
        }
        $f1 = "\123\157\155\145\164\151\x6e\147\40\127\145\x6e\164\x20\x57\162\157\x6e\147\x2e\x20\x50\x6c\x65\141\163\145\40\x43\154\157\163\x65\x20\101\x6c\154\40\x54\141\x62\163\56\56\56\41";
        return $this->oauthUtility->errorPageRedirection($f1);
        goto zZ;
        b1:
        $this->oauthUtility->log_debug("\x70\157\163\x74\40\154\157\147\x6f\165\x74\40\x61\143\164\x69\x6f\x6e\40\x3a\x20\x45\170\145\143\165\164\x65\x3a\141\x64\x6d\x69\x6e\40\x70\157\163\164\40\x6c\x6f\x67\x6f\x75\164\x20\x61\x6e\x64\40\x61\x64\x6d\151\x6e\40\x61\x63\x74\x69\x76\145\x20\x73\145\164\40\x6e\165\154\x6c");
        $ya = $this->oauthUtility->getAdminSessionData("\141\144\155\x69\156\137\x6c\x6f\147\x6f\x75\164\137\165\162\x6c");
        $this->oauthUtility->log_debug("\160\x6f\163\164\40\x6c\157\147\157\x75\x74\40\141\143\x74\151\157\x6e\40\x3a\x20\x45\170\x65\x63\x75\164\145\x3a\x61\x64\155\151\x6e\40\x20\x6c\157\x67\x6f\x75\164\x20\165\x72\x6c" . $ya);
        $this->oauthUtility->setAdminSessionData("\x61\144\155\151\x6e\x5f\x6c\157\147\x6f\x75\x74\137\165\x72\x6c", NULL);
        $this->oauthUtility->setAdminSessionData("\x61\x64\155\151\x6e\137\x70\x6f\163\x74\x5f\x6c\157\x67\157\x75\164", NULL);
        if ($ya != NULL) {
            goto ra;
        }
        $this->oauthUtility->redirectURL($this->oauthUtility->getAdminPageUrl());
        goto li;
        ra:
        $this->oauthUtility->redirectURL($ya);
        li:
        goto zZ;
        Qk:
        $this->oauthUtility->setSessionData("\x63\x75\x73\164\x6f\155\x65\162\x5f\x70\x6f\x73\164\137\x6c\157\147\157\165\164", NULL);
        $j5 = $this->oauthUtility->getBaseUrl() . "\x63\165\163\164\x6f\x6d\145\x72\x2f\x61\x63\143\157\x75\156\x74\x2f\x6c\157\147\x6f\x75\164";
        $this->oauthUtility->redirectURL($j5);
        zZ:
        exit;
    }
}

Function Calls

None

Variables

None

Stats

MD5 52c067e9c716bf84804414f7ce5f232a
Eval Count 0
Decode Time 62 ms