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\Standard; use MoOauthClient\LoginHandler as FreeLogi..
Decoded Output download
<?php
namespace MoOauthClient\Standard;
use MoOauthClient\LoginHandler as FreeLoginHandler;
use MoOauthClient\Config;
use MoOauthClient\StorageManager;
use MoOauthClient\MO_Oauth_Debug;
class LoginHandler extends FreeLoginHandler
{
public $config;
public function handle_group_test_conf($so = array(), $NY = array(), $sI = '', $DW = false, $CV = false)
{
global $Rg;
$this->render_test_config_output($so, false);
if (!(!isset($NY["groupdetailsurl"]) || '' === $NY["groupdetailsurl"])) {
goto nmC;
}
return;
nmC:
$Ac = [];
$xi = $NY["groupdetailsurl"];
if (!(strpos($xi, "api.clever.com") != false && isset($so["data"]["id"]))) {
goto pQc;
}
$xi = str_replace("userid", $so["data"]["id"], $xi);
pQc:
MO_Oauth_Debug::mo_oauth_log("Group Details URL: " . $xi);
if (!('' === $sI)) {
goto aJy;
}
if (has_filter("mo_oauth_cfa_group_details")) {
goto xmU;
}
MO_Oauth_Debug::mo_oauth_log("Access Token Empty");
return;
xmU:
aJy:
if (!('' !== $xi)) {
goto aFz;
}
if (has_filter("mo_oauth_cfa_group_details")) {
goto uFB;
}
if (has_filter("mo_oauth_group_details")) {
goto dkv;
}
if (has_filter("mo_oauth_raven_group_details")) {
goto e52;
}
$Ac = $this->oauth_handler->get_resource_owner($xi, $sI);
goto aMP;
e52:
$Ac = apply_filters("mo_oauth_raven_group_details", $so["email"], $xi, $sI, $NY, $DW);
aMP:
goto Qf_;
dkv:
$Ac = apply_filters("mo_oauth_group_details", $xi, $sI, $NY, $DW);
Qf_:
goto ZXA;
uFB:
MO_Oauth_Debug::mo_oauth_log("Fetching CFA Group..");
$Ac = apply_filters("mo_oauth_cfa_group_details", $so, $xi, $sI, $NY, $DW);
ZXA:
$n_ = $Rg->mo_oauth_client_get_option("mo_oauth_attr_name_list" . $NY["appId"]);
$Hh = [];
$vc = $this->dropdownattrmapping('', $Ac, $Hh);
$n_ = (array) $n_ + $vc;
$Rg->mo_oauth_client_update_option("mo_oauth_attr_name_list" . $NY["appId"], $n_);
if (!($CV && '' !== $CV)) {
goto Ti0;
}
if (!(is_array($Ac) && !empty($Ac))) {
goto EUv;
}
$this->render_test_config_output($Ac, true);
EUv:
return;
Ti0:
aFz:
}
public function handle_group_user_info($so, $NY, $sI)
{
if (!(!isset($NY["groupdetailsurl"]) || '' === $NY["groupdetailsurl"])) {
goto Iuk;
}
return $so;
Iuk:
$xi = $NY["groupdetailsurl"];
if (!(strpos($xi, "api.clever.com") != false && isset($so["data"]["id"]))) {
goto Bb7;
}
$xi = str_replace("userid", $so["data"]["id"], $xi);
Bb7:
if (!('' === $sI)) {
goto Mn5;
}
return $so;
Mn5:
$Ac = array();
if (!('' !== $xi)) {
goto veO;
}
if (has_filter("mo_oauth_cfa_group_details")) {
goto NNa;
}
if (has_filter("mo_oauth_group_details")) {
goto SmM;
}
if (has_filter("mo_oauth_raven_group_details")) {
goto xT2;
}
$Ac = $this->oauth_handler->get_resource_owner($xi, $sI);
goto wVn;
xT2:
$Ac = apply_filters("mo_oauth_raven_group_details", $so["email"], $xi, $sI, $NY, $DW);
wVn:
goto gO9;
SmM:
$Ac = apply_filters("mo_oauth_group_details", $xi, $sI, $NY);
gO9:
goto C9G;
NNa:
MO_Oauth_Debug::mo_oauth_log("Fetching CFA Group..");
$Ac = apply_filters("mo_oauth_cfa_group_details", $so, $xi, $sI, $NY, $DW);
C9G:
veO:
MO_Oauth_Debug::mo_oauth_log("Group Details => ");
MO_Oauth_Debug::mo_oauth_log($Ac);
if (!(is_array($Ac) && count($Ac) > 0)) {
goto msd;
}
$so = array_merge($so, $Ac);
msd:
MO_Oauth_Debug::mo_oauth_log("Resource Owner After merging with Group detials => ");
MO_Oauth_Debug::mo_oauth_log($so);
return $so;
}
public function mo_oauth_client_map_default_role($YM, $NY)
{
$lW = new \WP_User($YM);
if (!(isset($NY["enable_role_mapping"]) && !boolval($NY["enable_role_mapping"]))) {
goto oq3;
}
$lW->set_role('');
return;
oq3:
if (!(isset($NY["_mapping_value_default"]) && '' !== $NY["_mapping_value_default"])) {
goto yHM;
}
$Gx = explode(",", $NY["_mapping_value_default"]);
$Wm = 0;
foreach ($Gx as $XF) {
if (!(0 === $Wm)) {
goto ssV;
}
$lW->set_role('');
ssV:
$XF = trim($XF);
$lW->add_role($XF);
$Wm++;
sF1:
}
uvR:
yHM:
}
public function handle_sso($vR, $NY, $so, $OC, $ik, $kL = false)
{
global $Rg;
$c8 = new StorageManager($OC);
do_action("mo_oauth_link_discord_account", $c8, $so);
$ut = isset($NY["username_attr"]) ? $NY["username_attr"] : '';
$j2 = isset($NY["email_attr"]) ? $NY["email_attr"] : '';
$rR = isset($NY["firstname_attr"]) ? $NY["firstname_attr"] : '';
$sq = isset($NY["lastname_attr"]) ? $NY["lastname_attr"] : '';
$dO = isset($NY["display_attr"]) ? $NY["display_attr"] : '';
$jF = $Rg->getnestedattribute($so, $ut);
$B7 = $Rg->getnestedattribute($so, $j2);
$ej = $Rg->getnestedattribute($so, $rR);
$xW = $Rg->getnestedattribute($so, $sq);
$Aj = $jF;
$this->config = $Rg->mo_oauth_client_get_option("mo_oauth_client_config");
$this->config = !$this->config || empty($this->config) ? array() : $this->config->get_current_config();
$QI = isset($this->config["activate_user_analytics"]) ? $this->config["activate_user_analytics"] : 0;
$current_user = wp_get_current_user();
if (!($current_user->ID !== 0)) {
goto luK;
}
do_action("mo_oauth_discord_flow_handle", $current_user, $ik, $so);
do_action("mo_oauth_logged_in_user_tag_update", $current_user, $ik, $so);
$qV = get_option("mo_drm_sync_redirect");
if (!(isset($qV) && $qV)) {
goto Wer;
}
wp_redirect($qV);
exit;
Wer:
luK:
if (empty($dO)) {
goto y9w;
}
switch ($dO) {
case "FNAME":
$Aj = $ej;
goto RD6;
case "LNAME":
$Aj = $xW;
goto RD6;
case "USERNAME":
$Aj = $jF;
goto RD6;
case "FNAME_LNAME":
$Aj = $ej . " " . $xW;
goto RD6;
case "LNAME_FNAME":
$Aj = $xW . " " . $ej;
default:
goto RD6;
}
YiH:
RD6:
y9w:
if (!empty($jF)) {
goto byO;
}
MO_Oauth_Debug::mo_oauth_log("Username : " . $jF);
$this->check_status(array("msg" => "Username not received. Check your <strong>Attribute Mapping</strong> configuration.", "code" => "UNAME", "status" => false, "application" => $vR, "email" => '', "username" => ''), $QI);
byO:
if (!(!empty($B7) && false === strpos($B7, "@"))) {
goto vKq;
}
$this->check_status(array("msg" => "Mapped Email attribute does not contain valid email.", "code" => "EMAIL", "status" => false, "application" => $vR, "client_ip" => $Rg->get_client_ip(), "email" => $B7, "username" => $jF), $QI);
vKq:
if (!is_multisite()) {
goto kfY;
}
$blog_id = $c8->get_value("blog_id");
switch_to_blog($blog_id);
do_action("mo_oauth_client_concord_restrict_login", $NY, $so, $blog_id);
kfY:
if (!has_action("mo_oauth_client_save_user_in_session")) {
goto GEA;
}
do_action("mo_oauth_client_save_user_in_session", array("app_config" => $NY, "storage_manager" => $c8, "resource_owner" => $so, "username" => $jF));
GEA:
do_action("mo_oauth_restrict_emails", $B7, $this->config);
if (!has_filter("mo_oauth_modify_username_attr")) {
goto JDH;
}
$jF = apply_filters("mo_oauth_modify_username_attr", $so);
JDH:
if (!has_filter("mo_oauth_check_user_authorised")) {
goto N7n;
}
$jF = apply_filters("mo_oauth_check_user_authorised", $so, $jF);
N7n:
$user = get_user_by("login", $jF);
$TB = isset($NY["allow_duplicate_emails"]) ? true : false;
if ($user) {
goto dgr;
}
if (!(!$TB || $TB && !$NY["allow_duplicate_emails"])) {
goto kQy;
}
$user = get_user_by("email", $B7);
kQy:
dgr:
$YM = $user ? $user->ID : 0;
$Xc = 0 === $YM;
if (!has_filter("mo_oauth_get_user_by_email")) {
goto RTT;
}
$user = apply_filters("mo_oauth_get_user_by_email", $jF, $B7);
RTT:
if (!has_filter("mo_oauth_check_user_by_email")) {
goto FVX;
}
$Xc = apply_filters("mo_oauth_check_user_by_email", $jF, $B7);
FVX:
$YM = $user ? $user->ID : 0;
if (!(isset($NY["autocreateusers"]) && 1 !== intval($NY["autocreateusers"]))) {
goto zdZ;
}
$blog_id = 1;
$tG = apply_filters("mo_oauth_client_disable_auto_create_users_for_specific_idp", $YM, $blog_id, $this->config, $NY);
$this->config = $tG[0];
$NY = $tG[1];
zdZ:
if (!(!(isset($this->config["auto_register"]) && 1 === intval($this->config["auto_register"])) && $Xc)) {
goto Wqj;
}
$this->check_status(array("msg" => "Registration is disabled for this site. Please contact your administrator", "code" => "REGISTRATION_DISABLED", "status" => false, "application" => $vR, "client_ip" => $Rg->get_client_ip(), "email" => $B7, "username" => $jF), $QI);
Wqj:
if (!$Xc) {
goto j0n;
}
$YB = 10;
$Cf = false;
$Px = false;
$gL = apply_filters("mo_oauth_password_policy_manager", $YB);
if (!is_array($gL)) {
goto b5j;
}
$YB = intval($gL["password_length"]);
$Cf = $gL["special_characters"];
$Px = $gL["extra_special_characters"];
b5j:
$Km = wp_generate_password($YB, $Cf, $Px);
$rS = get_user_by("email", $B7);
if (!$rS) {
goto knw;
}
add_filter("pre_user_email", array($this, "skip_email_exist"), 30);
knw:
$jF = apply_filters("mo_oauth_get_username_with_postfix_added", $jF, $B7);
$YM = wp_create_user($jF, $Km, $B7);
if (!is_wp_error($YM)) {
goto Zh3;
}
MO_Oauth_Debug::mo_oauth_log("Error creating WP user");
goto o6V;
Zh3:
MO_Oauth_Debug::mo_oauth_log("New user created =>");
MO_Oauth_Debug::mo_oauth_log("User ID => " . $YM);
o6V:
$yy = array("ID" => $YM, "user_email" => $B7, "user_login" => $jF, "user_nicename" => $jF);
do_action("user_register", $YM, $yy);
j0n:
if (!($Xc || (!isset($this->config["keep_existing_users"]) || 1 !== intval($this->config["keep_existing_users"])))) {
goto rWA;
}
if (!is_wp_error($YM)) {
goto Y81;
}
if (!get_user_by("login", $jF)) {
goto qTg;
}
$YM = get_user_by("login", $jF)->ID;
qTg:
Y81:
$BM = array("ID" => $YM, "first_name" => $ej, "last_name" => $xW, "display_name" => $Aj, "user_login" => $jF, "user_nicename" => $jF);
if (isset($this->config["keep_existing_email_attr"]) && 1 === intval($this->config["keep_existing_email_attr"])) {
goto WiB;
}
$BM["user_email"] = $B7;
wp_update_user($BM);
MO_Oauth_Debug::mo_oauth_log("Attribute Mapping Done");
goto OOg;
WiB:
wp_update_user($BM);
MO_Oauth_Debug::mo_oauth_log("Attribute Mapping Done");
OOg:
if (!isset($so["sub"])) {
goto hKZ;
}
update_user_meta($YM, "mo_backchannel_attr_sub", $so["sub"]);
hKZ:
if (!isset($so["sid"])) {
goto Ut3;
}
update_user_meta($YM, "mo_backchannel_attr_sid", $so["sid"]);
Ut3:
update_user_meta($YM, "mo_oauth_buddypress_attributes", $so);
MO_Oauth_Debug::mo_oauth_log("BuddyPress attributes updated successfully");
rWA:
$user = get_user_by("ID", $YM);
MO_Oauth_Debug::mo_oauth_log("User Found");
MO_Oauth_Debug::mo_oauth_log("User ID => " . $YM);
$Zt = $Rg->is_multisite_plan();
if (!is_multisite()) {
goto ivg;
}
MO_Oauth_Debug::mo_oauth_log("Multisite Plan");
$Yl = $Rg->mo_oauth_client_get_option("mo_oauth_c3Vic2l0ZXNzZWxlY3RlZA");
$Yh = array();
if (!isset($Yl)) {
goto jFy;
}
$Yh = json_decode($Rg->mooauthdecrypt($Yl), true);
jFy:
$I3 = false;
if (!(is_array($Yh) && in_array($blog_id, $Yh))) {
goto YiX;
}
$I3 = true;
YiX:
$Vl = intval($Rg->mo_oauth_client_get_option("noOfSubSites"));
$dI = get_sites(["number" => 1000]);
if (!(is_multisite() && $Zt && ($Zt && !$I3 && $Vl < 1000))) {
goto jAy;
}
$qh = "You have not upgraded to the correct license plan. Either you have purchased for incorrect no. of sites or you have created a new subsite. Contact to your administrator to upgrade your subsite.";
MO_Oauth_Debug::mo_oauth_log($qh);
$Rg->handle_error($qh);
wp_die($qh);
jAy:
ivg:
if ($user) {
goto Ym_;
}
return;
Ym_:
$JY = '';
if (isset($this->config["after_login_url"]) && '' !== $this->config["after_login_url"]) {
goto E99;
}
$Hb = $c8->get_value("redirect_uri");
$Iv = parse_url($Hb);
if (!(isset($Iv["path"]) && strpos($Iv["path"], "wp-login.php") !== false)) {
goto wL5;
}
$Hb = site_url();
wL5:
if (!isset($Iv["query"])) {
goto V2z;
}
parse_str($Iv["query"], $PZ);
if (!isset($PZ["redirect_to"])) {
goto lkr;
}
$Hb = $PZ["redirect_to"];
lkr:
V2z:
$JY = rawurldecode($Hb && '' !== $Hb ? $Hb : site_url());
if (!(strpos($JY, "mo_change_to_hash") !== false)) {
goto EaL;
}
$JY = str_replace("mo_change_to_hash", "#", $JY);
EaL:
if (!has_filter("mo_oauth_dis_update_actual_link")) {
goto C9a;
}
$JY = apply_filters("mo_oauth_dis_update_actual_link", $JY, $jF);
C9a:
goto TJy;
E99:
$JY = $this->config["after_login_url"];
TJy:
if (!($Rg->get_versi() === 1)) {
goto V8f;
}
if (isset($NY["enable_role_mapping"])) {
goto W0B;
}
$NY["enable_role_mapping"] = true;
if (!(isset($NY["client_creds_encrpyted"]) && boolval($NY["client_creds_encrpyted"]))) {
goto JWF;
}
$NY["client_id"] = $Rg->mooauthencrypt($NY["client_id"]);
$NY["client_secret"] = $Rg->mooauthencrypt($NY["client_secret"]);
JWF:
$Rg->set_app_by_name($CF["app_name"], $NY);
W0B:
if (!(!user_can($YM, "administrator") && $Xc || !isset($NY["keep_existing_user_roles"]) || 1 !== intval($NY["keep_existing_user_roles"]))) {
goto fTB;
}
$this->mo_oauth_client_map_default_role($YM, $NY);
MO_Oauth_Debug::mo_oauth_log("Role Mapping Done");
fTB:
V8f:
do_action("mo_oauth_client_map_roles", array("user_id" => $YM, "app_config" => $NY, "new_user" => $Xc, "resource_owner" => $so, "app_name" => $vR, "config" => $this->config));
MO_Oauth_Debug::mo_oauth_log("Role Mapping Done");
do_action("mo_oauth_logged_in_user_token", $user, $ik);
do_action("mo_oauth_add_dis_user_server", $YM, $ik, $so);
$this->check_status(array("msg" => "Login Successful!", "code" => "LOGIN_SUCCESS", "status" => true, "application" => $vR, "client_ip" => $Rg->get_client_ip(), "navigationurl" => $JY, "email" => $B7, "username" => $jF), $QI);
if (!$kL) {
goto AHW;
}
return $user;
AHW:
do_action("mo_oauth_set_login_cookie");
do_action("mo_oauth_get_user_attrs", $user, $so);
update_user_meta($user->ID, "mo_oauth_client_last_id_token", isset($ik["id_token"]) ? $ik["id_token"] : $ik["access_token"]);
wp_set_current_user($user->ID);
$uA = false;
$uA = apply_filters("mo_remember_me", $uA);
wp_set_auth_cookie($user->ID, $uA);
if (!isset($so["roles"])) {
goto v6V;
}
apply_filters("mo_oauth_update_bbp_role", $user->ID, $so["roles"]);
v6V:
if (!has_action("mo_hack_login_session_redirect")) {
goto NFP;
}
$g7 = $Rg->gen_rand_str();
$Sl = $Rg->gen_rand_str();
$gL = array("user_id" => $user->ID, "user_password" => $Sl);
set_transient($g7, $gL);
do_action("mo_hack_login_session_redirect", $user, $Sl, $g7, $JY);
NFP:
do_action("wp_login", $user->user_login, $user);
setcookie("mo_oauth_login_app_session", $vR, null, "/", null, true, true);
do_action("mo_oauth_get_token_for_headless", $user, $ik, $JY);
do_action("mo_oauth_get_current_appname", $vR);
$X6 = $c8->get_value("restrictredirect") !== false;
$Ck = $c8->get_value("popup") === "ignore";
if (isset($this->config["popup_login"]) && 1 === intval($this->config["popup_login"]) && !$Ck && !boolval($X6)) {
goto hdS;
}
do_action("mo_oauth_redirect_oauth_users", $user, $JY);
header("Location: " . $JY);
goto Jru;
hdS:
echo "<script>window.opener.HandlePopupResult("" . $JY . "");window.close();</script>";
Jru:
exit;
}
public function check_status($CF, $QI)
{
global $Rg;
if (isset($CF["status"])) {
goto Z_f;
}
MO_Oauth_Debug::mo_oauth_log("Something went wrong. Please try Logging in again.");
$Rg->handle_error("Something went wrong. Please try Logging in again.");
wp_die(wp_kses("Something went wrong. Please try Logging in again.", \mo_oauth_get_valid_html()));
Z_f:
if (!(isset($CF["status"]) && true === $CF["status"] && (isset($CF["code"]) && "LOGIN_SUCCESS" === $CF["code"]))) {
goto enh;
}
return true;
enh:
if (!(true !== $CF["status"])) {
goto HiA;
}
$NE = isset($CF["msg"]) && !empty($CF["msg"]) ? $CF["msg"] : "Something went wrong. Please try Logging in again.";
MO_Oauth_Debug::mo_oauth_log($NE);
$Rg->handle_error($NE);
wp_die(wp_kses($NE, \mo_oauth_get_valid_html()));
exit;
HiA:
}
public function skip_email_exist($Hl)
{
define("WP_IMPORTING", "SKIP_EMAIL_EXIST");
return $Hl;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MoOauthClient\Standard;
use MoOauthClient\LoginHandler as FreeLoginHandler;
use MoOauthClient\Config;
use MoOauthClient\StorageManager;
use MoOauthClient\MO_Oauth_Debug;
class LoginHandler extends FreeLoginHandler
{
public $config;
public function handle_group_test_conf($so = array(), $NY = array(), $sI = '', $DW = false, $CV = false)
{
global $Rg;
$this->render_test_config_output($so, false);
if (!(!isset($NY["\x67\162\x6f\165\160\x64\x65\164\x61\x69\x6c\163\165\162\x6c"]) || '' === $NY["\x67\162\x6f\x75\x70\144\145\164\141\151\154\163\x75\162\154"])) {
goto nmC;
}
return;
nmC:
$Ac = [];
$xi = $NY["\147\x72\x6f\x75\160\x64\145\x74\x61\151\x6c\x73\x75\162\x6c"];
if (!(strpos($xi, "\x61\160\151\x2e\x63\x6c\x65\166\145\x72\56\x63\x6f\155") != false && isset($so["\x64\141\164\141"]["\151\x64"]))) {
goto pQc;
}
$xi = str_replace("\x75\x73\x65\162\x69\x64", $so["\x64\141\164\141"]["\151\x64"], $xi);
pQc:
MO_Oauth_Debug::mo_oauth_log("\107\162\157\x75\x70\x20\x44\x65\164\141\151\154\163\40\x55\122\x4c\72\x20" . $xi);
if (!('' === $sI)) {
goto aJy;
}
if (has_filter("\x6d\x6f\x5f\157\141\165\164\150\137\143\146\141\x5f\147\162\157\x75\x70\137\x64\x65\x74\141\151\x6c\x73")) {
goto xmU;
}
MO_Oauth_Debug::mo_oauth_log("\x41\x63\x63\x65\x73\163\40\x54\x6f\153\x65\x6e\40\105\x6d\x70\164\x79");
return;
xmU:
aJy:
if (!('' !== $xi)) {
goto aFz;
}
if (has_filter("\x6d\157\x5f\157\141\x75\164\x68\x5f\143\x66\141\x5f\147\x72\x6f\x75\160\137\x64\145\164\x61\151\154\163")) {
goto uFB;
}
if (has_filter("\x6d\157\x5f\157\141\x75\x74\150\x5f\147\162\157\165\x70\x5f\x64\x65\x74\141\x69\x6c\x73")) {
goto dkv;
}
if (has_filter("\155\157\137\x6f\141\x75\x74\150\137\x72\x61\166\x65\156\137\147\x72\x6f\x75\160\x5f\144\145\164\x61\x69\x6c\163")) {
goto e52;
}
$Ac = $this->oauth_handler->get_resource_owner($xi, $sI);
goto aMP;
e52:
$Ac = apply_filters("\155\157\137\x6f\x61\x75\164\150\137\x72\141\x76\x65\x6e\x5f\x67\x72\x6f\x75\x70\137\x64\x65\x74\141\x69\154\163", $so["\x65\x6d\141\x69\154"], $xi, $sI, $NY, $DW);
aMP:
goto Qf_;
dkv:
$Ac = apply_filters("\x6d\157\x5f\157\141\x75\x74\150\x5f\x67\162\x6f\x75\160\137\x64\x65\164\141\x69\154\x73", $xi, $sI, $NY, $DW);
Qf_:
goto ZXA;
uFB:
MO_Oauth_Debug::mo_oauth_log("\106\145\x74\x63\150\151\156\147\40\103\106\101\40\x47\x72\157\x75\160\56\56");
$Ac = apply_filters("\155\157\137\x6f\x61\165\164\x68\137\x63\x66\141\137\147\x72\x6f\165\160\x5f\144\x65\x74\141\151\x6c\163", $so, $xi, $sI, $NY, $DW);
ZXA:
$n_ = $Rg->mo_oauth_client_get_option("\x6d\x6f\137\157\x61\165\x74\150\x5f\141\164\x74\x72\137\156\141\x6d\x65\137\x6c\151\x73\164" . $NY["\141\160\160\111\x64"]);
$Hh = [];
$vc = $this->dropdownattrmapping('', $Ac, $Hh);
$n_ = (array) $n_ + $vc;
$Rg->mo_oauth_client_update_option("\155\157\137\x6f\141\165\x74\x68\137\x61\164\x74\x72\137\x6e\141\155\x65\x5f\x6c\x69\x73\x74" . $NY["\141\160\x70\111\144"], $n_);
if (!($CV && '' !== $CV)) {
goto Ti0;
}
if (!(is_array($Ac) && !empty($Ac))) {
goto EUv;
}
$this->render_test_config_output($Ac, true);
EUv:
return;
Ti0:
aFz:
}
public function handle_group_user_info($so, $NY, $sI)
{
if (!(!isset($NY["\x67\162\157\x75\160\x64\145\x74\141\151\154\x73\165\162\x6c"]) || '' === $NY["\x67\x72\157\165\x70\x64\x65\164\141\151\154\x73\165\x72\x6c"])) {
goto Iuk;
}
return $so;
Iuk:
$xi = $NY["\x67\162\x6f\x75\x70\x64\145\164\x61\x69\154\x73\165\x72\154"];
if (!(strpos($xi, "\x61\x70\x69\x2e\x63\x6c\145\x76\145\x72\56\x63\x6f\x6d") != false && isset($so["\144\141\164\141"]["\x69\x64"]))) {
goto Bb7;
}
$xi = str_replace("\x75\163\x65\x72\151\144", $so["\144\141\x74\x61"]["\151\144"], $xi);
Bb7:
if (!('' === $sI)) {
goto Mn5;
}
return $so;
Mn5:
$Ac = array();
if (!('' !== $xi)) {
goto veO;
}
if (has_filter("\155\x6f\137\157\141\165\164\150\137\x63\x66\141\x5f\147\162\x6f\165\x70\137\144\145\164\x61\x69\x6c\163")) {
goto NNa;
}
if (has_filter("\x6d\x6f\x5f\157\141\x75\164\x68\x5f\x67\x72\157\165\160\137\x64\145\x74\x61\x69\x6c\163")) {
goto SmM;
}
if (has_filter("\155\157\137\157\141\x75\164\x68\x5f\x72\141\166\145\156\137\x67\162\157\x75\160\x5f\144\145\x74\141\151\154\x73")) {
goto xT2;
}
$Ac = $this->oauth_handler->get_resource_owner($xi, $sI);
goto wVn;
xT2:
$Ac = apply_filters("\x6d\157\137\x6f\x61\165\164\x68\137\162\141\x76\145\x6e\x5f\x67\x72\x6f\x75\x70\x5f\144\145\164\141\x69\154\x73", $so["\145\x6d\x61\151\x6c"], $xi, $sI, $NY, $DW);
wVn:
goto gO9;
SmM:
$Ac = apply_filters("\155\x6f\137\157\141\x75\x74\x68\x5f\147\x72\x6f\x75\x70\x5f\x64\x65\x74\141\151\154\163", $xi, $sI, $NY);
gO9:
goto C9G;
NNa:
MO_Oauth_Debug::mo_oauth_log("\x46\145\164\x63\x68\151\156\147\x20\x43\106\101\40\107\x72\x6f\x75\160\x2e\56");
$Ac = apply_filters("\x6d\x6f\137\x6f\x61\165\164\x68\137\143\146\x61\137\147\162\x6f\x75\x70\x5f\x64\x65\x74\141\x69\x6c\163", $so, $xi, $sI, $NY, $DW);
C9G:
veO:
MO_Oauth_Debug::mo_oauth_log("\x47\162\157\165\x70\40\104\x65\x74\141\151\x6c\163\x20\x3d\x3e\x20");
MO_Oauth_Debug::mo_oauth_log($Ac);
if (!(is_array($Ac) && count($Ac) > 0)) {
goto msd;
}
$so = array_merge($so, $Ac);
msd:
MO_Oauth_Debug::mo_oauth_log("\122\x65\x73\x6f\x75\162\143\145\x20\117\167\x6e\145\x72\40\101\146\164\x65\x72\40\155\145\162\147\151\156\147\x20\x77\x69\x74\150\40\x47\162\157\x75\x70\x20\144\x65\164\151\x61\x6c\x73\x20\75\x3e\40");
MO_Oauth_Debug::mo_oauth_log($so);
return $so;
}
public function mo_oauth_client_map_default_role($YM, $NY)
{
$lW = new \WP_User($YM);
if (!(isset($NY["\x65\156\x61\x62\154\x65\137\x72\157\154\x65\x5f\x6d\x61\x70\160\x69\x6e\147"]) && !boolval($NY["\145\x6e\141\142\154\145\137\162\x6f\x6c\x65\137\x6d\141\160\x70\x69\x6e\x67"]))) {
goto oq3;
}
$lW->set_role('');
return;
oq3:
if (!(isset($NY["\x5f\x6d\x61\x70\160\x69\156\x67\137\x76\x61\x6c\165\x65\137\144\145\146\141\165\x6c\164"]) && '' !== $NY["\137\x6d\141\160\160\151\156\x67\137\166\x61\x6c\x75\x65\x5f\144\x65\146\141\x75\154\x74"])) {
goto yHM;
}
$Gx = explode("\x2c", $NY["\137\x6d\141\160\x70\x69\x6e\x67\x5f\x76\141\x6c\165\145\137\144\x65\146\x61\x75\154\x74"]);
$Wm = 0;
foreach ($Gx as $XF) {
if (!(0 === $Wm)) {
goto ssV;
}
$lW->set_role('');
ssV:
$XF = trim($XF);
$lW->add_role($XF);
$Wm++;
sF1:
}
uvR:
yHM:
}
public function handle_sso($vR, $NY, $so, $OC, $ik, $kL = false)
{
global $Rg;
$c8 = new StorageManager($OC);
do_action("\155\157\137\157\x61\x75\x74\x68\x5f\x6c\151\156\x6b\x5f\x64\x69\163\143\157\x72\x64\x5f\x61\x63\143\x6f\x75\x6e\x74", $c8, $so);
$ut = isset($NY["\165\163\x65\162\x6e\141\155\x65\x5f\x61\164\x74\162"]) ? $NY["\165\x73\x65\162\x6e\141\155\x65\x5f\x61\164\164\x72"] : '';
$j2 = isset($NY["\x65\x6d\141\x69\154\x5f\x61\x74\x74\162"]) ? $NY["\x65\155\141\151\154\137\141\x74\x74\x72"] : '';
$rR = isset($NY["\146\x69\162\163\x74\156\x61\155\145\137\x61\164\x74\162"]) ? $NY["\146\x69\162\x73\x74\156\141\155\145\x5f\141\x74\x74\x72"] : '';
$sq = isset($NY["\x6c\x61\x73\164\156\x61\x6d\x65\x5f\x61\164\164\162"]) ? $NY["\154\x61\x73\x74\156\x61\x6d\145\137\141\x74\x74\162"] : '';
$dO = isset($NY["\x64\151\163\x70\154\141\x79\x5f\141\x74\x74\162"]) ? $NY["\x64\x69\163\x70\154\x61\x79\137\x61\x74\x74\x72"] : '';
$jF = $Rg->getnestedattribute($so, $ut);
$B7 = $Rg->getnestedattribute($so, $j2);
$ej = $Rg->getnestedattribute($so, $rR);
$xW = $Rg->getnestedattribute($so, $sq);
$Aj = $jF;
$this->config = $Rg->mo_oauth_client_get_option("\x6d\x6f\137\157\141\165\164\150\x5f\143\154\x69\145\x6e\164\137\x63\x6f\156\x66\151\147");
$this->config = !$this->config || empty($this->config) ? array() : $this->config->get_current_config();
$QI = isset($this->config["\x61\x63\x74\151\x76\x61\164\x65\137\165\163\145\162\x5f\141\156\141\154\171\x74\151\x63\x73"]) ? $this->config["\x61\143\x74\151\x76\141\164\145\137\x75\x73\x65\x72\137\x61\x6e\x61\154\171\x74\x69\x63\x73"] : 0;
$current_user = wp_get_current_user();
if (!($current_user->ID !== 0)) {
goto luK;
}
do_action("\x6d\157\137\x6f\x61\x75\164\150\137\x64\x69\163\143\157\x72\x64\x5f\x66\154\157\x77\x5f\x68\141\156\x64\154\x65", $current_user, $ik, $so);
do_action("\155\x6f\x5f\157\x61\165\x74\150\x5f\154\157\147\x67\x65\144\137\x69\156\137\165\x73\145\x72\137\164\141\147\x5f\165\160\144\x61\x74\145", $current_user, $ik, $so);
$qV = get_option("\x6d\157\x5f\144\162\x6d\x5f\163\171\156\x63\x5f\162\x65\x64\x69\162\x65\143\x74");
if (!(isset($qV) && $qV)) {
goto Wer;
}
wp_redirect($qV);
exit;
Wer:
luK:
if (empty($dO)) {
goto y9w;
}
switch ($dO) {
case "\106\116\101\115\x45":
$Aj = $ej;
goto RD6;
case "\114\x4e\101\115\105":
$Aj = $xW;
goto RD6;
case "\x55\x53\x45\x52\116\x41\x4d\x45":
$Aj = $jF;
goto RD6;
case "\106\x4e\101\115\x45\x5f\114\x4e\x41\x4d\x45":
$Aj = $ej . "\40" . $xW;
goto RD6;
case "\114\x4e\101\115\x45\137\x46\x4e\x41\x4d\105":
$Aj = $xW . "\40" . $ej;
default:
goto RD6;
}
YiH:
RD6:
y9w:
if (!empty($jF)) {
goto byO;
}
MO_Oauth_Debug::mo_oauth_log("\125\163\x65\x72\x6e\141\x6d\145\x20\72\x20" . $jF);
$this->check_status(array("\155\163\147" => "\x55\x73\x65\x72\156\141\x6d\145\x20\x6e\157\x74\40\x72\145\143\145\151\166\145\144\56\x20\103\150\x65\x63\153\x20\x79\157\x75\162\40\74\163\164\x72\157\x6e\147\x3e\101\164\x74\x72\x69\x62\165\164\x65\40\115\141\x70\160\x69\156\x67\74\x2f\163\x74\x72\157\156\x67\x3e\x20\143\157\x6e\x66\x69\147\x75\162\x61\164\x69\x6f\x6e\x2e", "\143\x6f\144\145" => "\125\116\x41\x4d\x45", "\x73\164\x61\x74\x75\x73" => false, "\x61\x70\160\154\151\x63\141\164\x69\157\156" => $vR, "\x65\155\141\151\x6c" => '', "\165\163\145\162\x6e\141\x6d\145" => ''), $QI);
byO:
if (!(!empty($B7) && false === strpos($B7, "\x40"))) {
goto vKq;
}
$this->check_status(array("\x6d\163\x67" => "\115\141\160\160\145\144\x20\105\155\x61\151\154\40\x61\x74\x74\162\x69\x62\x75\x74\x65\40\144\157\x65\x73\40\x6e\x6f\x74\x20\x63\157\x6e\x74\x61\151\x6e\40\166\x61\x6c\x69\144\x20\x65\155\x61\151\154\56", "\143\157\144\x65" => "\105\x4d\x41\x49\x4c", "\163\x74\141\164\165\163" => false, "\x61\160\x70\154\x69\143\x61\164\x69\x6f\156" => $vR, "\143\154\x69\145\156\x74\x5f\151\x70" => $Rg->get_client_ip(), "\145\155\x61\151\154" => $B7, "\165\163\x65\162\x6e\141\x6d\x65" => $jF), $QI);
vKq:
if (!is_multisite()) {
goto kfY;
}
$blog_id = $c8->get_value("\x62\x6c\157\147\x5f\x69\x64");
switch_to_blog($blog_id);
do_action("\x6d\157\x5f\x6f\x61\x75\x74\150\x5f\143\x6c\151\x65\x6e\164\137\143\x6f\x6e\143\157\162\144\x5f\x72\x65\x73\x74\x72\151\x63\164\137\154\x6f\147\151\x6e", $NY, $so, $blog_id);
kfY:
if (!has_action("\155\x6f\x5f\x6f\x61\165\164\150\137\x63\x6c\151\145\156\x74\x5f\x73\x61\x76\145\x5f\x75\x73\x65\162\137\x69\x6e\x5f\163\x65\163\x73\151\x6f\x6e")) {
goto GEA;
}
do_action("\155\157\137\157\x61\165\x74\x68\137\x63\154\151\145\156\164\137\163\141\x76\145\137\x75\x73\x65\162\x5f\x69\156\x5f\x73\x65\163\x73\151\157\x6e", array("\141\x70\160\137\x63\x6f\x6e\146\x69\x67" => $NY, "\163\x74\x6f\162\x61\147\145\x5f\x6d\x61\156\141\x67\x65\x72" => $c8, "\x72\x65\163\157\165\162\143\x65\137\157\167\156\145\x72" => $so, "\x75\163\x65\x72\156\141\155\145" => $jF));
GEA:
do_action("\155\157\137\157\x61\x75\x74\x68\137\162\x65\163\x74\162\x69\143\164\137\145\x6d\x61\151\x6c\163", $B7, $this->config);
if (!has_filter("\x6d\x6f\x5f\157\x61\165\164\150\x5f\x6d\x6f\144\x69\146\171\137\x75\x73\145\x72\156\141\x6d\145\137\141\x74\x74\162")) {
goto JDH;
}
$jF = apply_filters("\x6d\157\137\157\141\x75\x74\x68\x5f\155\157\x64\151\x66\x79\137\x75\163\x65\x72\156\141\155\145\137\141\x74\164\162", $so);
JDH:
if (!has_filter("\x6d\x6f\x5f\157\x61\x75\164\x68\137\143\150\x65\143\x6b\137\165\163\145\x72\x5f\x61\x75\164\150\157\x72\x69\163\145\144")) {
goto N7n;
}
$jF = apply_filters("\155\157\x5f\x6f\x61\165\x74\150\137\143\150\x65\x63\x6b\x5f\x75\x73\x65\162\137\x61\x75\x74\x68\x6f\162\151\x73\145\x64", $so, $jF);
N7n:
$user = get_user_by("\x6c\x6f\x67\x69\156", $jF);
$TB = isset($NY["\141\x6c\154\x6f\x77\137\144\165\x70\x6c\151\143\x61\164\145\137\x65\155\x61\x69\x6c\163"]) ? true : false;
if ($user) {
goto dgr;
}
if (!(!$TB || $TB && !$NY["\x61\154\x6c\x6f\167\137\144\165\160\154\x69\x63\x61\164\145\x5f\x65\x6d\141\x69\x6c\163"])) {
goto kQy;
}
$user = get_user_by("\x65\x6d\x61\x69\x6c", $B7);
kQy:
dgr:
$YM = $user ? $user->ID : 0;
$Xc = 0 === $YM;
if (!has_filter("\x6d\157\x5f\x6f\141\165\x74\x68\137\147\x65\164\137\x75\x73\145\x72\x5f\142\171\x5f\x65\155\141\151\154")) {
goto RTT;
}
$user = apply_filters("\x6d\x6f\x5f\157\x61\x75\x74\x68\137\147\x65\x74\x5f\165\163\145\162\137\x62\171\x5f\x65\155\141\151\154", $jF, $B7);
RTT:
if (!has_filter("\155\x6f\137\x6f\141\165\x74\x68\x5f\x63\150\x65\143\153\137\x75\163\145\162\x5f\x62\171\x5f\145\x6d\x61\151\x6c")) {
goto FVX;
}
$Xc = apply_filters("\155\x6f\x5f\x6f\x61\165\x74\150\x5f\x63\x68\x65\x63\153\137\x75\x73\x65\x72\x5f\x62\171\137\145\x6d\141\x69\x6c", $jF, $B7);
FVX:
$YM = $user ? $user->ID : 0;
if (!(isset($NY["\141\x75\x74\x6f\143\162\x65\x61\x74\x65\x75\163\145\162\163"]) && 1 !== intval($NY["\141\165\x74\157\x63\x72\x65\141\x74\145\165\163\145\162\163"]))) {
goto zdZ;
}
$blog_id = 1;
$tG = apply_filters("\x6d\157\137\x6f\x61\x75\164\x68\x5f\143\154\151\145\156\164\x5f\x64\151\x73\141\142\154\145\137\141\x75\164\x6f\137\x63\162\x65\x61\x74\145\x5f\165\163\145\162\163\x5f\x66\x6f\162\137\163\x70\145\x63\151\146\151\143\137\151\x64\160", $YM, $blog_id, $this->config, $NY);
$this->config = $tG[0];
$NY = $tG[1];
zdZ:
if (!(!(isset($this->config["\x61\x75\x74\157\x5f\x72\145\147\x69\x73\x74\145\162"]) && 1 === intval($this->config["\141\165\x74\x6f\x5f\162\145\x67\151\x73\164\x65\x72"])) && $Xc)) {
goto Wqj;
}
$this->check_status(array("\155\x73\x67" => "\x52\145\x67\x69\x73\164\x72\141\x74\151\x6f\156\40\x69\163\40\x64\x69\x73\x61\x62\154\145\x64\x20\146\x6f\162\x20\164\x68\151\163\40\x73\x69\x74\x65\x2e\x20\x50\154\x65\x61\163\x65\x20\143\157\156\164\x61\x63\x74\40\171\157\x75\162\x20\141\x64\155\x69\156\151\163\x74\x72\x61\164\x6f\162", "\x63\x6f\x64\x65" => "\x52\105\107\111\123\x54\x52\x41\x54\111\117\116\137\104\111\x53\101\x42\114\105\x44", "\x73\164\x61\164\x75\x73" => false, "\141\x70\x70\x6c\x69\143\141\x74\151\157\x6e" => $vR, "\x63\x6c\x69\x65\x6e\x74\x5f\151\160" => $Rg->get_client_ip(), "\x65\155\141\x69\x6c" => $B7, "\x75\163\145\162\x6e\x61\155\x65" => $jF), $QI);
Wqj:
if (!$Xc) {
goto j0n;
}
$YB = 10;
$Cf = false;
$Px = false;
$gL = apply_filters("\x6d\157\137\x6f\x61\165\x74\150\x5f\x70\141\x73\x73\x77\x6f\162\144\x5f\x70\157\x6c\151\143\x79\137\155\141\156\x61\x67\145\162", $YB);
if (!is_array($gL)) {
goto b5j;
}
$YB = intval($gL["\x70\141\x73\163\x77\157\162\144\137\x6c\145\x6e\147\x74\x68"]);
$Cf = $gL["\163\160\145\143\x69\x61\154\x5f\143\150\141\162\141\143\164\145\x72\163"];
$Px = $gL["\145\x78\164\162\141\137\163\x70\145\143\x69\141\x6c\137\x63\150\141\x72\141\143\x74\145\162\x73"];
b5j:
$Km = wp_generate_password($YB, $Cf, $Px);
$rS = get_user_by("\145\x6d\x61\x69\154", $B7);
if (!$rS) {
goto knw;
}
add_filter("\x70\x72\x65\x5f\x75\163\x65\x72\137\x65\x6d\141\151\154", array($this, "\163\153\151\160\137\145\x6d\x61\151\x6c\137\x65\170\151\x73\164"), 30);
knw:
$jF = apply_filters("\155\157\x5f\157\x61\x75\164\150\x5f\x67\145\164\137\x75\163\145\x72\x6e\141\155\145\137\x77\151\x74\x68\137\x70\157\x73\164\x66\x69\170\137\x61\x64\x64\x65\x64", $jF, $B7);
$YM = wp_create_user($jF, $Km, $B7);
if (!is_wp_error($YM)) {
goto Zh3;
}
MO_Oauth_Debug::mo_oauth_log("\x45\162\162\157\x72\x20\143\x72\145\141\x74\151\156\x67\40\x57\120\x20\x75\x73\x65\x72");
goto o6V;
Zh3:
MO_Oauth_Debug::mo_oauth_log("\x4e\x65\x77\40\165\x73\x65\162\40\143\x72\145\x61\164\145\x64\40\75\76");
MO_Oauth_Debug::mo_oauth_log("\x55\163\x65\x72\x20\x49\104\40\75\76\40" . $YM);
o6V:
$yy = array("\x49\x44" => $YM, "\165\x73\x65\162\x5f\x65\155\141\x69\x6c" => $B7, "\x75\163\145\x72\x5f\x6c\x6f\147\151\x6e" => $jF, "\165\163\145\x72\x5f\x6e\151\x63\x65\x6e\x61\155\145" => $jF);
do_action("\x75\163\145\x72\137\x72\145\147\x69\163\x74\145\x72", $YM, $yy);
j0n:
if (!($Xc || (!isset($this->config["\153\x65\145\x70\137\145\170\x69\163\164\151\x6e\x67\x5f\165\163\x65\162\x73"]) || 1 !== intval($this->config["\x6b\145\145\x70\137\145\170\151\163\164\x69\x6e\147\137\165\163\145\x72\x73"])))) {
goto rWA;
}
if (!is_wp_error($YM)) {
goto Y81;
}
if (!get_user_by("\154\x6f\x67\x69\156", $jF)) {
goto qTg;
}
$YM = get_user_by("\x6c\157\147\x69\x6e", $jF)->ID;
qTg:
Y81:
$BM = array("\x49\x44" => $YM, "\x66\151\x72\x73\164\x5f\x6e\141\x6d\x65" => $ej, "\x6c\x61\163\164\x5f\156\141\x6d\145" => $xW, "\144\151\x73\x70\x6c\x61\x79\137\x6e\x61\155\x65" => $Aj, "\165\163\145\x72\x5f\154\157\147\x69\x6e" => $jF, "\x75\x73\145\162\x5f\x6e\151\x63\x65\x6e\x61\155\145" => $jF);
if (isset($this->config["\153\x65\145\160\137\x65\170\151\163\x74\151\x6e\x67\137\x65\155\141\151\154\x5f\141\x74\x74\162"]) && 1 === intval($this->config["\153\x65\x65\x70\137\x65\x78\x69\163\x74\x69\x6e\x67\137\x65\155\141\151\x6c\137\x61\x74\x74\162"])) {
goto WiB;
}
$BM["\165\163\145\162\x5f\x65\x6d\x61\x69\154"] = $B7;
wp_update_user($BM);
MO_Oauth_Debug::mo_oauth_log("\101\x74\164\162\x69\142\x75\x74\x65\40\x4d\141\x70\x70\151\156\x67\x20\104\157\156\145");
goto OOg;
WiB:
wp_update_user($BM);
MO_Oauth_Debug::mo_oauth_log("\101\x74\x74\162\x69\x62\x75\x74\x65\40\115\141\x70\160\151\156\x67\40\x44\x6f\x6e\x65");
OOg:
if (!isset($so["\163\165\x62"])) {
goto hKZ;
}
update_user_meta($YM, "\x6d\x6f\137\142\141\143\x6b\143\x68\x61\x6e\156\x65\x6c\137\141\x74\164\162\x5f\163\165\142", $so["\163\165\x62"]);
hKZ:
if (!isset($so["\163\x69\x64"])) {
goto Ut3;
}
update_user_meta($YM, "\x6d\157\x5f\x62\141\143\153\x63\150\141\156\x6e\145\x6c\x5f\x61\x74\x74\x72\137\x73\151\144", $so["\x73\x69\144"]);
Ut3:
update_user_meta($YM, "\155\157\x5f\x6f\x61\165\164\150\137\x62\x75\144\144\171\160\162\145\163\x73\x5f\x61\x74\164\x72\x69\142\165\x74\x65\163", $so);
MO_Oauth_Debug::mo_oauth_log("\102\165\x64\x64\171\120\162\x65\x73\163\x20\x61\164\x74\162\151\142\165\x74\x65\163\40\165\160\144\141\164\x65\144\40\163\165\x63\143\x65\163\x73\146\x75\154\x6c\x79");
rWA:
$user = get_user_by("\111\104", $YM);
MO_Oauth_Debug::mo_oauth_log("\x55\x73\145\162\40\106\x6f\165\x6e\x64");
MO_Oauth_Debug::mo_oauth_log("\125\163\145\x72\x20\111\104\x20\x3d\x3e\40" . $YM);
$Zt = $Rg->is_multisite_plan();
if (!is_multisite()) {
goto ivg;
}
MO_Oauth_Debug::mo_oauth_log("\115\165\x6c\x74\151\163\151\x74\x65\40\x50\154\x61\156");
$Yl = $Rg->mo_oauth_client_get_option("\155\x6f\137\157\141\x75\x74\x68\x5f\x63\x33\126\x69\x63\x32\x6c\60\132\130\116\172\x5a\127\170\x6c\x59\x33\122\x6c\x5a\x41");
$Yh = array();
if (!isset($Yl)) {
goto jFy;
}
$Yh = json_decode($Rg->mooauthdecrypt($Yl), true);
jFy:
$I3 = false;
if (!(is_array($Yh) && in_array($blog_id, $Yh))) {
goto YiX;
}
$I3 = true;
YiX:
$Vl = intval($Rg->mo_oauth_client_get_option("\156\157\x4f\146\x53\165\x62\x53\x69\164\x65\x73"));
$dI = get_sites(["\156\165\x6d\142\x65\x72" => 1000]);
if (!(is_multisite() && $Zt && ($Zt && !$I3 && $Vl < 1000))) {
goto jAy;
}
$qh = "\x59\157\x75\40\150\141\x76\x65\40\156\x6f\164\x20\x75\x70\147\162\x61\144\145\144\x20\x74\x6f\40\164\x68\145\x20\x63\x6f\162\x72\145\143\x74\x20\x6c\x69\x63\145\x6e\163\145\40\x70\154\141\x6e\x2e\x20\105\151\164\x68\x65\x72\x20\x79\x6f\x75\x20\x68\x61\166\x65\x20\160\165\162\143\150\x61\163\145\144\40\146\x6f\162\x20\151\156\x63\x6f\x72\162\145\x63\164\x20\156\x6f\x2e\40\x6f\x66\x20\x73\151\x74\x65\163\40\157\x72\40\171\157\x75\x20\x68\x61\x76\145\x20\143\162\145\x61\164\145\x64\40\141\x20\x6e\x65\x77\x20\163\x75\x62\163\x69\x74\145\x2e\x20\x43\157\x6e\x74\141\x63\x74\40\x74\x6f\40\171\x6f\x75\162\x20\x61\x64\155\151\x6e\151\163\x74\162\141\x74\x6f\162\40\164\157\x20\165\160\147\x72\x61\x64\145\40\x79\157\165\x72\40\x73\x75\142\163\x69\164\145\56";
MO_Oauth_Debug::mo_oauth_log($qh);
$Rg->handle_error($qh);
wp_die($qh);
jAy:
ivg:
if ($user) {
goto Ym_;
}
return;
Ym_:
$JY = '';
if (isset($this->config["\x61\x66\164\x65\x72\137\154\x6f\x67\151\156\137\x75\x72\x6c"]) && '' !== $this->config["\x61\146\x74\x65\162\137\154\157\x67\x69\x6e\137\165\162\154"]) {
goto E99;
}
$Hb = $c8->get_value("\x72\145\x64\x69\x72\145\x63\164\x5f\x75\x72\151");
$Iv = parse_url($Hb);
if (!(isset($Iv["\x70\141\164\x68"]) && strpos($Iv["\160\141\164\150"], "\167\160\x2d\154\x6f\x67\x69\156\56\160\150\160") !== false)) {
goto wL5;
}
$Hb = site_url();
wL5:
if (!isset($Iv["\161\165\x65\162\171"])) {
goto V2z;
}
parse_str($Iv["\x71\165\145\162\x79"], $PZ);
if (!isset($PZ["\162\145\x64\151\x72\145\x63\164\x5f\164\x6f"])) {
goto lkr;
}
$Hb = $PZ["\162\x65\x64\x69\162\x65\x63\x74\137\x74\157"];
lkr:
V2z:
$JY = rawurldecode($Hb && '' !== $Hb ? $Hb : site_url());
if (!(strpos($JY, "\x6d\x6f\137\x63\x68\141\x6e\x67\145\137\x74\157\137\150\141\x73\150") !== false)) {
goto EaL;
}
$JY = str_replace("\155\157\137\x63\x68\141\156\x67\x65\137\x74\157\137\x68\x61\x73\150", "\43", $JY);
EaL:
if (!has_filter("\155\157\137\x6f\141\x75\164\x68\137\144\x69\163\137\x75\x70\x64\x61\x74\145\137\x61\143\164\165\x61\154\x5f\x6c\151\156\153")) {
goto C9a;
}
$JY = apply_filters("\155\157\137\157\x61\x75\164\150\137\x64\x69\x73\137\x75\160\x64\141\164\x65\x5f\x61\x63\x74\165\x61\154\x5f\x6c\151\x6e\x6b", $JY, $jF);
C9a:
goto TJy;
E99:
$JY = $this->config["\x61\x66\x74\145\x72\137\x6c\x6f\x67\x69\156\x5f\165\x72\x6c"];
TJy:
if (!($Rg->get_versi() === 1)) {
goto V8f;
}
if (isset($NY["\145\x6e\141\x62\x6c\x65\137\x72\157\x6c\145\137\155\141\x70\x70\x69\x6e\x67"])) {
goto W0B;
}
$NY["\145\156\141\x62\154\145\137\x72\157\x6c\x65\137\x6d\141\x70\160\151\x6e\147"] = true;
if (!(isset($NY["\x63\x6c\151\x65\x6e\x74\137\143\162\x65\144\x73\x5f\145\x6e\143\162\160\171\164\x65\x64"]) && boolval($NY["\x63\154\x69\145\156\164\137\x63\x72\145\x64\163\137\x65\156\x63\x72\x70\x79\164\145\144"]))) {
goto JWF;
}
$NY["\x63\x6c\x69\x65\x6e\x74\x5f\x69\x64"] = $Rg->mooauthencrypt($NY["\143\x6c\x69\145\x6e\164\137\x69\x64"]);
$NY["\x63\x6c\x69\145\156\x74\x5f\x73\x65\143\162\x65\x74"] = $Rg->mooauthencrypt($NY["\x63\154\x69\x65\156\164\137\163\145\143\162\145\x74"]);
JWF:
$Rg->set_app_by_name($CF["\141\160\x70\137\x6e\141\155\145"], $NY);
W0B:
if (!(!user_can($YM, "\141\x64\x6d\151\x6e\151\x73\164\162\x61\x74\x6f\162") && $Xc || !isset($NY["\153\145\145\x70\137\x65\x78\151\163\x74\151\x6e\x67\x5f\165\163\145\162\137\162\157\x6c\x65\x73"]) || 1 !== intval($NY["\153\x65\145\160\137\145\170\151\163\164\x69\156\x67\137\165\163\x65\x72\x5f\x72\x6f\x6c\x65\x73"]))) {
goto fTB;
}
$this->mo_oauth_client_map_default_role($YM, $NY);
MO_Oauth_Debug::mo_oauth_log("\122\157\x6c\145\x20\115\141\x70\160\151\x6e\x67\40\x44\157\x6e\x65");
fTB:
V8f:
do_action("\155\157\x5f\157\141\165\164\150\x5f\143\x6c\x69\x65\x6e\164\137\155\141\x70\137\x72\x6f\x6c\145\163", array("\x75\x73\x65\x72\x5f\x69\144" => $YM, "\141\x70\160\x5f\143\x6f\x6e\146\x69\x67" => $NY, "\x6e\145\x77\x5f\x75\x73\145\162" => $Xc, "\x72\145\163\157\x75\x72\143\x65\x5f\x6f\167\x6e\145\x72" => $so, "\141\160\160\x5f\156\x61\x6d\145" => $vR, "\x63\157\156\x66\x69\147" => $this->config));
MO_Oauth_Debug::mo_oauth_log("\x52\x6f\x6c\x65\x20\x4d\141\x70\x70\151\156\x67\x20\x44\157\156\x65");
do_action("\x6d\x6f\137\157\x61\x75\164\150\x5f\154\157\147\x67\x65\x64\x5f\151\156\x5f\165\163\x65\162\137\x74\157\x6b\145\x6e", $user, $ik);
do_action("\155\157\137\157\x61\165\164\x68\x5f\x61\144\144\x5f\144\151\163\x5f\165\163\145\162\x5f\163\x65\162\x76\145\162", $YM, $ik, $so);
$this->check_status(array("\x6d\163\147" => "\114\x6f\147\x69\156\40\123\165\x63\143\145\163\x73\x66\165\154\41", "\x63\157\144\x65" => "\x4c\117\x47\x49\116\137\123\125\x43\x43\x45\123\x53", "\x73\x74\x61\x74\165\x73" => true, "\141\160\160\x6c\151\143\141\x74\151\x6f\156" => $vR, "\x63\x6c\151\145\x6e\164\x5f\x69\x70" => $Rg->get_client_ip(), "\x6e\x61\x76\151\147\x61\164\151\x6f\x6e\165\x72\154" => $JY, "\145\155\x61\151\154" => $B7, "\165\163\x65\162\156\x61\155\145" => $jF), $QI);
if (!$kL) {
goto AHW;
}
return $user;
AHW:
do_action("\155\x6f\137\157\141\x75\x74\150\x5f\163\x65\164\x5f\154\x6f\x67\151\x6e\137\143\157\x6f\153\x69\x65");
do_action("\155\157\137\157\141\x75\164\x68\137\147\x65\164\137\x75\x73\145\162\x5f\141\164\x74\162\x73", $user, $so);
update_user_meta($user->ID, "\x6d\157\x5f\x6f\141\165\164\x68\x5f\143\154\151\x65\156\164\137\154\x61\x73\x74\x5f\151\x64\137\164\157\153\x65\x6e", isset($ik["\151\144\x5f\164\157\x6b\145\156"]) ? $ik["\x69\144\x5f\164\157\153\x65\x6e"] : $ik["\141\x63\143\145\x73\163\x5f\164\157\153\x65\x6e"]);
wp_set_current_user($user->ID);
$uA = false;
$uA = apply_filters("\x6d\x6f\137\162\x65\155\x65\x6d\x62\x65\x72\x5f\155\145", $uA);
wp_set_auth_cookie($user->ID, $uA);
if (!isset($so["\162\157\154\x65\163"])) {
goto v6V;
}
apply_filters("\x6d\157\x5f\157\x61\x75\x74\150\137\x75\160\144\x61\164\145\137\x62\x62\x70\137\x72\x6f\x6c\145", $user->ID, $so["\162\x6f\x6c\x65\163"]);
v6V:
if (!has_action("\x6d\157\x5f\x68\x61\x63\153\x5f\x6c\157\x67\151\x6e\137\x73\145\163\163\x69\157\156\x5f\x72\145\144\151\162\x65\x63\x74")) {
goto NFP;
}
$g7 = $Rg->gen_rand_str();
$Sl = $Rg->gen_rand_str();
$gL = array("\x75\163\145\162\x5f\151\144" => $user->ID, "\x75\x73\x65\162\137\x70\141\163\163\x77\157\162\x64" => $Sl);
set_transient($g7, $gL);
do_action("\x6d\157\x5f\150\141\x63\153\x5f\154\x6f\147\151\x6e\x5f\x73\x65\x73\163\x69\x6f\156\137\x72\145\x64\151\x72\145\143\x74", $user, $Sl, $g7, $JY);
NFP:
do_action("\x77\x70\x5f\x6c\157\x67\x69\x6e", $user->user_login, $user);
setcookie("\155\157\x5f\x6f\x61\165\164\150\x5f\154\157\147\151\x6e\x5f\141\160\x70\137\163\x65\163\163\151\x6f\156", $vR, null, "\57", null, true, true);
do_action("\155\157\x5f\157\141\165\x74\x68\137\x67\145\x74\x5f\164\157\153\145\x6e\137\146\x6f\x72\137\x68\145\x61\x64\154\145\163\x73", $user, $ik, $JY);
do_action("\155\x6f\x5f\x6f\x61\x75\x74\150\x5f\147\145\164\137\x63\165\x72\x72\x65\x6e\x74\x5f\x61\x70\x70\x6e\x61\155\145", $vR);
$X6 = $c8->get_value("\162\x65\163\164\162\x69\143\164\x72\145\x64\x69\162\x65\143\x74") !== false;
$Ck = $c8->get_value("\160\x6f\x70\x75\x70") === "\151\147\156\157\x72\x65";
if (isset($this->config["\x70\x6f\x70\165\160\x5f\154\x6f\147\151\x6e"]) && 1 === intval($this->config["\x70\157\x70\x75\160\x5f\x6c\x6f\x67\151\x6e"]) && !$Ck && !boolval($X6)) {
goto hdS;
}
do_action("\155\157\x5f\157\x61\165\164\150\x5f\162\x65\x64\151\162\145\x63\164\x5f\157\x61\165\x74\150\137\165\163\x65\x72\163", $user, $JY);
header("\x4c\157\x63\141\164\151\x6f\156\72\x20" . $JY);
goto Jru;
hdS:
echo "\x3c\163\x63\162\151\160\x74\x3e\167\x69\x6e\144\157\167\x2e\157\x70\x65\x6e\x65\x72\56\x48\x61\x6e\144\154\145\120\x6f\160\165\160\x52\145\x73\x75\x6c\164\x28\42" . $JY . "\x22\x29\x3b\167\151\x6e\144\x6f\x77\56\x63\x6c\157\x73\x65\50\x29\x3b\74\57\x73\143\162\151\160\x74\76";
Jru:
exit;
}
public function check_status($CF, $QI)
{
global $Rg;
if (isset($CF["\163\x74\141\x74\x75\163"])) {
goto Z_f;
}
MO_Oauth_Debug::mo_oauth_log("\123\x6f\x6d\145\164\150\151\156\x67\40\x77\x65\x6e\x74\40\x77\x72\157\156\147\x2e\40\120\154\145\x61\163\x65\40\164\x72\x79\40\x4c\x6f\x67\x67\x69\x6e\147\40\151\156\40\x61\147\x61\x69\156\x2e");
$Rg->handle_error("\x53\157\155\x65\x74\x68\x69\156\x67\x20\167\x65\x6e\164\40\x77\x72\x6f\156\x67\x2e\40\120\154\145\141\163\145\x20\x74\162\171\40\x4c\x6f\x67\x67\x69\x6e\x67\x20\x69\156\40\141\147\141\151\x6e\56");
wp_die(wp_kses("\123\157\x6d\145\x74\x68\151\156\147\x20\167\145\x6e\164\40\x77\x72\x6f\x6e\x67\x2e\40\120\x6c\x65\141\163\x65\x20\164\x72\171\40\114\157\147\147\151\x6e\x67\40\x69\x6e\40\x61\x67\141\x69\x6e\x2e", \mo_oauth_get_valid_html()));
Z_f:
if (!(isset($CF["\x73\x74\x61\164\x75\163"]) && true === $CF["\163\164\141\x74\x75\163"] && (isset($CF["\143\157\x64\145"]) && "\x4c\x4f\x47\111\116\x5f\x53\x55\103\103\x45\x53\123" === $CF["\143\x6f\144\x65"]))) {
goto enh;
}
return true;
enh:
if (!(true !== $CF["\x73\164\141\x74\x75\x73"])) {
goto HiA;
}
$NE = isset($CF["\x6d\163\147"]) && !empty($CF["\155\163\x67"]) ? $CF["\155\x73\147"] : "\x53\157\x6d\145\164\x68\x69\x6e\x67\x20\x77\x65\156\x74\x20\167\162\157\156\x67\56\x20\120\154\145\141\163\145\40\164\x72\x79\40\x4c\x6f\x67\x67\x69\x6e\147\x20\151\156\x20\x61\147\x61\151\x6e\56";
MO_Oauth_Debug::mo_oauth_log($NE);
$Rg->handle_error($NE);
wp_die(wp_kses($NE, \mo_oauth_get_valid_html()));
exit;
HiA:
}
public function skip_email_exist($Hl)
{
define("\x57\120\137\x49\x4d\120\x4f\122\124\x49\116\107", "\123\x4b\x49\x50\x5f\105\115\x41\111\x4c\x5f\105\130\x49\x53\124");
return $Hl;
}
}
Function Calls
None |
Stats
MD5 | 9025be603ad8cba6dfe0c5132de62251 |
Eval Count | 0 |
Decode Time | 78 ms |