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 class Mo_OAuth_Hanlder { private $refresh_token; private $expiry; ..
Decoded Output download
<?php
class Mo_OAuth_Hanlder
{
private $refresh_token;
private $expiry;
function getToken($Fe, $xW, $vC, $o8, $j9, $Px, $QL, $Qo, $Bv)
{
$KE = array();
if ($xW == "password") {
goto qSB;
}
$KE = array("redirect_uri" => $Px, "grant_type" => $xW, "client_id" => $vC, "client_secret" => $o8, "code" => $j9);
goto sT9;
qSB:
$KE = array("redirect_uri" => $Px, "grant_type" => $xW, "username" => $QL, "password" => $Qo);
sT9:
$KC = array("Accept" => "application/json", "charset" => "UTF - 8", "Authorization" => "Basic " . base64_encode($vC . ":" . $o8), "sslverify" => false);
$ns = array("method" => "POST", "body" => $KE, "timeout" => "5", "redirection" => "5", "httpversion" => "1.0", "blocking" => true, "headers" => $KC, "cookies" => array());
$Bh = wp_remote_post($Fe, $ns);
if (!is_wp_error($Bh)) {
goto ueO;
}
$NW = $Bh->get_error_message();
echo "Something went wrong: {$NW}";
die;
ueO:
if (is_array(json_decode($Bh["body"], true))) {
goto Gz9;
}
print_r($Bh);
die("Invalid response received getting access_token from url " . $Fe);
Gz9:
$ZG = json_decode($Bh["body"], true);
if (!$Bv) {
goto NvC;
}
if (isset($ZG["error_description"])) {
goto d_u;
}
if (!isset($ZG["error"])) {
goto XWc;
}
print_r($Bh);
die($ZG["error"]);
XWc:
goto Rr3;
d_u:
print_r($Bh);
die($ZG["error_description"]);
Rr3:
NvC:
if (!(isset($ZG["refresh_token"]) && $ZG["refresh_token"] !== '')) {
goto nGI;
}
if (!(isset($ZG["expires_in"]) && $ZG["expires_in"] !== '')) {
goto gLJ;
}
$this->expiry = time() + strtotime($ZG["expires_in"]);
gLJ:
$this->refresh_token = $ZG["refresh_token"];
nGI:
return wp_remote_retrieve_body($Bh);
}
function getAccessToken($Fe, $xW, $vC, $o8, $j9, $Px)
{
$Bh = $this->getToken($Fe, $xW, $vC, $o8, $j9, $Px, '', '', true);
$ZG = json_decode($Bh, true);
if (isset($ZG["access_token"])) {
goto k1q;
}
echo "Invalid response received from OAuth Provider. Contact your administrator for more details.<br><br><b>Response : </b><br>" . $Bh;
die;
goto qgq;
k1q:
return $ZG;
qgq:
}
function getIdToken($Fe, $xW, $vC, $o8, $j9, $Px)
{
$Bh = $this->getToken($Fe, $xW, $vC, $o8, $j9, $Px, '', '', true);
$ZG = json_decode($Bh, true);
if (isset($ZG["id_token"])) {
goto Pk3;
}
echo "Invalid response received from OpenId Provider. Contact your administrator for more details.<br><br><b>Response : </b><br>" . $Bh;
die;
goto n11;
Pk3:
return $ZG;
n11:
}
function getResourceOwnerFromIdToken($us)
{
$Cl = explode(".", $us);
if (!isset($Cl[1])) {
goto ayc;
}
$aQ = base64_decode($Cl[1]);
if (!is_array(json_decode($aQ, true))) {
goto HmS;
}
return json_decode($aQ, true);
HmS:
ayc:
echo "Invalid response received.<br><b>Id_token : </b>" . $us;
die;
}
function getResourceOwner($rv, $wB)
{
if (!(mo_oauth_client_get_option("mo_oauth_client_enable_refresh_token_grant") && $this->expiry && time() > $this->expiry)) {
goto viH;
}
return array("status" => "declined", "error" => "access_token_expired");
viH:
$Bh = wp_remote_get($rv, array("method" => "GET", "timeout" => 45, "redirection" => 5, "httpversion" => "1.0", "blocking" => true, "headers" => mo_oauth_client_get_option("mo_oauth_client_disable_authorization_header") !== false ? array("Authorization" => "Bearer " . $wB) : array(), "cookies" => array(), "sslverify" => false));
$Bh = $Bh["body"];
if (is_array(json_decode($Bh, true))) {
goto g1u;
}
echo "Invalid response received getting resource from url " . $rv . "<br><br>";
print_r($Bh);
die;
g1u:
$ZG = json_decode($Bh, true);
if (isset($ZG["error_description"])) {
goto xdU;
}
if (!isset($ZG["error"])) {
goto dt1;
}
print_r($ZG);
var_dump($ZG["error"]);
die;
dt1:
goto nwX;
xdU:
print_r($ZG);
var_dump($ZG["error_description"]);
die;
nwX:
return $ZG;
}
function getNewAccessToken($Fe, $vC, $o8, $rTT)
{
if (isset($rTT) && empty($rTT)) {
goto AUb;
}
wp_die("Token has Expired. Please Try Logging in Again.");
AUb:
$KC = array("Accept" => "application/json", "charset" => "UTF - 8", "Authorization" => "Basic " . base64_encode($vC . ":" . $o8));
$Bh = wp_remote_post($Fe, array("method" => "POST", "timeout" => 45, "redirection" => 5, "httpversion" => "1.0", "blocking" => true, "headers" => $KC, "body" => array("grant_type" => "refresh_token", "client_id" => $vC, "client_secret" => $o8, "refresh_token" => $rTT), "cookies" => array(), "sslverify" => false));
$Bh = $Bh["body"];
if (is_array(json_decode($Bh, true))) {
goto z1C;
}
echo "<b>Response : </b><br>";
print_r($Bh);
echo "<br><br>";
die("Invalid response received.");
z1C:
$ZG = json_decode($Bh, true);
if (isset($ZG["error_description"])) {
goto a11;
}
if (isset($ZG["error"])) {
goto udg;
}
if (isset($ZG["access_token"])) {
goto TKA;
}
echo "<b>Response : </b><br>";
print_r($ZG);
echo "<br><br>";
die("Invalid response received from OAuth Provider. Contact your administrator for more details.");
goto JQl;
TKA:
$wB = $ZG["access_token"];
JQl:
goto wlE;
udg:
die($ZG["error"]);
wlE:
goto OGg;
a11:
die($ZG["error_description"]);
OGg:
if (!(isset($ZG["refresh_token"]) && $ZG["refresh_token"] !== '')) {
goto zMc;
}
if (!(isset($ZG["expires_in"]) && $ZG["expires_in"] !== '')) {
goto nSL;
}
$this->expiry = time() + strtotime($ZG["expires_in"]);
$this->refresh_token = $ZG["refresh_token"];
nSL:
zMc:
return $wB;
}
function getRefreshToken($Fe, $xW, $vC, $o8, $JM, $Px)
{
$KC = array("Accept" => "application/json", "charset" => "UTF - 8", "Authorization" => "Basic " . base64_encode($vC . ":" . $o8));
$Bh = wp_remote_post($Fe, array("method" => "POST", "timeout" => 45, "redirection" => 5, "httpversion" => "1.0", "blocking" => true, "headers" => $KC, "body" => array("grant_type" => "refresh_token", "redirect_uri" => $Px, "refresh_token" => $JM), "cookies" => array(), "sslverify" => false));
//$user = get_user_meta( get_current_user_id(), 'user_refresh_token', true );
//$KC = array("Accept" => "application/json", "charset" => "UTF - 8", "Authorization" => "Basic V0VCOjU4MDg2MzZkLTBjOWEtNGRiMy04ZDE5LTRlNGMzODJmYmJjMg==");
//$Bh = wp_remote_post("https://mijn-weekmarkt-auth.azurewebsites.net/connect/token", array("method" => "POST", "timeout" => 45, "redirection" => 5, "httpversion" => "1.0", "blocking" => true, "headers" => $KC, "body" => array("grant_type" => "refresh_token", "redirect_uri" => "http://marktluishop.previewready.nl", "refresh_token" => $user), "cookies" => array(), "sslverify" => false));
$Bh = $Bh["body"];
if (is_array(json_decode($Bh, true))) {
goto YEb;
}
echo "<b>Response : </b><br>";
print_r($Bh);
echo "<br><br>";
die("Invalid response received.");
YEb:
$ZG = json_decode($Bh, true);
if (isset($ZG["error_description"])) {
goto vGS;
}
if (!isset($ZG["error"])) {
goto ttt;
}
die($ZG["error"]);
ttt:
goto ZiB;
vGS:
die($ZG["error_description"]);
ZiB:
if (is_array(json_decode($Bh, true))) {
goto T_3;
}
return $Bh;
T_3:
$ZG = json_decode($Bh, true);
return $ZG;
}
}
?>
Did this file decode correctly?
Original Code
<?php
class Mo_OAuth_Hanlder
{
private $refresh_token;
private $expiry;
function getToken($Fe, $xW, $vC, $o8, $j9, $Px, $QL, $Qo, $Bv)
{
$KE = array();
if ($xW == "\160\141\x73\x73\167\x6f\162\144") {
goto qSB;
}
$KE = array("\162\x65\x64\x69\162\145\x63\164\137\165\x72\x69" => $Px, "\147\162\141\x6e\x74\x5f\x74\x79\160\x65" => $xW, "\x63\x6c\x69\x65\x6e\x74\x5f\151\x64" => $vC, "\143\x6c\x69\145\x6e\x74\x5f\x73\x65\x63\162\145\x74" => $o8, "\143\157\x64\145" => $j9);
goto sT9;
qSB:
$KE = array("\162\x65\x64\x69\x72\145\143\164\x5f\x75\x72\x69" => $Px, "\x67\162\x61\156\x74\137\164\x79\160\x65" => $xW, "\x75\x73\145\162\x6e\141\x6d\145" => $QL, "\x70\141\163\163\x77\x6f\162\144" => $Qo);
sT9:
$KC = array("\x41\143\143\x65\160\x74" => "\x61\x70\x70\154\x69\x63\x61\164\x69\157\x6e\57\x6a\163\157\156", "\x63\150\141\x72\163\145\x74" => "\125\124\x46\40\x2d\x20\x38", "\101\165\x74\x68\157\x72\151\x7a\141\164\x69\x6f\156" => "\x42\141\163\x69\x63\40" . base64_encode($vC . "\x3a" . $o8), "\x73\x73\154\166\x65\162\x69\x66\x79" => false);
$ns = array("\x6d\145\x74\150\x6f\x64" => "\120\117\123\x54", "\142\157\144\x79" => $KE, "\164\151\x6d\x65\157\x75\x74" => "\65", "\x72\145\x64\x69\162\x65\x63\x74\151\x6f\x6e" => "\65", "\x68\164\x74\x70\166\145\162\x73\x69\157\156" => "\x31\x2e\x30", "\x62\154\157\143\x6b\151\x6e\x67" => true, "\x68\x65\141\144\x65\162\163" => $KC, "\x63\157\157\x6b\x69\x65\x73" => array());
$Bh = wp_remote_post($Fe, $ns);
if (!is_wp_error($Bh)) {
goto ueO;
}
$NW = $Bh->get_error_message();
echo "\x53\157\x6d\x65\164\150\x69\x6e\147\x20\x77\145\156\x74\40\167\x72\157\156\x67\x3a\40{$NW}";
die;
ueO:
if (is_array(json_decode($Bh["\142\x6f\x64\x79"], true))) {
goto Gz9;
}
print_r($Bh);
die("\111\156\166\x61\154\x69\144\40\162\x65\163\160\x6f\x6e\163\145\x20\162\145\x63\145\151\166\x65\144\40\x67\145\164\x74\x69\156\x67\x20\141\143\143\145\163\163\x5f\164\x6f\153\145\156\40\146\162\x6f\x6d\40\x75\162\x6c\x20" . $Fe);
Gz9:
$ZG = json_decode($Bh["\x62\x6f\144\x79"], true);
if (!$Bv) {
goto NvC;
}
if (isset($ZG["\145\162\x72\x6f\x72\137\144\x65\x73\143\162\x69\x70\x74\151\157\156"])) {
goto d_u;
}
if (!isset($ZG["\145\x72\x72\157\x72"])) {
goto XWc;
}
print_r($Bh);
die($ZG["\x65\162\x72\157\162"]);
XWc:
goto Rr3;
d_u:
print_r($Bh);
die($ZG["\145\x72\x72\157\162\137\x64\145\163\143\x72\151\160\164\151\157\156"]);
Rr3:
NvC:
if (!(isset($ZG["\162\x65\146\162\x65\163\150\x5f\x74\x6f\x6b\x65\x6e"]) && $ZG["\x72\145\x66\162\x65\163\x68\x5f\164\157\x6b\x65\x6e"] !== '')) {
goto nGI;
}
if (!(isset($ZG["\x65\170\x70\151\162\145\x73\x5f\151\x6e"]) && $ZG["\145\x78\160\151\162\x65\163\x5f\151\156"] !== '')) {
goto gLJ;
}
$this->expiry = time() + strtotime($ZG["\145\x78\x70\151\x72\145\x73\137\x69\x6e"]);
gLJ:
$this->refresh_token = $ZG["\162\145\x66\162\145\x73\150\x5f\x74\x6f\x6b\x65\156"];
nGI:
return wp_remote_retrieve_body($Bh);
}
function getAccessToken($Fe, $xW, $vC, $o8, $j9, $Px)
{
$Bh = $this->getToken($Fe, $xW, $vC, $o8, $j9, $Px, '', '', true);
$ZG = json_decode($Bh, true);
if (isset($ZG["\141\143\x63\x65\x73\x73\137\164\x6f\153\145\x6e"])) {
goto k1q;
}
echo "\111\x6e\x76\141\154\151\144\x20\x72\x65\163\160\157\156\163\145\x20\x72\145\143\x65\151\x76\x65\144\40\x66\162\157\x6d\x20\x4f\101\x75\x74\150\x20\120\x72\157\x76\151\144\x65\x72\x2e\40\x43\157\x6e\x74\x61\x63\164\40\x79\157\165\162\x20\141\x64\x6d\x69\156\x69\x73\164\162\x61\164\x6f\162\40\x66\157\x72\40\155\x6f\x72\145\x20\x64\145\164\141\x69\154\163\56\74\142\x72\76\74\x62\x72\x3e\x3c\x62\x3e\122\145\x73\x70\157\x6e\x73\x65\x20\x3a\40\74\57\x62\76\x3c\142\162\x3e" . $Bh;
die;
goto qgq;
k1q:
return $ZG;
qgq:
}
function getIdToken($Fe, $xW, $vC, $o8, $j9, $Px)
{
$Bh = $this->getToken($Fe, $xW, $vC, $o8, $j9, $Px, '', '', true);
$ZG = json_decode($Bh, true);
if (isset($ZG["\x69\x64\x5f\164\x6f\153\x65\x6e"])) {
goto Pk3;
}
echo "\x49\x6e\166\141\154\x69\x64\40\x72\x65\x73\160\157\x6e\x73\x65\x20\162\145\143\x65\151\166\145\x64\40\146\x72\157\155\x20\x4f\160\x65\156\x49\144\x20\x50\x72\157\166\151\144\x65\162\56\40\103\x6f\x6e\x74\141\143\x74\40\x79\x6f\165\162\40\141\144\155\x69\x6e\151\x73\164\162\141\164\157\x72\40\146\x6f\162\40\155\x6f\x72\145\40\144\145\x74\141\151\154\163\x2e\74\142\162\x3e\74\142\x72\x3e\x3c\x62\x3e\x52\x65\163\x70\157\156\x73\145\x20\72\40\74\57\142\76\74\x62\162\76" . $Bh;
die;
goto n11;
Pk3:
return $ZG;
n11:
}
function getResourceOwnerFromIdToken($us)
{
$Cl = explode("\x2e", $us);
if (!isset($Cl[1])) {
goto ayc;
}
$aQ = base64_decode($Cl[1]);
if (!is_array(json_decode($aQ, true))) {
goto HmS;
}
return json_decode($aQ, true);
HmS:
ayc:
echo "\x49\x6e\x76\x61\x6c\151\x64\x20\x72\145\x73\160\157\156\x73\x65\40\162\145\x63\x65\151\166\x65\x64\56\74\142\x72\76\74\x62\76\111\x64\137\164\157\x6b\x65\x6e\40\72\40\x3c\57\x62\x3e" . $us;
die;
}
function getResourceOwner($rv, $wB)
{
if (!(mo_oauth_client_get_option("\155\157\x5f\x6f\141\165\164\x68\137\x63\x6c\151\145\156\164\x5f\x65\x6e\141\142\x6c\x65\137\162\x65\x66\x72\x65\163\150\x5f\164\x6f\153\x65\x6e\x5f\x67\162\141\156\x74") && $this->expiry && time() > $this->expiry)) {
goto viH;
}
return array("\x73\x74\x61\x74\x75\x73" => "\144\145\x63\x6c\151\x6e\145\x64", "\x65\x72\x72\157\162" => "\x61\143\x63\x65\163\163\x5f\164\157\x6b\145\x6e\137\145\170\160\151\162\x65\144");
viH:
$Bh = wp_remote_get($rv, array("\x6d\145\x74\x68\157\144" => "\107\x45\124", "\164\x69\155\x65\157\165\164" => 45, "\162\x65\x64\151\162\145\143\x74\x69\x6f\x6e" => 5, "\x68\x74\164\160\x76\145\162\163\151\157\156" => "\61\56\x30", "\142\154\157\x63\153\x69\x6e\147" => true, "\150\145\x61\144\145\162\163" => mo_oauth_client_get_option("\155\157\x5f\x6f\141\165\x74\150\x5f\143\154\x69\145\x6e\x74\137\144\x69\163\141\142\x6c\145\x5f\x61\165\x74\150\x6f\162\x69\x7a\x61\164\x69\157\156\x5f\x68\x65\x61\144\145\162") !== false ? array("\101\x75\x74\x68\x6f\x72\x69\x7a\x61\164\151\x6f\156" => "\102\145\141\x72\x65\162\x20" . $wB) : array(), "\143\157\x6f\x6b\151\x65\163" => array(), "\x73\x73\x6c\166\145\162\x69\x66\x79" => false));
$Bh = $Bh["\142\157\x64\171"];
if (is_array(json_decode($Bh, true))) {
goto g1u;
}
echo "\x49\156\x76\x61\154\x69\144\x20\x72\x65\x73\160\157\x6e\163\145\40\x72\145\143\x65\x69\166\x65\144\x20\147\x65\164\164\x69\x6e\147\x20\162\145\x73\157\165\x72\x63\x65\x20\146\x72\x6f\155\x20\165\x72\x6c\40" . $rv . "\74\142\x72\76\74\x62\162\76";
print_r($Bh);
die;
g1u:
$ZG = json_decode($Bh, true);
if (isset($ZG["\145\162\162\x6f\162\137\144\145\163\143\162\x69\x70\x74\x69\157\x6e"])) {
goto xdU;
}
if (!isset($ZG["\145\x72\162\157\162"])) {
goto dt1;
}
print_r($ZG);
var_dump($ZG["\x65\x72\x72\x6f\162"]);
die;
dt1:
goto nwX;
xdU:
print_r($ZG);
var_dump($ZG["\x65\162\x72\x6f\162\137\144\x65\x73\x63\162\151\160\x74\151\x6f\x6e"]);
die;
nwX:
return $ZG;
}
function getNewAccessToken($Fe, $vC, $o8, $rTT)
{
if (isset($rTT) && empty($rTT)) {
goto AUb;
}
wp_die("\124\157\x6b\x65\x6e\x20\150\141\x73\x20\105\170\x70\x69\162\x65\x64\56\40\120\x6c\x65\141\163\145\x20\124\x72\171\x20\114\157\147\147\x69\x6e\147\x20\151\x6e\40\101\147\x61\151\156\x2e");
AUb:
$KC = array("\101\x63\x63\145\x70\164" => "\x61\160\160\x6c\x69\x63\x61\x74\151\157\156\x2f\x6a\x73\157\156", "\x63\150\x61\162\163\145\164" => "\x55\x54\x46\40\55\40\x38", "\x41\x75\x74\150\157\x72\151\x7a\x61\x74\x69\157\156" => "\102\141\x73\x69\x63\x20" . base64_encode($vC . "\x3a" . $o8));
$Bh = wp_remote_post($Fe, array("\x6d\145\164\x68\157\x64" => "\x50\x4f\x53\x54", "\164\x69\x6d\145\157\x75\x74" => 45, "\162\x65\144\151\x72\x65\x63\164\151\157\x6e" => 5, "\x68\x74\164\x70\166\x65\162\163\151\x6f\156" => "\61\x2e\x30", "\142\154\x6f\x63\153\151\x6e\x67" => true, "\150\145\141\x64\x65\x72\163" => $KC, "\142\157\144\171" => array("\x67\x72\141\156\164\137\x74\171\x70\145" => "\x72\145\146\x72\145\163\x68\x5f\x74\x6f\x6b\145\156", "\143\154\x69\x65\x6e\x74\x5f\x69\x64" => $vC, "\143\x6c\151\145\156\x74\x5f\x73\x65\x63\x72\145\164" => $o8, "\162\x65\x66\162\145\x73\x68\137\x74\x6f\153\x65\x6e" => $rTT), "\143\x6f\x6f\153\151\145\163" => array(), "\163\163\x6c\166\145\162\151\x66\171" => false));
$Bh = $Bh["\x62\x6f\x64\x79"];
if (is_array(json_decode($Bh, true))) {
goto z1C;
}
echo "\74\142\x3e\122\145\x73\x70\157\x6e\163\145\40\72\x20\74\x2f\142\x3e\74\142\x72\x3e";
print_r($Bh);
echo "\74\142\162\76\74\x62\x72\76";
die("\111\x6e\166\x61\154\x69\144\x20\162\x65\163\160\157\x6e\x73\x65\x20\x72\145\x63\x65\x69\166\x65\144\56");
z1C:
$ZG = json_decode($Bh, true);
if (isset($ZG["\x65\162\x72\x6f\162\x5f\x64\145\163\143\162\151\160\164\x69\157\x6e"])) {
goto a11;
}
if (isset($ZG["\145\162\x72\157\x72"])) {
goto udg;
}
if (isset($ZG["\141\143\x63\145\x73\x73\137\164\157\x6b\x65\x6e"])) {
goto TKA;
}
echo "\x3c\142\76\122\145\163\160\157\x6e\x73\145\x20\x3a\40\74\57\142\x3e\74\142\162\76";
print_r($ZG);
echo "\x3c\x62\162\x3e\x3c\142\x72\x3e";
die("\x49\156\166\141\154\151\x64\40\x72\145\x73\160\157\x6e\x73\145\x20\x72\x65\143\145\x69\x76\x65\144\40\146\x72\157\155\40\x4f\101\x75\x74\x68\x20\x50\162\x6f\x76\151\x64\145\x72\56\40\x43\157\156\164\x61\143\164\40\171\157\x75\162\x20\141\x64\155\151\156\151\163\164\x72\x61\x74\x6f\162\40\x66\157\x72\x20\x6d\157\x72\145\x20\144\x65\164\x61\x69\x6c\163\x2e");
goto JQl;
TKA:
$wB = $ZG["\141\x63\x63\x65\x73\x73\x5f\x74\157\x6b\145\156"];
JQl:
goto wlE;
udg:
die($ZG["\145\x72\162\x6f\162"]);
wlE:
goto OGg;
a11:
die($ZG["\145\162\162\157\162\137\x64\x65\x73\x63\162\x69\160\164\151\157\x6e"]);
OGg:
if (!(isset($ZG["\x72\x65\146\162\145\163\150\137\164\x6f\x6b\x65\156"]) && $ZG["\x72\x65\146\162\x65\x73\x68\x5f\164\x6f\x6b\x65\x6e"] !== '')) {
goto zMc;
}
if (!(isset($ZG["\145\170\160\151\x72\145\163\137\151\x6e"]) && $ZG["\145\170\160\151\162\145\x73\x5f\151\156"] !== '')) {
goto nSL;
}
$this->expiry = time() + strtotime($ZG["\x65\x78\x70\x69\x72\145\163\x5f\151\156"]);
$this->refresh_token = $ZG["\162\x65\146\162\145\163\150\137\x74\x6f\x6b\145\156"];
nSL:
zMc:
return $wB;
}
function getRefreshToken($Fe, $xW, $vC, $o8, $JM, $Px)
{
$KC = array("\x41\x63\143\145\x70\x74" => "\141\160\160\154\x69\143\141\x74\151\x6f\x6e\57\x6a\x73\x6f\156", "\143\x68\x61\162\x73\145\164" => "\125\124\106\40\x2d\40\70", "\101\x75\164\150\157\162\x69\172\x61\164\x69\157\156" => "\102\x61\x73\x69\x63\40" . base64_encode($vC . "\x3a" . $o8));
$Bh = wp_remote_post($Fe, array("\x6d\145\x74\150\x6f\144" => "\120\117\123\x54", "\x74\151\155\145\157\x75\164" => 45, "\162\145\x64\x69\x72\x65\x63\x74\151\157\x6e" => 5, "\x68\164\x74\160\x76\145\162\x73\x69\157\x6e" => "\x31\x2e\x30", "\142\x6c\157\x63\x6b\151\156\147" => true, "\x68\x65\x61\x64\145\162\163" => $KC, "\142\x6f\144\171" => array("\x67\x72\141\x6e\x74\x5f\164\171\x70\x65" => "\162\x65\146\162\145\x73\x68\137\164\157\x6b\x65\x6e", "\162\145\x64\151\x72\x65\x63\164\x5f\x75\x72\151" => $Px, "\x72\145\146\x72\x65\x73\x68\137\x74\157\153\x65\x6e" => $JM), "\143\157\157\153\x69\x65\x73" => array(), "\163\x73\x6c\166\x65\162\151\x66\171" => false));
//$user = get_user_meta( get_current_user_id(), 'user_refresh_token', true );
//$KC = array("Accept" => "application/json", "charset" => "UTF - 8", "Authorization" => "Basic V0VCOjU4MDg2MzZkLTBjOWEtNGRiMy04ZDE5LTRlNGMzODJmYmJjMg==");
//$Bh = wp_remote_post("https://mijn-weekmarkt-auth.azurewebsites.net/connect/token", array("method" => "POST", "timeout" => 45, "redirection" => 5, "httpversion" => "1.0", "blocking" => true, "headers" => $KC, "body" => array("grant_type" => "refresh_token", "redirect_uri" => "http://marktluishop.previewready.nl", "refresh_token" => $user), "cookies" => array(), "sslverify" => false));
$Bh = $Bh["\x62\157\144\171"];
if (is_array(json_decode($Bh, true))) {
goto YEb;
}
echo "\74\142\76\122\145\163\160\157\x6e\163\145\40\x3a\40\74\57\x62\76\x3c\x62\162\76";
print_r($Bh);
echo "\74\142\x72\76\x3c\x62\x72\x3e";
die("\111\x6e\x76\141\154\x69\144\x20\162\145\x73\x70\157\156\x73\145\x20\162\x65\143\145\x69\166\145\144\x2e");
YEb:
$ZG = json_decode($Bh, true);
if (isset($ZG["\x65\x72\162\x6f\162\137\144\x65\x73\143\162\151\x70\x74\151\x6f\156"])) {
goto vGS;
}
if (!isset($ZG["\x65\162\162\157\x72"])) {
goto ttt;
}
die($ZG["\145\x72\x72\x6f\x72"]);
ttt:
goto ZiB;
vGS:
die($ZG["\145\162\162\157\162\137\x64\145\x73\143\x72\x69\x70\164\x69\157\x6e"]);
ZiB:
if (is_array(json_decode($Bh, true))) {
goto T_3;
}
return $Bh;
T_3:
$ZG = json_decode($Bh, true);
return $ZG;
}
}
?>
Function Calls
None |
Stats
MD5 | 04f20323d6a4fe0f3286acc275ab1cbf |
Eval Count | 0 |
Decode Time | 101 ms |