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 Cart2Quote\Features\Feature\ApiAccess; use Magento\Framework\Webapi\..

Decoded Output download

<?php 
 
namespace Cart2Quote\Features\Feature\ApiAccess; 
 
use Magento\Framework\Webapi\Exception; 
 
final class Rest extends \Cart2Quote\License\Plugin\AbstractPlugin 
{ 
    private $inputParamsResolver; 
 
    public function __construct() 
    { 
        $this->inputParamsResolver = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Webapi\Controller\Rest\InputParamsResolver::class); 
    } 
 
    public final function aroundDispatch(\Magento\Webapi\Controller\Rest $VQMGz, callable $XLjmD, \Magento\Framework\App\RequestInterface $zwDXM) 
    { 
        $alZxU = $XLjmD($zwDXM); 
        $l_dsT = $zwDXM->getRequestUri(); 
        if (!(strpos($l_dsT, "services=all") === false)) { 
            goto lmSEm; 
        } 
        try { 
            $WJxd1 = $this->inputParamsResolver->getRoute()->getServiceClass(); 
            if (!(strpos($WJxd1, "Cart2Quote") !== false && !$this->{"isAllowed"}())) { 
                goto IEEtE; 
            } 
            throw new \Magento\Framework\Exception\LocalizedException(__("This Cart2Quote license does not allow for API access")); 
            IEEtE: 
        } catch (Exception $luFOD) { 
        } 
        lmSEm: 
        return $alZxU; 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php

namespace Cart2Quote\Features\Feature\ApiAccess;

use Magento\Framework\Webapi\Exception;

final class Rest extends \Cart2Quote\License\Plugin\AbstractPlugin
{
    private $inputParamsResolver;

    public function __construct()
    {
        $this->inputParamsResolver = \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Webapi\Controller\Rest\InputParamsResolver::class);
    }

    public final function aroundDispatch(\Magento\Webapi\Controller\Rest $VQMGz, callable $XLjmD, \Magento\Framework\App\RequestInterface $zwDXM)
    {
        $alZxU = $XLjmD($zwDXM);
        $l_dsT = $zwDXM->getRequestUri();
        if (!(strpos($l_dsT, "\x73\145\x72\x76\x69\143\145\x73\75\x61\x6c\x6c") === false)) {
            goto lmSEm;
        }
        try {
            $WJxd1 = $this->inputParamsResolver->getRoute()->getServiceClass();
            if (!(strpos($WJxd1, "\x43\141\x72\x74\x32\x51\x75\157\164\145") !== false && !$this->{"\x69\163\101\154\x6c\x6f\167\x65\144"}())) {
                goto IEEtE;
            }
            throw new \Magento\Framework\Exception\LocalizedException(__("\x54\150\x69\x73\40\103\x61\162\x74\x32\121\x75\157\164\145\40\154\x69\143\x65\x6e\163\x65\40\144\x6f\145\x73\40\156\x6f\x74\x20\141\154\x6c\157\167\x20\146\157\x72\x20\x41\x50\111\x20\141\x63\143\145\x73\163"));
            IEEtE:
        } catch (Exception $luFOD) {
        }
        lmSEm:
        return $alZxU;
    }
}

Function Calls

None

Variables

None

Stats

MD5 6b51a856ef73f2d1efda11d946d861fa
Eval Count 0
Decode Time 873 ms