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 MoOauthClient; use MoOauthClient\MO_Custom_OAuth1; use MoOauthCli..

Decoded Output download

<?php 
 
 
namespace MoOauthClient; 
 
use MoOauthClient\MO_Custom_OAuth1; 
use MoOauthClient\MO_Oauth_Debug; 
class MO_Custom_OAuth1 
{ 
    public static function mo_oauth1_auth_request($nk) 
    { 
        global $Vc; 
        $s5 = $Vc->get_app_by_name($nk)->get_app_config(); 
        $Do = $s5["client_id"]; 
        $TV = $s5["client_secret"]; 
        $yw = $s5["authorizeurl"]; 
        $Rr = $s5["requesturl"]; 
        $we = $s5["accesstokenurl"]; 
        $wy = $s5["resourceownerdetailsurl"]; 
        $Lo = new MO_Custom_OAuth1_Flow($Do, $TV, $Rr, $we, $wy); 
        $UB = $Lo->mo_oauth1_get_request_token(); 
        if (!(strpos($yw, "?") == false)) { 
            goto Sj; 
        } 
        $yw .= "?"; 
        Sj: 
        $Dl = $yw . "oauth_token=" . $UB; 
        if (!($UB == '' || $UB == NULL)) { 
            goto nE; 
        } 
        MO_Oauth_Debug::mo_oauth_log("Error in Request Token Endpoint"); 
        $Vc->handle_error("Error in Request Token Endpoint: Invalid token received. Contact to your admimistrator for more information."); 
        wp_die("Error in Request Token Endpoint: Invalid token received. Contact to your admimistrator for more information."); 
        nE: 
        MO_Oauth_Debug::mo_oauth_log("Request Token received."); 
        MO_Oauth_Debug::mo_oauth_log("Request Token => "); 
        MO_Oauth_Debug::mo_oauth_log($UB); 
        header("Location:" . $Dl); 
        exit; 
    } 
    static function mo_oidc1_get_access_token($nk) 
    { 
        $HG = explode("&", $_SERVER["REQUEST_URI"]); 
        $sv = explode("=", $HG[1]); 
        $GU = explode("=", $HG[0]); 
        $Bg = get_option("mo_oauth_apps_list"); 
        $XK = $nk; 
        $th = null; 
        foreach ($Bg as $Uo => $R7) { 
            if (!($nk == $Uo)) { 
                goto Sb; 
            } 
            $th = $R7; 
            goto uh; 
            Sb: 
            Jt: 
        } 
        uh: 
        global $Vc; 
        $s5 = $Vc->get_app_by_name($nk)->get_app_config(); 
        $Do = $s5["client_id"]; 
        $TV = $s5["client_secret"]; 
        $yw = $s5["authorizeurl"]; 
        $Rr = $s5["requesturl"]; 
        $we = $s5["accesstokenurl"]; 
        $wy = $s5["resourceownerdetailsurl"]; 
        $x9 = new MO_Custom_OAuth1_Flow($Do, $TV, $Rr, $we, $wy); 
        $XE = $x9->mo_oauth1_get_access_token($sv[1], $GU[1]); 
        $J4 = explode("&", $XE); 
        $Vp = ''; 
        $Ib = ''; 
        foreach ($J4 as $Uo) { 
            $f_ = explode("=", $Uo); 
            if ($f_[0] == "oauth_token") { 
                goto cg; 
            } 
            if (!($f_[0] == "oauth_token_secret")) { 
                goto CV; 
            } 
            $Ib = $f_[1]; 
            CV: 
            goto Zf; 
            cg: 
            $Vp = $f_[1]; 
            Zf: 
            Sp: 
        } 
        pi: 
        MO_Oauth_Debug::mo_oauth_log("Access Token received."); 
        MO_Oauth_Debug::mo_oauth_log("Access Token => "); 
        MO_Oauth_Debug::mo_oauth_log($Vp); 
        $ag = new MO_Custom_OAuth1_Flow($Do, $TV, $Rr, $we, $wy); 
        $nO = isset($UO[1]) ? $UO[1] : ''; 
        $je = isset($lQ[1]) ? $lQ[1] : ''; 
        $SQ = isset($IK[1]) ? $IK[1] : ''; 
        $gh = $ag->mo_oauth1_get_profile_signature($Vp, $Ib); 
        if (isset($gh)) { 
            goto dq; 
        } 
        $Vc->handle_error("Invalid Configurations. Please contact to the admimistrator for more information"); 
        wp_die("Invalid Configurations. Please contact to the admimistrator for more information"); 
        dq: 
        return $gh; 
    } 
} 
class MO_Custom_OAuth1_Flow 
{ 
    var $key = ''; 
    var $secret = ''; 
    var $request_token_url = ''; 
    var $access_token_url = ''; 
    var $userinfo_url = ''; 
    function __construct($EX, $TV, $Rr, $we, $wy) 
    { 
        $this->key = $EX; 
        $this->secret = $TV; 
        $this->request_token_url = $Rr; 
        $this->access_token_url = $we; 
        $this->userinfo_url = $wy; 
    } 
    function mo_oauth1_get_request_token() 
    { 
        $hW = array("oauth_version" => "1.0", "oauth_nonce" => time(), "oauth_timestamp" => time(), "oauth_consumer_key" => $this->key, "oauth_signature_method" => "HMAC-SHA1"); 
        if (!(strpos($this->request_token_url, "?") != false)) { 
            goto jm; 
        } 
        $rr = explode("?", $this->request_token_url); 
        $this->request_token_url = $rr[0]; 
        $A0 = explode("&", $rr[1]); 
        foreach ($A0 as $sL) { 
            $tq = explode("=", $sL); 
            $hW[$tq[0]] = $tq[1]; 
            RT: 
        } 
        SC: 
        jm: 
        $NP = array_keys($hW); 
        $PG = array_values($hW); 
        $hW = $this->mo_oauth1_url_encode_rfc3986(array_combine($NP, $PG)); 
        uksort($hW, "strcmp"); 
        foreach ($hW as $Id => $mg) { 
            $ky[] = $this->mo_oauth1_url_encode_rfc3986($Id) . "=" . $this->mo_oauth1_url_encode_rfc3986($mg); 
            F4: 
        } 
        oi: 
        $bA = implode("&", $ky); 
        $LR = $bA; 
        $LR = str_replace("=", "%3D", $LR); 
        $LR = str_replace("&", "%26", $LR); 
        $LR = "GET&" . $this->mo_oauth1_url_encode_rfc3986($this->request_token_url) . "&" . $LR; 
        $nf = $this->mo_oauth1_url_encode_rfc3986($this->secret) . "&"; 
        $hW["oauth_signature"] = $this->mo_oauth1_url_encode_rfc3986(base64_encode(hash_hmac("sha1", $LR, $nf, TRUE))); 
        uksort($hW, "strcmp"); 
        foreach ($hW as $Id => $mg) { 
            $If[] = $Id . "=" . $mg; 
            W4: 
        } 
        vu: 
        $Ty = implode("&", $If); 
        $IS = $this->request_token_url . "?" . $Ty; 
        MO_Oauth_Debug::mo_oauth_log("Request Token URL => " . $IS); 
        $GQ = $this->mo_oauth1_https($IS); 
        MO_Oauth_Debug::mo_oauth_log("Request Token Endpoint Response => "); 
        MO_Oauth_Debug::mo_oauth_log($GQ); 
        $DJ = explode("&", $GQ); 
        $Qi = ''; 
        foreach ($DJ as $Uo) { 
            $f_ = explode("=", $Uo); 
            if ($f_[0] == "oauth_token") { 
                goto gF; 
            } 
            if (!($f_[0] == "oauth_token_secret")) { 
                goto z5; 
            } 
            setcookie("mo_ts", $f_[1], time() + 30); 
            z5: 
            goto c2; 
            gF: 
            $Qi = $f_[1]; 
            c2: 
            i6: 
        } 
        XL: 
        return $Qi; 
    } 
    function mo_oauth1_get_access_token($sv, $GU) 
    { 
        $hW = array("oauth_version" => "1.0", "oauth_nonce" => time(), "oauth_timestamp" => time(), "oauth_consumer_key" => $this->key, "oauth_token" => $GU, "oauth_signature_method" => "HMAC-SHA1", "oauth_verifier" => $sv); 
        $NP = $this->mo_oauth1_url_encode_rfc3986(array_keys($hW)); 
        $PG = $this->mo_oauth1_url_encode_rfc3986(array_values($hW)); 
        $hW = array_combine($NP, $PG); 
        uksort($hW, "strcmp"); 
        foreach ($hW as $Id => $mg) { 
            $ky[] = $this->mo_oauth1_url_encode_rfc3986($Id) . "=" . $this->mo_oauth1_url_encode_rfc3986($mg); 
            ae: 
        } 
        Ca: 
        $bA = implode("&", $ky); 
        $LR = $bA; 
        $LR = str_replace("=", "%3D", $LR); 
        $LR = str_replace("&", "%26", $LR); 
        $LR = "GET&" . $this->mo_oauth1_url_encode_rfc3986($this->access_token_url) . "&" . $LR; 
        $Kd = isset($_COOKIE["mo_ts"]) ? $_COOKIE["mo_ts"] : ''; 
        $nf = $this->mo_oauth1_url_encode_rfc3986($this->secret) . "&" . $Kd; 
        $hW["oauth_signature"] = $this->mo_oauth1_url_encode_rfc3986(base64_encode(hash_hmac("sha1", $LR, $nf, TRUE))); 
        uksort($hW, "strcmp"); 
        foreach ($hW as $Id => $mg) { 
            $If[] = $Id . "=" . $mg; 
            QK: 
        } 
        F7: 
        $Ty = implode("&", $If); 
        $IS = $this->access_token_url . "?" . $Ty; 
        MO_Oauth_Debug::mo_oauth_log("Access Token Endpoint URL => " . $IS); 
        $GQ = $this->mo_oauth1_https($IS); 
        MO_Oauth_Debug::mo_oauth_log("Access Token Endpoint Response => "); 
        MO_Oauth_Debug::mo_oauth_log($GQ); 
        return $GQ; 
    } 
    function mo_oauth1_get_profile_signature($XE, $lQ, $IK = '') 
    { 
        $hW = array("oauth_version" => "1.0", "oauth_nonce" => time(), "oauth_timestamp" => time(), "oauth_consumer_key" => $this->key, "oauth_token" => $XE, "oauth_signature_method" => "HMAC-SHA1"); 
        if (!(strpos($this->userinfo_url, "?") != false)) { 
            goto fa; 
        } 
        $rr = explode("?", $this->userinfo_url); 
        $this->userinfo_url = $rr[0]; 
        $A0 = explode("&", $rr[1]); 
        foreach ($A0 as $sL) { 
            $tq = explode("=", $sL); 
            $hW[$tq[0]] = $tq[1]; 
            fW: 
        } 
        UV: 
        fa: 
        $NP = $this->mo_oauth1_url_encode_rfc3986(array_keys($hW)); 
        $PG = $this->mo_oauth1_url_encode_rfc3986(array_values($hW)); 
        $hW = array_combine($NP, $PG); 
        uksort($hW, "strcmp"); 
        foreach ($hW as $Id => $mg) { 
            $ky[] = $this->mo_oauth1_url_encode_rfc3986($Id) . "=" . $this->mo_oauth1_url_encode_rfc3986($mg); 
            Lj: 
        } 
        bc: 
        $bA = implode("&", $ky); 
        $LR = "GET&" . $this->mo_oauth1_url_encode_rfc3986($this->userinfo_url) . "&" . $this->mo_oauth1_url_encode_rfc3986($bA); 
        $nf = $this->mo_oauth1_url_encode_rfc3986($this->secret) . "&" . $this->mo_oauth1_url_encode_rfc3986($lQ); 
        $hW["oauth_signature"] = $this->mo_oauth1_url_encode_rfc3986(base64_encode(hash_hmac("sha1", $LR, $nf, TRUE))); 
        uksort($hW, "strcmp"); 
        foreach ($hW as $Id => $mg) { 
            $If[] = $Id . "=" . $mg; 
            zQ: 
        } 
        m0: 
        $Ty = implode("&", $If); 
        $IS = $this->userinfo_url . "?" . $Ty; 
        MO_Oauth_Debug::mo_oauth_log("Resource Endpoint URL => " . $IS); 
        $tb = array(); 
        MO_Oauth_Debug::mo_oauth_log("Resource Endpoint info => "); 
        MO_Oauth_Debug::mo_oauth_log($hW); 
        $hB = wp_remote_get($IS, $tb); 
        MO_Oauth_Debug::mo_oauth_log("Resource Endpoint Response => "); 
        MO_Oauth_Debug::mo_oauth_log($hB); 
        $gh = json_decode($hB["body"], true); 
        return $gh; 
    } 
    function mo_oauth1_https($IS, $a6 = null) 
    { 
        if (!isset($a6)) { 
            goto RL; 
        } 
        $tb = array("method" => "POST", "body" => $a6, "timeout" => "15", "redirection" => "5", "httpversion" => "1.0", "blocking" => true); 
        MO_Oauth_Debug::mo_oauth_log("Oauth1 POST Endpoint Arguments => "); 
        MO_Oauth_Debug::mo_oauth_log($hB); 
        $GY = wp_remote_post($IS, $tb); 
        return $GY["body"]; 
        RL: 
        $tb = array(); 
        $hB = wp_remote_get($IS, $tb); 
        if (!is_wp_error($hB)) { 
            goto ZX; 
        } 
        $Vc->handle_error($hB); 
        wp_die($hB); 
        ZX: 
        $GQ = $hB["body"]; 
        return $GQ; 
    } 
    function mo_oauth1_url_encode_rfc3986($q9) 
    { 
        if (is_array($q9)) { 
            goto IO; 
        } 
        if (is_scalar($q9)) { 
            goto mv; 
        } 
        return ''; 
        goto ot; 
        mv: 
        return str_replace("+", " ", str_replace("%7E", "~", rawurlencode($q9))); 
        ot: 
        goto cN; 
        IO: 
        return array_map(array("MoOauthClient\MO_Custom_OAuth1_Flow", "mo_oauth1_url_encode_rfc3986"), $q9); 
        cN: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MoOauthClient;

use MoOauthClient\MO_Custom_OAuth1;
use MoOauthClient\MO_Oauth_Debug;
class MO_Custom_OAuth1
{
    public static function mo_oauth1_auth_request($nk)
    {
        global $Vc;
        $s5 = $Vc->get_app_by_name($nk)->get_app_config();
        $Do = $s5["\x63\154\151\x65\156\164\137\x69\x64"];
        $TV = $s5["\x63\x6c\151\x65\156\x74\x5f\x73\145\x63\162\145\x74"];
        $yw = $s5["\141\165\x74\x68\x6f\162\x69\172\x65\x75\x72\154"];
        $Rr = $s5["\x72\x65\161\x75\x65\x73\164\x75\162\154"];
        $we = $s5["\141\143\x63\x65\163\163\x74\157\x6b\145\156\x75\x72\x6c"];
        $wy = $s5["\x72\145\163\x6f\165\x72\143\145\x6f\x77\x6e\145\x72\144\x65\164\141\151\x6c\163\165\162\154"];
        $Lo = new MO_Custom_OAuth1_Flow($Do, $TV, $Rr, $we, $wy);
        $UB = $Lo->mo_oauth1_get_request_token();
        if (!(strpos($yw, "\77") == false)) {
            goto Sj;
        }
        $yw .= "\x3f";
        Sj:
        $Dl = $yw . "\157\x61\165\x74\150\x5f\164\x6f\153\145\156\x3d" . $UB;
        if (!($UB == '' || $UB == NULL)) {
            goto nE;
        }
        MO_Oauth_Debug::mo_oauth_log("\x45\162\x72\157\x72\x20\151\x6e\x20\122\x65\161\x75\145\x73\164\x20\124\x6f\153\145\156\40\x45\156\144\x70\x6f\151\156\x74");
        $Vc->handle_error("\x45\x72\x72\157\x72\x20\151\x6e\40\x52\145\x71\x75\x65\x73\164\x20\124\157\153\145\x6e\x20\x45\x6e\x64\x70\157\x69\156\164\72\x20\x49\x6e\166\x61\x6c\x69\x64\40\164\x6f\x6b\x65\x6e\40\162\x65\143\145\151\166\145\144\56\40\103\x6f\156\164\141\143\x74\x20\164\157\40\x79\x6f\x75\162\40\x61\144\x6d\151\155\151\163\x74\162\141\x74\x6f\162\40\146\x6f\162\40\155\x6f\x72\x65\x20\x69\x6e\x66\x6f\162\x6d\x61\164\151\x6f\x6e\x2e");
        wp_die("\x45\x72\162\157\162\40\151\x6e\x20\122\x65\161\165\x65\x73\164\x20\124\157\x6b\145\156\x20\x45\156\144\160\x6f\151\156\164\x3a\40\x49\x6e\x76\x61\x6c\x69\144\x20\164\157\x6b\145\x6e\40\162\x65\143\145\x69\166\x65\x64\56\40\x43\157\156\x74\x61\143\164\x20\164\x6f\x20\x79\x6f\x75\x72\x20\x61\144\x6d\151\x6d\151\163\164\x72\141\x74\157\162\x20\x66\x6f\162\x20\x6d\x6f\162\145\x20\x69\156\x66\157\162\x6d\x61\x74\151\157\x6e\x2e");
        nE:
        MO_Oauth_Debug::mo_oauth_log("\x52\x65\161\165\x65\163\164\x20\x54\157\x6b\x65\156\40\162\x65\x63\x65\x69\166\x65\144\56");
        MO_Oauth_Debug::mo_oauth_log("\x52\145\x71\x75\x65\x73\164\x20\x54\157\153\x65\156\40\x3d\76\x20");
        MO_Oauth_Debug::mo_oauth_log($UB);
        header("\114\157\x63\141\x74\151\157\156\72" . $Dl);
        exit;
    }
    static function mo_oidc1_get_access_token($nk)
    {
        $HG = explode("\x26", $_SERVER["\x52\x45\121\x55\x45\123\124\137\x55\x52\111"]);
        $sv = explode("\75", $HG[1]);
        $GU = explode("\x3d", $HG[0]);
        $Bg = get_option("\155\x6f\x5f\157\x61\165\x74\150\x5f\x61\160\160\x73\137\154\x69\163\164");
        $XK = $nk;
        $th = null;
        foreach ($Bg as $Uo => $R7) {
            if (!($nk == $Uo)) {
                goto Sb;
            }
            $th = $R7;
            goto uh;
            Sb:
            Jt:
        }
        uh:
        global $Vc;
        $s5 = $Vc->get_app_by_name($nk)->get_app_config();
        $Do = $s5["\x63\x6c\x69\145\x6e\164\x5f\151\x64"];
        $TV = $s5["\143\x6c\151\145\x6e\164\x5f\x73\x65\143\162\145\x74"];
        $yw = $s5["\141\x75\164\x68\x6f\x72\x69\172\x65\x75\x72\154"];
        $Rr = $s5["\162\x65\161\165\145\x73\x74\165\x72\154"];
        $we = $s5["\141\x63\x63\x65\x73\x73\x74\157\153\x65\156\x75\162\154"];
        $wy = $s5["\x72\145\x73\157\x75\162\x63\145\157\167\x6e\145\162\144\x65\164\x61\x69\x6c\x73\x75\162\154"];
        $x9 = new MO_Custom_OAuth1_Flow($Do, $TV, $Rr, $we, $wy);
        $XE = $x9->mo_oauth1_get_access_token($sv[1], $GU[1]);
        $J4 = explode("\x26", $XE);
        $Vp = '';
        $Ib = '';
        foreach ($J4 as $Uo) {
            $f_ = explode("\x3d", $Uo);
            if ($f_[0] == "\157\x61\165\x74\150\x5f\x74\x6f\x6b\x65\156") {
                goto cg;
            }
            if (!($f_[0] == "\157\x61\165\x74\x68\x5f\164\x6f\153\145\x6e\137\x73\x65\x63\x72\145\164")) {
                goto CV;
            }
            $Ib = $f_[1];
            CV:
            goto Zf;
            cg:
            $Vp = $f_[1];
            Zf:
            Sp:
        }
        pi:
        MO_Oauth_Debug::mo_oauth_log("\101\143\143\x65\x73\x73\40\x54\157\153\145\x6e\x20\162\145\143\145\151\166\x65\x64\56");
        MO_Oauth_Debug::mo_oauth_log("\101\143\143\145\163\163\x20\x54\157\x6b\145\156\40\75\76\x20");
        MO_Oauth_Debug::mo_oauth_log($Vp);
        $ag = new MO_Custom_OAuth1_Flow($Do, $TV, $Rr, $we, $wy);
        $nO = isset($UO[1]) ? $UO[1] : '';
        $je = isset($lQ[1]) ? $lQ[1] : '';
        $SQ = isset($IK[1]) ? $IK[1] : '';
        $gh = $ag->mo_oauth1_get_profile_signature($Vp, $Ib);
        if (isset($gh)) {
            goto dq;
        }
        $Vc->handle_error("\x49\x6e\x76\x61\154\x69\144\x20\x43\x6f\156\146\151\x67\165\162\x61\x74\x69\x6f\156\x73\x2e\x20\120\x6c\145\x61\163\145\40\143\157\x6e\164\141\x63\164\x20\x74\157\x20\x74\x68\x65\x20\x61\x64\155\x69\155\151\x73\164\162\x61\164\x6f\x72\40\146\x6f\x72\x20\x6d\x6f\162\145\x20\x69\156\x66\x6f\x72\155\x61\164\151\x6f\x6e");
        wp_die("\111\156\x76\141\154\151\144\40\x43\157\156\146\x69\147\165\x72\x61\164\x69\x6f\x6e\163\56\40\120\154\145\141\x73\145\x20\x63\x6f\156\164\x61\143\164\40\x74\x6f\40\x74\150\x65\x20\x61\144\155\x69\x6d\x69\x73\164\162\141\164\x6f\x72\x20\x66\157\x72\x20\x6d\157\x72\x65\x20\x69\x6e\146\x6f\x72\155\x61\164\151\x6f\x6e");
        dq:
        return $gh;
    }
}
class MO_Custom_OAuth1_Flow
{
    var $key = '';
    var $secret = '';
    var $request_token_url = '';
    var $access_token_url = '';
    var $userinfo_url = '';
    function __construct($EX, $TV, $Rr, $we, $wy)
    {
        $this->key = $EX;
        $this->secret = $TV;
        $this->request_token_url = $Rr;
        $this->access_token_url = $we;
        $this->userinfo_url = $wy;
    }
    function mo_oauth1_get_request_token()
    {
        $hW = array("\x6f\x61\x75\x74\x68\x5f\166\x65\x72\163\x69\x6f\x6e" => "\61\56\x30", "\x6f\141\165\164\x68\137\156\x6f\156\143\x65" => time(), "\x6f\x61\165\x74\150\137\x74\151\155\145\x73\164\141\155\x70" => time(), "\x6f\141\165\x74\150\x5f\x63\157\x6e\x73\x75\155\145\162\x5f\153\145\x79" => $this->key, "\157\x61\165\x74\x68\137\x73\151\x67\x6e\x61\164\165\162\x65\137\155\x65\x74\x68\157\144" => "\110\115\x41\103\x2d\x53\x48\101\61");
        if (!(strpos($this->request_token_url, "\77") != false)) {
            goto jm;
        }
        $rr = explode("\x3f", $this->request_token_url);
        $this->request_token_url = $rr[0];
        $A0 = explode("\46", $rr[1]);
        foreach ($A0 as $sL) {
            $tq = explode("\75", $sL);
            $hW[$tq[0]] = $tq[1];
            RT:
        }
        SC:
        jm:
        $NP = array_keys($hW);
        $PG = array_values($hW);
        $hW = $this->mo_oauth1_url_encode_rfc3986(array_combine($NP, $PG));
        uksort($hW, "\163\164\162\143\x6d\x70");
        foreach ($hW as $Id => $mg) {
            $ky[] = $this->mo_oauth1_url_encode_rfc3986($Id) . "\x3d" . $this->mo_oauth1_url_encode_rfc3986($mg);
            F4:
        }
        oi:
        $bA = implode("\46", $ky);
        $LR = $bA;
        $LR = str_replace("\x3d", "\x25\63\104", $LR);
        $LR = str_replace("\46", "\x25\x32\x36", $LR);
        $LR = "\107\x45\x54\x26" . $this->mo_oauth1_url_encode_rfc3986($this->request_token_url) . "\46" . $LR;
        $nf = $this->mo_oauth1_url_encode_rfc3986($this->secret) . "\x26";
        $hW["\x6f\x61\x75\164\150\x5f\x73\151\147\156\141\164\x75\162\145"] = $this->mo_oauth1_url_encode_rfc3986(base64_encode(hash_hmac("\163\150\x61\61", $LR, $nf, TRUE)));
        uksort($hW, "\x73\x74\162\x63\x6d\x70");
        foreach ($hW as $Id => $mg) {
            $If[] = $Id . "\x3d" . $mg;
            W4:
        }
        vu:
        $Ty = implode("\x26", $If);
        $IS = $this->request_token_url . "\x3f" . $Ty;
        MO_Oauth_Debug::mo_oauth_log("\122\145\x71\165\x65\163\x74\40\124\157\153\x65\156\x20\x55\x52\x4c\x20\x3d\76\40" . $IS);
        $GQ = $this->mo_oauth1_https($IS);
        MO_Oauth_Debug::mo_oauth_log("\122\145\161\165\x65\163\164\40\x54\157\153\145\x6e\40\105\x6e\x64\160\x6f\x69\x6e\x74\40\x52\145\x73\x70\157\156\x73\x65\40\x3d\76\x20");
        MO_Oauth_Debug::mo_oauth_log($GQ);
        $DJ = explode("\46", $GQ);
        $Qi = '';
        foreach ($DJ as $Uo) {
            $f_ = explode("\x3d", $Uo);
            if ($f_[0] == "\157\141\165\164\x68\x5f\x74\x6f\153\x65\156") {
                goto gF;
            }
            if (!($f_[0] == "\x6f\x61\165\164\x68\137\164\x6f\x6b\x65\156\x5f\x73\x65\143\162\x65\x74")) {
                goto z5;
            }
            setcookie("\x6d\x6f\x5f\164\x73", $f_[1], time() + 30);
            z5:
            goto c2;
            gF:
            $Qi = $f_[1];
            c2:
            i6:
        }
        XL:
        return $Qi;
    }
    function mo_oauth1_get_access_token($sv, $GU)
    {
        $hW = array("\157\141\165\x74\150\137\x76\x65\162\163\x69\x6f\x6e" => "\x31\x2e\x30", "\157\x61\x75\164\x68\x5f\x6e\x6f\156\143\x65" => time(), "\x6f\141\165\164\150\137\x74\151\x6d\145\x73\164\141\x6d\x70" => time(), "\157\141\x75\x74\150\137\x63\157\156\163\165\155\145\x72\x5f\153\x65\x79" => $this->key, "\157\141\165\x74\150\x5f\164\x6f\153\x65\x6e" => $GU, "\x6f\x61\165\x74\150\137\163\x69\x67\x6e\x61\x74\165\162\x65\137\x6d\145\164\150\x6f\x64" => "\x48\x4d\x41\103\55\123\x48\101\61", "\157\x61\165\164\x68\x5f\x76\x65\x72\151\x66\151\x65\x72" => $sv);
        $NP = $this->mo_oauth1_url_encode_rfc3986(array_keys($hW));
        $PG = $this->mo_oauth1_url_encode_rfc3986(array_values($hW));
        $hW = array_combine($NP, $PG);
        uksort($hW, "\163\164\162\143\x6d\x70");
        foreach ($hW as $Id => $mg) {
            $ky[] = $this->mo_oauth1_url_encode_rfc3986($Id) . "\75" . $this->mo_oauth1_url_encode_rfc3986($mg);
            ae:
        }
        Ca:
        $bA = implode("\46", $ky);
        $LR = $bA;
        $LR = str_replace("\75", "\45\x33\104", $LR);
        $LR = str_replace("\46", "\45\62\66", $LR);
        $LR = "\x47\105\124\x26" . $this->mo_oauth1_url_encode_rfc3986($this->access_token_url) . "\46" . $LR;
        $Kd = isset($_COOKIE["\155\x6f\137\164\x73"]) ? $_COOKIE["\x6d\x6f\x5f\164\163"] : '';
        $nf = $this->mo_oauth1_url_encode_rfc3986($this->secret) . "\x26" . $Kd;
        $hW["\157\x61\165\164\150\137\x73\151\147\156\141\x74\x75\162\145"] = $this->mo_oauth1_url_encode_rfc3986(base64_encode(hash_hmac("\x73\x68\141\x31", $LR, $nf, TRUE)));
        uksort($hW, "\163\x74\x72\143\155\160");
        foreach ($hW as $Id => $mg) {
            $If[] = $Id . "\75" . $mg;
            QK:
        }
        F7:
        $Ty = implode("\46", $If);
        $IS = $this->access_token_url . "\x3f" . $Ty;
        MO_Oauth_Debug::mo_oauth_log("\x41\x63\x63\145\x73\x73\40\x54\x6f\x6b\x65\156\x20\105\x6e\x64\160\x6f\x69\x6e\164\x20\x55\122\x4c\x20\75\x3e\x20" . $IS);
        $GQ = $this->mo_oauth1_https($IS);
        MO_Oauth_Debug::mo_oauth_log("\101\x63\143\145\x73\163\x20\x54\157\x6b\x65\x6e\x20\x45\x6e\144\160\157\151\x6e\x74\x20\x52\145\x73\160\x6f\156\x73\x65\x20\75\x3e\40");
        MO_Oauth_Debug::mo_oauth_log($GQ);
        return $GQ;
    }
    function mo_oauth1_get_profile_signature($XE, $lQ, $IK = '')
    {
        $hW = array("\x6f\x61\165\164\150\137\166\x65\162\163\x69\x6f\156" => "\61\x2e\60", "\157\141\x75\164\150\137\x6e\x6f\x6e\x63\x65" => time(), "\x6f\x61\165\164\150\x5f\x74\x69\155\x65\163\164\x61\x6d\x70" => time(), "\157\141\165\164\x68\x5f\x63\x6f\x6e\x73\x75\x6d\x65\x72\x5f\x6b\x65\171" => $this->key, "\x6f\141\165\164\x68\137\x74\x6f\x6b\145\x6e" => $XE, "\157\x61\x75\164\150\x5f\163\151\147\x6e\141\164\x75\162\145\137\x6d\x65\x74\x68\157\x64" => "\x48\x4d\101\x43\x2d\x53\110\x41\61");
        if (!(strpos($this->userinfo_url, "\x3f") != false)) {
            goto fa;
        }
        $rr = explode("\77", $this->userinfo_url);
        $this->userinfo_url = $rr[0];
        $A0 = explode("\46", $rr[1]);
        foreach ($A0 as $sL) {
            $tq = explode("\75", $sL);
            $hW[$tq[0]] = $tq[1];
            fW:
        }
        UV:
        fa:
        $NP = $this->mo_oauth1_url_encode_rfc3986(array_keys($hW));
        $PG = $this->mo_oauth1_url_encode_rfc3986(array_values($hW));
        $hW = array_combine($NP, $PG);
        uksort($hW, "\163\164\162\x63\155\160");
        foreach ($hW as $Id => $mg) {
            $ky[] = $this->mo_oauth1_url_encode_rfc3986($Id) . "\x3d" . $this->mo_oauth1_url_encode_rfc3986($mg);
            Lj:
        }
        bc:
        $bA = implode("\46", $ky);
        $LR = "\x47\x45\x54\x26" . $this->mo_oauth1_url_encode_rfc3986($this->userinfo_url) . "\46" . $this->mo_oauth1_url_encode_rfc3986($bA);
        $nf = $this->mo_oauth1_url_encode_rfc3986($this->secret) . "\46" . $this->mo_oauth1_url_encode_rfc3986($lQ);
        $hW["\x6f\141\x75\x74\150\x5f\163\x69\x67\156\x61\x74\165\x72\x65"] = $this->mo_oauth1_url_encode_rfc3986(base64_encode(hash_hmac("\163\150\x61\x31", $LR, $nf, TRUE)));
        uksort($hW, "\x73\164\x72\x63\x6d\160");
        foreach ($hW as $Id => $mg) {
            $If[] = $Id . "\75" . $mg;
            zQ:
        }
        m0:
        $Ty = implode("\x26", $If);
        $IS = $this->userinfo_url . "\77" . $Ty;
        MO_Oauth_Debug::mo_oauth_log("\x52\x65\x73\x6f\x75\x72\143\145\40\105\x6e\144\160\157\151\156\164\x20\x55\x52\114\x20\75\x3e\40" . $IS);
        $tb = array();
        MO_Oauth_Debug::mo_oauth_log("\x52\145\163\x6f\x75\162\x63\x65\x20\105\156\x64\x70\157\x69\x6e\x74\40\x69\156\146\157\40\x3d\76\40");
        MO_Oauth_Debug::mo_oauth_log($hW);
        $hB = wp_remote_get($IS, $tb);
        MO_Oauth_Debug::mo_oauth_log("\x52\145\163\x6f\x75\162\x63\x65\40\105\156\x64\x70\157\x69\x6e\164\40\122\145\x73\x70\157\156\163\145\x20\x3d\76\40");
        MO_Oauth_Debug::mo_oauth_log($hB);
        $gh = json_decode($hB["\x62\x6f\x64\x79"], true);
        return $gh;
    }
    function mo_oauth1_https($IS, $a6 = null)
    {
        if (!isset($a6)) {
            goto RL;
        }
        $tb = array("\x6d\x65\x74\x68\x6f\144" => "\120\117\x53\124", "\142\x6f\144\x79" => $a6, "\164\x69\155\x65\157\165\x74" => "\61\x35", "\x72\x65\x64\151\162\145\143\x74\x69\x6f\156" => "\x35", "\x68\x74\164\x70\x76\x65\162\163\x69\x6f\156" => "\x31\56\60", "\x62\154\x6f\143\153\151\x6e\x67" => true);
        MO_Oauth_Debug::mo_oauth_log("\117\x61\165\x74\x68\x31\x20\x50\x4f\x53\124\x20\x45\156\144\160\157\x69\x6e\164\x20\x41\x72\x67\165\x6d\x65\156\x74\x73\40\75\x3e\x20");
        MO_Oauth_Debug::mo_oauth_log($hB);
        $GY = wp_remote_post($IS, $tb);
        return $GY["\142\x6f\144\171"];
        RL:
        $tb = array();
        $hB = wp_remote_get($IS, $tb);
        if (!is_wp_error($hB)) {
            goto ZX;
        }
        $Vc->handle_error($hB);
        wp_die($hB);
        ZX:
        $GQ = $hB["\142\x6f\x64\171"];
        return $GQ;
    }
    function mo_oauth1_url_encode_rfc3986($q9)
    {
        if (is_array($q9)) {
            goto IO;
        }
        if (is_scalar($q9)) {
            goto mv;
        }
        return '';
        goto ot;
        mv:
        return str_replace("\x2b", "\x20", str_replace("\x25\67\x45", "\x7e", rawurlencode($q9)));
        ot:
        goto cN;
        IO:
        return array_map(array("\x4d\x6f\x4f\x61\165\164\150\x43\x6c\151\145\156\164\x5c\x4d\117\137\103\165\x73\164\x6f\x6d\x5f\x4f\101\x75\x74\x68\x31\137\106\x6c\157\167", "\155\157\x5f\157\141\x75\x74\150\x31\137\165\x72\154\x5f\145\156\143\157\144\x65\137\162\146\x63\x33\x39\x38\66"), $q9);
        cN:
    }
}

Function Calls

None

Variables

None

Stats

MD5 76e8fa1551eec1bf0e02d33063e4fc50
Eval Count 0
Decode Time 64 ms