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\OauthHandlerInterface; class MO_..

Decoded Output download

<?php 
 
 
namespace MoOauthClient; 
 
use MoOauthClient\OauthHandlerInterface; 
class MO_Oauth_Debug 
{ 
    public static function mo_oauth_log($jq) 
    { 
        global $RF; 
        $c4 = plugin_dir_path(__FILE__) . $RF->mo_oauth_client_get_option("mo_oauth_debug") . ".log"; 
        $Ww = time(); 
        $o7 = "[" . date("Y-m-d H:i:s", $Ww) . " UTC] : " . print_r($jq, true) . PHP_EOL; 
        if (!$RF->mo_oauth_client_get_option("mo_debug_enable")) { 
            goto f3; 
        } 
        if ($RF->mo_oauth_client_get_option("mo_debug_check")) { 
            goto IS; 
        } 
        error_log($o7, 3, $c4); 
        goto gS; 
        IS: 
        $jq = "This is miniOrange OAuth plugin Debug Log file" . PHP_EOL; 
        error_log($jq, 3, $c4); 
        gS: 
        f3: 
    } 
} 
class OauthHandler implements OauthHandlerInterface 
{ 
    public function get_token($Bu, $N7, $l4 = true, $gW = false) 
    { 
        MO_Oauth_Debug::mo_oauth_log("Token request content => "); 
        global $RF; 
        $x4 = new \WP_Error(); 
        $wg = isset($N7["is_wp_login"]) ? $N7["is_wp_login"] : false; 
        unset($N7["is_wp_login"]); 
        foreach ($N7 as $Wn => $wD) { 
            $N7[$Wn] = html_entity_decode($wD); 
            PQ: 
        } 
        L7: 
        $Os = ''; 
        if (!isset($N7["client_secret"])) { 
            goto Px; 
        } 
        $Os = $N7["client_secret"]; 
        Px: 
        $Cw = array("Accept" => "application/json", "charset" => "UTF - 8", "Content-Type" => "application/x-www-form-urlencoded", "Authorization" => "Basic " . base64_encode($N7["client_id"] . ":" . $Os)); 
        if (!(isset($N7["code_verifier"]) && !isset($N7["client_secret"]))) { 
            goto gP; 
        } 
        unset($Cw["Authorization"]); 
        gP: 
        if (1 == $l4 && 0 == $gW) { 
            goto Jk; 
        } 
        if (0 == $l4 && 1 == $gW) { 
            goto oS; 
        } 
        goto tw; 
        Jk: 
        unset($N7["client_id"]); 
        if (!isset($N7["client_secret"])) { 
            goto Zd; 
        } 
        unset($N7["client_secret"]); 
        Zd: 
        goto tw; 
        oS: 
        if (!isset($Cw["Authorization"])) { 
            goto UD; 
        } 
        unset($Cw["Authorization"]); 
        UD: 
        tw: 
        MO_Oauth_Debug::mo_oauth_log("Token endpoint URL => " . $Bu); 
        $N7 = apply_filters("mo_oauth_polar_body_arguments", $N7); 
        MO_Oauth_Debug::mo_oauth_log("body =>"); 
        MO_Oauth_Debug::mo_oauth_log($N7); 
        MO_Oauth_Debug::mo_oauth_log("headers =>"); 
        MO_Oauth_Debug::mo_oauth_log($Cw); 
        $XI = wp_remote_post($Bu, array("method" => "POST", "timeout" => 45, "redirection" => 5, "httpversion" => "1.0", "blocking" => true, "headers" => $Cw, "body" => $N7, "cookies" => array(), "sslverify" => false)); 
        if (!is_wp_error($XI)) { 
            goto Pu; 
        } 
        $RF->handle_error($XI->get_error_message()); 
        MO_Oauth_Debug::mo_oauth_log("Error from Token Endpoint: " . $XI->get_error_message()); 
        wp_die(wp_kses($XI->get_error_message(), \mo_oauth_get_valid_html())); 
        exit; 
        Pu: 
        $XI = $XI["body"]; 
        if (is_array(json_decode($XI, true))) { 
            goto Aw; 
        } 
        $RF->handle_error("Invalid response received : " . $XI); 
        echo "<strong>Response : </strong><br>"; 
        print_r($XI); 
        echo "<br><br>"; 
        MO_Oauth_Debug::mo_oauth_log("Error from Token Endpoint=> Invalid Response received." . $XI); 
        exit("Invalid response received."); 
        Aw: 
        $yB = json_decode($XI, true); 
        if (isset($yB["error_description"])) { 
            goto c6; 
        } 
        if (isset($yB["error"])) { 
            goto zp; 
        } 
        goto o2; 
        c6: 
        do_action("mo_redirect_to_custom_error_page"); 
        if (!($N7["grant_type"] == "password" && $wg)) { 
            goto Oj; 
        } 
        $x4->add("mo_oauth_idp_error", __("<strong>ERROR</strong>: " . $yB["error_description"])); 
        return $x4; 
        Oj: 
        $RF->handle_error($yB["error_description"]); 
        $this->handle_error(json_encode($yB["error_description"]), $N7); 
        return; 
        goto o2; 
        zp: 
        do_action("mo_redirect_to_custom_error_page"); 
        if (!($N7["grant_type"] == "password" && $wg)) { 
            goto Lh; 
        } 
        $x4->add("mo_oauth_idp_error", __("<strong>ERROR</strong>: " . $yB["error"])); 
        return $x4; 
        Lh: 
        $RF->handle_error($yB["error"]); 
        $this->handle_error(json_encode($yB["error"]), $N7); 
        return; 
        o2: 
        return $XI; 
    } 
    public function get_atoken($Bu, $N7, $nn, $l4 = true, $gW = false) 
    { 
        global $RF; 
        foreach ($N7 as $Wn => $wD) { 
            $N7[$Wn] = html_entity_decode($wD); 
            Ru: 
        } 
        dA: 
        $Os = ''; 
        if (!isset($N7["client_secret"])) { 
            goto ah; 
        } 
        $Os = $N7["client_secret"]; 
        ah: 
        $oz = $N7["client_id"]; 
        $Cw = array("Accept" => "application/json", "charset" => "UTF - 8", "Content-Type" => "application/x-www-form-urlencoded", "Authorization" => "Basic " . base64_encode($oz . ":" . $Os)); 
        if (!isset($N7["code_verifier"])) { 
            goto EU; 
        } 
        unset($Cw["Authorization"]); 
        EU: 
        if (1 === $l4 && 0 === $gW) { 
            goto NS; 
        } 
        if (0 === $l4 && 1 === $gW) { 
            goto qB; 
        } 
        goto A4; 
        NS: 
        unset($N7["client_id"]); 
        if (!isset($N7["client_secret"])) { 
            goto Xs; 
        } 
        unset($N7["client_secret"]); 
        Xs: 
        goto A4; 
        qB: 
        if (!isset($Cw["Authorization"])) { 
            goto CY; 
        } 
        unset($Cw["Authorization"]); 
        CY: 
        A4: 
        $Tx = curl_init($Bu); 
        curl_setopt($Tx, CURLOPT_FOLLOWLOCATION, true); 
        curl_setopt($Tx, CURLOPT_ENCODING, ''); 
        curl_setopt($Tx, CURLOPT_RETURNTRANSFER, true); 
        curl_setopt($Tx, CURLOPT_AUTOREFERER, true); 
        curl_setopt($Tx, CURLOPT_SSL_VERIFYPEER, false); 
        curl_setopt($Tx, CURLOPT_MAXREDIRS, 10); 
        curl_setopt($Tx, CURLOPT_POST, true); 
        curl_setopt($Tx, CURLOPT_HTTPHEADER, array("Authorization: Basic " . base64_encode($oz . ":" . $Os), "Accept: application/json")); 
        curl_setopt($Tx, CURLOPT_POSTFIELDS, "redirect_uri=" . $N7["redirect_uri"] . "&grant_type=" . "authorization_code" . "&client_id=" . $oz . "&client_secret=" . $Os . "&code=" . $nn); 
        $yB = curl_exec($Tx); 
        if (!curl_error($Tx)) { 
            goto ja; 
        } 
        echo "<b>Response : </b><br>"; 
        print_r($yB); 
        echo "<br><br>"; 
        MO_Oauth_Debug::mo_oauth_log(curl_error($Tx)); 
        exit(curl_error($Tx)); 
        ja: 
        if (isset($yB["error_description"])) { 
            goto jM; 
        } 
        if (isset($yB["error"])) { 
            goto nr; 
        } 
        if (!isset($yB["access_token"])) { 
            goto k2; 
        } 
        $XD = $yB["access_token"]; 
        k2: 
        goto zX; 
        nr: 
        $O7 = "Error from Token Endpoint: " . $yB["error"]; 
        MO_Oauth_Debug::mo_oauth_log($O7); 
        do_action("mo_redirect_to_custom_error_page"); 
        exit($yB["error_description"]); 
        zX: 
        goto lR; 
        jM: 
        $O7 = "Error from Token Endpoint: " . $yB["error_description"]; 
        MO_Oauth_Debug::mo_oauth_log($O7); 
        do_action("mo_redirect_to_custom_error_page"); 
        exit($yB["error_description"]); 
        lR: 
        return $yB; 
    } 
    public function get_access_token($Bu, $N7, $l4, $gW) 
    { 
        global $RF; 
        $XI = $this->get_token($Bu, $N7, $l4, $gW); 
        if (!is_wp_error($XI)) { 
            goto Pd; 
        } 
        return $XI; 
        Pd: 
        $yB = json_decode($XI, true); 
        if (!("password" === $N7["grant_type"])) { 
            goto DF; 
        } 
        return $yB; 
        DF: 
        if (isset($yB["access_token"])) { 
            goto MR; 
        } 
        $x4 = "Invalid response received from OAuth Provider. Contact your administrator for more details.<br><br><strong>Response : </strong><br>" . $XI; 
        $RF->handle_error($x4); 
        MO_Oauth_Debug::mo_oauth_log("Error while fetching token: " . $x4); 
        echo $x4; 
        exit; 
        goto Hv; 
        MR: 
        return $yB["access_token"]; 
        Hv: 
    } 
    public function get_id_token($Bu, $N7, $l4, $gW) 
    { 
        global $RF; 
        $XI = $this->get_token($Bu, $N7, $l4, $gW); 
        $yB = json_decode($XI, true); 
        if (isset($yB["id_token"])) { 
            goto M9; 
        } 
        $x4 = "Invalid response received from OpenId Provider. Contact your administrator for more details.<br><br><strong>Response : </strong><br>" . $XI; 
        $RF->handle_error($x4); 
        MO_Oauth_Debug::mo_oauth_log("Error while fetching id_token: " . $x4); 
        echo $x4; 
        exit; 
        goto QR; 
        M9: 
        return $yB; 
        QR: 
    } 
    public function get_resource_owner_from_id_token($l8) 
    { 
        global $RF; 
        $HH = explode(".", $l8); 
        if (!isset($HH[1])) { 
            goto Ls; 
        } 
        $Qu = $RF->base64url_decode($HH[1]); 
        if (!is_array(json_decode($Qu, true))) { 
            goto Wb; 
        } 
        return json_decode($Qu, true); 
        Wb: 
        Ls: 
        $x4 = "Invalid response received.<br><strong>id_token : </strong>" . $l8; 
        $RF->handle_error($x4); 
        MO_Oauth_Debug::mo_oauth_log("Error while fetching resource owner from id token:" . $x4); 
        echo $x4; 
        exit; 
    } 
    public function get_resource_owner($R0, $XD) 
    { 
        global $RF; 
        $Cw = array(); 
        $Cw["Authorization"] = "Bearer " . $XD; 
        $Cw = apply_filters("mo_extend_userinfo_params", $Cw, $R0); 
        MO_Oauth_Debug::mo_oauth_log("Resource Owner Endpoint => " . $R0); 
        MO_Oauth_Debug::mo_oauth_log("Resource Owner request content => "); 
        MO_Oauth_Debug::mo_oauth_log("headers =>"); 
        MO_Oauth_Debug::mo_oauth_log($Cw); 
        $R0 = apply_filters("mo_oauth_userinfo_internal", $R0); 
        $XI = wp_remote_post($R0, array("method" => "GET", "timeout" => 45, "redirection" => 5, "httpversion" => "1.0", "blocking" => true, "headers" => $Cw, "cookies" => array(), "sslverify" => false)); 
        if (!is_wp_error($XI)) { 
            goto Hw; 
        } 
        $RF->handle_error($XI->get_error_message()); 
        MO_Oauth_Debug::mo_oauth_log("Error from Resource Endpoint: " . $XI->get_error_message()); 
        wp_die(wp_kses($XI->get_error_message(), \mo_oauth_get_valid_html())); 
        exit; 
        Hw: 
        $XI = $XI["body"]; 
        if (is_array(json_decode($XI, true))) { 
            goto oi; 
        } 
        $RF->handle_error("Invalid response received : " . $XI); 
        echo "<strong>Response : </strong><br>"; 
        print_r($XI); 
        echo "<br><br>"; 
        MO_Oauth_Debug::mo_oauth_log("Invalid response recieved while fetching resource owner details"); 
        exit("Invalid response received."); 
        oi: 
        $yB = json_decode($XI, true); 
        if (!(strpos($R0, "api.clever.com") != false && isset($yB["links"][1]["uri"]) && strpos($R0, $yB["links"][1]["uri"]) === false)) { 
            goto FZ; 
        } 
        $j9 = $yB["links"][1]["uri"]; 
        $te = "https://api.clever.com" . $j9; 
        $RF->mo_oauth_client_update_option("mo_oauth_client_clever_user_api", $te); 
        $yB = $this->get_resource_owner($te, $XD); 
        FZ: 
        if (isset($yB["error_description"])) { 
            goto tM; 
        } 
        if (isset($yB["error"])) { 
            goto FU; 
        } 
        goto UQ; 
        tM: 
        $O7 = "Error from Resource Endpoint: " . $yB["error_description"]; 
        $RF->handle_error($yB["error_description"]); 
        MO_Oauth_Debug::mo_oauth_log($O7); 
        do_action("mo_redirect_to_custom_error_page"); 
        exit(json_encode($yB["error_description"])); 
        goto UQ; 
        FU: 
        $O7 = "Error from Resource Endpoint: " . $yB["error"]; 
        $RF->handle_error($yB["error"]); 
        MO_Oauth_Debug::mo_oauth_log($O7); 
        do_action("mo_redirect_to_custom_error_page"); 
        exit(json_encode($yB["error"])); 
        UQ: 
        return $yB; 
    } 
    public function get_response($Lb) 
    { 
        $XI = wp_remote_get($Lb, array("method" => "GET", "timeout" => 45, "redirection" => 5, "httpversion" => 1.0, "blocking" => true, "headers" => array(), "cookies" => array(), "sslverify" => false)); 
        if (!is_wp_error($XI)) { 
            goto s0; 
        } 
        MO_Oauth_Debug::mo_oauth_log($XI->get_error_message()); 
        wp_die(wp_kses($XI->get_error_message(), \mo_oauth_get_valid_html())); 
        exit; 
        s0: 
        $XI = $XI["body"]; 
        $yB = json_decode($XI, true); 
        if (isset($yB["error_description"])) { 
            goto tV; 
        } 
        if (isset($yB["error"])) { 
            goto J9; 
        } 
        goto pQ; 
        tV: 
        $RF->handle_error($yB["error_description"]); 
        MO_Oauth_Debug::mo_oauth_log($O7); 
        do_action("mo_redirect_to_custom_error_page"); 
        goto pQ; 
        J9: 
        $RF->handle_error($yB["error"]); 
        MO_Oauth_Debug::mo_oauth_log($O7); 
        do_action("mo_redirect_to_custom_error_page"); 
        pQ: 
        return $yB; 
    } 
    private function handle_error($x4, $N7) 
    { 
        global $RF; 
        if (!($N7["grant_type"] === "password")) { 
            goto ki; 
        } 
        $c2 = $RF->get_current_url(); 
        $c2 = apply_filters("mo_oauth_woocommerce_checkout_compatibility", $c2); 
        if ($c2 != '') { 
            goto M1; 
        } 
        return; 
        goto Wr; 
        M1: 
        $c2 = "?option=errormanager&error=" . ase64_encode($x4); 
        MO_Oauth_Debug::mo_oauth_log("Error: " . $x4); 
        wp_die($x4); 
        exit; 
        Wr: 
        ki: 
        MO_Oauth_Debug::mo_oauth_log("Error: " . $x4); 
        exit($x4); 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MoOauthClient;

use MoOauthClient\OauthHandlerInterface;
class MO_Oauth_Debug
{
    public static function mo_oauth_log($jq)
    {
        global $RF;
        $c4 = plugin_dir_path(__FILE__) . $RF->mo_oauth_client_get_option("\155\157\x5f\157\x61\x75\x74\x68\x5f\x64\145\142\x75\x67") . "\56\154\157\x67";
        $Ww = time();
        $o7 = "\133" . date("\x59\55\x6d\x2d\x64\x20\110\x3a\x69\x3a\163", $Ww) . "\40\x55\x54\x43\x5d\x20\72\40" . print_r($jq, true) . PHP_EOL;
        if (!$RF->mo_oauth_client_get_option("\155\x6f\137\144\x65\142\165\x67\x5f\x65\156\x61\142\154\x65")) {
            goto f3;
        }
        if ($RF->mo_oauth_client_get_option("\155\x6f\137\144\x65\142\165\x67\x5f\143\x68\145\x63\x6b")) {
            goto IS;
        }
        error_log($o7, 3, $c4);
        goto gS;
        IS:
        $jq = "\x54\150\x69\x73\x20\x69\163\40\155\x69\156\x69\117\x72\x61\156\147\x65\x20\117\x41\165\x74\x68\x20\160\154\165\x67\151\x6e\40\x44\145\142\x75\147\x20\x4c\x6f\x67\x20\x66\151\x6c\145" . PHP_EOL;
        error_log($jq, 3, $c4);
        gS:
        f3:
    }
}
class OauthHandler implements OauthHandlerInterface
{
    public function get_token($Bu, $N7, $l4 = true, $gW = false)
    {
        MO_Oauth_Debug::mo_oauth_log("\124\x6f\x6b\145\156\x20\162\145\x71\x75\145\x73\164\40\143\x6f\156\x74\145\156\x74\x20\x3d\76\x20");
        global $RF;
        $x4 = new \WP_Error();
        $wg = isset($N7["\151\163\x5f\167\160\137\x6c\157\147\x69\156"]) ? $N7["\x69\163\137\x77\160\137\154\157\x67\151\156"] : false;
        unset($N7["\x69\x73\137\x77\160\x5f\154\157\147\x69\156"]);
        foreach ($N7 as $Wn => $wD) {
            $N7[$Wn] = html_entity_decode($wD);
            PQ:
        }
        L7:
        $Os = '';
        if (!isset($N7["\x63\154\x69\x65\x6e\164\137\x73\x65\143\x72\x65\x74"])) {
            goto Px;
        }
        $Os = $N7["\x63\154\151\145\156\164\x5f\x73\x65\x63\162\145\164"];
        Px:
        $Cw = array("\101\143\x63\x65\160\164" => "\141\x70\160\154\151\143\141\x74\x69\x6f\156\x2f\152\163\x6f\156", "\x63\150\141\x72\x73\x65\164" => "\x55\x54\x46\40\55\x20\x38", "\103\157\x6e\164\x65\x6e\x74\55\x54\171\x70\145" => "\x61\x70\x70\154\151\143\x61\x74\x69\x6f\156\57\170\55\167\x77\167\x2d\x66\157\162\155\55\x75\162\x6c\x65\x6e\143\x6f\144\x65\x64", "\x41\x75\x74\150\157\162\x69\172\x61\x74\x69\157\156" => "\x42\141\x73\x69\x63\x20" . base64_encode($N7["\x63\x6c\x69\x65\156\164\x5f\x69\144"] . "\x3a" . $Os));
        if (!(isset($N7["\143\x6f\144\x65\x5f\166\x65\x72\151\x66\x69\x65\162"]) && !isset($N7["\143\x6c\151\145\x6e\x74\137\x73\145\x63\162\x65\164"]))) {
            goto gP;
        }
        unset($Cw["\101\x75\164\150\157\162\x69\x7a\x61\164\x69\x6f\156"]);
        gP:
        if (1 == $l4 && 0 == $gW) {
            goto Jk;
        }
        if (0 == $l4 && 1 == $gW) {
            goto oS;
        }
        goto tw;
        Jk:
        unset($N7["\143\x6c\x69\145\156\x74\137\x69\144"]);
        if (!isset($N7["\x63\154\x69\145\x6e\164\x5f\x73\x65\x63\162\x65\x74"])) {
            goto Zd;
        }
        unset($N7["\143\x6c\x69\x65\x6e\164\137\x73\145\x63\x72\145\x74"]);
        Zd:
        goto tw;
        oS:
        if (!isset($Cw["\101\165\x74\150\157\162\151\x7a\141\x74\x69\x6f\x6e"])) {
            goto UD;
        }
        unset($Cw["\101\165\x74\150\157\162\x69\172\x61\164\151\x6f\x6e"]);
        UD:
        tw:
        MO_Oauth_Debug::mo_oauth_log("\124\157\153\x65\156\x20\145\156\x64\160\x6f\151\x6e\x74\40\x55\122\x4c\40\x3d\76\x20" . $Bu);
        $N7 = apply_filters("\x6d\157\137\x6f\x61\165\x74\x68\137\x70\x6f\x6c\x61\x72\x5f\x62\157\x64\171\x5f\141\162\147\165\155\x65\156\x74\163", $N7);
        MO_Oauth_Debug::mo_oauth_log("\x62\157\x64\x79\x20\x3d\x3e");
        MO_Oauth_Debug::mo_oauth_log($N7);
        MO_Oauth_Debug::mo_oauth_log("\150\145\141\x64\x65\x72\x73\40\x3d\x3e");
        MO_Oauth_Debug::mo_oauth_log($Cw);
        $XI = wp_remote_post($Bu, array("\x6d\145\164\150\157\144" => "\x50\117\123\x54", "\x74\x69\x6d\x65\157\x75\164" => 45, "\162\145\144\151\162\145\143\x74\x69\x6f\x6e" => 5, "\x68\164\164\x70\x76\x65\x72\x73\x69\157\156" => "\x31\x2e\60", "\x62\154\x6f\x63\x6b\151\x6e\x67" => true, "\x68\x65\141\144\x65\x72\x73" => $Cw, "\142\157\144\171" => $N7, "\143\x6f\157\x6b\151\145\x73" => array(), "\163\x73\154\x76\145\162\151\x66\x79" => false));
        if (!is_wp_error($XI)) {
            goto Pu;
        }
        $RF->handle_error($XI->get_error_message());
        MO_Oauth_Debug::mo_oauth_log("\105\x72\x72\157\x72\x20\x66\162\x6f\155\x20\x54\x6f\x6b\x65\x6e\x20\105\156\144\x70\157\x69\x6e\x74\72\40" . $XI->get_error_message());
        wp_die(wp_kses($XI->get_error_message(), \mo_oauth_get_valid_html()));
        exit;
        Pu:
        $XI = $XI["\142\157\x64\x79"];
        if (is_array(json_decode($XI, true))) {
            goto Aw;
        }
        $RF->handle_error("\111\156\x76\141\x6c\151\x64\40\x72\x65\163\x70\157\x6e\163\x65\x20\162\x65\x63\145\x69\166\145\x64\40\x3a\x20" . $XI);
        echo "\x3c\163\164\x72\157\156\x67\x3e\122\x65\x73\160\x6f\156\163\145\40\x3a\40\74\x2f\x73\164\x72\157\x6e\x67\76\74\x62\162\76";
        print_r($XI);
        echo "\x3c\x62\x72\x3e\74\142\162\x3e";
        MO_Oauth_Debug::mo_oauth_log("\x45\x72\162\x6f\162\40\146\162\x6f\x6d\40\124\x6f\x6b\145\156\40\105\156\144\160\x6f\x69\156\x74\x3d\76\40\x49\x6e\x76\x61\154\x69\144\x20\x52\x65\163\x70\x6f\156\163\145\x20\162\x65\143\x65\151\166\x65\144\x2e" . $XI);
        exit("\111\x6e\x76\x61\154\x69\x64\40\162\145\x73\x70\x6f\156\x73\145\x20\162\x65\x63\x65\151\x76\x65\x64\x2e");
        Aw:
        $yB = json_decode($XI, true);
        if (isset($yB["\x65\162\162\157\162\x5f\144\145\x73\x63\162\x69\x70\164\151\157\156"])) {
            goto c6;
        }
        if (isset($yB["\145\x72\x72\157\x72"])) {
            goto zp;
        }
        goto o2;
        c6:
        do_action("\x6d\x6f\137\x72\x65\144\x69\162\x65\143\164\137\164\157\x5f\x63\165\x73\x74\157\x6d\x5f\145\162\x72\157\x72\x5f\x70\141\147\x65");
        if (!($N7["\147\x72\141\156\x74\x5f\x74\x79\x70\x65"] == "\160\141\x73\x73\x77\x6f\162\144" && $wg)) {
            goto Oj;
        }
        $x4->add("\155\x6f\x5f\157\141\165\164\150\137\151\x64\x70\137\x65\x72\162\157\162", __("\x3c\163\x74\x72\157\x6e\x67\76\105\x52\x52\117\x52\x3c\57\163\164\162\x6f\x6e\147\x3e\x3a\40" . $yB["\x65\162\x72\x6f\x72\137\144\x65\163\x63\162\151\x70\x74\x69\157\x6e"]));
        return $x4;
        Oj:
        $RF->handle_error($yB["\145\162\162\x6f\x72\x5f\x64\x65\x73\143\x72\x69\x70\164\151\157\x6e"]);
        $this->handle_error(json_encode($yB["\x65\x72\x72\157\x72\137\144\x65\163\x63\162\x69\x70\x74\x69\157\x6e"]), $N7);
        return;
        goto o2;
        zp:
        do_action("\155\x6f\x5f\x72\145\x64\151\162\145\143\x74\137\164\x6f\137\143\x75\x73\x74\x6f\x6d\137\145\162\162\157\162\x5f\x70\x61\x67\145");
        if (!($N7["\x67\x72\141\x6e\164\x5f\164\171\160\x65"] == "\x70\x61\163\163\167\x6f\x72\x64" && $wg)) {
            goto Lh;
        }
        $x4->add("\155\x6f\137\157\141\165\x74\x68\x5f\151\144\160\x5f\145\162\x72\157\162", __("\x3c\163\x74\x72\157\156\x67\76\x45\x52\x52\117\122\74\57\163\164\x72\x6f\156\x67\x3e\x3a\x20" . $yB["\x65\x72\162\x6f\162"]));
        return $x4;
        Lh:
        $RF->handle_error($yB["\x65\x72\x72\x6f\x72"]);
        $this->handle_error(json_encode($yB["\x65\162\x72\x6f\x72"]), $N7);
        return;
        o2:
        return $XI;
    }
    public function get_atoken($Bu, $N7, $nn, $l4 = true, $gW = false)
    {
        global $RF;
        foreach ($N7 as $Wn => $wD) {
            $N7[$Wn] = html_entity_decode($wD);
            Ru:
        }
        dA:
        $Os = '';
        if (!isset($N7["\143\154\151\145\156\164\137\163\x65\x63\x72\x65\x74"])) {
            goto ah;
        }
        $Os = $N7["\x63\154\151\x65\156\x74\x5f\x73\x65\143\x72\x65\x74"];
        ah:
        $oz = $N7["\143\x6c\x69\x65\x6e\164\x5f\151\144"];
        $Cw = array("\101\x63\143\145\x70\164" => "\141\x70\x70\x6c\x69\143\141\x74\151\157\x6e\x2f\x6a\163\x6f\x6e", "\143\150\x61\162\x73\x65\164" => "\x55\124\x46\40\x2d\40\70", "\103\157\156\x74\145\x6e\164\x2d\x54\171\x70\x65" => "\x61\x70\x70\154\151\143\141\x74\x69\157\156\x2f\x78\x2d\167\167\167\x2d\146\157\x72\155\x2d\165\x72\154\x65\156\x63\x6f\144\x65\x64", "\101\165\x74\150\157\x72\x69\172\141\164\151\x6f\x6e" => "\x42\141\163\x69\143\40" . base64_encode($oz . "\x3a" . $Os));
        if (!isset($N7["\143\157\144\145\x5f\x76\145\x72\151\146\x69\x65\x72"])) {
            goto EU;
        }
        unset($Cw["\x41\165\164\x68\157\162\151\172\x61\164\x69\157\x6e"]);
        EU:
        if (1 === $l4 && 0 === $gW) {
            goto NS;
        }
        if (0 === $l4 && 1 === $gW) {
            goto qB;
        }
        goto A4;
        NS:
        unset($N7["\x63\x6c\x69\x65\156\x74\x5f\151\x64"]);
        if (!isset($N7["\x63\154\151\x65\x6e\164\137\x73\145\x63\x72\145\164"])) {
            goto Xs;
        }
        unset($N7["\x63\154\x69\x65\x6e\164\x5f\163\145\143\x72\x65\x74"]);
        Xs:
        goto A4;
        qB:
        if (!isset($Cw["\x41\165\164\x68\157\x72\x69\x7a\x61\164\x69\157\x6e"])) {
            goto CY;
        }
        unset($Cw["\101\x75\164\150\157\x72\x69\172\x61\x74\x69\157\156"]);
        CY:
        A4:
        $Tx = curl_init($Bu);
        curl_setopt($Tx, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($Tx, CURLOPT_ENCODING, '');
        curl_setopt($Tx, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($Tx, CURLOPT_AUTOREFERER, true);
        curl_setopt($Tx, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($Tx, CURLOPT_MAXREDIRS, 10);
        curl_setopt($Tx, CURLOPT_POST, true);
        curl_setopt($Tx, CURLOPT_HTTPHEADER, array("\101\165\x74\150\157\x72\151\172\141\x74\151\x6f\156\72\40\102\141\163\x69\x63\x20" . base64_encode($oz . "\x3a" . $Os), "\x41\143\143\145\x70\164\x3a\40\x61\x70\160\154\x69\x63\141\x74\151\157\156\57\152\x73\157\156"));
        curl_setopt($Tx, CURLOPT_POSTFIELDS, "\x72\145\x64\151\x72\145\x63\x74\x5f\x75\162\151\75" . $N7["\162\x65\x64\151\x72\x65\x63\x74\x5f\165\x72\151"] . "\x26\147\x72\x61\156\x74\x5f\164\171\x70\145\75" . "\141\165\x74\150\157\162\x69\x7a\x61\x74\151\157\x6e\x5f\x63\157\x64\x65" . "\46\143\154\x69\145\156\164\137\151\144\75" . $oz . "\x26\x63\154\x69\x65\156\164\137\163\145\143\x72\x65\164\x3d" . $Os . "\46\143\157\144\145\x3d" . $nn);
        $yB = curl_exec($Tx);
        if (!curl_error($Tx)) {
            goto ja;
        }
        echo "\x3c\142\76\x52\x65\x73\160\157\x6e\163\145\40\72\40\x3c\57\x62\76\74\x62\162\76";
        print_r($yB);
        echo "\74\142\x72\x3e\x3c\x62\162\x3e";
        MO_Oauth_Debug::mo_oauth_log(curl_error($Tx));
        exit(curl_error($Tx));
        ja:
        if (isset($yB["\145\x72\162\x6f\162\x5f\x64\145\163\143\x72\x69\160\x74\151\157\156"])) {
            goto jM;
        }
        if (isset($yB["\x65\x72\x72\x6f\x72"])) {
            goto nr;
        }
        if (!isset($yB["\141\x63\x63\x65\x73\x73\x5f\x74\x6f\x6b\x65\156"])) {
            goto k2;
        }
        $XD = $yB["\x61\x63\x63\145\163\x73\137\164\157\153\145\156"];
        k2:
        goto zX;
        nr:
        $O7 = "\x45\x72\x72\157\x72\40\146\x72\157\155\x20\x54\x6f\x6b\145\156\x20\x45\156\x64\160\x6f\x69\156\164\72\x20" . $yB["\x65\162\162\157\162"];
        MO_Oauth_Debug::mo_oauth_log($O7);
        do_action("\155\x6f\137\x72\x65\144\x69\x72\x65\x63\x74\x5f\x74\157\x5f\143\x75\163\x74\x6f\155\137\145\162\x72\157\162\137\160\141\147\145");
        exit($yB["\x65\162\x72\157\x72\x5f\144\145\x73\x63\x72\x69\160\x74\151\x6f\x6e"]);
        zX:
        goto lR;
        jM:
        $O7 = "\x45\x72\x72\x6f\162\40\x66\162\x6f\155\x20\x54\157\153\145\156\x20\105\156\144\x70\157\x69\x6e\x74\x3a\40" . $yB["\145\x72\162\157\162\137\x64\145\x73\x63\x72\x69\160\x74\x69\157\156"];
        MO_Oauth_Debug::mo_oauth_log($O7);
        do_action("\x6d\x6f\x5f\162\145\x64\151\x72\x65\143\x74\137\x74\x6f\137\x63\165\x73\x74\157\x6d\137\145\x72\x72\x6f\x72\137\x70\x61\147\x65");
        exit($yB["\145\x72\162\157\162\137\144\x65\x73\143\162\x69\x70\164\x69\157\x6e"]);
        lR:
        return $yB;
    }
    public function get_access_token($Bu, $N7, $l4, $gW)
    {
        global $RF;
        $XI = $this->get_token($Bu, $N7, $l4, $gW);
        if (!is_wp_error($XI)) {
            goto Pd;
        }
        return $XI;
        Pd:
        $yB = json_decode($XI, true);
        if (!("\x70\x61\x73\163\x77\157\162\144" === $N7["\147\x72\141\x6e\x74\137\x74\x79\x70\145"])) {
            goto DF;
        }
        return $yB;
        DF:
        if (isset($yB["\141\143\x63\x65\163\x73\137\164\x6f\x6b\145\156"])) {
            goto MR;
        }
        $x4 = "\111\x6e\x76\x61\x6c\151\144\40\x72\x65\x73\160\157\156\163\x65\40\x72\145\143\145\x69\x76\145\x64\x20\146\x72\x6f\x6d\40\117\x41\165\164\150\x20\x50\x72\157\166\151\x64\x65\162\56\x20\103\157\x6e\x74\x61\x63\x74\x20\171\157\165\x72\x20\x61\x64\x6d\x69\156\x69\x73\164\162\141\x74\157\162\x20\x66\157\x72\40\155\x6f\162\145\40\144\x65\164\141\x69\154\163\56\74\142\x72\76\x3c\142\x72\x3e\74\163\x74\x72\157\x6e\x67\76\122\145\163\x70\157\x6e\163\x65\40\x3a\x20\74\x2f\163\164\x72\157\x6e\x67\76\74\x62\x72\76" . $XI;
        $RF->handle_error($x4);
        MO_Oauth_Debug::mo_oauth_log("\105\x72\162\157\x72\x20\x77\x68\151\x6c\x65\40\146\x65\164\143\150\151\156\147\x20\164\157\x6b\x65\156\72\40" . $x4);
        echo $x4;
        exit;
        goto Hv;
        MR:
        return $yB["\x61\143\143\x65\x73\x73\137\164\157\x6b\145\x6e"];
        Hv:
    }
    public function get_id_token($Bu, $N7, $l4, $gW)
    {
        global $RF;
        $XI = $this->get_token($Bu, $N7, $l4, $gW);
        $yB = json_decode($XI, true);
        if (isset($yB["\x69\x64\137\164\157\x6b\145\156"])) {
            goto M9;
        }
        $x4 = "\x49\x6e\166\141\x6c\x69\144\x20\162\x65\163\160\x6f\156\x73\145\x20\x72\145\143\145\x69\166\145\x64\40\146\162\x6f\x6d\x20\117\x70\x65\x6e\x49\144\x20\x50\x72\x6f\x76\151\x64\145\x72\x2e\x20\x43\157\156\x74\x61\143\164\x20\171\157\165\162\40\x61\144\155\x69\156\x69\x73\164\162\x61\164\157\x72\x20\x66\157\x72\x20\155\x6f\162\x65\40\144\x65\164\x61\151\154\163\56\x3c\142\x72\76\x3c\x62\162\76\x3c\163\x74\x72\157\156\x67\x3e\122\145\163\x70\x6f\156\163\145\x20\x3a\x20\74\x2f\163\164\162\157\x6e\x67\76\74\x62\162\x3e" . $XI;
        $RF->handle_error($x4);
        MO_Oauth_Debug::mo_oauth_log("\105\162\x72\x6f\162\x20\167\x68\x69\x6c\145\x20\x66\145\164\x63\150\x69\156\x67\40\151\x64\137\164\157\153\x65\156\72\x20" . $x4);
        echo $x4;
        exit;
        goto QR;
        M9:
        return $yB;
        QR:
    }
    public function get_resource_owner_from_id_token($l8)
    {
        global $RF;
        $HH = explode("\56", $l8);
        if (!isset($HH[1])) {
            goto Ls;
        }
        $Qu = $RF->base64url_decode($HH[1]);
        if (!is_array(json_decode($Qu, true))) {
            goto Wb;
        }
        return json_decode($Qu, true);
        Wb:
        Ls:
        $x4 = "\111\156\166\141\154\x69\144\x20\x72\x65\163\x70\157\x6e\163\145\x20\x72\x65\x63\145\151\166\145\x64\56\x3c\x62\162\76\74\x73\164\162\157\156\147\76\151\x64\x5f\x74\157\x6b\145\156\40\72\40\74\57\163\x74\162\x6f\156\147\76" . $l8;
        $RF->handle_error($x4);
        MO_Oauth_Debug::mo_oauth_log("\x45\x72\x72\x6f\162\x20\x77\150\x69\x6c\145\40\146\x65\164\143\x68\x69\156\147\40\162\x65\163\157\x75\162\143\145\x20\157\x77\x6e\145\162\40\146\162\x6f\155\x20\x69\144\40\164\157\x6b\x65\x6e\72" . $x4);
        echo $x4;
        exit;
    }
    public function get_resource_owner($R0, $XD)
    {
        global $RF;
        $Cw = array();
        $Cw["\x41\165\164\150\157\162\151\x7a\141\x74\x69\157\156"] = "\x42\145\x61\162\x65\x72\40" . $XD;
        $Cw = apply_filters("\155\157\x5f\145\x78\164\x65\156\x64\x5f\165\163\145\x72\x69\156\146\x6f\x5f\160\x61\x72\x61\155\163", $Cw, $R0);
        MO_Oauth_Debug::mo_oauth_log("\122\145\163\157\x75\x72\143\x65\x20\x4f\x77\156\145\162\x20\105\156\x64\160\157\151\x6e\x74\40\x3d\76\40" . $R0);
        MO_Oauth_Debug::mo_oauth_log("\x52\x65\x73\157\165\x72\x63\145\x20\117\x77\156\x65\x72\40\162\145\161\x75\x65\x73\x74\40\143\x6f\156\x74\145\x6e\x74\40\75\76\x20");
        MO_Oauth_Debug::mo_oauth_log("\150\x65\141\x64\145\162\163\40\x3d\76");
        MO_Oauth_Debug::mo_oauth_log($Cw);
        $R0 = apply_filters("\x6d\157\137\x6f\x61\x75\164\150\x5f\x75\x73\x65\x72\151\156\146\157\x5f\151\156\164\x65\x72\156\x61\x6c", $R0);
        $XI = wp_remote_post($R0, array("\155\x65\x74\150\x6f\144" => "\107\x45\124", "\164\151\155\145\x6f\165\x74" => 45, "\162\x65\144\x69\x72\x65\x63\164\x69\x6f\156" => 5, "\150\164\x74\x70\166\x65\x72\x73\151\157\x6e" => "\61\x2e\60", "\x62\x6c\x6f\143\153\x69\x6e\x67" => true, "\x68\145\141\x64\145\x72\x73" => $Cw, "\143\157\157\x6b\x69\x65\x73" => array(), "\x73\x73\154\166\145\x72\151\146\171" => false));
        if (!is_wp_error($XI)) {
            goto Hw;
        }
        $RF->handle_error($XI->get_error_message());
        MO_Oauth_Debug::mo_oauth_log("\x45\162\162\157\x72\x20\x66\x72\157\155\40\x52\145\x73\x6f\165\x72\143\x65\40\105\x6e\x64\160\x6f\151\x6e\x74\72\40" . $XI->get_error_message());
        wp_die(wp_kses($XI->get_error_message(), \mo_oauth_get_valid_html()));
        exit;
        Hw:
        $XI = $XI["\142\x6f\x64\171"];
        if (is_array(json_decode($XI, true))) {
            goto oi;
        }
        $RF->handle_error("\x49\x6e\x76\141\154\151\144\40\x72\x65\x73\x70\157\x6e\163\145\40\162\x65\143\x65\151\x76\145\144\x20\x3a\40" . $XI);
        echo "\x3c\x73\x74\x72\x6f\x6e\x67\x3e\x52\145\163\160\157\156\x73\x65\40\x3a\40\x3c\x2f\x73\164\162\x6f\x6e\147\76\x3c\142\x72\x3e";
        print_r($XI);
        echo "\x3c\142\162\76\x3c\142\162\76";
        MO_Oauth_Debug::mo_oauth_log("\111\x6e\x76\141\x6c\x69\x64\x20\162\145\163\x70\157\156\x73\145\40\x72\x65\x63\151\145\x76\x65\144\40\167\150\x69\x6c\x65\40\146\x65\x74\x63\150\x69\x6e\147\x20\162\145\x73\x6f\165\162\143\x65\x20\157\x77\x6e\x65\162\40\x64\x65\164\141\151\154\163");
        exit("\x49\x6e\x76\x61\154\x69\x64\40\x72\x65\163\160\157\x6e\163\145\40\x72\x65\x63\145\151\166\145\144\56");
        oi:
        $yB = json_decode($XI, true);
        if (!(strpos($R0, "\141\x70\151\x2e\x63\154\145\x76\x65\162\x2e\x63\x6f\x6d") != false && isset($yB["\x6c\151\156\153\163"][1]["\165\x72\x69"]) && strpos($R0, $yB["\154\x69\156\x6b\x73"][1]["\x75\162\x69"]) === false)) {
            goto FZ;
        }
        $j9 = $yB["\x6c\x69\156\153\x73"][1]["\x75\x72\151"];
        $te = "\150\164\164\x70\x73\72\x2f\x2f\x61\x70\151\x2e\x63\x6c\x65\166\145\162\56\x63\x6f\155" . $j9;
        $RF->mo_oauth_client_update_option("\155\157\137\157\141\165\164\150\x5f\x63\x6c\x69\x65\x6e\164\137\x63\154\x65\x76\x65\162\x5f\x75\x73\x65\162\137\x61\160\151", $te);
        $yB = $this->get_resource_owner($te, $XD);
        FZ:
        if (isset($yB["\x65\x72\162\x6f\x72\137\x64\x65\163\143\162\x69\x70\x74\151\157\156"])) {
            goto tM;
        }
        if (isset($yB["\x65\x72\162\157\162"])) {
            goto FU;
        }
        goto UQ;
        tM:
        $O7 = "\105\x72\162\157\x72\x20\146\x72\x6f\155\x20\x52\x65\x73\x6f\x75\x72\x63\x65\x20\x45\156\x64\x70\x6f\151\156\x74\x3a\x20" . $yB["\145\x72\x72\157\162\137\x64\145\x73\x63\x72\x69\160\x74\151\157\156"];
        $RF->handle_error($yB["\145\162\162\157\x72\x5f\144\145\163\143\x72\x69\x70\164\151\x6f\x6e"]);
        MO_Oauth_Debug::mo_oauth_log($O7);
        do_action("\x6d\x6f\137\162\x65\144\151\162\145\x63\164\x5f\164\x6f\137\143\165\163\x74\157\155\137\x65\x72\162\x6f\162\137\x70\x61\147\x65");
        exit(json_encode($yB["\145\x72\x72\x6f\x72\x5f\x64\145\x73\143\x72\151\160\164\x69\157\x6e"]));
        goto UQ;
        FU:
        $O7 = "\x45\162\x72\157\162\40\x66\x72\157\155\x20\x52\145\x73\x6f\x75\x72\x63\145\40\x45\x6e\x64\x70\157\x69\156\x74\x3a\40" . $yB["\x65\162\162\x6f\162"];
        $RF->handle_error($yB["\x65\x72\162\157\162"]);
        MO_Oauth_Debug::mo_oauth_log($O7);
        do_action("\155\157\137\162\x65\x64\151\162\x65\143\x74\137\x74\x6f\137\143\x75\163\x74\x6f\x6d\x5f\x65\162\162\157\x72\137\160\x61\147\x65");
        exit(json_encode($yB["\x65\x72\162\157\x72"]));
        UQ:
        return $yB;
    }
    public function get_response($Lb)
    {
        $XI = wp_remote_get($Lb, array("\155\145\164\x68\x6f\x64" => "\107\105\124", "\x74\x69\x6d\145\x6f\165\164" => 45, "\162\x65\144\151\x72\145\x63\x74\151\x6f\x6e" => 5, "\x68\164\164\160\x76\145\x72\163\x69\x6f\x6e" => 1.0, "\142\x6c\157\143\x6b\x69\x6e\x67" => true, "\x68\145\141\x64\x65\162\x73" => array(), "\143\x6f\x6f\x6b\x69\x65\x73" => array(), "\x73\x73\x6c\x76\145\162\151\146\x79" => false));
        if (!is_wp_error($XI)) {
            goto s0;
        }
        MO_Oauth_Debug::mo_oauth_log($XI->get_error_message());
        wp_die(wp_kses($XI->get_error_message(), \mo_oauth_get_valid_html()));
        exit;
        s0:
        $XI = $XI["\x62\x6f\144\x79"];
        $yB = json_decode($XI, true);
        if (isset($yB["\x65\162\162\157\162\137\144\145\163\x63\162\151\x70\x74\151\157\x6e"])) {
            goto tV;
        }
        if (isset($yB["\145\x72\162\x6f\x72"])) {
            goto J9;
        }
        goto pQ;
        tV:
        $RF->handle_error($yB["\x65\162\162\157\x72\137\144\145\x73\143\162\151\160\164\151\157\156"]);
        MO_Oauth_Debug::mo_oauth_log($O7);
        do_action("\155\157\137\162\145\144\x69\x72\145\x63\164\137\164\157\x5f\x63\165\x73\x74\x6f\155\x5f\x65\162\162\x6f\162\137\x70\x61\147\145");
        goto pQ;
        J9:
        $RF->handle_error($yB["\145\x72\x72\157\x72"]);
        MO_Oauth_Debug::mo_oauth_log($O7);
        do_action("\155\x6f\137\x72\x65\x64\x69\162\145\x63\x74\x5f\x74\157\x5f\x63\x75\163\x74\x6f\x6d\x5f\145\x72\x72\157\162\x5f\x70\x61\147\x65");
        pQ:
        return $yB;
    }
    private function handle_error($x4, $N7)
    {
        global $RF;
        if (!($N7["\x67\162\141\156\164\137\164\171\160\145"] === "\160\141\163\163\167\157\162\144")) {
            goto ki;
        }
        $c2 = $RF->get_current_url();
        $c2 = apply_filters("\x6d\x6f\x5f\157\141\x75\164\150\x5f\x77\x6f\x6f\x63\x6f\155\x6d\145\x72\x63\145\137\143\150\145\143\x6b\157\x75\x74\x5f\143\x6f\155\160\x61\x74\151\142\x69\154\x69\x74\x79", $c2);
        if ($c2 != '') {
            goto M1;
        }
        return;
        goto Wr;
        M1:
        $c2 = "\77\157\160\164\151\x6f\156\75\x65\162\162\157\x72\155\x61\x6e\141\147\145\162\46\145\x72\162\x6f\162\75" . \base64_encode($x4);
        MO_Oauth_Debug::mo_oauth_log("\105\x72\162\157\x72\x3a\x20" . $x4);
        wp_die($x4);
        exit;
        Wr:
        ki:
        MO_Oauth_Debug::mo_oauth_log("\x45\162\162\157\162\72\x20" . $x4);
        exit($x4);
    }
}

Function Calls

None

Variables

None

Stats

MD5 7cbe8f9cfeebdfa9146dbb08ad9ef6e6
Eval Count 0
Decode Time 41 ms