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 MiniOrange\OAuth\Helper\O..

Decoded Output download

<?php 
 
 
namespace MiniOrange\OAuth\Controller\Actions; 
 
use MiniOrange\OAuth\Helper\OAuth\AuthorizationRequest; 
use MiniOrange\OAuth\Helper\OAuthConstants; 
use MiniOrange\OAuth\Helper\Data; 
class SendAuthorizationRequest extends BaseAction 
{ 
    public function execute() 
    { 
        $this->oauthUtility->log_debug("SendAuthorizationRequest: execute"); 
        $sa = $this->getRequest()->getParams(); 
        $sP = array_key_exists("relayState", $sa) ? $sa["relayState"] : "/"; 
        if (!($sP == OAuthConstants::TEST_RELAYSTATE)) { 
            goto dD; 
        } 
        $this->oauthUtility->setStoreConfig(OAuthConstants::IS_TEST, true); 
        $this->oauthUtility->flushCache(); 
        dD: 
        if ($this->oauthUtility->isOAuthConfigured()) { 
            goto lG; 
        } 
        return; 
        lG: 
        $AN = $this->oauthUtility->getStoreConfig(OAuthConstants::CLIENT_ID); 
        $og = $this->oauthUtility->getStoreConfig(OAuthConstants::SCOPE); 
        $Uf = $this->oauthUtility->getStoreConfig(OAuthConstants::AUTHORIZE_URL); 
        $AQ = OAuthConstants::CODE; 
        $ja = $this->oauthUtility->getBaseUrl(); 
        $KL = $ja . "mooauth/actions/ReadAuthorizationResponse"; 
        $this->oauthUtility->log_debug("SendAuthorizationRequest: scope:", $og); 
        $this->oauthUtility->log_debug("SendAuthorizationRequest: authorizeURL:", $Uf); 
        $this->oauthUtility->log_debug("SendAuthorizationRequest: responseType:", $AQ); 
        $this->oauthUtility->log_debug("SendAuthorizationRequest: currentBaseUrl:", $ja); 
        $this->oauthUtility->log_debug("SendAuthorizationRequest: redirectURL:", $KL); 
        $Y2 = new AuthorizationRequest($AN, $og, $Uf, $AQ, $KL, $sP); 
        $ys = $Y2->build(); 
        return $this->sendHTTPRedirectRequest($ys, $Uf); 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MiniOrange\OAuth\Controller\Actions;

use MiniOrange\OAuth\Helper\OAuth\AuthorizationRequest;
use MiniOrange\OAuth\Helper\OAuthConstants;
use MiniOrange\OAuth\Helper\Data;
class SendAuthorizationRequest extends BaseAction
{
    public function execute()
    {
        $this->oauthUtility->log_debug("\x53\x65\x6e\144\x41\x75\x74\150\157\x72\151\x7a\x61\x74\x69\x6f\x6e\122\145\x71\165\x65\163\x74\72\x20\145\170\145\143\x75\164\x65");
        $sa = $this->getRequest()->getParams();
        $sP = array_key_exists("\162\145\x6c\141\171\123\x74\x61\164\145", $sa) ? $sa["\162\145\x6c\x61\171\x53\x74\141\164\x65"] : "\x2f";
        if (!($sP == OAuthConstants::TEST_RELAYSTATE)) {
            goto dD;
        }
        $this->oauthUtility->setStoreConfig(OAuthConstants::IS_TEST, true);
        $this->oauthUtility->flushCache();
        dD:
        if ($this->oauthUtility->isOAuthConfigured()) {
            goto lG;
        }
        return;
        lG:
        $AN = $this->oauthUtility->getStoreConfig(OAuthConstants::CLIENT_ID);
        $og = $this->oauthUtility->getStoreConfig(OAuthConstants::SCOPE);
        $Uf = $this->oauthUtility->getStoreConfig(OAuthConstants::AUTHORIZE_URL);
        $AQ = OAuthConstants::CODE;
        $ja = $this->oauthUtility->getBaseUrl();
        $KL = $ja . "\x6d\x6f\157\x61\x75\164\x68\x2f\x61\x63\x74\151\x6f\x6e\163\57\122\x65\x61\x64\x41\x75\x74\150\x6f\162\x69\172\x61\164\x69\157\156\122\x65\163\x70\157\x6e\x73\145";
        $this->oauthUtility->log_debug("\123\x65\156\x64\101\165\x74\x68\x6f\162\x69\x7a\x61\164\x69\157\156\x52\145\161\x75\145\x73\x74\x3a\40\163\x63\157\x70\x65\72", $og);
        $this->oauthUtility->log_debug("\123\145\x6e\x64\101\x75\x74\x68\x6f\x72\151\172\141\164\x69\x6f\x6e\122\145\161\165\145\163\x74\72\40\x61\165\164\150\157\162\151\x7a\x65\125\122\114\72", $Uf);
        $this->oauthUtility->log_debug("\123\145\156\x64\101\x75\164\x68\157\162\151\172\141\x74\x69\x6f\156\122\145\161\165\x65\x73\164\x3a\x20\162\x65\x73\160\x6f\x6e\163\x65\x54\171\x70\145\x3a", $AQ);
        $this->oauthUtility->log_debug("\x53\145\156\144\101\165\x74\150\x6f\x72\151\x7a\x61\164\151\157\x6e\x52\145\x71\165\x65\x73\x74\x3a\x20\143\x75\162\x72\x65\156\164\x42\x61\163\145\125\x72\x6c\72", $ja);
        $this->oauthUtility->log_debug("\123\x65\156\144\101\x75\x74\150\157\162\x69\172\x61\x74\x69\x6f\x6e\122\145\x71\x75\x65\x73\164\72\40\x72\145\144\151\x72\145\x63\x74\125\122\x4c\x3a", $KL);
        $Y2 = new AuthorizationRequest($AN, $og, $Uf, $AQ, $KL, $sP);
        $ys = $Y2->build();
        return $this->sendHTTPRedirectRequest($ys, $Uf);
    }
}

Function Calls

None

Variables

None

Stats

MD5 94b7286c9caf1ae78fdab88d71bdc50b
Eval Count 0
Decode Time 46 ms