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 moApiIntegrator\Wrapper; use moApiIntegrator\API\azure; use moApi..
Decoded Output download
<?php
namespace moApiIntegrator\Wrapper;
use moApiIntegrator\API\azure;
use moApiIntegrator\API\CustomerMOAZOS;
class wpWrapper
{
private static $wrapper;
public static function getWrapper()
{
if (isset(self::$wrapper)) {
goto d0;
}
self::$wrapper = new wpWrapper();
d0:
return self::$wrapper;
}
public static function mo_api_set_option($rv, $Yr)
{
update_option($rv, $Yr);
}
public static function mo_api_get_option($rv)
{
return get_option($rv);
}
public static function mo_api_delete_option($rv)
{
return delete_option($rv);
}
public static function mo_api__show_error_notice($I0)
{
self::mo_api_set_option(pluginConstants::notice_message, $I0);
$UA = "admin_notices";
if (!is_plugin_active_for_network(pluginConstants::mo_api_plugin_file_path)) {
goto bR;
}
$UA = "network_" . $UA;
bR:
remove_action($UA, [self::getWrapper(), "mo_api_success_notice"]);
add_action($UA, [self::getWrapper(), "mo_api_error_notice"]);
}
public static function mo_api__show_success_notice($I0)
{
self::mo_api_set_option(pluginConstants::notice_message, $I0);
$UA = "admin_notices";
if (!self::mo_api__is_network_active()) {
goto V_;
}
$UA = "network_" . $UA;
V_:
remove_action($UA, [self::getWrapper(), "mo_api_error_notice"]);
add_action($UA, [self::getWrapper(), "mo_api_success_notice"]);
}
public static function mo_api__is_network_active()
{
if (!function_exists("is_plugin_active_for_network")) {
require_once ABSPATH . "/wp-admin/includes/plugin.php";
}
return is_plugin_active_for_network(pluginConstants::mo_api_plugin_file_path);
}
public static function mo_api__checkPasswordPattern($MD)
{
$LF = "/^[(\w)*(\!\@\#\$\%\^\&\*\.\-\_)*]+$/";
return !preg_match($LF, $MD);
}
public static function mo_api__fetch_sanitized_post_data()
{
$w8 = $_POST;
foreach ($w8 as $rv => $Yr) {
if (empty($Yr) || $Yr == '' || $rv == "option" || $rv == "mo_api_tab" || $rv == "_wpnonce" || $rv == "_wp_http_referer") {
goto Pa;
}
$w8[$rv] = sanitize_text_field($Yr);
goto qo;
Pa:
unset($w8[$rv]);
qo:
UJ:
}
pG:
return $w8;
}
public static function mo_api_get__ad_attributes($bD = false)
{
if (!$bD) {
goto mE;
}
return wpWrapper::mo_api_get_option(pluginConstants::testConfigRawAttributeNames);
mE:
return wpWrapper::mo_api_get_option(pluginConstants::testConfigAttributeNames);
}
public function mo_api_success_notice()
{
$RN = "updated";
$I0 = self::mo_api_get_option(pluginConstants::notice_message);
echo "<div class='" . $RN . "'> <p>" . $I0 . "</p></div>";
}
public function mo_api_error_notice()
{
$RN = "error";
$I0 = self::mo_api_get_option(pluginConstants::notice_message);
echo "<div class='" . $RN . "'> <p>" . $I0 . "</p></div>";
}
public static function mo_api_encrypt_data($w8, $rv)
{
$rv = openssl_digest($rv, "sha256");
$fx = "AES-128-ECB";
$y7 = openssl_encrypt($w8, $fx, $rv, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return base64_encode($y7);
}
public static function djkasjdksa()
{
$sD = "!~@#$%^&*()_+|{}<>?0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$es = strlen($sD);
$Y_ = '';
$At = 0;
p2:
if (!($At < 10000)) {
goto JE;
}
$Y_ .= $sD[rand(0, $es - 1)];
WM:
$At++;
goto p2;
JE:
return $Y_;
}
public static function mo_api_sps_get_domain_from_url($Nk)
{
$gr = parse_url($Nk, PHP_URL_SCHEME);
$OY = '';
if ($gr == "http") {
goto dH;
}
$OY = str_replace("https://", '', $Nk);
goto nl;
dH:
$OY = str_replace("http://", '', $Nk);
nl:
$OY = rtrim($OY, "/");
return $OY;
}
public static function mo_api_decrypt_data($w8, $rv)
{
$Et = base64_decode($w8);
$rv = openssl_digest($rv, "sha256");
$fx = "AES-128-ECB";
$EG = openssl_cipher_iv_length($fx);
$HL = substr($Et, 0, $EG);
$w8 = substr($Et, $EG);
$yd = openssl_decrypt($w8, $fx, $rv, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $HL);
return $yd;
}
public static function mo_api_is_customer_registered($gY = false)
{
$nE = get_option("mo_saml_admin_email");
$AZ = get_option("mo_saml_admin_customer_key");
if (!(!$nE || !$AZ || !is_numeric(trim($AZ)))) {
goto aT;
}
return $gY ? "disabled" : 0;
aT:
return $gY ? '' : 1;
}
public static function mo_api_is_customer_license_key_verified($gY = false)
{
$rv = get_option("mo_azos_customer_token");
$vm = get_option("azos_lk");
$nE = get_option("mo_saml_admin_email");
$AZ = get_option("mo_saml_admin_customer_key");
if (!(!$vm || !$nE || !$AZ || !is_numeric(trim($AZ)))) {
goto n3;
}
return $gY ? "disabled" : 0;
n3:
return $gY ? '' : 1;
}
public static function mo_api_site_check()
{
return true;
$DM = false;
$rv = get_option("mo_azos_customer_token");
if (!get_option("site_ck_l")) {
goto G6;
}
if (!(wpWrapper::mo_api_decrypt_data(get_option("site_ck_l"), $rv) == "true")) {
goto M7;
}
$DM = true;
M7:
G6:
if (!($DM && wpWrapper::mo_api_lk_multi_host())) {
goto wF;
}
$Os = get_option("mo_azos_vl_check_t");
if (!$Os) {
goto gL;
}
$Os = intval($Os);
if (!(time() - $Os < 3600 * 24 * 3)) {
goto Pb;
}
return $DM;
Pb:
gL:
$l6 = get_option("azos_lk");
if (!$l6) {
goto fd;
}
$l6 = wpWrapper::mo_api_decrypt_data($l6, $rv);
$TG = new CustomerMOAZOS();
$VN = $TG->mo_azos_vl($l6, true);
if ($VN) {
goto OK;
}
return;
OK:
$VN = json_decode($VN, true);
if (strcasecmp($VN["status"], "SUCCESS") == 0) {
goto nG;
}
update_option("vl_check_s", wpWrapper::mo_api_encrypt_data("false", $rv));
goto xR;
nG:
delete_option("vl_check_s");
xR:
fd:
update_option("mo_azos_vl_check_t", time());
wF:
return $DM;
}
public static function mo_api_lk_multi_host()
{
$Gm = get_option("vl_check_s");
$rv = get_option("mo_azos_customer_token");
if (!$Gm) {
goto BE;
}
$Gm = wpWrapper::mo_api_decrypt_data($Gm, $rv);
if (!($Gm == "false")) {
goto Hn;
}
return true;
Hn:
BE:
return false;
}
public static function mo_api_deactivate()
{
delete_option("mo_saml_host_name");
delete_option("mo_saml_new_registration");
delete_option("mo_saml_admin_phone");
delete_option("mo_saml_admin_password");
delete_option("mo_azos_verify_customer");
delete_option("mo_saml_admin_customer_key");
delete_option("mo_saml_admin_api_key");
delete_option("mo_azos_customer_token");
delete_option("mo_saml_message");
delete_option("mo_azos_registration_status");
delete_option("mo_saml_idp_config_complete");
delete_option("mo_saml_transactionId");
delete_option("mo_azos_vl_check_t");
delete_option("azos_lk");
delete_option("vl_check_s");
delete_option("mo_saml_cert");
delete_option("mo_saml_cert_private_key");
delete_option("mo_saml_enable_cloud_broker");
}
public static function mo_api_check_plugin_state()
{
echo "<div style="width:90%;margin:17px;">";
if (!wpWrapper::mo_api_is_customer_registered()) {
goto Tq;
}
if (wpWrapper::mo_api_is_customer_license_key_verified()) {
goto AK;
}
echo "<div><div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">";
if (!wpWrapper::mo_api_site_check()) {
goto s9;
}
echo "Please enter your<a href="" . add_query_arg(array("tab" => "account_setup"), $_SERVER["REQUEST_URI"]) . ""> license key</a> to activate the plugin.";
goto Z2;
s9:
echo "Please enter your<a href="" . add_query_arg(array("tab" => "account_setup"), $_SERVER["REQUEST_URI"]) . ""> license key</a> to activate the plugin.";
Z2:
echo "</div></div>";
AK:
goto F7;
Tq:
echo "<div>\xd
<div style="display:block;margin-top:10px;color:red;background-color:rgba(251, 232, 0, 0.15);padding:5px;border:solid 1px rgba(255, 0, 9, 0.36);">Please <a href="" . add_query_arg(array("tab" => "account_setup"), $_SERVER["REQUEST_URI"]) . "">Register or Login with miniOrange</a> to configure the User Sync for Azure AD / Azure B2C Plugin.</div></div>";
F7:
echo "</div>";
}
private function mo_api__update_advanced_details($n3, $ik, $GO)
{
if (!is_array($ik)) {
goto Y7;
}
foreach ($ik as $rv => $Yr) {
if (!(array_key_exists($Yr, $GO) && !empty($GO[$Yr]))) {
goto s0;
}
update_user_meta($n3, $rv, $GO[$Yr]);
s0:
KI:
}
fw:
Y7:
update_user_meta($n3, "mo_api_azure_id", $GO["id"]);
}
private function mo_api__update_sharepoint_advanced_details($n3, $jE, $A4)
{
if (!is_array($jE)) {
goto IL;
}
foreach ($jE as $rv => $Yr) {
if (!(array_key_exists($Yr, $A4) && !empty($A4[$Yr]))) {
goto Zd;
}
update_user_meta($n3, $rv, $A4[$Yr]);
Zd:
m6:
}
ob:
IL:
}
public function mo_api_delete_user($n3)
{
if (self::mo_api__is_network_active()) {
goto BA;
}
require_once ABSPATH . "wp-admin/includes/user.php";
wp_delete_user($n3);
goto vu;
BA:
if (!function_exists("wpmu_delete_user")) {
require_once ABSPATH . "wp-admin/includes/ms.php";
}
wpmu_delete_user($n3);
vu:
}
public static function mo_api_get_sync_users()
{
global $wpdb;
$vd = $wpdb->get_results("SELECT user_id FROM wp_usermeta where meta_key = 'mo_api_azure_id'", OBJECT);
if (!empty($vd)) {
goto Fz;
}
return 0;
Fz:
return sizeof($vd);
}
public static function mo_api_usr_limit_reached()
{
$rv = wpWrapper::mo_api_get_option("mo_azos_customer_token");
$R7 = wpWrapper::mo_api_decrypt_data(wpWrapper::mo_api_get_option("mo_azos_users_count"), $rv);
$yn = wpWrapper::mo_api_get_sync_users();
if ($yn >= $R7) {
goto Sv;
}
return ["status" => 0, "usr_lk" => $R7, "users" => $yn];
goto sb;
Sv:
return ["status" => 1, "usr_lk" => $R7, "users" => $yn];
sb:
}
private function mo_api_get_user_id($P3, $Ra)
{
$n3 = username_exists($P3);
if ($n3) {
goto rK;
}
$n3 = email_exists($Ra);
rK:
return $n3;
}
public function mo_api_do_basic_mapping($user, $g1, $cQ = null)
{
$V4 = [];
$AK = array();
$AK["user_login"] = "mailNickname";
$AK["user_email"] = "userPrincipalName";
$AK["first_name"] = "givenName";
$AK["last_name"] = "surname";
$AK["display_name"] = "displayName";
if (empty($g1["basic_mapping"])) {
goto Uu;
}
foreach ($g1["basic_mapping"] as $rv => $Yr) {
if (array_key_exists($Yr, $user) && isset($user[$Yr])) {
goto Lb;
}
if (!array_key_exists($AK[$rv], $user)) {
goto qO;
}
$V4[$rv] = $user[$AK[$rv]];
qO:
goto BU;
Lb:
$V4[$rv] = sanitize_text_field($user[$Yr]);
BU:
wD:
}
oU:
goto yx;
Uu:
foreach ($AK as $rv => $Yr) {
$V4[$rv] = sanitize_text_field($user[$AK[$rv]]);
y3:
}
Qd:
yx:
if (array_key_exists("user_login", $V4)) {
goto Vi;
}
$V4["user_login"] = '';
goto Ai;
Vi:
$V4["user_login"] = sanitize_user($V4["user_login"]);
Ai:
if (array_key_exists("user_email", $V4)) {
goto FT;
}
$V4["user_email"] = '';
goto Sn;
FT:
$V4["user_email"] = sanitize_email($V4["user_email"]);
Sn:
$n3 = $this->mo_api_get_user_id($V4["user_login"], $V4["user_email"]);
if ($n3) {
goto l_;
}
$V4["user_registered"] = date("Y-m-d H:i:s", time());
$V4["user_pass"] = wp_generate_password("12", false);
goto tu;
l_:
$V4["ID"] = $n3;
tu:
$sm = wpWrapper::mo_api_get_option(pluginConstants::auto_update_users_in_ad) ?? '';
$Tc = wpWrapper::mo_api_get_option(pluginConstants::auto_create_users_in_ad) ?? '';
if (!($Tc && $sm)) {
goto To;
}
update_option("mo__ad_to_wp_syncing", true);
To:
$DM = wp_insert_user($V4);
$this->mo_api__update_advanced_details($DM, $g1["adv_mapping"], $user);
$this->mo_api__update_sharepoint_advanced_details($DM, $g1["sharepoint_mapping"], $user);
$this->mo_api__update_profile_pic_details($g1["profile_mapping"], $user);
$this->mo_api__update_taxanomy_details($DM, $g1["taxanomy_mapping"], $user, $cQ);
$this->mo_api__update_bp_field_details($DM, $g1["bp_field_mapping"], $user);
$this->mo_api__update_role_details($DM, $g1["role_mapping"], $user);
return $DM;
}
public function mo_api__update_profile_pic_details($pp, $user)
{
if (!($pp && isset($pp["profile_pic_sync"]) && $pp["profile_pic_sync"] == "on")) {
goto ad;
}
$cZ = wpWrapper::mo_api_get_option(pluginConstants::client_config);
$a2 = azure::getClient($cZ);
$wN = $a2->get_profile_pic($user["id"]);
if (!empty($wN)) {
goto Jc;
}
if (empty($pp["profile_pic_value"])) {
goto Tb;
}
$this->store_profile_pic_to_uploads($pp["profile_pic_value"], "default");
Tb:
goto vg;
Jc:
$this->store_profile_pic_to_uploads($wN, $user["id"]);
vg:
ad:
}
public function mo_api__update_bp_field_details($lV, $M6, $user)
{
if (!function_exists("is_plugin_active")) {
include_once ABSPATH . "wp-admin/includes/plugin.php";
}
if (is_plugin_active("buddypress/bp-loader.php")) {
goto XX;
}
return;
XX:
if (is_numeric($lV)) {
goto Du;
}
return;
Du:
if (!empty($M6)) {
goto o6;
}
return;
o6:
if (is_array($M6)) {
goto tZ;
}
$M6 = [];
tZ:
foreach ($M6 as $YF => $LV) {
if (!(isset($LV["value"]) && isset($user[$LV["value"]]))) {
goto ps;
}
if ($LV["type"] == "datebox") {
goto wl;
}
xprofile_set_field_data(str_replace("_", " ", $YF), $lV, $user[$LV["value"]]);
goto zG;
wl:
xprofile_set_field_data(str_replace("_", " ", $YF), $lV, date("Y-m-d 00:00:00", strtotime($user[$LV["value"]])));
zG:
ps:
Ir:
}
g6:
}
public function mo_api__update_taxanomy_details($lV, $KQ, $user, $cQ)
{
if (!is_null($cQ)) {
goto c2;
}
return;
c2:
if (is_numeric($lV)) {
goto BC;
}
return;
BC:
if (!empty($KQ)) {
goto jb;
}
return;
jb:
if (is_array($KQ)) {
goto LX;
}
$KQ = [];
LX:
foreach ($KQ as $GF => $hA) {
if (!(!empty($hA) && isset($cQ[$hA]))) {
goto Rt;
}
wp_set_object_terms($lV, $cQ[$hA], $GF);
Rt:
Gk:
}
Lp:
}
public function mo_api__update_role_details($lV, $e_, $user)
{
if (!empty($e_)) {
goto OL;
}
return;
OL:
$Tw = get_user_by("id", $lV);
$cZ = wpWrapper::mo_api_get_option(pluginConstants::client_config);
$a2 = azure::getClient($cZ);
$Ip = $a2->check_if_user_is_group_member($user["id"]);
if (!isset($Ip["value"])) {
goto aR;
}
$Ip = $Ip["value"];
$Ip = array_map(function ($kH) {
return $kH["id"];
}, $Ip);
foreach ($e_ as $mM => $Qp) {
if (in_array($Qp, $Ip)) {
goto WG;
}
$Tw->remove_role($mM);
goto Cb;
WG:
$Tw->add_role($mM);
Cb:
L1:
}
p7:
aR:
}
public function store_profile_pic_to_uploads($Fn, $N5)
{
$Ie = wp_upload_dir();
$Hf = str_replace("/", DIRECTORY_SEPARATOR, $Ie["basedir"]) . DIRECTORY_SEPARATOR . "mo_gravatars" . DIRECTORY_SEPARATOR;
$OQ = str_replace("data:image/jpeg;base64,", '', $Fn);
$OQ = str_replace(" ", "+", $OQ);
$Gg = base64_decode($OQ);
$Bf = $N5 . ".jpeg";
$Vw = "image/jpeg";
if ($N5 == "default") {
goto qc;
}
$Jg = md5($Bf) . "_" . $Bf;
goto Ln;
qc:
$Jg = $Bf;
Ln:
if (is_dir($Hf)) {
goto mi;
}
mkdir($Hf, 0777, true);
mi:
$EE = file_put_contents($Hf . $Jg, $Gg);
$aB = array("post_mime_type" => $Vw, "post_title" => preg_replace("/\.[^.]+$/", '', basename($Jg)), "post_content" => '', "post_status" => "inherit", "guid" => $Ie["url"] . "/" . basename($Jg));
$GU = wp_insert_attachment($aB, $Ie["path"] . "/" . $Jg);
}
public function mo_azos_array_flatten_attributes($yW)
{
$Ky = [];
foreach ($yW as $rv => $Yr) {
if (!empty($Yr)) {
goto Oq;
}
goto C8;
Oq:
if (!is_array($Yr)) {
goto Dp;
}
$this->mo_azos_flatten_lvl_2($rv, $Yr, $Ky);
goto qj;
Dp:
$Ky[$rv] = sanitize_text_field($Yr);
qj:
C8:
}
QE:
return $Ky;
}
public function mo_azos_flatten_lvl_2($fb, $Ky, &$h9)
{
foreach ($Ky as $rv => $Yr) {
if (!empty($Yr)) {
goto Cf;
}
goto Md;
Cf:
if (!is_array($Yr)) {
goto Nc;
}
$this->mo_azos_flatten_lvl_2($fb . "|" . $rv, $Yr, $h9);
goto oV;
Nc:
if (strpos(strtolower($fb), "error")) {
goto fp;
}
$h9[$fb . "|" . $rv] = $Yr;
fp:
oV:
Md:
}
rG:
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace moApiIntegrator\Wrapper;
use moApiIntegrator\API\azure;
use moApiIntegrator\API\CustomerMOAZOS;
class wpWrapper
{
private static $wrapper;
public static function getWrapper()
{
if (isset(self::$wrapper)) {
goto d0;
}
self::$wrapper = new wpWrapper();
d0:
return self::$wrapper;
}
public static function mo_api_set_option($rv, $Yr)
{
update_option($rv, $Yr);
}
public static function mo_api_get_option($rv)
{
return get_option($rv);
}
public static function mo_api_delete_option($rv)
{
return delete_option($rv);
}
public static function mo_api__show_error_notice($I0)
{
self::mo_api_set_option(pluginConstants::notice_message, $I0);
$UA = "\x61\x64\x6d\151\x6e\x5f\156\x6f\x74\151\x63\145\x73";
if (!is_plugin_active_for_network(pluginConstants::mo_api_plugin_file_path)) {
goto bR;
}
$UA = "\156\x65\164\x77\157\x72\153\137" . $UA;
bR:
remove_action($UA, [self::getWrapper(), "\155\x6f\x5f\x61\160\151\137\163\165\x63\143\145\163\x73\x5f\x6e\157\x74\x69\x63\x65"]);
add_action($UA, [self::getWrapper(), "\155\x6f\137\141\160\151\x5f\145\162\162\x6f\x72\137\156\157\x74\151\143\x65"]);
}
public static function mo_api__show_success_notice($I0)
{
self::mo_api_set_option(pluginConstants::notice_message, $I0);
$UA = "\141\x64\x6d\151\156\x5f\156\x6f\x74\151\143\145\163";
if (!self::mo_api__is_network_active()) {
goto V_;
}
$UA = "\156\x65\x74\167\x6f\x72\153\x5f" . $UA;
V_:
remove_action($UA, [self::getWrapper(), "\155\157\137\x61\x70\x69\x5f\145\x72\x72\157\x72\x5f\x6e\157\164\151\x63\145"]);
add_action($UA, [self::getWrapper(), "\155\157\137\141\160\151\x5f\x73\x75\143\143\145\163\163\137\156\157\164\x69\x63\145"]);
}
public static function mo_api__is_network_active()
{
if (!function_exists("\151\163\137\160\154\165\147\151\156\x5f\x61\x63\x74\x69\x76\145\x5f\146\157\162\137\x6e\x65\x74\167\157\162\153")) {
require_once ABSPATH . "\57\x77\x70\x2d\141\144\x6d\x69\156\57\151\x6e\143\x6c\x75\144\145\163\x2f\160\154\165\147\x69\156\x2e\x70\150\x70";
}
return is_plugin_active_for_network(pluginConstants::mo_api_plugin_file_path);
}
public static function mo_api__checkPasswordPattern($MD)
{
$LF = "\57\136\x5b\50\x5c\167\51\x2a\x28\134\41\x5c\x40\x5c\x23\134\44\134\45\x5c\136\x5c\x26\x5c\x2a\134\x2e\134\x2d\134\137\51\52\135\53\x24\x2f";
return !preg_match($LF, $MD);
}
public static function mo_api__fetch_sanitized_post_data()
{
$w8 = $_POST;
foreach ($w8 as $rv => $Yr) {
if (empty($Yr) || $Yr == '' || $rv == "\157\x70\164\151\x6f\x6e" || $rv == "\155\157\137\141\x70\151\x5f\x74\x61\142" || $rv == "\x5f\x77\160\156\157\156\x63\145" || $rv == "\x5f\x77\x70\x5f\150\164\164\x70\x5f\x72\x65\146\x65\x72\x65\x72") {
goto Pa;
}
$w8[$rv] = sanitize_text_field($Yr);
goto qo;
Pa:
unset($w8[$rv]);
qo:
UJ:
}
pG:
return $w8;
}
public static function mo_api_get__ad_attributes($bD = false)
{
if (!$bD) {
goto mE;
}
return wpWrapper::mo_api_get_option(pluginConstants::testConfigRawAttributeNames);
mE:
return wpWrapper::mo_api_get_option(pluginConstants::testConfigAttributeNames);
}
public function mo_api_success_notice()
{
$RN = "\x75\x70\144\141\164\x65\144";
$I0 = self::mo_api_get_option(pluginConstants::notice_message);
echo "\74\144\151\166\40\143\154\x61\163\x73\x3d\47" . $RN . "\x27\x3e\x20\x3c\x70\76" . $I0 . "\x3c\x2f\160\x3e\74\x2f\144\151\x76\76";
}
public function mo_api_error_notice()
{
$RN = "\145\162\x72\x6f\x72";
$I0 = self::mo_api_get_option(pluginConstants::notice_message);
echo "\74\x64\x69\166\x20\x63\x6c\141\163\163\x3d\47" . $RN . "\47\76\x20\x3c\160\76" . $I0 . "\x3c\x2f\x70\76\74\57\x64\151\x76\76";
}
public static function mo_api_encrypt_data($w8, $rv)
{
$rv = openssl_digest($rv, "\x73\150\141\x32\65\x36");
$fx = "\101\x45\x53\55\61\62\x38\x2d\105\x43\102";
$y7 = openssl_encrypt($w8, $fx, $rv, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
return base64_encode($y7);
}
public static function djkasjdksa()
{
$sD = "\x21\176\x40\43\44\45\136\x26\x2a\x28\51\137\53\x7c\173\x7d\74\x3e\77\60\61\x32\x33\x34\65\66\x37\70\x39\141\142\x63\144\145\x66\147\x68\151\152\153\x6c\155\156\x6f\x70\161\162\x73\164\165\x76\x77\x78\171\x7a\101\x42\103\104\105\106\x47\x48\x49\x4a\113\x4c\x4d\116\117\x50\x51\x52\x53\124\125\126\x57\130\131\x5a";
$es = strlen($sD);
$Y_ = '';
$At = 0;
p2:
if (!($At < 10000)) {
goto JE;
}
$Y_ .= $sD[rand(0, $es - 1)];
WM:
$At++;
goto p2;
JE:
return $Y_;
}
public static function mo_api_sps_get_domain_from_url($Nk)
{
$gr = parse_url($Nk, PHP_URL_SCHEME);
$OY = '';
if ($gr == "\x68\x74\164\160") {
goto dH;
}
$OY = str_replace("\150\x74\164\x70\163\72\x2f\x2f", '', $Nk);
goto nl;
dH:
$OY = str_replace("\x68\x74\x74\160\72\57\57", '', $Nk);
nl:
$OY = rtrim($OY, "\x2f");
return $OY;
}
public static function mo_api_decrypt_data($w8, $rv)
{
$Et = base64_decode($w8);
$rv = openssl_digest($rv, "\x73\x68\141\x32\x35\66");
$fx = "\x41\105\x53\x2d\x31\x32\70\x2d\105\x43\x42";
$EG = openssl_cipher_iv_length($fx);
$HL = substr($Et, 0, $EG);
$w8 = substr($Et, $EG);
$yd = openssl_decrypt($w8, $fx, $rv, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $HL);
return $yd;
}
public static function mo_api_is_customer_registered($gY = false)
{
$nE = get_option("\x6d\157\137\x73\x61\x6d\154\137\x61\144\x6d\x69\156\137\145\155\x61\x69\x6c");
$AZ = get_option("\x6d\x6f\x5f\163\x61\155\x6c\137\141\x64\x6d\x69\156\x5f\143\x75\163\x74\157\x6d\145\162\x5f\153\145\x79");
if (!(!$nE || !$AZ || !is_numeric(trim($AZ)))) {
goto aT;
}
return $gY ? "\x64\x69\x73\141\142\x6c\145\x64" : 0;
aT:
return $gY ? '' : 1;
}
public static function mo_api_is_customer_license_key_verified($gY = false)
{
$rv = get_option("\x6d\x6f\137\x61\x7a\x6f\x73\x5f\143\x75\x73\164\157\155\x65\162\x5f\164\x6f\153\x65\156");
$vm = get_option("\141\172\157\163\x5f\154\153");
$nE = get_option("\155\157\x5f\163\141\155\x6c\x5f\x61\x64\155\x69\x6e\x5f\x65\155\141\151\x6c");
$AZ = get_option("\155\x6f\137\x73\x61\x6d\x6c\137\141\x64\x6d\x69\x6e\137\x63\165\x73\x74\157\x6d\145\x72\137\153\x65\x79");
if (!(!$vm || !$nE || !$AZ || !is_numeric(trim($AZ)))) {
goto n3;
}
return $gY ? "\144\x69\163\x61\x62\x6c\145\144" : 0;
n3:
return $gY ? '' : 1;
}
public static function mo_api_site_check()
{
return true;
$DM = false;
$rv = get_option("\155\x6f\x5f\x61\172\157\163\137\143\165\x73\x74\x6f\x6d\x65\x72\137\x74\157\153\x65\156");
if (!get_option("\x73\x69\x74\145\x5f\x63\x6b\137\x6c")) {
goto G6;
}
if (!(wpWrapper::mo_api_decrypt_data(get_option("\163\151\x74\145\x5f\x63\x6b\x5f\x6c"), $rv) == "\x74\x72\x75\x65")) {
goto M7;
}
$DM = true;
M7:
G6:
if (!($DM && wpWrapper::mo_api_lk_multi_host())) {
goto wF;
}
$Os = get_option("\x6d\157\137\x61\x7a\157\163\137\166\154\137\x63\x68\145\x63\153\137\164");
if (!$Os) {
goto gL;
}
$Os = intval($Os);
if (!(time() - $Os < 3600 * 24 * 3)) {
goto Pb;
}
return $DM;
Pb:
gL:
$l6 = get_option("\x61\172\157\x73\137\x6c\x6b");
if (!$l6) {
goto fd;
}
$l6 = wpWrapper::mo_api_decrypt_data($l6, $rv);
$TG = new CustomerMOAZOS();
$VN = $TG->mo_azos_vl($l6, true);
if ($VN) {
goto OK;
}
return;
OK:
$VN = json_decode($VN, true);
if (strcasecmp($VN["\x73\x74\x61\164\165\x73"], "\123\x55\x43\x43\x45\123\123") == 0) {
goto nG;
}
update_option("\166\154\x5f\x63\150\x65\x63\153\x5f\x73", wpWrapper::mo_api_encrypt_data("\x66\141\154\163\145", $rv));
goto xR;
nG:
delete_option("\x76\154\137\x63\x68\145\x63\153\137\x73");
xR:
fd:
update_option("\x6d\x6f\x5f\141\172\x6f\163\x5f\x76\x6c\137\x63\x68\x65\143\153\137\164", time());
wF:
return $DM;
}
public static function mo_api_lk_multi_host()
{
$Gm = get_option("\166\x6c\x5f\143\x68\145\143\153\x5f\163");
$rv = get_option("\x6d\157\137\x61\x7a\x6f\163\x5f\143\165\x73\164\x6f\x6d\x65\x72\x5f\x74\157\x6b\x65\x6e");
if (!$Gm) {
goto BE;
}
$Gm = wpWrapper::mo_api_decrypt_data($Gm, $rv);
if (!($Gm == "\146\141\x6c\x73\145")) {
goto Hn;
}
return true;
Hn:
BE:
return false;
}
public static function mo_api_deactivate()
{
delete_option("\155\157\137\163\x61\155\154\137\x68\157\163\x74\x5f\x6e\141\155\145");
delete_option("\155\157\x5f\x73\x61\x6d\154\x5f\156\145\x77\x5f\162\x65\x67\x69\x73\x74\162\141\164\x69\157\156");
delete_option("\x6d\157\137\163\x61\155\x6c\x5f\x61\144\155\151\x6e\137\160\x68\x6f\156\x65");
delete_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\x61\x64\x6d\x69\156\x5f\160\141\163\163\x77\x6f\x72\x64");
delete_option("\x6d\x6f\x5f\x61\172\157\163\x5f\x76\145\162\x69\146\171\x5f\x63\x75\163\x74\x6f\155\x65\162");
delete_option("\155\157\x5f\x73\x61\155\x6c\x5f\x61\144\x6d\x69\x6e\137\x63\165\163\164\157\x6d\x65\x72\137\153\x65\x79");
delete_option("\155\157\137\x73\x61\x6d\154\137\141\144\x6d\x69\156\x5f\141\x70\151\x5f\x6b\145\x79");
delete_option("\x6d\x6f\x5f\x61\172\157\x73\137\x63\165\x73\164\x6f\155\145\162\137\x74\157\x6b\145\156");
delete_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x6d\145\163\163\141\x67\145");
delete_option("\155\157\x5f\141\x7a\x6f\163\x5f\x72\x65\x67\151\163\164\x72\141\164\x69\157\x6e\137\x73\x74\141\x74\165\x73");
delete_option("\155\157\137\163\x61\x6d\154\137\x69\x64\160\x5f\x63\157\156\x66\151\147\137\143\x6f\x6d\x70\154\145\164\x65");
delete_option("\155\x6f\x5f\x73\141\155\x6c\x5f\x74\162\x61\156\163\x61\143\164\151\x6f\x6e\111\144");
delete_option("\155\157\137\x61\x7a\x6f\163\137\x76\154\137\x63\x68\145\x63\x6b\x5f\164");
delete_option("\141\x7a\x6f\163\137\154\x6b");
delete_option("\166\154\137\x63\x68\x65\143\153\x5f\x73");
delete_option("\155\x6f\137\x73\141\x6d\x6c\x5f\143\x65\162\164");
delete_option("\155\157\x5f\163\141\x6d\x6c\137\x63\145\162\x74\x5f\x70\162\x69\166\141\164\145\x5f\153\145\171");
delete_option("\x6d\157\x5f\163\141\155\x6c\x5f\x65\156\x61\142\154\145\x5f\x63\154\x6f\165\x64\137\x62\x72\x6f\153\x65\162");
}
public static function mo_api_check_plugin_state()
{
echo "\74\x64\x69\166\x20\163\164\x79\x6c\145\x3d\x22\167\x69\x64\164\x68\72\x39\60\x25\x3b\155\141\162\147\x69\x6e\72\61\x37\160\170\x3b\x22\x3e";
if (!wpWrapper::mo_api_is_customer_registered()) {
goto Tq;
}
if (wpWrapper::mo_api_is_customer_license_key_verified()) {
goto AK;
}
echo "\x3c\144\x69\166\76\74\x64\151\x76\40\163\x74\x79\x6c\145\75\x22\144\x69\x73\160\154\x61\x79\72\x62\x6c\157\x63\153\73\x6d\x61\x72\147\151\x6e\55\164\x6f\x70\x3a\61\x30\160\170\x3b\x63\157\x6c\x6f\162\x3a\162\x65\144\73\x62\x61\x63\153\147\x72\x6f\x75\156\x64\55\x63\157\x6c\x6f\162\72\162\147\x62\x61\x28\62\65\x31\54\x20\62\63\x32\54\x20\60\54\x20\60\56\x31\65\x29\73\x70\x61\144\144\x69\x6e\147\x3a\x35\160\x78\73\142\157\162\x64\145\162\72\163\157\154\151\x64\x20\61\x70\x78\40\162\147\x62\141\50\x32\65\65\x2c\x20\x30\x2c\40\x39\54\x20\60\56\x33\66\x29\73\x22\x3e";
if (!wpWrapper::mo_api_site_check()) {
goto s9;
}
echo "\x50\x6c\145\x61\x73\x65\40\x65\156\164\x65\x72\x20\x79\157\165\162\74\141\x20\x68\x72\x65\146\x3d\42" . add_query_arg(array("\164\141\142" => "\141\x63\143\157\x75\156\164\x5f\x73\x65\x74\165\x70"), $_SERVER["\x52\x45\121\x55\x45\123\x54\137\x55\122\111"]) . "\42\x3e\x20\x6c\x69\x63\145\156\x73\x65\40\x6b\145\x79\74\57\141\x3e\40\164\157\40\141\143\x74\151\166\x61\x74\145\x20\164\x68\145\x20\x70\x6c\165\x67\x69\156\x2e";
goto Z2;
s9:
echo "\120\x6c\x65\x61\163\145\40\x65\x6e\x74\145\x72\40\171\157\165\x72\x3c\x61\40\x68\x72\x65\x66\x3d\42" . add_query_arg(array("\x74\x61\142" => "\x61\x63\143\157\165\156\164\x5f\x73\x65\164\165\x70"), $_SERVER["\122\x45\121\x55\105\x53\124\x5f\125\122\x49"]) . "\42\76\40\154\x69\143\145\156\x73\145\40\x6b\x65\171\x3c\57\141\x3e\40\x74\x6f\40\141\143\x74\x69\x76\141\164\x65\x20\x74\x68\x65\40\160\x6c\x75\147\151\x6e\56";
Z2:
echo "\74\57\x64\151\x76\x3e\74\x2f\x64\151\166\x3e";
AK:
goto F7;
Tq:
echo "\74\x64\x69\x76\x3e\xd\12\x20\x20\x20\x20\74\x64\151\x76\x20\x73\164\x79\154\x65\x3d\42\144\151\163\x70\x6c\141\171\72\142\154\157\x63\x6b\x3b\x6d\141\x72\147\x69\x6e\x2d\164\x6f\160\x3a\61\x30\x70\x78\73\143\x6f\x6c\x6f\x72\x3a\162\145\x64\73\x62\141\143\153\147\x72\157\165\156\144\x2d\x63\x6f\154\157\162\72\x72\x67\x62\x61\x28\62\x35\x31\54\x20\62\x33\62\x2c\x20\60\54\x20\60\56\61\x35\51\x3b\x70\141\x64\144\x69\156\x67\x3a\65\160\170\73\142\x6f\162\144\145\162\x3a\163\157\154\x69\144\40\x31\x70\x78\40\162\x67\x62\141\50\62\65\65\54\x20\60\54\40\71\54\40\60\x2e\x33\x36\x29\73\42\x3e\120\x6c\145\x61\x73\145\40\74\141\40\150\162\x65\x66\75\x22" . add_query_arg(array("\x74\x61\x62" => "\141\143\x63\157\x75\156\x74\137\x73\x65\x74\x75\160"), $_SERVER["\122\x45\x51\x55\x45\123\124\x5f\x55\122\x49"]) . "\x22\x3e\x52\145\x67\x69\163\x74\x65\162\x20\157\162\40\x4c\157\x67\151\156\x20\x77\x69\x74\150\x20\x6d\151\156\151\117\162\141\x6e\147\145\74\57\x61\x3e\x20\164\157\40\143\x6f\x6e\x66\151\x67\165\162\x65\x20\164\x68\145\40\125\x73\145\162\x20\123\x79\156\143\x20\146\x6f\x72\x20\101\172\165\162\x65\40\x41\x44\x20\57\x20\101\x7a\165\x72\145\x20\x42\x32\103\x20\120\154\165\x67\x69\x6e\x2e\74\57\x64\x69\x76\x3e\74\57\144\151\x76\76";
F7:
echo "\x3c\x2f\144\x69\166\x3e";
}
private function mo_api__update_advanced_details($n3, $ik, $GO)
{
if (!is_array($ik)) {
goto Y7;
}
foreach ($ik as $rv => $Yr) {
if (!(array_key_exists($Yr, $GO) && !empty($GO[$Yr]))) {
goto s0;
}
update_user_meta($n3, $rv, $GO[$Yr]);
s0:
KI:
}
fw:
Y7:
update_user_meta($n3, "\x6d\157\137\141\x70\151\137\141\172\x75\x72\145\x5f\151\x64", $GO["\151\144"]);
}
private function mo_api__update_sharepoint_advanced_details($n3, $jE, $A4)
{
if (!is_array($jE)) {
goto IL;
}
foreach ($jE as $rv => $Yr) {
if (!(array_key_exists($Yr, $A4) && !empty($A4[$Yr]))) {
goto Zd;
}
update_user_meta($n3, $rv, $A4[$Yr]);
Zd:
m6:
}
ob:
IL:
}
public function mo_api_delete_user($n3)
{
if (self::mo_api__is_network_active()) {
goto BA;
}
require_once ABSPATH . "\x77\x70\x2d\x61\x64\x6d\151\156\x2f\151\156\x63\154\x75\x64\145\163\57\x75\x73\x65\x72\56\160\x68\160";
wp_delete_user($n3);
goto vu;
BA:
if (!function_exists("\167\x70\x6d\x75\x5f\144\x65\154\145\164\x65\x5f\x75\x73\145\x72")) {
require_once ABSPATH . "\167\160\55\141\144\155\x69\x6e\57\x69\156\x63\154\x75\x64\x65\x73\x2f\x6d\163\56\x70\150\x70";
}
wpmu_delete_user($n3);
vu:
}
public static function mo_api_get_sync_users()
{
global $wpdb;
$vd = $wpdb->get_results("\123\105\114\105\x43\124\x20\x75\x73\x65\x72\x5f\x69\x64\40\x46\x52\117\115\40\x77\160\137\165\x73\x65\x72\155\145\164\141\x20\167\150\145\162\145\x20\155\145\164\141\x5f\x6b\x65\x79\40\x3d\x20\47\x6d\x6f\x5f\141\x70\x69\137\x61\172\165\x72\x65\x5f\151\144\47", OBJECT);
if (!empty($vd)) {
goto Fz;
}
return 0;
Fz:
return sizeof($vd);
}
public static function mo_api_usr_limit_reached()
{
$rv = wpWrapper::mo_api_get_option("\x6d\157\x5f\x61\x7a\x6f\163\x5f\x63\165\163\x74\157\x6d\145\162\x5f\164\157\153\145\156");
$R7 = wpWrapper::mo_api_decrypt_data(wpWrapper::mo_api_get_option("\x6d\x6f\x5f\x61\x7a\x6f\x73\137\165\163\145\x72\163\137\x63\157\x75\156\x74"), $rv);
$yn = wpWrapper::mo_api_get_sync_users();
if ($yn >= $R7) {
goto Sv;
}
return ["\x73\164\x61\x74\165\163" => 0, "\x75\163\162\x5f\154\x6b" => $R7, "\x75\163\x65\162\163" => $yn];
goto sb;
Sv:
return ["\163\x74\x61\x74\x75\x73" => 1, "\x75\x73\x72\137\154\x6b" => $R7, "\x75\163\145\x72\163" => $yn];
sb:
}
private function mo_api_get_user_id($P3, $Ra)
{
$n3 = username_exists($P3);
if ($n3) {
goto rK;
}
$n3 = email_exists($Ra);
rK:
return $n3;
}
public function mo_api_do_basic_mapping($user, $g1, $cQ = null)
{
$V4 = [];
$AK = array();
$AK["\x75\163\x65\x72\137\x6c\157\x67\x69\156"] = "\155\x61\151\x6c\x4e\x69\143\x6b\x6e\x61\x6d\x65";
$AK["\x75\163\x65\162\137\x65\x6d\141\x69\154"] = "\x75\163\x65\x72\120\x72\x69\x6e\143\151\x70\x61\x6c\116\x61\155\x65";
$AK["\146\x69\x72\x73\164\137\x6e\x61\155\x65"] = "\x67\x69\x76\145\x6e\116\141\x6d\x65";
$AK["\x6c\x61\163\164\137\x6e\x61\x6d\x65"] = "\x73\165\x72\x6e\x61\x6d\145";
$AK["\x64\151\x73\160\x6c\141\x79\137\x6e\141\155\x65"] = "\144\151\x73\160\x6c\x61\171\116\141\x6d\x65";
if (empty($g1["\142\141\x73\x69\143\137\155\141\x70\160\x69\156\x67"])) {
goto Uu;
}
foreach ($g1["\x62\141\x73\x69\143\137\155\141\x70\160\x69\156\147"] as $rv => $Yr) {
if (array_key_exists($Yr, $user) && isset($user[$Yr])) {
goto Lb;
}
if (!array_key_exists($AK[$rv], $user)) {
goto qO;
}
$V4[$rv] = $user[$AK[$rv]];
qO:
goto BU;
Lb:
$V4[$rv] = sanitize_text_field($user[$Yr]);
BU:
wD:
}
oU:
goto yx;
Uu:
foreach ($AK as $rv => $Yr) {
$V4[$rv] = sanitize_text_field($user[$AK[$rv]]);
y3:
}
Qd:
yx:
if (array_key_exists("\165\163\145\x72\x5f\x6c\157\x67\x69\156", $V4)) {
goto Vi;
}
$V4["\165\163\145\162\x5f\154\157\147\151\156"] = '';
goto Ai;
Vi:
$V4["\165\x73\x65\x72\x5f\x6c\x6f\x67\151\x6e"] = sanitize_user($V4["\165\163\145\162\137\x6c\157\x67\151\x6e"]);
Ai:
if (array_key_exists("\165\163\145\x72\137\x65\155\x61\151\x6c", $V4)) {
goto FT;
}
$V4["\165\x73\x65\162\x5f\145\155\x61\x69\x6c"] = '';
goto Sn;
FT:
$V4["\x75\163\x65\162\137\145\x6d\141\151\x6c"] = sanitize_email($V4["\x75\163\x65\x72\x5f\145\155\141\151\x6c"]);
Sn:
$n3 = $this->mo_api_get_user_id($V4["\165\x73\x65\162\137\x6c\157\147\151\156"], $V4["\x75\163\145\x72\x5f\x65\155\x61\x69\x6c"]);
if ($n3) {
goto l_;
}
$V4["\x75\163\145\x72\137\x72\145\147\x69\x73\x74\145\x72\x65\144"] = date("\x59\55\x6d\x2d\144\40\110\x3a\x69\x3a\163", time());
$V4["\165\x73\x65\x72\x5f\160\141\163\x73"] = wp_generate_password("\61\62", false);
goto tu;
l_:
$V4["\x49\104"] = $n3;
tu:
$sm = wpWrapper::mo_api_get_option(pluginConstants::auto_update_users_in_ad) ?? '';
$Tc = wpWrapper::mo_api_get_option(pluginConstants::auto_create_users_in_ad) ?? '';
if (!($Tc && $sm)) {
goto To;
}
update_option("\155\157\x5f\x5f\x61\x64\137\x74\x6f\x5f\x77\160\137\x73\x79\x6e\143\151\x6e\147", true);
To:
$DM = wp_insert_user($V4);
$this->mo_api__update_advanced_details($DM, $g1["\141\144\x76\137\155\141\160\160\151\x6e\147"], $user);
$this->mo_api__update_sharepoint_advanced_details($DM, $g1["\x73\150\141\162\x65\x70\x6f\151\x6e\x74\137\155\x61\160\160\151\156\x67"], $user);
$this->mo_api__update_profile_pic_details($g1["\160\162\157\146\x69\154\145\x5f\x6d\141\x70\160\x69\x6e\x67"], $user);
$this->mo_api__update_taxanomy_details($DM, $g1["\x74\141\x78\141\x6e\157\155\171\137\x6d\141\160\x70\x69\x6e\x67"], $user, $cQ);
$this->mo_api__update_bp_field_details($DM, $g1["\x62\160\x5f\x66\151\x65\x6c\144\x5f\x6d\141\160\x70\151\156\x67"], $user);
$this->mo_api__update_role_details($DM, $g1["\162\x6f\154\145\x5f\155\141\x70\160\x69\x6e\147"], $user);
return $DM;
}
public function mo_api__update_profile_pic_details($pp, $user)
{
if (!($pp && isset($pp["\160\x72\157\x66\x69\154\145\137\160\151\143\x5f\163\x79\156\x63"]) && $pp["\x70\x72\157\146\x69\154\145\x5f\160\151\x63\x5f\163\171\156\143"] == "\x6f\156")) {
goto ad;
}
$cZ = wpWrapper::mo_api_get_option(pluginConstants::client_config);
$a2 = azure::getClient($cZ);
$wN = $a2->get_profile_pic($user["\x69\x64"]);
if (!empty($wN)) {
goto Jc;
}
if (empty($pp["\x70\162\x6f\146\x69\154\x65\137\x70\x69\x63\x5f\166\141\x6c\165\145"])) {
goto Tb;
}
$this->store_profile_pic_to_uploads($pp["\160\162\x6f\146\151\x6c\145\137\160\x69\143\x5f\166\x61\154\x75\x65"], "\144\x65\146\141\x75\154\164");
Tb:
goto vg;
Jc:
$this->store_profile_pic_to_uploads($wN, $user["\151\144"]);
vg:
ad:
}
public function mo_api__update_bp_field_details($lV, $M6, $user)
{
if (!function_exists("\151\x73\137\x70\x6c\165\x67\x69\156\x5f\141\x63\x74\151\x76\x65")) {
include_once ABSPATH . "\x77\160\55\x61\x64\155\151\156\57\x69\x6e\x63\154\x75\144\145\163\57\x70\x6c\165\147\x69\x6e\x2e\x70\150\160";
}
if (is_plugin_active("\142\165\x64\144\171\x70\x72\x65\x73\x73\x2f\x62\160\x2d\x6c\157\x61\x64\x65\162\x2e\x70\150\x70")) {
goto XX;
}
return;
XX:
if (is_numeric($lV)) {
goto Du;
}
return;
Du:
if (!empty($M6)) {
goto o6;
}
return;
o6:
if (is_array($M6)) {
goto tZ;
}
$M6 = [];
tZ:
foreach ($M6 as $YF => $LV) {
if (!(isset($LV["\166\x61\154\165\x65"]) && isset($user[$LV["\166\x61\154\x75\145"]]))) {
goto ps;
}
if ($LV["\164\x79\x70\x65"] == "\x64\x61\x74\x65\x62\157\170") {
goto wl;
}
xprofile_set_field_data(str_replace("\137", "\x20", $YF), $lV, $user[$LV["\x76\x61\x6c\x75\145"]]);
goto zG;
wl:
xprofile_set_field_data(str_replace("\137", "\x20", $YF), $lV, date("\131\x2d\155\55\x64\x20\60\x30\x3a\x30\x30\72\x30\x30", strtotime($user[$LV["\x76\141\154\x75\145"]])));
zG:
ps:
Ir:
}
g6:
}
public function mo_api__update_taxanomy_details($lV, $KQ, $user, $cQ)
{
if (!is_null($cQ)) {
goto c2;
}
return;
c2:
if (is_numeric($lV)) {
goto BC;
}
return;
BC:
if (!empty($KQ)) {
goto jb;
}
return;
jb:
if (is_array($KQ)) {
goto LX;
}
$KQ = [];
LX:
foreach ($KQ as $GF => $hA) {
if (!(!empty($hA) && isset($cQ[$hA]))) {
goto Rt;
}
wp_set_object_terms($lV, $cQ[$hA], $GF);
Rt:
Gk:
}
Lp:
}
public function mo_api__update_role_details($lV, $e_, $user)
{
if (!empty($e_)) {
goto OL;
}
return;
OL:
$Tw = get_user_by("\151\x64", $lV);
$cZ = wpWrapper::mo_api_get_option(pluginConstants::client_config);
$a2 = azure::getClient($cZ);
$Ip = $a2->check_if_user_is_group_member($user["\x69\144"]);
if (!isset($Ip["\166\141\154\165\145"])) {
goto aR;
}
$Ip = $Ip["\166\x61\154\165\x65"];
$Ip = array_map(function ($kH) {
return $kH["\x69\144"];
}, $Ip);
foreach ($e_ as $mM => $Qp) {
if (in_array($Qp, $Ip)) {
goto WG;
}
$Tw->remove_role($mM);
goto Cb;
WG:
$Tw->add_role($mM);
Cb:
L1:
}
p7:
aR:
}
public function store_profile_pic_to_uploads($Fn, $N5)
{
$Ie = wp_upload_dir();
$Hf = str_replace("\x2f", DIRECTORY_SEPARATOR, $Ie["\142\141\163\145\144\151\x72"]) . DIRECTORY_SEPARATOR . "\x6d\157\x5f\x67\x72\141\x76\141\164\141\162\x73" . DIRECTORY_SEPARATOR;
$OQ = str_replace("\x64\141\164\141\x3a\151\x6d\x61\x67\145\x2f\152\x70\x65\147\x3b\x62\141\x73\x65\66\x34\54", '', $Fn);
$OQ = str_replace("\40", "\x2b", $OQ);
$Gg = base64_decode($OQ);
$Bf = $N5 . "\56\x6a\160\145\147";
$Vw = "\151\155\x61\147\x65\x2f\152\160\145\x67";
if ($N5 == "\144\x65\146\141\165\x6c\x74") {
goto qc;
}
$Jg = md5($Bf) . "\137" . $Bf;
goto Ln;
qc:
$Jg = $Bf;
Ln:
if (is_dir($Hf)) {
goto mi;
}
mkdir($Hf, 0777, true);
mi:
$EE = file_put_contents($Hf . $Jg, $Gg);
$aB = array("\160\x6f\163\x74\137\x6d\x69\x6d\145\137\164\x79\160\145" => $Vw, "\160\x6f\x73\164\x5f\164\x69\x74\x6c\x65" => preg_replace("\x2f\x5c\56\x5b\136\x2e\x5d\53\44\x2f", '', basename($Jg)), "\x70\x6f\163\x74\137\143\x6f\156\x74\x65\156\x74" => '', "\160\x6f\163\164\137\163\164\x61\164\x75\163" => "\151\x6e\x68\145\x72\151\x74", "\147\x75\151\144" => $Ie["\x75\162\154"] . "\57" . basename($Jg));
$GU = wp_insert_attachment($aB, $Ie["\x70\x61\164\x68"] . "\x2f" . $Jg);
}
public function mo_azos_array_flatten_attributes($yW)
{
$Ky = [];
foreach ($yW as $rv => $Yr) {
if (!empty($Yr)) {
goto Oq;
}
goto C8;
Oq:
if (!is_array($Yr)) {
goto Dp;
}
$this->mo_azos_flatten_lvl_2($rv, $Yr, $Ky);
goto qj;
Dp:
$Ky[$rv] = sanitize_text_field($Yr);
qj:
C8:
}
QE:
return $Ky;
}
public function mo_azos_flatten_lvl_2($fb, $Ky, &$h9)
{
foreach ($Ky as $rv => $Yr) {
if (!empty($Yr)) {
goto Cf;
}
goto Md;
Cf:
if (!is_array($Yr)) {
goto Nc;
}
$this->mo_azos_flatten_lvl_2($fb . "\174" . $rv, $Yr, $h9);
goto oV;
Nc:
if (strpos(strtolower($fb), "\x65\x72\162\157\x72")) {
goto fp;
}
$h9[$fb . "\x7c" . $rv] = $Yr;
fp:
oV:
Md:
}
rG:
}
}
Function Calls
None |
Stats
MD5 | b14cf03d4cd0e3b067d7e01d08590483 |
Eval Count | 0 |
Decode Time | 62 ms |