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\App; use MoOauthClient\Backup\En..
Decoded Output download
<?php
namespace MoOauthClient;
use MoOauthClient\App;
use MoOauthClient\Backup\EnvVarResolver;
class MOUtils
{
const FREE = 0;
const STANDARD = 1;
const PREMIUM = 2;
const MULTISITE_PREMIUM = 3;
const ENTERPRISE = 4;
const ALL_INCLUSIVE_SINGLE_SITE = 5;
const MULTISITE_ENTERPRISE = 6;
const ALL_INCLUSIVE_MULTISITE = 7;
private $is_multisite = false;
public function __construct()
{
remove_action("admin_notices", array($this, "mo_oauth_success_message"));
remove_action("admin_notices", array($this, "mo_oauth_error_message"));
$this->is_multisite = boolval(get_site_option("mo_oauth_isMultiSitePluginRequested")) ? true : ($this->is_multisite_versi() ? true : false);
}
public function mo_oauth_success_message()
{
$DW = "error";
$pC = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
echo "<div class='" . $DW . "'> <p>" . $pC . "</p></div>";
}
public function mo_oauth_error_message()
{
$DW = "updated";
$pC = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
echo "<div class='" . $DW . "'><p>" . $pC . "</p></div>";
}
public function mo_oauth_show_success_message()
{
$eh = is_multisite() && $this->is_multisite_versi() ? "network_" : '';
remove_action("{$eh}admin_notices", array($this, "mo_oauth_success_message"));
add_action("{$eh}admin_notices", array($this, "mo_oauth_error_message"));
}
public function mo_oauth_show_error_message()
{
$eh = is_multisite() && $this->is_multisite_versi() ? "network_" : '';
remove_action("{$eh}admin_notices", array($this, "mo_oauth_error_message"));
add_action("{$eh}admin_notices", array($this, "mo_oauth_success_message"));
}
public function mo_oauth_client_filter_error($BC)
{
$BC = apply_filters("mo_oauth_modify_error", $BC);
return $BC;
}
public function mo_oauth_is_customer_registered()
{
$i6 = $this->mo_oauth_client_get_option("mo_oauth_admin_email");
$sM = $this->mo_oauth_client_get_option("mo_oauth_admin_customer_key");
if (!$i6 || !$sM || !is_numeric(trim($sM))) {
goto DV;
}
return 1;
goto zC;
DV:
return 0;
zC:
}
public function mooauthencrypt($En)
{
$yu = $this->mo_oauth_client_get_option("customer_token");
if ($yu) {
goto lE;
}
return "false";
lE:
$yu = str_split(str_pad('', strlen($En), $yu, STR_PAD_RIGHT));
$N9 = str_split($En);
foreach ($N9 as $Id => $mg) {
$SK = ord($mg) + ord($yu[$Id]);
$N9[$Id] = chr($SK > 255 ? $SK - 256 : $SK);
fT:
}
CO:
return base64_encode(join('', $N9));
}
public function mooauthdecrypt($En)
{
$En = base64_decode($En);
$yu = $this->mo_oauth_client_get_option("customer_token");
if ($yu) {
goto Fa;
}
return "false";
Fa:
$yu = str_split(str_pad('', strlen($En), $yu, STR_PAD_RIGHT));
$N9 = str_split($En);
foreach ($N9 as $Id => $mg) {
$SK = ord($mg) - ord($yu[$Id]);
$N9[$Id] = chr($SK < 0 ? $SK + 256 : $SK);
w_:
}
F9:
return join('', $N9);
}
public function mo_oauth_check_empty_or_null($fL)
{
if (!(!isset($fL) || empty($fL))) {
goto sf;
}
return true;
sf:
return false;
}
public function is_multisite_plan()
{
return $this->is_multisite;
}
public function mo_oauth_is_curl_installed()
{
if (in_array("curl", get_loaded_extensions())) {
goto TO;
}
return 0;
goto xm;
TO:
return 1;
xm:
}
public function mo_oauth_show_curl_error()
{
if (!($this->mo_oauth_is_curl_installed() === 0)) {
goto kl;
}
$this->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "<a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled. Please enable it to continue.");
$this->mo_oauth_show_error_message();
return;
kl:
}
public function mo_oauth_is_clv()
{
$oY = $this->mo_oauth_client_get_option("mo_oauth_lv");
$oY = boolval($oY) ? $this->mooauthdecrypt($oY) : "false";
$oY = !empty($this->mo_oauth_client_get_option("mo_oauth_lk")) && "true" === $oY ? 1 : 0;
if (!($oY === 0)) {
goto V_;
}
return $this->verify_lk();
V_:
return $oY;
}
public function mo_oauth_is_cld()
{
if (!(empty($this->mo_oauth_client_get_option("mo_oauth_ld")) || empty($this->mo_oauth_client_get_option("customer_token")))) {
goto Hb;
}
return 1;
Hb:
$oY = $this->mo_oauth_client_get_option("mo_oauth_ld");
$oY = "true" === $this->mooauthdecrypt($oY) ? 1 : 0;
return $oY;
}
public function mo_oauth_hbca_xyake()
{
if ($this->mo_oauth_is_customer_registered()) {
goto Jd;
}
return false;
Jd:
if ($this->mo_oauth_client_get_option("mo_oauth_admin_customer_key") > 138200) {
goto gZ;
}
return false;
goto XH;
gZ:
return true;
XH:
}
public function get_default_app($X0, $e5 = false)
{
if ($X0) {
goto G1;
}
return false;
G1:
$kD = false;
$sX = file_get_contents(MOC_DIR . "resources/app_components/defaultapps.json", true);
$Yv = json_decode($sX, $e5);
foreach ($Yv as $Wk => $Yp) {
if (!($Wk === $X0)) {
goto Ki;
}
if ($e5) {
goto wb;
}
$Yp->appId = $Wk;
goto zt;
wb:
$Yp["appId"] = $Wk;
zt:
return $Yp;
Ki:
MR:
}
cl:
return false;
}
public function get_plugin_config()
{
$V2 = $this->mo_oauth_client_get_option("mo_oauth_client_config");
return !$V2 || empty($V2) ? new Config(array()) : $V2;
}
public function get_app_list()
{
return $this->mo_oauth_client_get_option("mo_oauth_apps_list") ? $this->mo_oauth_client_get_option("mo_oauth_apps_list") : false;
}
public function get_app_by_name($nk = '')
{
$Bg = $this->get_app_list();
if ($Bg) {
goto Mo;
}
return false;
Mo:
if (!('' === $nk || false === $nk)) {
goto op;
}
$Nt = array_values($Bg);
return isset($Nt[0]) ? $Nt[0] : false;
op:
foreach ($Bg as $Uo => $R7) {
if (!($nk === $Uo)) {
goto y1;
}
return $R7;
y1:
if (!((int) $nk === $Uo)) {
goto Sd;
}
return $R7;
Sd:
ff:
}
aO:
return false;
}
public function get_default_app_by_code_name($nk = '')
{
$Bg = $this->mo_oauth_client_get_option("mo_oauth_apps_list") ? $this->mo_oauth_client_get_option("mo_oauth_apps_list") : false;
if ($Bg) {
goto DG;
}
return false;
DG:
if (!('' === $nk)) {
goto GO;
}
$Nt = array_values($Bg);
return isset($Nt[0]) ? $Nt[0] : false;
GO:
foreach ($Bg as $Uo => $R7) {
$Bl = $R7->get_app_name();
if (!($nk === $Bl)) {
goto X3;
}
return $this->get_default_app($R7->get_app_config("app_type"), true);
X3:
fw:
}
fc:
return false;
}
public function set_app_by_name($nk, $s5)
{
$Bg = $this->mo_oauth_client_get_option("mo_oauth_apps_list") ? $this->mo_oauth_client_get_option("mo_oauth_apps_list") : false;
if ($Bg) {
goto VB;
}
return false;
VB:
foreach ($Bg as $Uo => $R7) {
if (!(gettype($Uo) === "integer")) {
goto G_;
}
$Uo = strval($Uo);
G_:
if (!($nk === $Uo)) {
goto N0;
}
$Bg[$Uo] = new App($s5);
$Bg[$Uo]->set_app_name($Uo);
$this->mo_oauth_client_update_option("mo_oauth_apps_list", $Bg);
return true;
N0:
Fs:
}
jF:
return false;
}
public function mo_oauth_jhuyn_jgsukaj($Xl, $au)
{
return $this->mo_oauth_jkhuiysuayhbw($Xl, $au);
}
public function mo_oauth_jkhuiysuayhbw($CH, $BM)
{
$N_ = 0;
$hC = false;
$Bu = $this->mo_oauth_client_get_option("mo_oauth_authorizations");
if (empty($Bu)) {
goto xs;
}
$N_ = $this->mo_oauth_client_get_option("mo_oauth_authorizations");
xs:
$user = $this->mo_oauth_hjsguh_kiishuyauh878gs($CH, $BM);
if (!$user) {
goto k5;
}
++$N_;
k5:
$this->mo_oauth_client_update_option("mo_oauth_authorizations", $N_);
if (!($N_ >= 10)) {
goto Xr;
}
$B0 = base64_decode("bW9fb2F1dGhfZmxhZw==");
$this->mo_oauth_client_update_option($B0, true);
Xr:
return $user;
}
public function mo_oauth_hjsguh_kiishuyauh878gs($i6, $wW)
{
$UP = 10;
$Ys = false;
$ST = false;
$V2 = apply_filters("mo_oauth_password_policy_manager", $UP);
if (!is_array($V2)) {
goto B1;
}
$UP = intval($V2["password_length"]);
$Ys = $V2["special_characters"];
$ST = $V2["extra_special_characters"];
B1:
$AB = wp_generate_password($UP, $Ys, $ST);
$vP = is_email($i6) ? wp_create_user($i6, $AB, $i6) : wp_create_user($i6, $AB);
$Ek = array("ID" => $vP, "user_email" => $i6, "user_login" => $wW, "user_nicename" => $wW, "first_name" => $wW);
do_action("user_register", $vP, $Ek);
$user = get_user_by("login", $i6);
wp_update_user(array("ID" => $vP, "first_name" => $wW));
return $user;
}
public function check_versi($Zo)
{
return $this->get_versi() >= $Zo;
}
public function is_multisite_versi()
{
return $this->get_versi() >= 6 || $this->get_versi() == 3;
}
public function get_versi()
{
return VERSION === "mo_multisite_all_inclusive_version" ? self::ALL_INCLUSIVE_MULTISITE : (VERSION === "mo_multisite_premium_version" ? self::MULTISITE_PREMIUM : (VERSION === "mo_multisite_enterprise_version" ? self::MULTISITE_ENTERPRISE : (VERSION === "mo_all_inclusive_version" ? self::ALL_INCLUSIVE_SINGLE_SITE : (VERSION === "mo_enterprise_version" ? self::ENTERPRISE : (VERSION === "mo_premium_version" ? self::PREMIUM : (VERSION === "mo_standard_version" ? self::STANDARD : self::FREE))))));
}
public function get_plan_type_versi()
{
switch ($this->get_versi()) {
case self::ALL_INCLUSIVE_MULTISITE:
return "ALL_INCLUSIVE_MULTISITE";
case self::MULTISITE_PREMIUM:
return "MULTISITE_PREMIUM";
case self::MULTISITE_ENTERPRISE:
return "MULTISITE_ENTERPRISE";
case self::ALL_INCLUSIVE_SINGLE_SITE:
return "ENTERPRISE";
case self::ENTERPRISE:
return "ENTERPRISE";
case self::PREMIUM:
return '';
case self::STANDARD:
return "STANDARD";
case self::FREE:
default:
return "FREE";
}
cX:
th:
}
public function get_versi_str()
{
switch ($this->get_versi()) {
case self::ALL_INCLUSIVE_MULTISITE:
return "ALL_INCLUSIVE_MULTISITE";
case self::MULTISITE_PREMIUM:
return "MULTISITE_PREMIUM";
case self::MULTISITE_ENTERPRISE:
return "MULTISITE_ENTERPRISE";
case self::ALL_INCLUSIVE_SINGLE_SITE:
return "ALL_INCLUSIVE_SINGLE_SITE";
case self::ENTERPRISE:
return "ENTERPRISE";
case self::PREMIUM:
return "PREMIUM";
case self::STANDARD:
return "STANDARD";
case self::FREE:
default:
return "FREE";
}
tp:
em:
}
public function mo_oauth_client_get_option($Uo, $Ua = false)
{
$fL = getenv(strtoupper($Uo));
if (!$fL) {
goto VO;
}
$fL = EnvVarResolver::resolve_var($Uo, $fL);
goto fp;
VO:
$fL = is_multisite() && $this->is_multisite ? get_site_option($Uo, $Ua) : get_option($Uo, $Ua);
fp:
if (!(!$fL || $Ua == $fL)) {
goto BV;
}
return $Ua;
BV:
return $fL;
}
public function mo_oauth_client_update_option($Uo, $fL)
{
return is_multisite() && $this->is_multisite ? update_site_option($Uo, $fL) : update_option($Uo, $fL);
}
public function mo_oauth_client_delete_option($Uo)
{
return is_multisite() && $this->is_multisite ? delete_site_option($Uo) : delete_option($Uo);
}
public function array_overwrite($FC, $fl, $eJ)
{
if ($eJ) {
goto Kr;
}
array_push($FC, $fl);
return array_unique($FC);
Kr:
foreach ($fl as $Uo => $fL) {
$FC[$Uo] = $fL;
s0:
}
Mm:
return $FC;
}
public function gen_rand_str($UP = 10)
{
$uc = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$vl = strlen($uc);
$eB = '';
$sD = 0;
FY:
if (!($sD < $UP)) {
goto Y3;
}
$eB .= $uc[rand(0, $vl - 1)];
bW:
$sD++;
goto FY;
Y3:
return $eB;
}
public function parse_url($IS)
{
$kD = array();
$bf = explode("?", $IS);
$kD["host"] = $bf[0];
$kD["query"] = isset($bf[1]) && '' !== $bf[1] ? $bf[1] : '';
if (!(empty($kD["query"]) || '' === $kD["query"])) {
goto UY;
}
return $kD;
UY:
$RS = [];
foreach (explode("&", $kD["query"]) as $Tc) {
$bf = explode("=", $Tc);
if (!(is_array($bf) && count($bf) === 2)) {
goto Ty;
}
$RS[str_replace("amp;", '', $bf[0])] = $bf[1];
Ty:
if (!(is_array($bf) && "state" === $bf[0])) {
goto A0;
}
$bf = explode("state=", $Tc);
$RS["state"] = $bf[1];
A0:
c7:
}
CN:
$kD["query"] = is_array($RS) && !empty($RS) ? $RS : [];
return $kD;
}
public function generate_url($Yw)
{
if (!(!is_array($Yw) || empty($Yw))) {
goto Ea;
}
return '';
Ea:
if (isset($Yw["host"])) {
goto dg;
}
return '';
dg:
$IS = $Yw["host"];
$Vz = '';
$sD = 0;
foreach ($Yw["query"] as $A0 => $fL) {
if (!($sD !== 0)) {
goto t3;
}
$Vz .= "&";
t3:
$Vz .= "{$A0}={$fL}";
$sD += 1;
L7:
}
uO:
return $IS . "?" . $Vz;
}
public function getnestedattribute($Oo, $Uo)
{
if (!($Uo == '')) {
goto NP;
}
return '';
NP:
if (!filter_var($Uo, FILTER_VALIDATE_URL)) {
goto GK;
}
if (isset($Oo[$Uo])) {
goto cE;
}
return '';
goto Pl;
cE:
return $Oo[$Uo];
Pl:
GK:
$NP = explode(".", $Uo);
if (count($NP) > 1) {
goto uA;
}
if (isset($Oo[$Uo]) && is_array($Oo[$Uo])) {
goto a1;
}
$ZS = $NP[0];
if (isset($Oo[$ZS])) {
goto Ho;
}
return '';
goto J8;
Ho:
if (is_array($Oo[$ZS])) {
goto w7;
}
return $Oo[$ZS];
goto PI;
w7:
return $Oo[$ZS][0];
PI:
J8:
goto vD;
a1:
if (!(count($Oo[$Uo]) > 1)) {
goto IE;
}
return $Oo[$Uo];
IE:
if (!isset($Oo[$Uo][0])) {
goto zn;
}
return $Oo[$Uo][0];
zn:
if (!is_array($Oo[$Uo])) {
goto iY;
}
return array_key_first($Oo[$Uo]);
iY:
vD:
goto je;
uA:
$ZS = $NP[0];
if (!isset($Oo[$ZS])) {
goto b0;
}
$gb = array_count_values($NP);
if (!($gb[$ZS] > 1)) {
goto t_;
}
$Uo = substr_replace($Uo, '', 0, strlen($ZS));
$Uo = trim($Uo, ".");
return $this->getnestedattribute($Oo[$ZS], $Uo);
t_:
return $this->getnestedattribute($Oo[$ZS], str_replace($ZS . ".", '', $Uo));
b0:
je:
}
public function get_client_ip()
{
$KI = '';
if (getenv("HTTP_CLIENT_IP")) {
goto HJ;
}
if (getenv("HTTP_X_FORWARDED_FOR")) {
goto WS;
}
if (getenv("HTTP_X_FORWARDED")) {
goto aJ;
}
if (getenv("HTTP_FORWARDED_FOR")) {
goto y2;
}
if (getenv("HTTP_FORWARDED")) {
goto dr;
}
if (getenv("REMOTE_ADDR")) {
goto PX;
}
$KI = "UNKNOWN";
goto X5;
HJ:
$KI = getenv("HTTP_CLIENT_IP");
goto X5;
WS:
$KI = getenv("HTTP_X_FORWARDED_FOR");
goto X5;
aJ:
$KI = getenv("HTTP_X_FORWARDED");
goto X5;
y2:
$KI = getenv("HTTP_FORWARDED_FOR");
goto X5;
dr:
$KI = getenv("HTTP_FORWARDED");
goto X5;
PX:
$KI = getenv("REMOTE_ADDR");
X5:
return $KI;
}
public function get_current_url()
{
return (isset($_SERVER["HTTPS"]) ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}";
}
public function get_all_headers()
{
$MG = [];
foreach ($_SERVER as $wW => $fL) {
if (!(substr($wW, 0, 5) == "HTTP_")) {
goto ja;
}
$MG[str_replace(" ", "-", ucwords(strtolower(str_replace("_", " ", substr($wW, 5)))))] = $fL;
ja:
tL:
}
Au:
$MG = array_change_key_case($MG, CASE_UPPER);
return $MG;
}
public function store_info($OG = '', $fL = false)
{
if (!('' === $OG || !$fL)) {
goto sh;
}
return;
sh:
setcookie($OG, $fL);
}
public function redirect_user($IS = false, $gM = false)
{
if (!(false === $IS)) {
goto cB;
}
return;
cB:
if (!$gM) {
goto BI;
}
echo "\x9\x9\x9<script>
\x9\x9 \x9var myWindow = window.open("";
echo $IS;
echo "", "Test Configuration", "width=600, height=600");\xd
\x9\x9 \x9while(1) {
if(myWindow.closed()) {
\xa \x9 \x9\x9$(document).trigger("config_tested");\xd
\x9\x9 \x9\x9break;\xd\xa\x9\x9\x9\x9 } else {continue;}
\x9 }\xd\xa </script>\xd
\x9";
BI:
echo " <script>
\x9 \x9window.location.replace("";
echo $IS;
echo "");\xd
\x9</script>
\xa\x9\x9";
exit;
}
public function is_ajax_request()
{
return defined("DOING_AJAX") && DOING_AJAX;
}
public function deactivate_plugin()
{
$this->mo_oauth_client_delete_option("host_name");
$this->mo_oauth_client_delete_option("new_registration");
$this->mo_oauth_client_delete_option("mo_oauth_admin_phone");
$this->mo_oauth_client_delete_option("verify_customer");
$this->mo_oauth_client_delete_option("mo_oauth_admin_customer_key");
$this->mo_oauth_client_delete_option("mo_oauth_admin_api_key");
$this->mo_oauth_client_delete_option("mo_oauth_new_customer");
$this->mo_oauth_client_delete_option("customer_token");
$this->mo_oauth_client_delete_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
$this->mo_oauth_client_delete_option("mo_oauth_registration_status");
$this->mo_oauth_client_delete_option("mo_oauth_new_customer");
$this->mo_oauth_client_delete_option("new_registration");
$this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_height");
$this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_size");
$this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_color");
$this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_boundary");
}
public function base64url_encode($pA)
{
return rtrim(strtr(base64_encode($pA), "+/", "-_"), "=");
}
public function base64url_decode($pA)
{
return base64_decode(str_pad(strtr($pA, "-_", "+/"), strlen($pA) % 4, "=", STR_PAD_RIGHT));
}
function export_plugin_config($hd = false)
{
$Gf = [];
$wE = [];
$JH = [];
$Gf = $this->get_plugin_config();
$wE = get_site_option("mo_oauth_apps_list");
if (empty($Gf)) {
goto Vr;
}
$Gf = $Gf->get_current_config();
Vr:
if (!is_array($wE)) {
goto NT;
}
foreach ($wE as $By => $s5) {
if (!is_array($s5)) {
goto Wc;
}
$s5 = new App($s5);
Wc:
$oZ = $s5->get_app_config('', false);
if (!$hd) {
goto dz;
}
unset($oZ["client_id"]);
unset($oZ["client_secret"]);
dz:
$JH[$By] = $oZ;
br:
}
WK:
NT:
$ir = ["plugin_config" => $Gf, "app_configs" => $JH];
$ir = apply_filters("mo_tr_get_license_config", $ir);
return $ir;
}
private function verify_lk()
{
$Yj = new \MoOauthClient\Standard\Customer();
$kM = $this->mo_oauth_client_get_option("mo_oauth_license_key");
if (!empty($kM)) {
goto j2;
}
return 0;
j2:
$Ki = $Yj->XfskodsfhHJ($kM);
$Ki = json_decode($Ki, true);
return isset($Ki["status"]) && "SUCCESS" === $Ki["status"];
}
public function is_valid_jwt($Oh = '')
{
$bf = explode(".", $Oh);
if (!(count($bf) === 3)) {
goto mj;
}
return true;
mj:
return false;
}
public function validate_appslist($Bg)
{
if (is_array($Bg)) {
goto o3;
}
return false;
o3:
foreach ($Bg as $Uo => $R7) {
if (!$R7 instanceof \MoOauthClient\App) {
goto ld;
}
goto ya;
ld:
return false;
ya:
}
xe:
return true;
}
public function handle_error($BC)
{
do_action("mo_tr_login_errors", $BC);
}
public function set_transient($Uo, $fL, $Y3)
{
return is_multisite() && $this->is_multisite ? set_site_transient($Uo, $fL, $Y3) : set_transient($Uo, $fL, $Y3);
}
public function get_transient($Uo)
{
return is_multisite() && $this->is_multisite ? get_site_transient($Uo) : get_transient($Uo);
}
public function delete_transient($Uo)
{
return is_multisite() && $this->is_multisite ? delete_site_transient($Uo) : delete_transient($Uo);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MoOauthClient;
use MoOauthClient\App;
use MoOauthClient\Backup\EnvVarResolver;
class MOUtils
{
const FREE = 0;
const STANDARD = 1;
const PREMIUM = 2;
const MULTISITE_PREMIUM = 3;
const ENTERPRISE = 4;
const ALL_INCLUSIVE_SINGLE_SITE = 5;
const MULTISITE_ENTERPRISE = 6;
const ALL_INCLUSIVE_MULTISITE = 7;
private $is_multisite = false;
public function __construct()
{
remove_action("\x61\x64\155\x69\x6e\137\x6e\157\164\151\x63\145\163", array($this, "\155\x6f\x5f\157\x61\165\164\150\x5f\x73\x75\x63\143\x65\x73\163\137\x6d\145\163\x73\x61\x67\x65"));
remove_action("\x61\x64\155\151\156\137\x6e\157\164\151\x63\x65\163", array($this, "\x6d\x6f\x5f\157\141\165\164\x68\x5f\x65\162\162\157\162\137\x6d\x65\x73\x73\141\147\145"));
$this->is_multisite = boolval(get_site_option("\155\x6f\x5f\157\141\165\x74\x68\137\x69\x73\115\165\154\x74\x69\x53\x69\164\x65\x50\154\165\x67\151\x6e\122\145\161\x75\145\163\x74\x65\144")) ? true : ($this->is_multisite_versi() ? true : false);
}
public function mo_oauth_success_message()
{
$DW = "\x65\x72\x72\x6f\162";
$pC = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
echo "\74\x64\151\166\x20\143\154\141\x73\163\x3d\x27" . $DW . "\47\x3e\40\74\x70\x3e" . $pC . "\x3c\57\160\x3e\x3c\57\144\151\166\76";
}
public function mo_oauth_error_message()
{
$DW = "\x75\x70\x64\x61\x74\145\x64";
$pC = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
echo "\x3c\x64\151\x76\x20\143\x6c\141\163\163\75\x27" . $DW . "\47\76\x3c\x70\x3e" . $pC . "\74\x2f\x70\76\74\x2f\144\x69\x76\76";
}
public function mo_oauth_show_success_message()
{
$eh = is_multisite() && $this->is_multisite_versi() ? "\156\145\x74\x77\x6f\x72\153\137" : '';
remove_action("{$eh}\x61\x64\x6d\x69\156\x5f\156\x6f\164\x69\143\145\x73", array($this, "\x6d\x6f\137\x6f\x61\165\164\x68\137\163\x75\x63\143\145\163\163\137\155\145\163\163\x61\x67\145"));
add_action("{$eh}\x61\144\155\151\x6e\137\156\x6f\164\151\x63\x65\163", array($this, "\155\157\137\157\x61\x75\x74\150\x5f\x65\x72\x72\157\x72\x5f\155\145\x73\x73\141\x67\x65"));
}
public function mo_oauth_show_error_message()
{
$eh = is_multisite() && $this->is_multisite_versi() ? "\x6e\x65\x74\167\157\162\153\x5f" : '';
remove_action("{$eh}\x61\144\x6d\x69\156\137\x6e\x6f\x74\x69\x63\145\163", array($this, "\x6d\x6f\137\x6f\x61\x75\164\150\137\x65\162\x72\157\x72\137\x6d\x65\163\x73\141\147\145"));
add_action("{$eh}\x61\144\x6d\151\156\137\x6e\157\x74\x69\143\x65\x73", array($this, "\x6d\157\x5f\x6f\141\x75\164\150\137\x73\x75\x63\143\145\x73\x73\x5f\x6d\x65\x73\163\141\x67\145"));
}
public function mo_oauth_client_filter_error($BC)
{
$BC = apply_filters("\155\x6f\x5f\157\x61\x75\x74\x68\137\155\x6f\144\151\146\171\137\x65\162\x72\x6f\162", $BC);
return $BC;
}
public function mo_oauth_is_customer_registered()
{
$i6 = $this->mo_oauth_client_get_option("\155\157\137\157\x61\165\x74\150\x5f\x61\x64\155\x69\156\x5f\x65\x6d\x61\x69\154");
$sM = $this->mo_oauth_client_get_option("\x6d\x6f\x5f\x6f\x61\x75\x74\x68\x5f\x61\x64\x6d\x69\x6e\137\x63\x75\x73\164\x6f\x6d\145\x72\x5f\153\145\171");
if (!$i6 || !$sM || !is_numeric(trim($sM))) {
goto DV;
}
return 1;
goto zC;
DV:
return 0;
zC:
}
public function mooauthencrypt($En)
{
$yu = $this->mo_oauth_client_get_option("\x63\165\x73\x74\157\155\145\x72\137\x74\x6f\153\145\x6e");
if ($yu) {
goto lE;
}
return "\146\x61\x6c\163\x65";
lE:
$yu = str_split(str_pad('', strlen($En), $yu, STR_PAD_RIGHT));
$N9 = str_split($En);
foreach ($N9 as $Id => $mg) {
$SK = ord($mg) + ord($yu[$Id]);
$N9[$Id] = chr($SK > 255 ? $SK - 256 : $SK);
fT:
}
CO:
return base64_encode(join('', $N9));
}
public function mooauthdecrypt($En)
{
$En = base64_decode($En);
$yu = $this->mo_oauth_client_get_option("\143\165\x73\164\157\x6d\x65\x72\137\164\x6f\153\145\x6e");
if ($yu) {
goto Fa;
}
return "\146\141\154\163\145";
Fa:
$yu = str_split(str_pad('', strlen($En), $yu, STR_PAD_RIGHT));
$N9 = str_split($En);
foreach ($N9 as $Id => $mg) {
$SK = ord($mg) - ord($yu[$Id]);
$N9[$Id] = chr($SK < 0 ? $SK + 256 : $SK);
w_:
}
F9:
return join('', $N9);
}
public function mo_oauth_check_empty_or_null($fL)
{
if (!(!isset($fL) || empty($fL))) {
goto sf;
}
return true;
sf:
return false;
}
public function is_multisite_plan()
{
return $this->is_multisite;
}
public function mo_oauth_is_curl_installed()
{
if (in_array("\x63\165\162\154", get_loaded_extensions())) {
goto TO;
}
return 0;
goto xm;
TO:
return 1;
xm:
}
public function mo_oauth_show_curl_error()
{
if (!($this->mo_oauth_is_curl_installed() === 0)) {
goto kl;
}
$this->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x3c\141\x20\150\162\145\x66\75\x22\x68\x74\164\160\x3a\x2f\57\x70\150\x70\56\156\x65\x74\57\155\x61\156\165\x61\x6c\x2f\145\156\x2f\143\165\x72\x6c\x2e\x69\x6e\163\x74\x61\x6c\154\x61\x74\x69\x6f\x6e\56\160\150\160\x22\x20\x74\x61\x72\147\x65\x74\x3d\42\137\142\x6c\x61\156\x6b\42\76\x50\x48\x50\40\x43\x55\x52\114\x20\145\170\x74\x65\156\x73\151\157\156\x3c\57\141\76\40\x69\x73\40\156\157\164\x20\x69\156\x73\164\x61\x6c\x6c\x65\x64\x20\157\x72\40\x64\x69\x73\141\142\154\x65\x64\x2e\40\x50\x6c\145\141\163\x65\x20\145\156\x61\x62\x6c\x65\x20\x69\x74\x20\164\157\x20\x63\x6f\156\164\151\156\165\x65\56");
$this->mo_oauth_show_error_message();
return;
kl:
}
public function mo_oauth_is_clv()
{
$oY = $this->mo_oauth_client_get_option("\x6d\157\x5f\157\x61\x75\x74\x68\x5f\154\x76");
$oY = boolval($oY) ? $this->mooauthdecrypt($oY) : "\146\141\x6c\163\145";
$oY = !empty($this->mo_oauth_client_get_option("\x6d\157\137\157\x61\165\x74\x68\x5f\x6c\x6b")) && "\x74\x72\x75\145" === $oY ? 1 : 0;
if (!($oY === 0)) {
goto V_;
}
return $this->verify_lk();
V_:
return $oY;
}
public function mo_oauth_is_cld()
{
if (!(empty($this->mo_oauth_client_get_option("\155\157\137\x6f\x61\165\x74\x68\137\154\144")) || empty($this->mo_oauth_client_get_option("\x63\165\163\x74\x6f\155\x65\x72\x5f\164\x6f\x6b\145\156")))) {
goto Hb;
}
return 1;
Hb:
$oY = $this->mo_oauth_client_get_option("\155\x6f\x5f\157\x61\x75\164\x68\x5f\154\144");
$oY = "\164\x72\x75\145" === $this->mooauthdecrypt($oY) ? 1 : 0;
return $oY;
}
public function mo_oauth_hbca_xyake()
{
if ($this->mo_oauth_is_customer_registered()) {
goto Jd;
}
return false;
Jd:
if ($this->mo_oauth_client_get_option("\155\157\x5f\157\141\x75\164\150\x5f\x61\144\155\151\x6e\x5f\x63\165\163\164\157\x6d\x65\162\137\x6b\x65\x79") > 138200) {
goto gZ;
}
return false;
goto XH;
gZ:
return true;
XH:
}
public function get_default_app($X0, $e5 = false)
{
if ($X0) {
goto G1;
}
return false;
G1:
$kD = false;
$sX = file_get_contents(MOC_DIR . "\162\145\x73\157\x75\x72\x63\145\163\57\x61\160\160\137\143\x6f\155\x70\157\x6e\x65\156\x74\x73\x2f\144\x65\146\141\165\154\164\x61\160\x70\x73\56\x6a\163\157\x6e", true);
$Yv = json_decode($sX, $e5);
foreach ($Yv as $Wk => $Yp) {
if (!($Wk === $X0)) {
goto Ki;
}
if ($e5) {
goto wb;
}
$Yp->appId = $Wk;
goto zt;
wb:
$Yp["\141\160\x70\111\x64"] = $Wk;
zt:
return $Yp;
Ki:
MR:
}
cl:
return false;
}
public function get_plugin_config()
{
$V2 = $this->mo_oauth_client_get_option("\155\157\x5f\x6f\x61\x75\164\150\137\143\x6c\151\145\x6e\x74\x5f\143\x6f\156\x66\151\147");
return !$V2 || empty($V2) ? new Config(array()) : $V2;
}
public function get_app_list()
{
return $this->mo_oauth_client_get_option("\155\157\137\x6f\141\x75\164\150\x5f\141\160\x70\163\137\154\151\163\x74") ? $this->mo_oauth_client_get_option("\155\157\137\157\x61\x75\164\150\x5f\x61\x70\x70\x73\x5f\154\x69\163\x74") : false;
}
public function get_app_by_name($nk = '')
{
$Bg = $this->get_app_list();
if ($Bg) {
goto Mo;
}
return false;
Mo:
if (!('' === $nk || false === $nk)) {
goto op;
}
$Nt = array_values($Bg);
return isset($Nt[0]) ? $Nt[0] : false;
op:
foreach ($Bg as $Uo => $R7) {
if (!($nk === $Uo)) {
goto y1;
}
return $R7;
y1:
if (!((int) $nk === $Uo)) {
goto Sd;
}
return $R7;
Sd:
ff:
}
aO:
return false;
}
public function get_default_app_by_code_name($nk = '')
{
$Bg = $this->mo_oauth_client_get_option("\x6d\x6f\x5f\x6f\141\165\164\x68\137\x61\160\x70\x73\x5f\154\x69\163\164") ? $this->mo_oauth_client_get_option("\155\157\x5f\x6f\141\x75\x74\x68\137\141\160\x70\163\x5f\154\x69\x73\x74") : false;
if ($Bg) {
goto DG;
}
return false;
DG:
if (!('' === $nk)) {
goto GO;
}
$Nt = array_values($Bg);
return isset($Nt[0]) ? $Nt[0] : false;
GO:
foreach ($Bg as $Uo => $R7) {
$Bl = $R7->get_app_name();
if (!($nk === $Bl)) {
goto X3;
}
return $this->get_default_app($R7->get_app_config("\141\x70\160\x5f\164\171\160\x65"), true);
X3:
fw:
}
fc:
return false;
}
public function set_app_by_name($nk, $s5)
{
$Bg = $this->mo_oauth_client_get_option("\155\x6f\137\x6f\x61\165\x74\150\137\141\x70\x70\x73\137\154\151\x73\164") ? $this->mo_oauth_client_get_option("\x6d\x6f\x5f\157\x61\165\x74\150\x5f\141\x70\160\x73\137\x6c\x69\x73\x74") : false;
if ($Bg) {
goto VB;
}
return false;
VB:
foreach ($Bg as $Uo => $R7) {
if (!(gettype($Uo) === "\x69\x6e\164\145\147\145\162")) {
goto G_;
}
$Uo = strval($Uo);
G_:
if (!($nk === $Uo)) {
goto N0;
}
$Bg[$Uo] = new App($s5);
$Bg[$Uo]->set_app_name($Uo);
$this->mo_oauth_client_update_option("\155\x6f\137\157\141\x75\164\x68\137\141\x70\160\163\137\x6c\151\163\x74", $Bg);
return true;
N0:
Fs:
}
jF:
return false;
}
public function mo_oauth_jhuyn_jgsukaj($Xl, $au)
{
return $this->mo_oauth_jkhuiysuayhbw($Xl, $au);
}
public function mo_oauth_jkhuiysuayhbw($CH, $BM)
{
$N_ = 0;
$hC = false;
$Bu = $this->mo_oauth_client_get_option("\x6d\x6f\x5f\157\x61\165\164\x68\137\141\x75\164\150\x6f\x72\x69\x7a\141\164\151\157\x6e\163");
if (empty($Bu)) {
goto xs;
}
$N_ = $this->mo_oauth_client_get_option("\155\157\137\157\x61\x75\164\x68\x5f\141\x75\x74\150\157\162\x69\x7a\x61\x74\151\x6f\x6e\163");
xs:
$user = $this->mo_oauth_hjsguh_kiishuyauh878gs($CH, $BM);
if (!$user) {
goto k5;
}
++$N_;
k5:
$this->mo_oauth_client_update_option("\x6d\x6f\137\157\x61\x75\164\x68\137\141\165\164\x68\x6f\162\x69\x7a\141\x74\151\157\x6e\163", $N_);
if (!($N_ >= 10)) {
goto Xr;
}
$B0 = base64_decode("\142\x57\x39\146\x62\x32\106\x31\144\x47\150\x66\x5a\x6d\170\x68\x5a\167\75\75");
$this->mo_oauth_client_update_option($B0, true);
Xr:
return $user;
}
public function mo_oauth_hjsguh_kiishuyauh878gs($i6, $wW)
{
$UP = 10;
$Ys = false;
$ST = false;
$V2 = apply_filters("\x6d\157\x5f\x6f\141\165\x74\150\137\160\x61\163\x73\x77\157\162\x64\137\x70\x6f\154\x69\x63\x79\137\155\x61\x6e\141\147\145\x72", $UP);
if (!is_array($V2)) {
goto B1;
}
$UP = intval($V2["\x70\x61\x73\x73\x77\x6f\x72\144\x5f\x6c\145\156\x67\x74\150"]);
$Ys = $V2["\163\160\x65\143\151\141\154\137\143\150\x61\x72\x61\x63\164\145\x72\163"];
$ST = $V2["\145\x78\164\162\x61\137\163\160\145\x63\151\x61\154\x5f\x63\150\x61\x72\141\x63\164\x65\162\x73"];
B1:
$AB = wp_generate_password($UP, $Ys, $ST);
$vP = is_email($i6) ? wp_create_user($i6, $AB, $i6) : wp_create_user($i6, $AB);
$Ek = array("\111\x44" => $vP, "\165\x73\145\162\137\x65\x6d\141\151\x6c" => $i6, "\x75\x73\145\162\x5f\x6c\157\x67\151\x6e" => $wW, "\x75\x73\145\162\x5f\x6e\151\143\x65\156\141\155\145" => $wW, "\146\x69\162\x73\164\x5f\x6e\x61\155\145" => $wW);
do_action("\x75\163\145\162\137\162\145\147\151\x73\x74\x65\162", $vP, $Ek);
$user = get_user_by("\154\x6f\x67\x69\x6e", $i6);
wp_update_user(array("\111\x44" => $vP, "\146\151\x72\163\x74\137\x6e\x61\x6d\145" => $wW));
return $user;
}
public function check_versi($Zo)
{
return $this->get_versi() >= $Zo;
}
public function is_multisite_versi()
{
return $this->get_versi() >= 6 || $this->get_versi() == 3;
}
public function get_versi()
{
return VERSION === "\155\x6f\137\155\x75\154\164\151\x73\x69\164\x65\x5f\x61\x6c\154\137\x69\x6e\x63\154\x75\163\151\166\x65\x5f\166\145\162\163\x69\157\x6e" ? self::ALL_INCLUSIVE_MULTISITE : (VERSION === "\x6d\x6f\137\x6d\x75\154\x74\151\x73\151\x74\x65\x5f\160\162\145\155\x69\x75\155\137\x76\145\x72\163\151\x6f\x6e" ? self::MULTISITE_PREMIUM : (VERSION === "\155\x6f\x5f\x6d\165\x6c\164\151\x73\151\164\145\x5f\145\156\164\145\162\x70\162\151\x73\x65\137\x76\x65\x72\x73\151\157\x6e" ? self::MULTISITE_ENTERPRISE : (VERSION === "\155\x6f\137\141\x6c\x6c\137\x69\x6e\x63\154\x75\x73\151\x76\145\x5f\166\x65\162\x73\x69\157\x6e" ? self::ALL_INCLUSIVE_SINGLE_SITE : (VERSION === "\x6d\x6f\x5f\145\156\164\145\162\x70\162\151\x73\145\137\x76\x65\x72\x73\151\x6f\156" ? self::ENTERPRISE : (VERSION === "\155\157\137\160\x72\x65\155\151\165\155\x5f\166\x65\x72\x73\x69\157\x6e" ? self::PREMIUM : (VERSION === "\x6d\x6f\x5f\163\x74\x61\x6e\x64\x61\x72\x64\x5f\166\145\162\163\151\x6f\156" ? self::STANDARD : self::FREE))))));
}
public function get_plan_type_versi()
{
switch ($this->get_versi()) {
case self::ALL_INCLUSIVE_MULTISITE:
return "\x41\x4c\x4c\x5f\x49\x4e\x43\x4c\x55\123\111\x56\x45\137\115\125\x4c\x54\x49\123\111\x54\x45";
case self::MULTISITE_PREMIUM:
return "\x4d\125\114\x54\x49\123\111\124\x45\137\x50\122\105\115\x49\125\115";
case self::MULTISITE_ENTERPRISE:
return "\115\125\114\124\x49\123\111\124\105\137\x45\x4e\x54\x45\x52\120\x52\x49\x53\x45";
case self::ALL_INCLUSIVE_SINGLE_SITE:
return "\x45\x4e\x54\105\122\x50\122\111\x53\x45";
case self::ENTERPRISE:
return "\105\116\x54\105\x52\120\122\x49\x53\x45";
case self::PREMIUM:
return '';
case self::STANDARD:
return "\x53\x54\101\x4e\x44\x41\x52\x44";
case self::FREE:
default:
return "\106\122\x45\x45";
}
cX:
th:
}
public function get_versi_str()
{
switch ($this->get_versi()) {
case self::ALL_INCLUSIVE_MULTISITE:
return "\x41\114\114\x5f\111\x4e\x43\114\125\123\x49\126\x45\x5f\x4d\125\x4c\124\x49\x53\x49\x54\105";
case self::MULTISITE_PREMIUM:
return "\115\x55\x4c\124\111\123\x49\x54\x45\137\120\x52\105\115\x49\125\115";
case self::MULTISITE_ENTERPRISE:
return "\x4d\125\114\124\x49\123\111\124\x45\137\105\116\x54\x45\x52\120\122\111\123\x45";
case self::ALL_INCLUSIVE_SINGLE_SITE:
return "\101\114\x4c\137\x49\x4e\103\x4c\125\x53\x49\x56\105\x5f\x53\111\116\x47\x4c\105\x5f\x53\111\x54\105";
case self::ENTERPRISE:
return "\x45\116\x54\105\122\120\122\111\x53\x45";
case self::PREMIUM:
return "\120\x52\x45\115\111\x55\115";
case self::STANDARD:
return "\123\x54\x41\116\x44\x41\122\x44";
case self::FREE:
default:
return "\106\122\105\x45";
}
tp:
em:
}
public function mo_oauth_client_get_option($Uo, $Ua = false)
{
$fL = getenv(strtoupper($Uo));
if (!$fL) {
goto VO;
}
$fL = EnvVarResolver::resolve_var($Uo, $fL);
goto fp;
VO:
$fL = is_multisite() && $this->is_multisite ? get_site_option($Uo, $Ua) : get_option($Uo, $Ua);
fp:
if (!(!$fL || $Ua == $fL)) {
goto BV;
}
return $Ua;
BV:
return $fL;
}
public function mo_oauth_client_update_option($Uo, $fL)
{
return is_multisite() && $this->is_multisite ? update_site_option($Uo, $fL) : update_option($Uo, $fL);
}
public function mo_oauth_client_delete_option($Uo)
{
return is_multisite() && $this->is_multisite ? delete_site_option($Uo) : delete_option($Uo);
}
public function array_overwrite($FC, $fl, $eJ)
{
if ($eJ) {
goto Kr;
}
array_push($FC, $fl);
return array_unique($FC);
Kr:
foreach ($fl as $Uo => $fL) {
$FC[$Uo] = $fL;
s0:
}
Mm:
return $FC;
}
public function gen_rand_str($UP = 10)
{
$uc = "\141\x62\x63\144\145\146\147\x68\151\x6a\x6b\x6c\155\x6e\157\x70\161\x72\163\164\x75\x76\x77\x78\x79\x7a\x41\102\103\x44\x45\x46\107\x48\x49\x4a\113\x4c\x4d\116\x4f\120\x51\122\x53\124\x55\x56\x57\x58\131\132";
$vl = strlen($uc);
$eB = '';
$sD = 0;
FY:
if (!($sD < $UP)) {
goto Y3;
}
$eB .= $uc[rand(0, $vl - 1)];
bW:
$sD++;
goto FY;
Y3:
return $eB;
}
public function parse_url($IS)
{
$kD = array();
$bf = explode("\77", $IS);
$kD["\x68\x6f\x73\164"] = $bf[0];
$kD["\x71\165\x65\162\x79"] = isset($bf[1]) && '' !== $bf[1] ? $bf[1] : '';
if (!(empty($kD["\x71\x75\x65\x72\171"]) || '' === $kD["\x71\x75\145\162\171"])) {
goto UY;
}
return $kD;
UY:
$RS = [];
foreach (explode("\x26", $kD["\x71\x75\145\x72\x79"]) as $Tc) {
$bf = explode("\75", $Tc);
if (!(is_array($bf) && count($bf) === 2)) {
goto Ty;
}
$RS[str_replace("\x61\155\160\x3b", '', $bf[0])] = $bf[1];
Ty:
if (!(is_array($bf) && "\163\164\141\164\x65" === $bf[0])) {
goto A0;
}
$bf = explode("\163\x74\x61\164\145\75", $Tc);
$RS["\x73\x74\x61\x74\x65"] = $bf[1];
A0:
c7:
}
CN:
$kD["\x71\x75\145\162\x79"] = is_array($RS) && !empty($RS) ? $RS : [];
return $kD;
}
public function generate_url($Yw)
{
if (!(!is_array($Yw) || empty($Yw))) {
goto Ea;
}
return '';
Ea:
if (isset($Yw["\x68\x6f\163\164"])) {
goto dg;
}
return '';
dg:
$IS = $Yw["\x68\x6f\163\164"];
$Vz = '';
$sD = 0;
foreach ($Yw["\x71\165\145\162\171"] as $A0 => $fL) {
if (!($sD !== 0)) {
goto t3;
}
$Vz .= "\46";
t3:
$Vz .= "{$A0}\x3d{$fL}";
$sD += 1;
L7:
}
uO:
return $IS . "\x3f" . $Vz;
}
public function getnestedattribute($Oo, $Uo)
{
if (!($Uo == '')) {
goto NP;
}
return '';
NP:
if (!filter_var($Uo, FILTER_VALIDATE_URL)) {
goto GK;
}
if (isset($Oo[$Uo])) {
goto cE;
}
return '';
goto Pl;
cE:
return $Oo[$Uo];
Pl:
GK:
$NP = explode("\56", $Uo);
if (count($NP) > 1) {
goto uA;
}
if (isset($Oo[$Uo]) && is_array($Oo[$Uo])) {
goto a1;
}
$ZS = $NP[0];
if (isset($Oo[$ZS])) {
goto Ho;
}
return '';
goto J8;
Ho:
if (is_array($Oo[$ZS])) {
goto w7;
}
return $Oo[$ZS];
goto PI;
w7:
return $Oo[$ZS][0];
PI:
J8:
goto vD;
a1:
if (!(count($Oo[$Uo]) > 1)) {
goto IE;
}
return $Oo[$Uo];
IE:
if (!isset($Oo[$Uo][0])) {
goto zn;
}
return $Oo[$Uo][0];
zn:
if (!is_array($Oo[$Uo])) {
goto iY;
}
return array_key_first($Oo[$Uo]);
iY:
vD:
goto je;
uA:
$ZS = $NP[0];
if (!isset($Oo[$ZS])) {
goto b0;
}
$gb = array_count_values($NP);
if (!($gb[$ZS] > 1)) {
goto t_;
}
$Uo = substr_replace($Uo, '', 0, strlen($ZS));
$Uo = trim($Uo, "\x2e");
return $this->getnestedattribute($Oo[$ZS], $Uo);
t_:
return $this->getnestedattribute($Oo[$ZS], str_replace($ZS . "\x2e", '', $Uo));
b0:
je:
}
public function get_client_ip()
{
$KI = '';
if (getenv("\x48\x54\124\x50\137\x43\x4c\x49\105\116\x54\137\x49\120")) {
goto HJ;
}
if (getenv("\110\x54\124\120\x5f\x58\x5f\106\x4f\x52\127\101\122\x44\x45\104\137\106\x4f\122")) {
goto WS;
}
if (getenv("\x48\x54\x54\120\137\x58\x5f\x46\x4f\122\x57\101\x52\104\x45\104")) {
goto aJ;
}
if (getenv("\x48\x54\124\120\x5f\106\117\122\x57\x41\122\104\105\x44\x5f\106\117\x52")) {
goto y2;
}
if (getenv("\x48\x54\x54\120\x5f\x46\x4f\122\x57\x41\122\104\105\104")) {
goto dr;
}
if (getenv("\x52\105\115\117\124\105\x5f\x41\104\104\x52")) {
goto PX;
}
$KI = "\125\116\113\x4e\117\x57\x4e";
goto X5;
HJ:
$KI = getenv("\110\124\124\x50\x5f\x43\x4c\111\x45\x4e\124\x5f\x49\x50");
goto X5;
WS:
$KI = getenv("\110\124\124\120\x5f\x58\137\106\117\122\127\101\x52\x44\x45\104\x5f\106\117\x52");
goto X5;
aJ:
$KI = getenv("\110\x54\124\120\137\130\137\106\x4f\x52\x57\x41\122\x44\x45\104");
goto X5;
y2:
$KI = getenv("\110\x54\x54\120\137\106\x4f\x52\127\x41\122\104\x45\104\137\106\117\x52");
goto X5;
dr:
$KI = getenv("\110\x54\124\120\137\x46\x4f\122\x57\101\x52\x44\x45\x44");
goto X5;
PX:
$KI = getenv("\x52\x45\115\117\x54\x45\137\x41\x44\104\122");
X5:
return $KI;
}
public function get_current_url()
{
return (isset($_SERVER["\110\x54\124\120\x53"]) ? "\x68\164\164\x70\163" : "\x68\x74\164\x70") . "\x3a\x2f\x2f{$_SERVER["\110\124\x54\x50\137\x48\117\x53\124"]}{$_SERVER["\122\x45\121\125\105\x53\x54\x5f\125\x52\111"]}";
}
public function get_all_headers()
{
$MG = [];
foreach ($_SERVER as $wW => $fL) {
if (!(substr($wW, 0, 5) == "\110\124\124\120\137")) {
goto ja;
}
$MG[str_replace("\40", "\x2d", ucwords(strtolower(str_replace("\x5f", "\40", substr($wW, 5)))))] = $fL;
ja:
tL:
}
Au:
$MG = array_change_key_case($MG, CASE_UPPER);
return $MG;
}
public function store_info($OG = '', $fL = false)
{
if (!('' === $OG || !$fL)) {
goto sh;
}
return;
sh:
setcookie($OG, $fL);
}
public function redirect_user($IS = false, $gM = false)
{
if (!(false === $IS)) {
goto cB;
}
return;
cB:
if (!$gM) {
goto BI;
}
echo "\x9\x9\x9\x3c\x73\143\162\x69\x70\164\x3e\15\12\x9\x9\11\x9\166\141\x72\40\x6d\x79\127\x69\x6e\144\157\167\40\x3d\40\x77\151\156\144\157\167\56\157\160\x65\x6e\50\x22";
echo $IS;
echo "\x22\54\40\42\x54\x65\x73\x74\40\x43\157\x6e\146\x69\147\x75\162\141\164\x69\x6f\x6e\42\x2c\40\42\167\x69\144\164\150\75\x36\x30\60\54\40\150\x65\x69\147\x68\x74\x3d\66\60\60\x22\51\73\xd\12\x9\x9\11\x9\167\150\x69\154\145\x28\x31\x29\40\173\15\12\11\11\11\11\11\x69\x66\x28\155\171\127\x69\156\144\157\x77\x2e\x63\x6c\157\163\145\144\50\51\51\x20\173\15\xa\11\11\x9\11\x9\x9\44\x28\x64\x6f\143\x75\x6d\145\x6e\164\51\56\x74\162\151\x67\x67\x65\162\x28\x22\x63\x6f\x6e\146\x69\147\x5f\x74\x65\x73\x74\145\x64\42\51\73\xd\12\11\x9\x9\11\x9\x9\142\162\x65\x61\x6b\x3b\xd\xa\x9\x9\x9\x9\11\x7d\40\145\154\163\x65\40\173\x63\157\x6e\164\151\156\165\x65\73\175\15\12\11\11\x9\11\175\xd\xa\11\11\11\74\x2f\163\143\162\x69\x70\164\x3e\xd\12\11\11\x9";
BI:
echo "\11\11\x3c\163\143\162\x69\160\164\x3e\15\12\x9\11\x9\x77\151\156\144\x6f\167\56\x6c\x6f\143\141\164\x69\157\156\x2e\x72\x65\160\x6c\141\143\x65\x28\x22";
echo $IS;
echo "\x22\51\73\xd\12\11\x9\x3c\x2f\x73\143\162\x69\160\164\x3e\15\xa\x9\x9";
exit;
}
public function is_ajax_request()
{
return defined("\104\117\x49\x4e\107\137\x41\112\101\x58") && DOING_AJAX;
}
public function deactivate_plugin()
{
$this->mo_oauth_client_delete_option("\x68\x6f\163\164\137\156\141\x6d\x65");
$this->mo_oauth_client_delete_option("\x6e\x65\x77\x5f\162\x65\147\151\163\164\162\141\164\x69\x6f\156");
$this->mo_oauth_client_delete_option("\155\157\137\x6f\x61\165\164\150\137\x61\144\155\151\x6e\137\x70\150\x6f\x6e\x65");
$this->mo_oauth_client_delete_option("\x76\x65\162\x69\x66\x79\137\143\165\x73\x74\157\155\145\162");
$this->mo_oauth_client_delete_option("\155\x6f\137\157\141\165\x74\x68\137\141\144\x6d\151\156\137\x63\165\x73\x74\x6f\155\145\162\x5f\x6b\x65\171");
$this->mo_oauth_client_delete_option("\155\x6f\x5f\x6f\x61\165\164\x68\x5f\x61\144\155\x69\156\x5f\x61\160\151\137\153\x65\171");
$this->mo_oauth_client_delete_option("\155\157\x5f\x6f\x61\x75\164\x68\137\156\x65\167\x5f\x63\165\x73\x74\157\x6d\145\162");
$this->mo_oauth_client_delete_option("\x63\165\163\x74\x6f\155\x65\x72\137\x74\x6f\x6b\145\x6e");
$this->mo_oauth_client_delete_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
$this->mo_oauth_client_delete_option("\155\157\x5f\x6f\x61\165\164\150\x5f\x72\145\147\x69\163\164\162\141\x74\151\x6f\x6e\x5f\163\x74\141\x74\x75\x73");
$this->mo_oauth_client_delete_option("\155\157\137\x6f\141\165\164\150\x5f\x6e\x65\167\x5f\x63\165\x73\x74\x6f\155\x65\162");
$this->mo_oauth_client_delete_option("\x6e\145\167\137\x72\x65\x67\151\x73\x74\x72\x61\164\151\157\156");
$this->mo_oauth_client_delete_option("\155\157\x5f\x6f\141\x75\164\x68\137\x6c\157\x67\x69\x6e\137\x69\143\157\x6e\x5f\x63\165\163\164\x6f\x6d\137\x68\145\151\147\x68\x74");
$this->mo_oauth_client_delete_option("\155\157\137\x6f\x61\165\164\150\x5f\154\x6f\x67\151\x6e\137\151\143\x6f\156\x5f\x63\165\163\x74\x6f\155\x5f\x73\x69\172\145");
$this->mo_oauth_client_delete_option("\155\x6f\137\x6f\141\165\x74\150\x5f\154\x6f\x67\x69\x6e\x5f\151\143\157\156\137\143\165\x73\x74\x6f\x6d\137\x63\x6f\154\x6f\x72");
$this->mo_oauth_client_delete_option("\x6d\157\137\157\141\165\164\x68\x5f\154\157\x67\151\156\137\x69\143\157\156\137\x63\165\x73\x74\x6f\x6d\x5f\142\x6f\x75\x6e\x64\141\x72\171");
}
public function base64url_encode($pA)
{
return rtrim(strtr(base64_encode($pA), "\x2b\57", "\55\137"), "\75");
}
public function base64url_decode($pA)
{
return base64_decode(str_pad(strtr($pA, "\x2d\x5f", "\53\x2f"), strlen($pA) % 4, "\75", STR_PAD_RIGHT));
}
function export_plugin_config($hd = false)
{
$Gf = [];
$wE = [];
$JH = [];
$Gf = $this->get_plugin_config();
$wE = get_site_option("\155\x6f\137\x6f\x61\165\x74\150\137\x61\160\x70\x73\137\x6c\x69\x73\x74");
if (empty($Gf)) {
goto Vr;
}
$Gf = $Gf->get_current_config();
Vr:
if (!is_array($wE)) {
goto NT;
}
foreach ($wE as $By => $s5) {
if (!is_array($s5)) {
goto Wc;
}
$s5 = new App($s5);
Wc:
$oZ = $s5->get_app_config('', false);
if (!$hd) {
goto dz;
}
unset($oZ["\x63\154\x69\145\x6e\x74\x5f\x69\144"]);
unset($oZ["\143\x6c\x69\145\x6e\x74\x5f\163\145\x63\x72\145\x74"]);
dz:
$JH[$By] = $oZ;
br:
}
WK:
NT:
$ir = ["\x70\x6c\x75\x67\x69\156\137\x63\x6f\x6e\146\x69\x67" => $Gf, "\141\160\160\137\143\157\156\146\x69\x67\x73" => $JH];
$ir = apply_filters("\155\157\137\164\162\x5f\147\145\x74\x5f\x6c\151\143\x65\x6e\x73\x65\137\143\x6f\156\146\x69\147", $ir);
return $ir;
}
private function verify_lk()
{
$Yj = new \MoOauthClient\Standard\Customer();
$kM = $this->mo_oauth_client_get_option("\x6d\x6f\137\x6f\141\x75\x74\x68\137\x6c\x69\143\145\x6e\x73\145\x5f\x6b\145\x79");
if (!empty($kM)) {
goto j2;
}
return 0;
j2:
$Ki = $Yj->XfskodsfhHJ($kM);
$Ki = json_decode($Ki, true);
return isset($Ki["\163\164\141\164\x75\x73"]) && "\123\x55\x43\x43\x45\x53\123" === $Ki["\x73\x74\x61\164\x75\x73"];
}
public function is_valid_jwt($Oh = '')
{
$bf = explode("\56", $Oh);
if (!(count($bf) === 3)) {
goto mj;
}
return true;
mj:
return false;
}
public function validate_appslist($Bg)
{
if (is_array($Bg)) {
goto o3;
}
return false;
o3:
foreach ($Bg as $Uo => $R7) {
if (!$R7 instanceof \MoOauthClient\App) {
goto ld;
}
goto ya;
ld:
return false;
ya:
}
xe:
return true;
}
public function handle_error($BC)
{
do_action("\x6d\x6f\137\164\162\x5f\154\157\147\151\x6e\x5f\x65\162\x72\157\x72\x73", $BC);
}
public function set_transient($Uo, $fL, $Y3)
{
return is_multisite() && $this->is_multisite ? set_site_transient($Uo, $fL, $Y3) : set_transient($Uo, $fL, $Y3);
}
public function get_transient($Uo)
{
return is_multisite() && $this->is_multisite ? get_site_transient($Uo) : get_transient($Uo);
}
public function delete_transient($Uo)
{
return is_multisite() && $this->is_multisite ? delete_site_transient($Uo) : delete_transient($Uo);
}
}
Function Calls
None |
Stats
MD5 | cdedf19d54f68f97ec3eb76aad12de73 |
Eval Count | 0 |
Decode Time | 76 ms |