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 /* Plugin Name: LDAP/Active Directory Login for Intranet Sites Plugin URI: http:/..
Decoded Output download
<?php
/*
Plugin Name: LDAP/Active Directory Login for Intranet Sites
Plugin URI: http://miniorange.com
Description: LDAP/Active Directory Login Plugin provides login to WordPress using credentials stored in your LDAP Server.
Author: miniOrange
Version: 27.0.0
Author URI: http://miniorange.com
*/
require_once "mo_ldap_pages.php";
require "mo_ldap_support.php";
require "class-mo-ldap-customer-setup.php";
require "class-mo-ldap-utility.php";
require "class-mo-ldap-config.php";
require "class-mo-ldap-role-mapping.php";
require "mo_ldap_licensing_plans.php";
require_once "mo-utility-framework.php";
require_once "includes/lib/utility/autoloader.php";
require_once "includes/lib/utility/src/class-mo-utility-service.php";
require_once "mo-ldap-feedback-form.php";
require_once "mo-ldap-intranet-version-update.php";
require_once dirname(__FILE__) . "/includes/lib/export.php";
require_once dirname(__FILE__) . "/Directories/DirectoryFactory.php";
use MOLDAP\LicenseLibrary\Classes\Mo_Utility_Library;
use MOLDAP\LicenseLibrary\Mo_Utility_Service;
define("Tab_ldap_Class_Names", serialize(array("ldap_Login" => "mo_options_ldap_acc_details", "ldap_config" => "mo_options_ldap_config_details", "Role_Mapping" => "mo_option_ldap_role_mapping", "Attribute_Mapping" => "mo_options_ldap_enum_attribute_mapping", "Dirsync_Ldap_To_Wp_Sync" => "mo_option_ldap_dirsync_ldap_to_wp_sync", "Dirsync_Wp_To_Ldap_sync" => "mo_option_ldap_dirsync_wp_to_ldap_sync", "plugin_version" => "mo_plugin_info")));
define("MO_LDAP_LOCAL_HOST_NAME", "https://login.xecurify.com");
define("MO_LDAP_BASE_DIR_PATH", __DIR__);
error_reporting(E_ERROR);
class Mo_Ldap_Local_Login
{
function __construct()
{
$jJ = 7;
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
$fS = new Mo_Utility_Library($Hi);
add_action("admin_menu", array($this, "mo_ldap_local_login_widget_menu"));
add_action("admin_init", array($this, "login_widget_save_options"));
add_action("init", array($this, "test_attribute_configuration"));
add_action("admin_enqueue_scripts", array($this, "mo_ldap_local_settings_style"));
add_action("admin_enqueue_scripts", array($this, "mo_ldap_local_settings_script"));
$HB = get_option("mo_ldap_local_enable_update_ldap");
if (!($HB == 1)) {
goto iI;
}
add_action("profile_update", array($this, "update_profile"), 10, 2);
iI:
$Yu = !empty(get_option("mo_ldap_plugin_version")) ? get_option("mo_ldap_plugin_version") : "none";
if (!(strcasecmp($Yu, "27.0.0") != 0)) {
goto WW;
}
Mo_Ldap_Local_Util::bp_hjey_hpfeh_dy_mysvejr($Yu);
update_option("mo_ldap_plugin_version", "27.0.0");
WW:
remove_action("admin_notices", array($this, "success_message"));
remove_action("admin_notices", array($this, "error_message"));
register_deactivation_hook(__FILE__, array($this, "mo_ldap_local_deactivate"));
add_action("show_user_profile", array($this, "show_user_profile"));
add_action("edit_user_profile", array($this, "show_user_profile"));
$x8 = get_option("mo_ldap_local_authorized_users_only");
if (!($x8 == 1)) {
goto uO;
}
add_action("wp", array($this, "mo_ldap_local_login_redirect"));
uO:
if (!in_array("next-active-directory-integration/index.php", (array) get_option("active_plugins", array()), true)) {
goto GE;
}
$jJ = 20;
GE:
$L2 = get_option("mo_ldap_local_enable_login");
if (!($L2 == 1)) {
goto Gf;
}
remove_filter("authenticate", "wp_authenticate_username_password", 20, 3);
add_filter("authenticate", array($this, "ldap_login"), $jJ, 3);
add_filter("login_redirect", array($this, "mo_ldap_local_custom_redirect"), 10, 3);
Gf:
$XA = get_option("mo_ldap_local_enable_attr_mapping");
if (!($XA == 1)) {
goto kh;
}
add_action("mo_ldap_attribute_to_usermeta_update", array($this, "mo_ldap_custom_usermeta_update"), 101, 1);
kh:
register_activation_hook(__FILE__, array($this, "mo_ldap_activate"));
add_action("mo_ldap_local_utility_sync", array($this, "mo_ldap_local_utility_sync"));
add_action("flushcache", array($this, "update_status"), 10, 3);
add_filter("mo_check_config", array($this, "wa_hwfrqar_oehwj"));
if (!$Hi) {
goto CM;
}
add_action("admin_footer", array($this, "ldap_feedback_request"));
CM:
}
public function wa_hwfrqar_oehwj()
{
$ve = Mo_Utility_Service::wa_hwfrqar_rnywvrj();
$sK = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ("LICENSE_VALID" === $ve["CODE"]) {
goto yL;
}
if ($sK) {
goto Xo;
}
if (!$ve["STATUS"]) {
goto Ii;
}
goto s7;
Xo:
return false;
goto s7;
Ii:
return true;
s7:
goto AK;
yL:
return true;
AK:
return false;
}
public function ldap_feedback_request()
{
display_ldap_feedback_form();
}
function mo_ldap_local_custom_redirect($yt, $Me, $user)
{
$fB = get_option("mo_ldap_local_redirect_to");
if (!(isset($user->roles) && is_array($user->roles))) {
goto rW;
}
if (in_array("administrator", $user->roles)) {
goto f0;
}
if ($fB) {
goto UX;
}
goto TK;
f0:
return $yt;
goto TK;
UX:
if ($fB == "homepage") {
goto cb;
}
if ($fB == "profile") {
goto ip;
}
if ($fB == "custom") {
goto zB;
}
goto hU;
cb:
$yt = home_url();
goto hU;
ip:
$m3 = home_url() . "/wp-admin/profile.php";
$yt = $m3;
goto hU;
zB:
$GG = get_option("mo_ldap_local_custom_redirect");
$yt = $GG;
hU:
TK:
rW:
return $yt;
}
function mo_ldap_local_login_redirect()
{
$S2 = get_queried_object_id();
$EV = rtrim(get_permalink($S2), "/");
$b3 = !empty(get_option("mo_ldap_public_pages_list")) ? unserialize(get_option("mo_ldap_public_pages_list")) : array();
if (!(empty(get_option("mo_ldap_public_pages_enable")) || !in_array(strtolower($EV), $b3))) {
goto Wm;
}
if (is_user_logged_in()) {
goto Ly;
}
auth_redirect();
Ly:
Wm:
}
function bp_srz_fpqtws_azezma($wV)
{
if (!(strcasecmp(Jp_hwfrqar_mzwhwzl_arvowfra::bp_mzwhwzl_azeza($wV), "verified") == 0)) {
goto gH;
}
return true;
gH:
return false;
}
function mo_ldap_custom_usermeta_update($user)
{
$vb = get_option("mo_ldap_attribute_usermeta_mapping");
$Fr = "mo_ldap_local_custom_attribute_";
foreach ($vb as $Hg => $Us) {
$zy = $Fr . $Us;
$AT = get_user_meta($user->ID, $zy, true);
if (empty($AT)) {
goto Ip;
}
update_user_meta($user->ID, $Hg, $AT);
Ip:
A8:
}
Dg:
}
function show_user_profile($user)
{
$ps = unserialize(get_option("mo_ldap_local_custom_attributes"));
echo "\x9\x9<h3>Extra profile information</h3>\xa
<table class="form-table">
\x9\x9<tr>
\x9\x9 \x9<td><b><label for="user_dn">User DN</label></b></td>\xa
\x9\x9\x9 <td>\xa\x9\x9 \x9 <b>";
echo esc_attr(get_the_author_meta("mo_ldap_user_dn", $user->ID));
echo "</b></td>\xa\x9\x9 </td>\xa\x9 </tr>
\x9\x9";
if (!get_the_author_meta("mo_ldap_user_phone", $user->ID)) {
goto s0;
}
echo " \x9\x9 <tr>\xa \x9\x9\x9<td><b><label for="user_phone">User Phone Number</label></b></td>
\x9 \x9<td>
\x9 <b>";
echo esc_attr(get_the_author_meta("mo_ldap_user_phone", $user->ID));
echo "</b>
\x9 \x9</td>\xa \x9 </tr>\xa\x9 ";
s0:
foreach ($ps as $NY => $wV) {
$HE = get_user_meta($user->ID, $NY, true);
if (empty($HE)) {
goto cW;
}
echo " \x9 <tr>
\x9 \x9<td><b><font color="#FF0000"></font>";
echo $wV;
echo "</b></td>\xa \x9 ";
if (is_array($HE)) {
goto Eg;
}
echo "<td>";
echo "<b>" . $HE . "</b><br>";
echo "</td>";
goto uM;
Eg:
echo "<td>";
foreach ($HE as $fY) {
echo "<b>" . $fY . "</b><br>";
kk:
}
wQ:
echo "</td>";
uM:
echo "\x9 \x9\x9\x9</tr>
\x9 \x9";
cW:
vu:
}
Sk:
echo "\x9 </table>\xa
\x9 ";
}
function update_profile($VL, $gX = null)
{
$tx = apply_filters("mo_check_config", '');
if (!$tx) {
goto g3;
}
$ps = unserialize(get_option("mo_ldap_local_custom_attributes"));
$p3 = array();
foreach ($ps as $NY => $wV) {
if (!isset($_POST[$wV])) {
goto xP;
}
$p3[$wV] = $_POST[$wV];
xP:
mH:
}
p1:
$user = get_userdata($VL);
$TN = new Mo_Ldap_Local_Config();
$TN->modify_user_info_in_ldap($user, $p3);
g3:
}
function ldap_login($user, $tp, $mo)
{
$tx = apply_filters("mo_check_config", '');
$tA = get_option("active_plugins");
if (!in_array("miniorange-customize-wp-ldap-login-screen-add-on/add_login_message.php", $tA)) {
goto RB;
}
add_filter("login_message", "add_login_messages");
function add_login_messages($Ur)
{
$pO = get_option("mo_ldap_login_messages");
foreach ($pO as $CX) {
$Ur = $Ur . "<p name='custom-login-message' id='custom-login-message' style='margin-top: 20px;margin-left: 0;padding: 8px 8px 8px;font-weight: 200;overflow: hidden;background: #fff;border: 4px solid #fff;box-shadow: 0 1px 3px rgba(0,0,0,.04);border-left-color: " . $CX["color"] . ";border-top: none;border-bottom: none;'><strong>" . $CX["message"] . "</strong></p>";
dR:
}
Aj:
$Ur = $Ur . "<br>";
return $Ur;
}
RB:
$vu = get_option("mo_ldap_enable_user_session_sync");
if ($vu && in_array("miniorange-terminate-ldap-user-session-on-password-update-add-on/terminate_ldap_user_session_sync.php", $tA)) {
goto Ht;
}
$Zj = false;
goto fh;
Ht:
$Zj = true;
fh:
error_log("Value for LDAP PWD sync : " . $Zj);
if (!(empty($tp) || empty($mo))) {
goto Kd;
}
$qc = new WP_Error();
if (!empty($tp)) {
goto QV;
}
$qc->add("empty_username", __("<strong>ERROR</strong>: Email field is empty."));
QV:
if (!empty($mo)) {
goto RQ;
}
$qc->add("empty_password", __("<strong>ERROR</strong>: Password field is empty."));
RQ:
return $qc;
Kd:
$R3 = get_option("mo_ldap_local_enable_both_login");
$TN = new Mo_Ldap_Local_Config();
$gT = $TN->authenticate_ldap_user($tp, $mo);
if ($gT->statusCode == "LDAP_BIND_SUCCESS_USER_EXISTS" && $tx) {
goto oX;
}
if (!empty($R3) || !$tx) {
goto Vc;
}
if ($gT->statusCode == "LDAP_CONNECTION_ERROR") {
goto gk;
}
if ($gT->statusCode == "LDAP_BIND_ERROR_USER_EXISTS") {
goto Pz;
}
if ($gT->statusCode == "LDAP_EXTENSION_ERROR") {
goto Vq;
}
if ($gT->statusCode == "OPENSSL_EXTENSION_ERROR") {
goto MY;
}
$qc = new WP_Error();
$qc->add("UNKNOWN_ERROR", __("<strong>ERROR</strong>: Unknown error occurred during authetication. Please contact your administrator."));
return $qc;
goto ID;
oX:
$rm = get_option("mo_ldap_enable_ultimate_member_login");
$pm = get_option("mo_ldap_enable_ultimate_member_profile");
$FN = $gT->profileAttributesList;
$JU = $FN["mail"];
if (username_exists($tp) || email_exists($tp) || username_exists($JU) || email_exists($JU)) {
goto yc;
}
$Sq = get_option("mo_ldap_local_register_user");
if (!$Sq) {
goto Yt;
}
$Ww = get_option("mo_ldap_local_enable_fallback_login");
$yZ = wp_generate_password(10, false);
$JU = '';
$kE = '';
$pJ = '';
$Mx = '';
$X0 = '';
$NJ = get_option("mo_ldap_local_enable_attr_mapping");
if (!($NJ == 1)) {
goto j4;
}
$dZ = strtolower(get_option("mo_ldap_local_fname_attribute"));
$CU = strtolower(get_option("mo_ldap_local_lname_attribute"));
$dK = strtolower(get_option("mo_ldap_local_email_attribute"));
$nX = strtolower(get_option("mo_ldap_local_phone_attribute"));
$se = strtolower(get_option("mo_ldap_local_nickname_attribute"));
$JU = $FN[$dK];
$kE = $FN[$dZ];
$pJ = $FN[$CU];
$Mx = $FN[$se];
$X0 = $FN[$nX];
j4:
$o4 = array("user_login" => $tp, "user_email" => $JU, "first_name" => $kE, "last_name" => $pJ, "nickname" => $Mx, "user_pass" => $yZ);
if (!($NJ == 1)) {
goto YH;
}
if (empty($Mx)) {
goto Fm;
}
$o4["nickname"] = $Mx;
Fm:
$Pz = get_option("mo_ldap_local_display_name_attribute");
if (empty($Pz)) {
goto eD;
}
if ($Pz == "nickname" && !empty($Mx)) {
goto lI;
}
if ($Pz == "email") {
goto wr;
}
if ($Pz == "firstname") {
goto TB;
}
if ($Pz == "firstlast") {
goto V6;
}
if ($Pz == "lastfirst") {
goto P7;
}
goto fS;
lI:
$o4["display_name"] = $Mx;
goto fS;
wr:
$o4["display_name"] = $JU;
goto fS;
TB:
$o4["display_name"] = $kE;
goto fS;
V6:
$o4["display_name"] = $kE . " " . $pJ;
goto fS;
P7:
$o4["display_name"] = $pJ . " " . $kE;
fS:
eD:
YH:
$VL = wp_insert_user($o4);
if (!is_wp_error($VL)) {
goto FK;
}
$this->mo_ldap_report_update($tp, $gT->statusMessage, "<strong>Login Error:</strong> There was an error registering your account. Please try again.");
$qc = new WP_Error();
$qc->add("registration_error", __("<strong>ERROR</strong>: There was an error registering your account. Please try again."));
return $qc;
goto Qh;
FK:
$user = get_user_by("login", $tp);
if (!($Zj == true)) {
goto LD;
}
error_log("saving user meta key");
update_user_meta($user->ID, "mo_ldap_user_session_key", Mo_Ldap_Local_Util::encrypt($mo));
LD:
update_user_meta($user->ID, "mo_ldap_user_dn", $gT->userDn, false);
update_user_meta($user->ID, "mo_ldap_user_phone", $X0);
$m5 = get_option("mo_ldap_local_enable_role_mapping");
$D7 = new Mo_Ldap_Local_Role_Mapping();
$Do = $D7->get_member_of_attribute($tp);
if (!($m5 == 1)) {
goto Fh;
}
$D7->mo_ldap_local_update_role_mapping($user->ID, $Do);
Fh:
$user = get_user_by("id", $user->ID);
if ($NJ == 1) {
goto Hg;
}
$ps = array();
goto NA;
Hg:
$ps = $gT->extraProfileAttributesList;
NA:
if (!array_key_exists("memberof", $ps)) {
goto Iv;
}
$ps["memberof"] = $Do;
Iv:
foreach ($ps as $NY => $wV) {
update_user_meta($user->ID, $NY, $wV);
DH:
}
Ty:
do_action("mo_ldap_buddypress", $ps, $user);
do_action("mo_ldap_attribute_to_usermeta_update", $user);
do_action("mo_ldap_profile_picture_mapping", $user);
do_action("mo_ldap_buddypress_profile_picture_mapping", $user);
do_action("mo_wp_to_ldap_groups_mapping", $user, $Do);
do_action("mo_ldap_learndash_groups_mapping", $user, $Do);
do_action("mo_ldap_tutor_groups_mapping", $user, $Do);
if (!($pm == 1)) {
goto Kz;
}
delete_option("um_cache_userdata_{$user->ID}");
Kz:
if ($rm == 1) {
goto Bf;
}
$G9 = get_option("mo_ldap_enable_role_restriction");
if (!$G9) {
goto qT;
}
$u_ = new Mo_Ldap_Local_Role_Mapping();
$lX = $u_->mo_ldap_is_user_login_restricted($user->roles);
if (!$lX) {
goto UG;
}
$qc = new WP_Error();
$qc->add("UNKNOWN_ERROR", __("<strong>ERROR</strong>: You are not allowed to Login. Please contact your administrator"));
return $qc;
UG:
qT:
return $user;
goto pu;
Bf:
wp_set_auth_cookie($user->ID, false);
apply_filters("login_redirect", null, null, $user);
pu:
Qh:
goto FQ;
Yt:
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error:</strong> Your Administrator has not enabled Auto Registration. Please contact your Administrator.");
$qc = new WP_Error();
$qc->add("registration_disabled_error", __("<strong>ERROR</strong>: Your Administrator has not enabled Auto Registration. Please contact your Administrator."));
return $qc;
FQ:
goto KN;
yc:
$dK = strtolower(get_option("mo_ldap_local_email_attribute"));
$user = false;
if (username_exists($tp)) {
goto Zn;
}
if (email_exists($tp)) {
goto DW;
}
if (isset($FN[$dK]) && email_exists($FN[$dK])) {
goto Jx;
}
goto Ql;
Zn:
$user = get_user_by("login", $tp);
goto Ql;
DW:
$user = get_user_by("email", $tp);
goto Ql;
Jx:
$user = get_user_by("email", $FN[$dK]);
Ql:
if ($user) {
goto KX;
}
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error:</strong> Invalid Username/Password combination");
goto PF;
KX:
if (!($Zj == true)) {
goto Zb;
}
error_log("saving user meta key");
update_user_meta($user->ID, "mo_ldap_user_session_key", Mo_Ldap_Local_Util::encrypt($mo));
Zb:
$TN->fetch_or_update_user_attributes($user, $gT);
$user = get_user_by("id", $user->ID);
if (!($pm == 1)) {
goto yt;
}
delete_option("um_cache_userdata_{$user->ID}");
yt:
if ($rm == 1) {
goto rn;
}
$G9 = get_option("mo_ldap_enable_role_restriction");
if (!$G9) {
goto BB;
}
$u_ = new Mo_Ldap_Local_Role_Mapping();
$lX = $u_->mo_ldap_is_user_login_restricted($user->roles);
if (!$lX) {
goto Zg;
}
$qc = new WP_Error();
$qc->add("UNKNOWN_ERROR", __("<strong>ERROR</strong>: You are not allowed to Login. Please contact your administrator"));
return $qc;
Zg:
BB:
return $user;
goto A5;
rn:
wp_set_auth_cookie($user->ID, false);
apply_filters("login_redirect", null, null, $user);
A5:
PF:
KN:
wp_redirect(site_url());
exit;
goto ID;
Vc:
$user = false;
if (username_exists($tp)) {
goto Ux;
}
if (email_exists($tp)) {
goto Nj;
}
goto bB;
Ux:
$user = get_user_by("login", $tp);
goto bB;
Nj:
$user = get_user_by("email", $tp);
bB:
if ($user) {
goto Z_;
}
if ($gT->statusCode == "LDAP_CONNECTION_ERROR") {
goto mb;
}
if ($gT->statusCode == "LDAP_BIND_ERROR_USER_EXISTS") {
goto VP;
}
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error</strong>: User with specified Username/Email address Not Found.");
$qc = new WP_Error();
$qc->add("incorrect_credentials", __("<strong>Login Error</strong>: User with specified Username/Email address Not Found."));
return $qc;
goto NF;
Z_:
if (!(!$tx && $gT->statusCode == "LDAP_BIND_SUCCESS_USER_EXISTS")) {
goto rH;
}
$oR = get_user_meta($user->ID, "mo_ldap_user_dn");
$oR = !empty($oR) ? $oR : false;
if (!($oR != false)) {
goto Xx;
}
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Trial:</strong> Your Trial License has Expired");
$qc = new WP_Error();
$qc->add("registration_disabled_error", __("<strong>ERROR</strong>: Your miniOrange LDAP/AD Login for Intranet Sites Trial License has expired."));
return $qc;
Xx:
rH:
$RP = false;
if ($R3 == "all" || !$tx) {
goto zk;
}
if ($R3 == "admin" && user_can($user->ID, "manage_options")) {
goto xo;
}
goto WZ;
zk:
$RP = true;
goto WZ;
xo:
$RP = true;
WZ:
if ($RP && wp_check_password($mo, $user->data->user_pass, $user->ID)) {
goto er;
}
if ($gT->statusCode == "LDAP_CONNECTION_ERROR") {
goto UJ;
}
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error</strong>: The password you entered for the User <strong>" . $tp . "</strong> is incorrect.");
$qc = new WP_Error();
$qc->add("incorrect_credentials", __("<strong>Login Error</strong>: The password you entered for the User <strong>" . $tp . "</strong> is incorrect."));
return $qc;
goto Ph;
er:
$G9 = get_option("mo_ldap_enable_role_restriction");
if (!$G9) {
goto i1;
}
$u_ = new Mo_Ldap_Local_Role_Mapping();
$lX = $u_->mo_ldap_is_user_login_restricted($user->roles);
if (!$lX) {
goto dJ;
}
$qc = new WP_Error();
$qc->add("UNKNOWN_ERROR", __("<strong>ERROR</strong>: You are not allowed to Login. Please contact your administrator"));
return $qc;
dJ:
i1:
return $user;
goto Ph;
UJ:
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error</strong>: LDAP server is not reachable. Authentication failed against Local WordPress server.");
$qc = new WP_Error();
$qc->add("incorrect_credentials", __("<strong>Login Error</strong>: LDAP server is not reachable. Authentication failed against Local WordPress server."));
return $qc;
Ph:
goto NF;
mb:
$this->mo_ldap_report_update($tp, "ERROR", "<strong>ERROR</strong>: LDAP server is not reachable.");
$qc = new WP_Error();
$qc->add("incorrect_credentials", __("<strong>ERROR</strong>: LDAP server is not reachable."));
return $qc;
goto NF;
VP:
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error</strong>: The password you entered for the User <strong>" . $tp . "</strong> is incorrect.");
$qc = new WP_Error();
$qc->add("incorrect_credentials", __("<strong>Login Error</strong>: The password you entered for the User <strong>" . $tp . "</strong> is incorrect."));
return $qc;
NF:
goto ID;
gk:
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error</strong>: LDAP server is not reachable");
$qc = new WP_Error();
$qc->add("incorrect_credentials", __("<strong>Login Error</strong>: LDAP server is not reachable. Fallback to local WordPress authentication is not enabled."));
return $qc;
goto ID;
Pz:
$this->mo_ldap_report_update($tp, "ERROR", "<strong>Login Error</strong>: The password you entered for the User <strong>" . $tp . "</strong> is incorrect.");
$qc = new WP_Error();
$qc->add("incorrect_credentials", __("<strong>Login Error</strong>: The password you entered for the User <strong>" . $tp . "</strong> is incorrect."));
return $qc;
goto ID;
Vq:
$this->mo_ldap_report_update($tp, $gT->statusMessage, "<strong>Login Error</strong>: <a target="_blank" href="http://php.net/manual/en/ldap.installation.php">PHP LDAP extension</a> is not installed or disabled. Please enable it.");
$qc = new WP_Error();
$qc->add("LDAP_EXTENSION_ERROR", __("<strong>Login Error</strong>: <a target="_blank" href="http://php.net/manual/en/ldap.installation.php">PHP LDAP extension</a> is not installed or disabled. Please enable it."));
return $qc;
goto ID;
MY:
$this->mo_ldap_report_update($tp, $gT->statusMessage, "<strong>Login Error</strong>: <a target="_blank" href="http://php.net/manual/en/openssl.installation.php">PHP OpenSSL extension</a> is not installed or disabled.");
$qc = new WP_Error();
$qc->add("OPENSSL_EXTENSION_ERROR", __("<strong>Login Error</strong>: <a target="_blank" href="http://php.net/manual/en/openssl.installation.php">PHP OpenSSL extension</a> is not installed or disabled."));
return $qc;
ID:
}
function mo_ldap_local_login_widget_menu()
{
add_menu_page("LDAP/AD Login for Intranet", "LDAP/AD Login for Intranet", "activate_plugins", "mo_ldap_local_login", array($this, "mo_ldap_local_login_widget_options"), plugin_dir_url(__FILE__) . "includes/images/miniorange_icon.png");
}
function mo_ldap_local_login_widget_options()
{
$M_ = array("server_url" => "ldap://58.64.132.235:389", "service_account_dn" => "cn=testuser,cn=Users,dc=miniorange,dc=com", "admin_password" => "XXXXXXXX", "dn_attribute" => "distinguishedName", "search_base" => "cn=Users,dc=miniorange,dc=com", "username_attribute" => "sAMAccountName", "search_filter" => "(&(objectClass=*)(cn=?))", "test_username" => "testuser", "test_password" => "password");
update_option("mo_ldap_local_default_config", $M_);
mo_ldap_local_settings();
}
function login_widget_save_options()
{
$tx = apply_filters("mo_check_config", '');
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_local_verify_customer") == 0) {
goto w9;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_local_verify_license") == 0) {
goto gw;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo-check-license-button") == 0) {
goto tJ;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo-change-account-button") == 0) {
goto tZ;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_public_pages") == 0) {
goto r7;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_delete_page") == 0) {
goto CS;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_local_login_send_query") == 0) {
goto z7;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_login_send_query") == 0) {
goto X2;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_login_send_feature_request_query") == 0) {
goto kv;
}
goto sC;
w9:
$JU = '';
$mo = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["email"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["password"])) {
goto H1;
}
$JU = sanitize_email($_POST["email"]);
$mo = $_POST["password"];
goto iB;
H1:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
$this->show_error_message();
return;
iB:
update_option("mo_ldap_local_admin_email", $JU);
update_option("mo_ldap_local_password", $mo);
$kS = new Mo_Ldap_Local_Customer();
$ot = $kS->get_customer_key();
$j9 = json_decode($ot, true);
if (strcasecmp($j9["status"], "SUCCESS") == 0) {
goto X1;
}
if (strcasecmp($j9["status"], "ERROR") == 0) {
goto wm;
}
update_option("mo_ldap_local_message", "Invalid username or password. Please try again.");
$this->show_error_message();
goto qJ;
X1:
update_option("mo_ldap_local_admin_phone", $j9["phone"]);
$this->save_success_customer_config($j9["id"], $j9["apiKey"], $j9["token"], "Your account has been retrieved successfully.");
update_option("mo_ldap_local_password", '');
goto qJ;
wm:
update_option("mo_ldap_local_message", $j9["statusMessage"]);
$this->show_error_message();
qJ:
update_option("mo_ldap_local_password", '');
goto sC;
gw:
if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["mo_ldap_local_license_key"])) {
goto y0;
}
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid license key.");
$this->show_error_message();
return;
y0:
$lp = trim($_POST["mo_ldap_local_license_key"]);
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($lp), true);
if (isset($ot["status"]) && $ot["isTrial"] == true) {
goto WQ;
}
if (isset($ot["status"]) && strcasecmp($ot["status"], "SUCCESS") == 0) {
goto bK;
}
if (isset($ot["status"]) && strcasecmp($ot["status"], "FAILED") == 0) {
goto Mq;
}
update_option("mo_ldap_local_message", "An error occured while processing your request. Please Try again.");
$this->show_error_message();
goto cC;
WQ:
$IN = Jp_hwfrqar_mzwhwzl_arvowfra::bp_efzwoezr_zvweh_hwfrqar($ot, $lp);
update_option("mo_ldap_local_message", $IN["displayMsg"]);
if ($IN["trialStatus"]) {
goto oJ;
}
$this->show_error_message();
goto SK;
oJ:
$this->show_success_message();
SK:
goto cC;
bK:
update_option("mo_plugin_utility_key_stat", Jp_hwfrqar_mzwhwzl_arvowfra::rqfvlyz_mzwhwzl("premium"));
delete_option("mo_plugin_utility_key");
update_option("mo_ldap_local_license_verified", "true");
update_option("mo_ldap_local_license_key", Mo_Ldap_Local_Util::encrypt($lp));
update_option("mo_ldap_local_message", "Your license is verified. You can now setup the plugin.");
$this->show_success_message();
goto cC;
Mq:
if (isset($ot["status"]) && strcasecmp($ot["message"], "Code has Expired") == 0) {
goto rb;
}
update_option("mo_ldap_local_message", "You have entered an invalid license key. Please enter a valid license key.");
goto R4;
rb:
$Ls = add_query_arg(array("tab" => "pricing"), $_SERVER["REQUEST_URI"]);
update_option("mo_ldap_local_message", "License key you have entered has already been used. Please enter a key which has not been used before on any other instance or if you have exausted all your keys then <a href="" . $Ls . "">Click here</a> to buy more.");
R4:
$this->show_error_message();
cC:
goto sC;
tJ:
Mo_Utility_Service::vrtvrag_hwfrqar_rnywvl();
$lp = Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_license_key"));
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($lp), true);
$Gk = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($ot);
update_option("mo_ldap_local_message", $Gk);
$this->show_success_message();
goto sC;
tZ:
Jp_hwfrqar_mzwhwzl_arvowfra::bp_hpspmz_fmazpbrv_mzwhwzl();
goto sC;
r7:
$I2 = $_POST["mo_ldap_custom_page_restriction_check"];
update_option("mo_ldap_public_pages_enable", $I2);
$gy = 1;
$b3 = !empty(get_option("mo_ldap_public_pages_list")) ? unserialize(get_option("mo_ldap_public_pages_list")) : array();
DP:
if (!isset($_POST["mo_ldap_custom_page_" . $gy])) {
goto Y5;
}
if (!(strcasecmp($_POST["mo_ldap_custom_page_" . $gy], '') != 0)) {
goto nG;
}
$x6 = rtrim(sanitize_text_field(strtolower($_POST["mo_ldap_custom_page_" . $gy])), "/");
if (!in_array($x6, $b3)) {
goto Pa;
}
$Ur = "Page <b>" . $x6 . "</b> Already Added.";
update_option("mo_ldap_local_message", $Ur);
$this->show_error_message();
goto yM;
Pa:
array_push($b3, $x6);
$Ur = "Page <b>" . $x6 . "</b> Added Successfully";
update_option("mo_ldap_local_message", $Ur);
$this->show_success_message();
yM:
nG:
$gy++;
goto DP;
Y5:
update_option("mo_ldap_public_pages_list", serialize($b3));
goto sC;
CS:
$x6 = $_POST["mo_ldap_delete_page_name"];
$b3 = !empty(get_option("mo_ldap_public_pages_list")) ? unserialize(get_option("mo_ldap_public_pages_list")) : array();
$CY = array_search($x6, $b3);
unset($b3[$CY]);
update_option("mo_ldap_public_pages_list", serialize($b3));
$Ur = "Page <b>" . $x6 . "</b> Removed Successfully.";
update_option("mo_ldap_local_message", $Ur);
$this->show_success_message();
goto sC;
z7:
$rj = sanitize_text_field($_POST["query"]);
$JU = sanitize_text_field($_POST["query_email"]);
$X0 = sanitize_text_field($_POST["query_phone"]);
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ($Hi) {
goto us;
}
$rj = "[WP LDAP for Intranet (Premium single site)]: " . $rj;
goto hk;
us:
$rj = "[WP LDAP for Intranet (Free Trial single site)]: " . $rj;
hk:
$this->mo_ldap_send_query($JU, $X0, $rj);
goto sC;
X2:
$JU = sanitize_text_field($_POST["inner_form_email_id"]);
$X0 = sanitize_text_field($_POST["inner_form_phone_id"]);
$rj = sanitize_text_field($_POST["inner_form_query_id"]);
$KJ = get_option("mo_ldap_directory_server_value");
if (strcasecmp($KJ, "msad") == 0) {
goto aI;
}
if (strcasecmp($KJ, "openldap") == 0) {
goto pP;
}
if (strcasecmp($KJ, "freeipa") == 0) {
goto e9;
}
if (strcasecmp($KJ, "jumpcloud") == 0) {
goto L3;
}
if (strcasecmp($KJ, "other") == 0) {
goto TR;
}
$KJ = "Not Configured";
goto rJ;
aI:
$KJ = "Microsoft Active Directory";
goto rJ;
pP:
$KJ = "OpenLDAP";
goto rJ;
e9:
$KJ = "FreeIPA";
goto rJ;
L3:
$KJ = "JumpCloud";
goto rJ;
TR:
$KJ = get_option("mo_ldap_directory_server_custom_value");
rJ:
update_option("mo_ldap_local_directory_server", $KJ);
$RY = $_POST["export_configuration_choice"];
if ($RY == "yes") {
goto rt;
}
if ($RY == "no") {
goto is;
}
goto mJ;
rt:
$Kg = $this->auto_email_ldap_export();
$Kg = implode(" <br>", $Kg);
$rj = $rj . " ,<br><br>Plugin Configuration:<br> " . $Kg;
goto mJ;
is:
$Kg = "Configuration was not uploaded by user";
$rj = $rj . " ,<br><br>Plugin Configuration:<br> " . $Kg;
mJ:
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ($Hi) {
goto Dy;
}
$rj = "[WP LDAP for Intranet (Premium single site)]: " . $rj;
goto IK;
Dy:
$rj = "[WP LDAP for Intranet (Free Trial single site)]: " . $rj;
IK:
$this->mo_ldap_send_query($JU, $X0, $rj);
goto sC;
kv:
$JU = sanitize_text_field($_POST["query_email"]);
$X0 = sanitize_text_field($_POST["query_phone"]);
$rj = sanitize_text_field($_POST["query"]);
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ($Hi) {
goto Jn;
}
$rj = "[WP LDAP for Intranet (Premium single site)]: " . $rj;
goto ft;
Jn:
$rj = "[WP LDAP for Intranet (Free Trial single site)]: " . $rj;
ft:
$this->mo_ldap_send_query($JU, $X0, $rj);
sC:
if (!(isset($_POST["option"]) && $tx)) {
goto Nc;
}
$ft = $_POST["option"];
switch ($ft) {
case "mo_ldap_local_save_config":
if (NddKoYsdasadJD()) {
goto Qd;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto gi;
Qd:
$hT = isset($_POST["anonymous_bind"]) ? 1 : 0;
update_option("mo_ldap_local_anonymous_bind", $hT);
$sl = '';
$IC = '';
$Sb = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["ldap_server"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["dn"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["admin_password"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["mo_ldap_protocol"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["mo_ldap_server_port_no"])) {
goto uy;
}
$VT = $_POST["mo_ldap_protocol"];
$Kp = sanitize_text_field($_POST["mo_ldap_server_port_no"]);
$du = sanitize_text_field($_POST["ldap_server"]);
$sl = $VT . "://" . $du . ":" . $Kp;
$IC = sanitize_text_field($_POST["dn"]);
$Sb = $_POST["admin_password"];
goto D8;
uy:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
$this->show_error_message();
return;
D8:
if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) {
goto nm;
}
$b5 = $_POST["mo_ldap_directory_server_value"];
if (strcasecmp($b5, "other") == 0) {
goto M4;
}
delete_option("mo_ldap_directory_server_custom_value");
goto b5;
M4:
$SJ = isset($_POST["mo_ldap_directory_server_custom_value"]) && !empty($_POST["mo_ldap_directory_server_custom_value"]) ? $_POST["mo_ldap_directory_server_custom_value"] : "other";
update_option("mo_ldap_directory_server_custom_value", $SJ);
b5:
update_option("mo_ldap_directory_server_value", $b5);
update_option("mo_ldap_local_ldap_protocol", $VT);
update_option("mo_ldap_local_ldap_server_address", Mo_Ldap_Local_Util::encrypt($du));
if ($VT == "ldap") {
goto m9;
}
if ($VT == "ldaps") {
goto T3;
}
goto H2;
m9:
update_option("mo_ldap_local_ldap_port_number", $Kp);
goto H2;
T3:
update_option("mo_ldap_local_ldaps_port_number", $Kp);
H2:
update_option("mo_ldap_local_server_url", Mo_Ldap_Local_Util::encrypt($sl));
update_option("mo_ldap_local_server_dn", Mo_Ldap_Local_Util::encrypt($IC));
update_option("mo_ldap_local_server_password", Mo_Ldap_Local_Util::encrypt($Sb));
$TN = new Mo_Ldap_Local_Config();
$Ur = "Your configuration has been saved.";
$rR = $TN->test_connection();
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_BIND_SUCCESSFUL") == 0) {
goto B2;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_BIND_ERROR") == 0) {
goto Ur;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_CONNECTION_ERROR") == 0) {
goto VB;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_EXTENSION_ERROR") == 0) {
goto vK;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "OPENSSL_EXTENSION_ERROR") == 0) {
goto il;
}
goto S9;
B2:
update_option("mo_ldap_local_message", " Connection was established successfully. " . $Ur . " Please configure LDAP User Mapping now.", '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "true");
$this->show_success_message();
goto S9;
Ur:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
goto S9;
VB:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>Cannot connect to LDAP Server. Make sure you have entered correct LDAP server hostname or IP address.");
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
goto S9;
vK:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
goto S9;
il:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
S9:
goto FP;
nm:
update_option("mo_ldap_local_message", "PHP OpenSSL extension is not installed or disabled. Please enable it first.");
$this->show_error_message();
FP:
gi:
goto zW;
case "mo_ldap_local_tls_enable":
$mR = isset($_POST["mo_ldap_local_tls_enable"]) ? $_POST["mo_ldap_local_tls_enable"] : 0;
update_option("mo_ldap_local_use_tls", $mR);
if ($mR == 1) {
goto Dp;
}
update_option("mo_ldap_local_message", "TLS has been disabled.");
$this->show_error_message();
goto Yf;
Dp:
update_option("mo_ldap_local_message", "TLS has been enabled.");
$this->show_success_message();
Yf:
goto zW;
case "mo_ldap_local_save_user_mapping":
delete_option("mo_ldap_local_user_mapping_status");
update_option("mo_local_filter_check", isset($_POST["ldap_search_filters"]) ? 1 : 0);
$Rp = '';
$XC = '';
$RW = '';
$F8 = array();
$LP = array();
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["search_base"])) {
goto Wy;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["user_attribute_text"]) && Mo_Ldap_Local_Util::check_empty_or_null($_POST["search_filter"])) {
goto of;
}
$XC = strtolower(sanitize_text_field($_POST["search_base"]));
goto Uk;
Wy:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
add_option("mo_ldap_local_user_mapping_status", "INVALID", '', "no");
$this->show_error_message();
return;
goto Uk;
of:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
add_option("mo_ldap_local_user_mapping_status", "INVALID", '', "no");
$this->show_error_message();
return;
Uk:
if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) {
goto qL;
}
$RW = sanitize_text_field($_POST["search_filter"]);
$co = sanitize_text_field($_POST["user_attribute_text"]);
$kq = sanitize_text_field($_POST["extra_user_attribute"]);
if (!isset($co)) {
goto BQ;
}
foreach ($_POST["user_attribute_text"] as $CY => $wV) {
$F8[$CY] = $wV;
ao:
}
ts:
BQ:
update_option("mo_ldap_local_search_filter", Mo_Ldap_Local_Util::encrypt($RW));
update_option("mo_ldap_local_username_attribute", $F8);
update_option("mo_ldap_local_extra_user_attribute", $kq);
update_option("mo_ldap_local_search_base", Mo_Ldap_Local_Util::encrypt($XC));
$Ur = "LDAP User Mapping Configuration has been saved. Please test authentication to verify LDAP User Mapping Configuration.";
update_option("mo_ldap_local_message", $Ur, '', "no");
add_option("mo_ldap_local_user_mapping_status", "VALID", '', "no");
$this->show_success_message();
update_option("mo_ldap_local_check_user_mapping_config", "true");
goto sX;
qL:
update_option("mo_ldap_local_message", "PHP OpenSSL extension is not installed or disabled. Please enable it first.");
add_option("mo_ldap_local_user_mapping_status", "INVALID", '', "no");
$this->show_error_message();
sX:
goto zW;
case "mo_ldap_local_test_auth":
if (NddKoYsdasadJD()) {
goto Et;
}
update_option("mo_ldap_local_message", "Settings can't be tested without verifying your license key.");
$this->show_error_message();
goto rz;
Et:
$sl = get_option("mo_ldap_local_server_url");
$IC = get_option("mo_ldap_local_server_dn");
$Sb = get_option("mo_ldap_local_server_password");
$XC = get_option("mo_ldap_local_search_base");
$F8 = get_option("mo_ldap_local_username_attribute");
$RW = get_option("mo_ldap_local_search_filter");
$SH = '';
$fa = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_username"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_password"])) {
goto YE;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($sl) || Mo_Ldap_Local_Util::check_empty_or_null($IC) || Mo_Ldap_Local_Util::check_empty_or_null($Sb) || Mo_Ldap_Local_Util::check_empty_or_null($XC) || Mo_Ldap_Local_Util::check_empty_or_null($F8) || Mo_Ldap_Local_Util::check_empty_or_null($RW)) {
goto n3;
}
$SH = sanitize_text_field($_POST["test_username"]);
$fa = $_POST["test_password"];
goto DI;
YE:
$this->mo_ldap_report_update("Test Authentication ", "ERROR", "<strong>ERROR</strong>: All the fields are required. Please enter valid entries.");
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.", '', "no");
$this->show_error_message();
return;
goto DI;
n3:
$this->mo_ldap_report_update("Test authentication", "ERROR", "<strong>Test Authentication Error</strong>: Please save LDAP Configuration to test authentication.");
update_option("mo_ldap_local_message", "Please save LDAP Configuration to test authentication.", '', "no");
$this->show_error_message();
return;
DI:
$TN = new Mo_Ldap_Local_Config();
$rR = $TN->test_authentication($SH, $fa);
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_BIND_SUCCESS_USER_EXISTS") == 0) {
goto kq;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_CONNECTION_ERROR") == 0) {
goto gn;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_BIND_ERROR_USER_EXISTS") == 0) {
goto Ve;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_BIND_ERROR") == 0) {
goto hF;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_USER_NOT_EXIST") == 0) {
goto Ud;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_USER_SEARCH_ERROR") == 0) {
goto eM;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_EXTENSION_ERROR") == 0) {
goto YB;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "OPENSSL_EXTENSION_ERROR") == 0) {
goto AF;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "LDAP_LOCAL_SERVER_NOT_CONFIGURED") == 0) {
goto oD;
}
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong> There was an error processing your request. Please verify the Search Base(s) and Username attribute. Your user should be present in the Search base defined.");
update_option("mo_ldap_local_message", "There was an error processing your request. Please verify the Search Base(s) and Username attribute. Your user should be present in the Search base defined.");
$this->show_error_message();
goto iT;
kq:
$nm = add_query_arg(array("tab" => "rolemapping"), $_SERVER["REQUEST_URI"]);
$Ur = "You have successfully configured your LDAP settings.<br>\xa You can now do either of two things.<br>
1. Enable LDAP Login at the top and then <a href="" . wp_logout_url(get_permalink()) . "">Logout</a> from WordPress and login again with your LDAP credentials.<br> \xa 2. Do role mapping (<a href="" . $nm . "">Click here</a>)";
update_option("mo_ldap_local_message", $Ur, '', "no");
$this->show_success_message();
goto iT;
gn:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
goto iT;
Ve:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
goto iT;
hF:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
goto iT;
Ud:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong> Cannot find user in the directory");
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
goto iT;
eM:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong> Cannot find user in the directory");
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
goto iT;
YB:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
goto iT;
AF:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
goto iT;
oD:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $rR->statusMessage);
update_option("mo_ldap_local_message", $rR->statusMessage, '', "no");
$this->show_error_message();
iT:
rz:
goto zW;
case "mo_ldap_local_enable":
if (NddKoYsdasadJD()) {
goto wK;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto ni;
wK:
$L2 = isset($_POST["enable_ldap_login"]) ? $_POST["enable_ldap_login"] : 0;
update_option("mo_ldap_local_enable_login", $L2);
if ($L2 == 1) {
goto t_;
}
update_option("mo_ldap_local_message", "Login through your LDAP has been disabled.");
$this->show_error_message();
goto GB;
t_:
update_option("mo_ldap_local_message", "Login through your LDAP has been enabled.");
$this->show_success_message();
GB:
ni:
goto zW;
case "mo_ldap_local_enable_both_login":
$rT = isset($_POST["mo_ldap_local_enable_both_login"]) ? $_POST["mo_ldap_local_enable_both_login"] : '';
update_option("mo_ldap_local_enable_both_login", $rT);
if ($rT == "admin") {
goto JL;
}
if ($rT == "all") {
goto ir;
}
update_option("mo_ldap_local_message", "Login using Local WordPress Credentials is <b>disabled</b>.");
$this->show_error_message();
goto TN;
JL:
update_option("mo_ldap_local_message", "Login using Local WordPress Credentials for <b>Administrators</b> is enabled.");
$this->show_success_message();
goto TN;
ir:
update_option("mo_ldap_local_message", "Login using Local WordPress Credentials for <b>All Users</b> is enabled.");
$this->show_success_message();
TN:
goto zW;
case "mo_ldap_local_save_login_redirect":
$hR = $_POST["redirect_to"];
update_option("mo_ldap_local_redirect_to", $hR);
if ($hR == "profile") {
goto N7;
}
if ($hR == "homepage") {
goto Rp;
}
goto I4;
N7:
update_option("mo_ldap_local_message", "Users will get redirected to Profile Page after login.");
goto I4;
Rp:
update_option("mo_ldap_local_message", "Users will get redirected to Home Page after login.");
I4:
if ($hR != "custom" && $hR !== "none") {
goto f2;
}
if ($hR == "none") {
goto O2;
}
goto Xg;
f2:
$this->show_success_message();
goto Xg;
O2:
update_option("mo_ldap_local_message", "Redirection after login is disabled.");
$this->show_error_message();
Xg:
goto zW;
case "mo_ldap_local_custom_redirect":
$GG = $_POST["mo_ldap_local_custom_url"];
update_option("mo_ldap_local_custom_redirect", $GG);
update_option("mo_ldap_local_message", "Users will get redirected to custom redirect URL after login.");
$this->show_success_message();
goto zW;
case "mo_ldap_local_register_user":
if (NddKoYsdasadJD()) {
goto HC;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto M0;
HC:
$Px = isset($_POST["mo_ldap_local_register_user"]) ? $_POST["mo_ldap_local_register_user"] : 0;
update_option("mo_ldap_local_register_user", $Px);
if ($Px == 1) {
goto Kt;
}
update_option("mo_ldap_local_message", "Auto Registering users has been disabled.");
$this->show_error_message();
goto tu;
Kt:
update_option("mo_ldap_local_message", "Auto Registering users has been enabled.");
$this->show_success_message();
tu:
M0:
goto zW;
case "mo_ldap_local_authorized_users_only":
if (NddKoYsdasadJD()) {
goto sB;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto E3;
sB:
$qk = isset($_POST["authorized_users_only"]) ? $_POST["authorized_users_only"] : 0;
update_option("mo_ldap_local_authorized_users_only", $qk);
if ($qk == 1) {
goto Yq;
}
update_option("mo_ldap_local_message", "Protect Content by Login disabled.");
$this->show_error_message();
goto oq;
Yq:
update_option("mo_ldap_local_message", "Protect Content by Login enabled.");
$this->show_success_message();
oq:
E3:
goto zW;
case "mo_ldap_local_group_role_mapping":
$A9 = isset($_POST["enable_ldap_role_mapping_based_on_ldap_groups"]) ? $_POST["enable_ldap_role_mapping_based_on_ldap_groups"] : 0;
update_option("mo_ldap_local_enable_role_mapping_based_on_ldap_groups", $A9);
if ($A9 == 1) {
goto Sl;
}
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been disabled.");
$this->show_error_message();
goto YW;
Sl:
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been enabled.");
$this->show_success_message();
YW:
goto zW;
case "mo_ldap_fetch_groups_list":
if (!isset($_REQUEST["mo_ldap_groups_search_base"])) {
goto IO;
}
$XS = trim($_REQUEST["mo_ldap_groups_search_base"]);
IO:
update_option("mo_ldap_local_groups_search_base", Mo_Ldap_Local_Util::encrypt($XS));
update_option("mo_ldap_show_groups", 1);
goto zW;
case "mo_ldap_local_save_mapping":
$xj = array();
$uF = array();
$LP = array();
$A1 = 1;
$rE = 0;
$Ya = $_POST["mapping_key_" . $A1];
hn:
if (!isset($Ya)) {
goto jl;
}
if (empty($Ya)) {
goto x0;
}
$eq = $_POST["selected_for_save_role_mapping_" . $A1];
if (!($eq == "true")) {
goto cZ;
}
$rE++;
$aY = $_POST["mapping_group_name_" . $A1];
$LP[$rE] = $aY;
$xj["mo_ldap_local_mapping_key_" . $rE] = trim($Ya);
$uF["mo_ldap_local_mapping_value_" . $rE] = $_POST["mapping_value_" . $A1];
cZ:
x0:
$A1++;
$Ya = $_POST["mapping_key_" . $A1];
goto hn;
jl:
update_option("mo_ldap_local_role_mapping_key_array", serialize($xj));
update_option("mo_ldap_local_role_mapping_value_array", serialize($uF));
update_option("mo_ldap_local_role_mapping_group_names", serialize($LP));
update_option("mo_ldap_local_role_mapping_count", $rE);
if (!isset($_POST["mapping_value_default"])) {
goto uE;
}
update_option("mo_ldap_local_mapping_value_default", $_POST["mapping_value_default"]);
uE:
if (!isset($_POST["mapping_memberof_attribute"])) {
goto MG;
}
update_option("mo_ldap_local_mapping_memberof_attribute", $_POST["mapping_memberof_attribute"]);
MG:
$qq = '';
$gc = get_option("mo_ldap_local_mapping_value_default");
$m5 = get_option("mo_ldap_local_enable_role_mapping");
if (!$gc) {
goto vf;
}
if ($m5 == 0) {
goto c9;
}
goto gD;
vf:
$qq = " Please select the Default Role and then check <b>"Enable Role Mapping"</b> to activate it.";
goto gD;
c9:
$qq = " Please check <b>"Enable Role Mapping"</b> to activate it.";
gD:
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been updated." . $qq);
$this->show_success_message();
goto zW;
case "mo_ldap_ldap_ou_based_role_mapping":
$E1 = $_POST["enable_ldap_role_mapping_based_on_ldap_ou"];
$om = 1;
$qB = array();
aY:
if (empty($_POST["mo_ldap_role_mapping_ou_value_" . $om])) {
goto SG;
}
$EM = array();
if (empty($_POST["mo_ldap_role_mapping_ou_value_" . $om])) {
goto g0;
}
$EM["ou_value"] = trim($_POST["mo_ldap_role_mapping_ou_value_" . $om]);
$EM["ou_based_wp_role_name"] = trim($_POST["mo_ldap_ou_mapping_role_name_" . $om]);
g0:
array_push($qB, $EM);
$om++;
goto aY;
SG:
update_option("mo_ldap_local_ou_role_mapping_options", serialize($qB));
if ($E1 == 1) {
goto GP;
}
update_option("mo_ldap_local_enable_role_mapping_based_on_ldap_ou", 0);
update_option("mo_ldap_local_message", "Disabled Role Mapping based on LDAP OU");
$this->show_error_message();
goto hY;
GP:
update_option("mo_ldap_local_enable_role_mapping_based_on_ldap_ou", 1);
update_option("mo_ldap_local_message", "Successfully saved Role Mapping based on LDAP OU");
$this->show_success_message();
hY:
goto zW;
case "mo_ldap_local_enable_role_mapping":
$m5 = isset($_POST["enable_ldap_role_mapping"]) ? $_POST["enable_ldap_role_mapping"] : 0;
update_option("mo_ldap_local_enable_role_mapping", $m5);
if ($m5 == 1) {
goto kM;
}
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been disabled.");
$this->show_error_message();
goto Yg;
kM:
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been enabled.");
$this->show_success_message();
Yg:
goto zW;
case "mo_ldap_local_keep_existing_user_roles":
$WA = isset($_POST["keep_existing_user_roles"]) ? $_POST["keep_existing_user_roles"] : 0;
update_option("mo_ldap_local_keep_existing_user_roles", $WA);
if ($WA == 1) {
goto c1;
}
update_option("mo_ldap_local_message", "WP Roles of Existing users will be updated.");
$this->show_error_message();
goto p5;
c1:
update_option("mo_ldap_local_message", "WP Roles of Existing users will not be removed.");
$this->show_success_message();
p5:
goto zW;
case "mo_ldap_fetch_recursive_groups_enable":
$TK = isset($_POST["fetch_recursive_groups"]) ? $_POST["fetch_recursive_groups"] : 0;
update_option("mo_ldap_fetch_recursive_groups_enable", $TK);
if ($TK) {
goto aD;
}
update_option("mo_ldap_local_message", "Nested groups from the LDAP associated with the user will not be fetched.");
$this->show_error_message();
goto Fo;
aD:
update_option("mo_ldap_local_message", "Nested groups from the LDAP associated with the user will be fetched.");
$this->show_success_message();
Fo:
goto zW;
case "mo_ldap_save_default_role":
if (!isset($_POST["mapping_value_default"])) {
goto Dl;
}
update_option("mo_ldap_local_mapping_value_default", $_POST["mapping_value_default"]);
Dl:
goto zW;
case "mo_ldap_role_mapping_selection":
$j6 = isset($_POST["mo_ldap_role_mapping_selected_tab"]) ? sanitize_text_field($_POST["mo_ldap_role_mapping_selected_tab"]) : 1;
update_option("mo_ldap_local_selected_role_mapping_subtab", $j6);
goto zW;
case "mo_ldap_enable_attribute_mapping":
$NJ = isset($_POST["mo_ldap_local_enable_attr_mapping"]) ? 1 : 0;
update_option("mo_ldap_local_enable_attr_mapping", $NJ);
if ($NJ == 1) {
goto fj;
}
update_option("mo_ldap_local_message", "LDAP Attribute Mapping Disabled");
$this->show_error_message();
goto F5;
fj:
update_option("mo_ldap_local_message", "LDAP Attribute Mapping Enabled");
$this->show_success_message();
F5:
goto zW;
case "mo_ldap_enable_updating_ldap":
$xB = isset($_POST["enable_update_ldap"]) ? 1 : 0;
update_option("mo_ldap_local_enable_update_ldap", $xB);
if ($xB == 1) {
goto Pl;
}
update_option("mo_ldap_local_message", "Disabled updating information in LDAP when user edits profile");
$this->show_error_message();
goto V2;
Pl:
update_option("mo_ldap_local_message", "Enabled updating information in LDAP when user edits profile");
$this->show_success_message();
V2:
goto zW;
case "mo_ldap_save_attribute_config":
update_option("mo_ldap_directory_server_value", isset($_POST["mo_ldap_directory_server_value"]) ? $_POST["mo_ldap_directory_server_value"] : "msad");
$dK = sanitize_text_field($_POST["mo_ldap_email_attribute"]);
$nX = sanitize_text_field($_POST["mo_ldap_phone_attribute"]);
$dZ = sanitize_text_field($_POST["mo_ldap_fname_attribute"]);
$CU = sanitize_text_field($_POST["mo_ldap_lname_attribute"]);
$se = sanitize_text_field($_POST["mo_ldap_nickname_attribute"]);
$Pz = sanitize_text_field($_POST["mo_ldap_display_name_attribute"]);
update_option("mo_ldap_local_email_attribute", $dK);
update_option("mo_ldap_local_phone_attribute", $nX);
update_option("mo_ldap_local_fname_attribute", $dZ);
update_option("mo_ldap_local_lname_attribute", $CU);
update_option("mo_ldap_local_nickname_attribute", $se);
update_option("mo_ldap_local_display_name_attribute", $Pz);
$ps = unserialize(get_option("mo_ldap_local_custom_attributes"));
if (!Mo_Ldap_Local_Util::check_empty_or_null($ps)) {
goto Wj;
}
$ps = array();
Wj:
$TU = 1;
$WJ = $_POST["mo_ldap_local_custom_attribute_" . $TU . "_name"];
MU:
if (!isset($WJ)) {
goto qz;
}
if (empty($WJ)) {
goto qf;
}
if (!(strpos($WJ, " ") !== false)) {
goto NU;
}
$WJ = str_replace(" ", '', $WJ);
NU:
$sd = "mo_ldap_local_custom_attribute_" . strtolower(sanitize_text_field($WJ));
$ps[$sd] = strtolower($WJ);
qf:
$TU++;
$WJ = $_POST["mo_ldap_local_custom_attribute_" . $TU . "_name"];
goto MU;
qz:
if (empty($ps)) {
goto cU;
}
$ps = array_unique($ps);
update_option("mo_ldap_local_custom_attributes", serialize(array_unique($ps)));
cU:
$Q8 = !empty(get_option("mo_ldap_attribute_usermeta_mapping")) ? get_option("mo_ldap_attribute_usermeta_mapping") : array();
$vb = array();
$AU = 0;
$wc = "mo_ldap_usermeta_name_";
foreach ($_POST as $CY => $wV) {
if (!(strpos($CY, $wc) !== false)) {
goto ol;
}
$AU++;
$Hg = strtolower(sanitize_text_field($wV));
$Us = strtolower(sanitize_text_field($_POST["mo_ldap_usermeta_value_" . $AU]));
$Us = str_replace(" ", '', $Us);
if (!(!empty($Hg) && !empty($Us))) {
goto Id;
}
if (array_key_exists($Hg, $vb)) {
goto dD;
}
$vb[$Hg] = $Us;
dD:
update_option("mo_ldap_local_custom_attribute_" . $Us, $Us);
Id:
ol:
NT:
}
BE:
update_option("mo_ldap_attribute_usermeta_mapping", $vb);
error_log(print_r($vb, true));
$fM = array();
$fM = array_diff($Q8, $vb);
if (empty($fM)) {
goto jT;
}
foreach ($fM as $La => $hW) {
$yO = get_users(array("meta_key" => $La));
foreach ($yO as $user) {
delete_user_meta($user->ID, $La);
zw:
}
zC:
fs:
}
kN:
$bN = "mo_ldap_local_custom_attribute_" . strtolower(sanitize_text_field($hW));
unset($ps[$bN]);
jT:
if (!Mo_Ldap_Local_Util::check_empty_or_null($ps)) {
goto kD;
}
$ps = array();
kD:
foreach ($vb as $zy => $wV) {
$sd = "mo_ldap_local_custom_attribute_" . strtolower(sanitize_text_field($wV));
$ps[$sd] = $wV;
iw:
}
lK:
update_option("mo_ldap_local_custom_attributes", serialize(array_unique($ps)));
update_option("mo_ldap_local_message", "Successfully saved LDAP Attribute Configuration");
$this->show_success_message();
goto zW;
case "mo_ldap_delete_custom_attribute":
$wg = strtolower(sanitize_text_field($_POST["custom_attribute_name"]));
$ta = "mo_ldap_local_custom_attribute_" . $wg;
$Wy = unserialize(get_option("mo_ldap_local_custom_attributes"));
unset($Wy[$ta]);
if (!is_plugin_active("miniorange-ldap-third-party-integration-add-on/ldap-attributes-to-custom-usermeta.php")) {
goto KC;
}
$yA = get_option("mo_ldap_attribute_usermeta_mapping");
foreach ($yA as $fI => $J3) {
if (!(strcasecmp($wg, $J3) == 0)) {
goto K0;
}
unset($yA[$fI]);
update_option("mo_ldap_attribute_usermeta_mapping", $yA);
goto G4;
K0:
Oz:
}
G4:
KC:
update_option("mo_ldap_local_custom_attributes", serialize(array_unique($Wy)));
do_action("mo_ldap_buddypress_update_attribute_mapping", $wg);
update_option("mo_ldap_local_message", "Successfully delete custom attribute: <b>" . $wg . "</b>");
$this->show_success_message();
goto zW;
case "user_report_logs":
$nR = get_option("user_logs_table_exists");
$Tt = isset($_POST["mo_ldap_local_user_report_log"]) ? $_POST["mo_ldap_local_user_report_log"] : 0;
update_option("mo_ldap_local_user_report_log", $Tt);
if (!($Tt == 1)) {
goto OT;
}
$this->prefix_update_table();
OT:
goto zW;
case "keep_user_report_logs_on_unistall":
update_option("mo_ldap_local_keep_user_report_log_on_uninstall", isset($_POST["mo_ldap_local_keep_user_report_log"]) ? $_POST["mo_ldap_local_keep_user_report_log"] : 0);
goto zW;
case "mo_ldap_pass":
$mp = isset($_POST["enable_ldap_login"]) ? 1 : 0;
update_option("mo_ldap_export", $mp);
if ($mp == 1) {
goto FF;
}
update_option("mo_ldap_local_message", "Service account password will not be exported.");
$this->show_error_message();
goto Cd;
FF:
update_option("mo_ldap_local_message", "Service account password will be exported in encrypted fashion");
$this->show_success_message();
Cd:
goto zW;
case "mo_ldap_export":
$tU = get_option("mo_ldap_local_server_url");
if (!empty($tU)) {
goto Tm;
}
update_option("mo_ldap_local_message", "LDAP Configuration not set. Please configure LDAP Connection settings.");
$this->show_error_message();
goto Fe;
Tm:
$this->miniorange_ldap_export();
Fe:
goto zW;
case "mo_ldap_import":
$BF = $_FILES["mo_ldap_import_file"]["name"];
$yN = $_FILES["mo_ldap_import_file"]["size"];
$Su = $_FILES["mo_ldap_import_file"]["tmp_name"];
$on = $_FILES["mo_ldap_import_file"]["type"];
$z0 = strtolower(pathinfo($BF, PATHINFO_EXTENSION));
if ($z0 == "json") {
goto ba;
}
update_option("mo_ldap_local_message", "Incorrect file uploaded! Please upload the file that was exported from this plugin");
$this->show_error_message();
goto Du;
ba:
$ca = file_get_contents($Su);
$WR = json_decode($ca, true);
error_log("Started importing uploaded configurations");
if (array_key_exists("ldap_Login", $WR) || array_key_exists("ldap_config", $WR) || array_key_exists("Role_Mapping", $WR) || array_key_exists("Attribute_Mapping", $WR) || array_key_exists("Dirsync_Ldap_To_Wp_Sync", $WR) || array_key_exists("Dirsync_Wp_To_Ldap_sync", $WR)) {
goto GN;
}
update_option("mo_ldap_local_message", "Incorrect file uploaded! Please upload the file that was exported from this plugin");
$this->show_error_message();
goto rR;
GN:
delete_option("mo_ldap_local_custom_attributes");
delete_option("mo_ldap_local_role_mapping_key_array");
delete_option("mo_ldap_local_role_mapping_value_array");
delete_option("mo_ldap_local_server_url_status");
delete_option("mo_ldap_local_service_account_status");
delete_option("mo_ldap_local_user_mapping_status");
delete_option("mo_ldap_local_username_status");
delete_option("mo_ldap_local_role_mapping_group_names");
delete_option("mo_ldap_local_ldap_protocol");
delete_option("mo_ldap_local_ldap_server_address");
delete_option("mo_ldap_local_ldap_port_number");
delete_option("mo_ldap_local_server_password");
delete_option("mo_ldap_local_role_mapping_count");
update_option("mo_ldap_local_enable_login", 0);
update_option("mo_ldap_local_enable_role_mapping", 0);
update_option("mo_ldap_local_enable_attr_mapping", 0);
update_option("mo_ldap_local_enable_update_ldap", 0);
delete_option("mo_ldap_local_enable_both_login");
update_option("mo_ldap_local_register_user", 0);
delete_option("mo_ldap_local_redirect_to");
delete_option("mo_ldap_local_custom_redirect");
update_option("mo_local_filter_check", 0);
update_option("mo_ldap_local_authorized_users_only", 0);
update_option("mo_ldap_local_keep_existing_user_roles", 0);
delete_option("mo_ldap_local_username_attribute");
$Xl = unserialize(Tab_ldap_Class_Names);
$O8 = $WR["plugin_version"]["plugin_version"];
foreach ($WR as $Ct => $Ij) {
$Ap = call_user_func($Xl[$Ct] . "::getConstants");
foreach ($Ap as $CY => $I6) {
if (!array_key_exists($CY, $Ij)) {
goto yw;
}
if (!($CY == "mapping_count")) {
goto hL;
}
$ZS = $Ij[$CY];
hL:
if ($CY == "Role_mapping_key") {
goto cI;
}
if ($CY == "Role_mapped_value") {
goto v1;
}
if ($CY == "Role_mapping_key_array") {
goto Lh;
}
if ($CY == "Role_mapping_value_array") {
goto XA;
}
if ($CY == "Role_mapping_group_names") {
goto zM;
}
if ($CY == "custom_attribute_name") {
goto xL;
}
$wV = !empty(sanitize_text_field($Ij[$CY])) ? sanitize_text_field($Ij[$CY]) : $Ij[$CY];
if (!($I6 == "mo_ldap_local_server_url" or $I6 == "mo_ldap_local_server_dn" or $I6 == "mo_ldap_local_search_base" or $I6 == "mo_ldap_local_search_filter" or $I6 == "mo_ldap_local_username_attribute")) {
goto aO;
}
if ($I6 == "mo_ldap_local_username_attribute") {
goto uT;
}
$wV = Mo_Ldap_Local_Util::encrypt($wV);
goto Q5;
uT:
if (!empty($O8)) {
goto YS;
}
$eE = explode(";", $wV);
$Nj = array("samaccountname", "mail", "userprincipalname", "uid", "cn");
$wV = array();
$O7 = '';
foreach ($eE as $CY => $y_) {
if (in_array(strtolower($y_), $Nj)) {
goto bS;
}
$O7 = $O7 . "," . strtolower($y_);
goto fK;
bS:
array_push($wV, strtolower($y_));
fK:
xU:
}
LZ:
if (!($O7 != '')) {
goto fr;
}
$O7 = trim($O7, ",");
update_option("mo_ldap_local_extra_user_attribute", $O7);
array_push($wV, "extraUserAttribute");
fr:
YS:
Q5:
aO:
update_option($I6, $wV);
goto S3;
cI:
if (!empty($O8)) {
goto bp;
}
$x1 = array();
$Ms = 1;
On:
if (!($Ms <= $ZS)) {
goto a_;
}
$wV = sanitize_text_field($Ij[$CY][$Ms]);
$x1[$I6 . $Ms] = $wV;
O5:
$Ms++;
goto On;
a_:
update_option("mo_ldap_local_role_mapping_key_raw_array", $x1);
bp:
goto S3;
v1:
if (!empty($O8)) {
goto fv;
}
$xn = array();
$Ms = 1;
mg:
if (!($Ms <= $ZS)) {
goto VV;
}
$wV = sanitize_text_field($Ij[$CY][$Ms]);
$xn[$I6 . $Ms] = $wV;
kV:
$Ms++;
goto mg;
VV:
update_option("mo_ldap_local_role_mapping_value_raw_array", $xn);
fv:
goto S3;
Lh:
update_option("mo_ldap_local_role_mapping_key_array", serialize($Ij["Role_mapping_key_array"]));
goto S3;
XA:
update_option("mo_ldap_local_role_mapping_value_array", serialize($Ij["Role_mapping_value_array"]));
goto S3;
zM:
update_option("mo_ldap_local_role_mapping_group_names", serialize($Ij["Role_mapping_group_names"]));
goto S3;
xL:
$TU = sizeof($Ij[$CY]);
$FK = array();
$Ms = 1;
jE:
if (!($Ms <= $TU)) {
goto vg;
}
$wV = sanitize_text_field($Ij[$CY][$Ms]);
$FK["mo_ldap_local_custom_attribute_" . $wV] = $wV;
d0:
$Ms++;
goto jE;
vg:
update_option("mo_ldap_local_custom_attributes", serialize(array_unique($FK)));
S3:
yw:
wo:
}
Js:
F8:
}
AX:
if (!empty($O8)) {
goto LN;
}
error_log("Importing changes for Version 23.0 and below");
$UL = Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_url"));
$yG = "/[:]/";
$UL = str_replace("//", '', $UL);
$sb = preg_split($yG, $UL);
update_option("mo_ldap_local_ldap_protocol", $sb[0]);
update_option("mo_ldap_local_ldap_server_address", Mo_Ldap_Local_Util::encrypt($sb[1]));
update_option("mo_ldap_local_ldap_port_number", $sb[2]);
$w6 = get_option("mo_ldap_local_role_mapping_key_raw_array");
$t3 = get_option("mo_ldap_local_role_mapping_value_raw_array");
delete_option("mo_ldap_local_role_mapping_key_raw_array");
delete_option("mo_ldap_local_role_mapping_value_raw_array");
$Ax = array();
$Ms = 1;
Zm:
if (!($Ms <= $ZS)) {
goto DB;
}
if (empty($Ax[$w6["mo_ldap_local_mapping_key_" . $Ms]])) {
goto e5;
}
$xk = $Ax[$w6["mo_ldap_local_mapping_key_" . $Ms]];
array_push($xk, $t3["mo_ldap_local_mapping_value_" . $Ms]);
$Ax[$w6["mo_ldap_local_mapping_key_" . $Ms]] = $xk;
goto Yb;
e5:
$Ax[$w6["mo_ldap_local_mapping_key_" . $Ms]] = array($t3["mo_ldap_local_mapping_value_" . $Ms]);
Yb:
az:
$Ms++;
goto Zm;
DB:
$GA = count($Ax);
update_option("mo_ldap_local_role_mapping_count", $GA);
$AN = array();
$dM = array();
$e3 = array();
$Ms = 1;
$oM = "/[=,]/";
foreach ($Ax as $CY => $wV) {
$AN["mo_ldap_local_mapping_key_" . $Ms] = $CY;
$dM["mo_ldap_local_mapping_value_" . $Ms] = $wV;
$Ia = preg_split($oM, $CY);
$e3[$Ms] = $Ia[1];
$Ms++;
sr:
}
OU:
update_option("mo_ldap_local_role_mapping_key_array", serialize($AN));
update_option("mo_ldap_local_role_mapping_value_array", serialize($dM));
update_option("mo_ldap_local_role_mapping_group_names", serialize($e3));
LN:
$n6 = get_option("mo_ldap_local_username_attribute");
if (!empty($n6)) {
goto EK;
}
update_option("mo_local_filter_check", 1);
EK:
update_option("mo_ldap_local_message", "The file was imported successfully");
$this->show_success_message();
rR:
Du:
goto zW;
case "mo_ldap_local_fallback_login":
update_option("mo_ldap_local_enable_fallback_login", isset($_POST["mo_ldap_local_enable_fallback_login"]) ? $_POST["mo_ldap_local_enable_fallback_login"] : 0);
update_option("mo_ldap_local_message", "Fallback login using WordPress password enabled");
$this->show_success_message();
goto zW;
case "mo_ldap_save_restrict_login_by_role":
$ei = isset($_POST["mo_ldap_local_restrict_user_by_role"]) ? $_POST["mo_ldap_local_restrict_user_by_role"] : 0;
update_option("mo_ldap_enable_role_restriction", $ei);
$sD = empty($_POST["mo_ldap_restrict_role"]) ? array() : $_POST["mo_ldap_restrict_role"];
update_option("mo_ldap_restricted_login_roles", serialize($sD));
goto zW;
}
Hb:
zW:
Nc:
if (!(isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_feedback") == 0)) {
goto ZP;
}
$user = wp_get_current_user();
$Ur = "Query :[WordPress LDAP/AD Plugin:] Plugin Deactivated: ";
$dU = array_key_exists("query_feedback", $_POST) ? sanitize_textarea_field(wp_unslash($_POST["query_feedback"])) : false;
$pf = '';
if (!isset($_POST["get_reply"])) {
goto ly;
}
$pf = sanitize_text_field(wp_unslash($_POST["get_reply"]));
ly:
if (empty($pf)) {
goto OS;
}
$pf = "YES";
$Ur .= "<strong><span style="color: green;">[Follow up Needed : " . $pf . "]</strong></span><br>";
goto qe;
OS:
$pf = "NO";
$Ur .= "<strong><span style="color: red;">[Follow up Needed : " . $pf . "]</strong></span><br> ";
qe:
if (empty($dU)) {
goto mB;
}
$Ur .= "<br>Feedback : " . $dU . "<br>";
mB:
$Lt = !empty(get_option("mo_ldap_plugin_version")) ? get_option("mo_ldap_plugin_version") : "27.0.0";
$Ur .= "<br>Current Version Installed : " . $Lt . "<br>";
if (!isset($_POST["rate"])) {
goto DV;
}
$FZ = sanitize_text_field(wp_unslash($_POST["rate"]));
$Ur .= "<br>[Rating : " . $FZ . "]<br>";
DV:
$JU = isset($_POST["query_mail"]) ? sanitize_email(wp_unslash($_POST["query_mail"])) : '';
$zA = "WordPress LDAP/AD Plugin Feedback (Premium Plugin)- " . $JU;
if (filter_var($JU, FILTER_VALIDATE_EMAIL)) {
goto vm;
}
$JU = get_option("mo_ldap_local_admin_email");
if (!empty($JU)) {
goto l8;
}
$JU = $user->user_email;
l8:
vm:
$pb = isset($_POST["company"]) ? sanitize_text_field(wp_unslash($_POST["company"])) : '';
$qR = new Mo_Ldap_Local_Customer();
if (is_null($qR)) {
goto Ow;
}
$Yc = json_decode($qR->send_email_alert($zA, $JU, $Ur, $pb), true);
if (!(json_last_error() === JSON_ERROR_NONE)) {
goto Ir;
}
if (is_array($Yc) && array_key_exists("status", $Yc) && strcasecmp($Yc["status"], "ERROR") === 0) {
goto kB;
}
if ($Yc) {
goto iK;
}
update_option("mo_ldap_local_message", "Error while submitting the query.");
$this->show_error_message();
iK:
goto zV;
kB:
update_option("mo_ldap_local_message", $Yc["message"]);
$this->show_error_message();
zV:
Ir:
deactivate_plugins(__FILE__);
update_option("mo_ldap_local_message", "Thank you for the feedback.");
$this->show_success_message();
wp_safe_redirect("plugins.php");
exit;
Ow:
ZP:
if (!(isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_skip_feedback") == 0)) {
goto o3;
}
deactivate_plugins(__FILE__);
update_option("mo_ldap_local_message", "Plugin deactivated successfully.");
$this->deactivate_error_message();
o3:
}
function mo_ldap_send_query($JU, $X0, $rj)
{
if (Mo_Ldap_Local_Util::check_empty_or_null($JU) || Mo_Ldap_Local_Util::check_empty_or_null($rj)) {
goto K2;
}
$Cf = new Mo_Ldap_Local_Customer();
$Yc = json_decode($Cf->submit_contact_us($JU, $X0, $rj), true);
if (isset($Yc["status"]) && strcasecmp($Yc["status"], "CURL_ERROR") == 0) {
goto q1;
}
if (json_last_error() == JSON_ERROR_NONE) {
goto wf;
}
goto iX;
q1:
update_option("mo_ldap_local_message", $Yc["statusMessage"]);
$this->show_error_message();
goto iX;
wf:
if ($Yc == false) {
goto Zp;
}
update_option("mo_ldap_local_message", "Thanks for getting in touch! We shall get back to you shortly.");
$this->show_success_message();
goto GS;
Zp:
update_option("mo_ldap_local_message", "Your query could not be submitted. Please try again.");
$this->show_error_message();
GS:
iX:
goto dK;
K2:
update_option("mo_ldap_local_message", "Please submit your query along with email.");
$this->show_error_message();
return;
dK:
}
function miniorange_ldap_export()
{
if (!(array_key_exists("option", $_POST) && $_POST["option"] == "mo_ldap_export")) {
goto Iw;
}
$eG = get_option("active_plugins");
$Wn = in_array("directory_sync/directory_sync.php", $eG);
$cx = array("Dirsync_Ldap_To_Wp_Sync" => "mo_option_ldap_dirsync_ldap_to_wp_sync", "Dirsync_Wp_To_Ldap_sync" => "mo_option_ldap_dirsync_wp_to_ldap_sync");
$Xl = unserialize(Tab_ldap_Class_Names);
$yw = get_option("mo_dirsync_ldap_to_wp_config_done");
$eN = get_option("mo_dirsync_wp_to_ldap_config_done");
if (!$Wn) {
goto oS;
}
if ($yw) {
goto QP;
}
if (!array_key_exists("Dirsync_Ldap_To_Wp_Sync", $Xl)) {
goto Ym;
}
unset($Xl["Dirsync_Ldap_To_Wp_Sync"]);
Ym:
QP:
if ($eN) {
goto Vr;
}
if (!array_key_exists("Dirsync_Wp_To_Ldap_sync", $Xl)) {
goto xO;
}
unset($Xl["Dirsync_Wp_To_Ldap_sync"]);
xO:
Vr:
goto Qs;
oS:
foreach ($cx as $lK => $I6) {
if (!array_key_exists($lK, $Xl)) {
goto hd;
}
unset($Xl[$lK]);
hd:
IG:
}
YV:
Qs:
$WR = array();
foreach ($Xl as $CY => $wV) {
$WR[$CY] = $this->mo_get_configuration_array($wV);
tS:
}
Zr:
header("Content-Disposition: attachment; filename=miniorange-ldap-config.json");
echo json_encode($WR, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
exit;
Iw:
}
function mo_get_configuration_array($vh)
{
$Ap = call_user_func($vh . "::getConstants");
$ZS = get_option("mo_ldap_local_role_mapping_count");
$iI = array();
$v8 = array();
$MI = array();
$QW = array();
foreach ($Ap as $CY => $wV) {
if ($wV == "mo_ldap_local_server_url" or $wV == "mo_ldap_local_server_password" or $wV == "mo_ldap_local_server_dn" or $wV == "mo_ldap_local_search_base" or $wV == "mo_ldap_local_search_filter" or $wV == "mo_ldap_local_username_attribute") {
goto Tl;
}
$DR = 0;
goto xt;
Tl:
$DR = 1;
xt:
if ($wV == "mo_ldap_local_mapping_key_") {
goto jI;
}
if ($wV == "mo_ldap_local_mapping_value_") {
goto S1;
}
if ($wV == "mo_ldap_local_custom_attribute_") {
goto h6;
}
$TS = get_option($wV);
goto GJ;
jI:
$WG = unserialize(get_option("mo_ldap_local_role_mapping_key_array"));
$Ms = 1;
w8:
if (!($Ms <= $ZS)) {
goto tX;
}
$v8[$Ms] = $WG[$wV . $Ms];
lv:
$Ms++;
goto w8;
tX:
$TS = $v8;
goto GJ;
S1:
$hq = unserialize(get_option("mo_ldap_local_role_mapping_value_array"));
$Ms = 1;
rN:
if (!($Ms <= $ZS)) {
goto Da;
}
$MI[$Ms] = $hq[$wV . $Ms];
yi:
$Ms++;
goto rN;
Da:
$TS = $MI;
goto GJ;
h6:
$ps = unserialize(get_option("mo_ldap_local_custom_attributes"));
$Ms = 1;
foreach ($ps as $NY => $wV) {
$QW[$Ms++] = $wV;
Qm:
}
zK:
$TS = $QW;
GJ:
if (!$TS) {
goto br;
}
if (!(@unserialize(strval($TS)) !== false)) {
goto Xw;
}
$TS = unserialize(strval($TS));
Xw:
if ($DR == 1) {
goto wT;
}
if ($wV == "mo_ldap_local_ou_role_mapping_options" || $wV == "mo_ldap_restricted_login_roles") {
goto gN;
}
$iI[$CY] = $TS;
goto i9;
gN:
$iI[$CY] = serialize($TS);
i9:
goto wb;
wT:
if ($wV == "mo_ldap_local_server_password" and get_option("mo_ldap_export") == "0") {
goto fJ;
}
if ($wV == "mo_ldap_local_server_password" and get_option("mo_ldap_export") == "1") {
goto d8;
}
if ($CY == "user_attr") {
goto K3;
}
$iI[$CY] = Mo_Ldap_Local_Util::decrypt($TS);
goto sK;
fJ:
goto vr;
goto sK;
d8:
$iI[$CY] = $TS;
goto sK;
K3:
$iI[$CY] = $TS;
sK:
wb:
br:
vr:
}
By:
return $iI;
}
function auto_email_ldap_export()
{
$b5 = get_option("mo_ldap_local_directory_server");
$sl = get_option("mo_ldap_local_server_url") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_url")) : '';
$IC = get_option("mo_ldap_local_server_dn") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_dn")) : '';
$XC = get_option("mo_ldap_local_search_base") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_base")) : '';
$RW = get_option("mo_ldap_local_search_filter") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_filter")) : '';
$Kg = array("Directory Server" => "Directory Server: " . $b5, "LDAP Server" => "LDAP Server: " . $sl, "Service Account DN" => "Service Account DN: " . $IC, "Search Base" => "Search Base: " . $XC, "LDAP Search Filter" => "LDAP Search Filter: " . $RW);
return $Kg;
}
function test_attribute_configuration()
{
$tx = apply_filters("mo_check_config", '');
if (!(is_user_logged_in() && $tx)) {
goto xH;
}
if (!(current_user_can("administrator") && isset($_REQUEST["option"]))) {
goto R2;
}
if ($_REQUEST["option"] == "testattrconfig") {
goto Dw;
}
if ($_REQUEST["option"] == "testrolemappingconfig") {
goto q7;
}
if ($_REQUEST["option"] == "searchbaselist") {
goto Jt;
}
if ($_REQUEST["option"] == "fecthattributesforldapserver") {
goto TU;
}
goto lO;
Dw:
$tp = $_REQUEST["user"];
$TN = new Mo_Ldap_Local_Config();
$TN->test_attribute_configuration($tp);
goto lO;
q7:
$tp = $_REQUEST["user"];
$D7 = new Mo_Ldap_Local_Role_Mapping();
$D7->test_configuration($tp);
goto lO;
Jt:
$TN = new Mo_Ldap_Local_Config();
$TN->show_search_bases_list();
goto lO;
TU:
$b5 = get_option("mo_ldap_directory_server_value");
$PB = new DirectoryFactory();
$PB = $PB->selectDirectorySystem($b5);
$TN = new Mo_Ldap_Local_Config();
$TN->show_all_ldap_attributes($PB);
lO:
R2:
xH:
}
function save_success_customer_config($a4, $X2, $Mo, $Ur)
{
update_option("mo_ldap_local_admin_customer_key", $a4);
update_option("mo_ldap_local_admin_api_key", $X2);
update_option("mo_ldap_local_customer_token", $Mo);
update_option("mo_ldap_local_password", '');
update_option("mo_ldap_local_message", $Ur);
$this->show_success_message();
}
function mo_ldap_local_settings_style()
{
wp_enqueue_style("mo_ldap_admin_settings_style", plugins_url("includes/css/style_settings.min.css", __FILE__), array(), "27.0.0");
wp_enqueue_style("mo_ldap_admin_settings_phone_style", plugins_url("includes/css/phone.min.css", __FILE__), array(), "27.0.0");
wp_enqueue_style("mo_ldap_admin_ldap_plugin_style", plugins_url("includes/css/mo_ldap_plugins_page.min.css", __FILE__), array(), "27.0.0");
wp_enqueue_style("mo_ldap_admin_font_awsome", plugins_url("includes/fonts/css/font-awesome.min.css", __FILE__), array(), "27.0.0");
}
function mo_ldap_local_settings_script()
{
wp_enqueue_script("mo_ldap_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__), array(), "27.0.0", false);
wp_enqueue_script("mo_ldap_admin_settings_script", plugins_url("includes/js/settings_page.js", __FILE__), array("jquery"), "27.0.0", false);
}
private function deactivate_error_message()
{
$Z1 = "error";
$Ur = get_option("mo_ldap_local_message");
$rb = array("a" => array("href" => array(), "title" => array()), "br" => array(), "em" => array(), "strong" => array(), "b" => array(), "h1" => array(), "h2" => array(), "h3" => array(), "h4" => array(), "h5" => array(), "h6" => array(), "i" => array());
echo "<div id='error' class='" . esc_attr($Z1) . "'> <p>" . wp_kses($Ur, $rb) . "</p></div>";
}
function error_message()
{
$Z1 = "error";
$Ur = get_option("mo_ldap_local_message");
echo "<div id='error' class='" . $Z1 . "'> <p>" . $Ur . "</p></div>";
}
function success_message()
{
$Z1 = "updated";
$Ur = get_option("mo_ldap_local_message");
echo "<div id='success' class='" . $Z1 . "'> <p>" . $Ur . "</p></div>";
}
function show_success_message()
{
remove_action("admin_notices", array($this, "error_message"));
add_action("admin_notices", array($this, "success_message"));
}
function show_error_message()
{
remove_action("admin_notices", array($this, "success_message"));
add_action("admin_notices", array($this, "error_message"));
}
function prefix_update_table()
{
global $D1;
global $wpdb;
$pF = $wpdb->get_charset_collate();
$s6 = "CREATE TABLE if not exists`{$wpdb->base_prefix}user_report` (\xa id int NOT NULL AUTO_INCREMENT,
\x9\x9 user_name varchar(50) NOT NULL,
\x9 time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
\x9\x9 ldap_status varchar(250) NOT NULL,
\x9\x9\x9 ldap_error varchar(250) ,\xa\x9\x9 PRIMARY KEY (id)\xa \x9) {$pF};";
if (!function_exists("dbDelta")) {
require_once ABSPATH . "wp-admin/includes/upgrade.php";
}
dbDelta($s6);
update_option("user_logs_table_exists", 1);
}
function mo_ldap_report_update($tp, $AI, $qS)
{
$bL = get_option("mo_ldap_local_user_report_log");
if (!($bL == 1)) {
goto i8;
}
global $wpdb;
$vx = $wpdb->prefix . "user_report";
$wpdb->insert($vx, array("user_name" => $tp, "time" => current_time("mysql"), "ldap_status" => $AI, "ldap_error" => $qS));
i8:
}
function mo_ldap_activate()
{
update_option("mo_ldap_local_register_user", 1);
$TO = new DateTime("now");
$Ib = $TO->getTimestamp();
wp_schedule_event($Ib, "weekly", "mo_ldap_local_utility_sync");
Jp_hwfrqar_mzwhwzl_arvowfra::efzwoezr_mzwhwzl();
}
function mo_ldap_local_deactivate()
{
do_action("flushcache");
Jp_hwfrqar_mzwhwzl_arvowfra::jrefzwoezr_mzwhwzl();
delete_option("mo_ldap_local_admin_email");
delete_option("mo_ldap_local_host_name");
delete_option("mo_ldap_local_default_config");
delete_option("mo_ldap_local_password");
delete_option("mo_ldap_local_admin_phone");
delete_option("mo_ldap_local_admin_customer_key");
delete_option("mo_ldap_local_admin_api_key");
delete_option("mo_ldap_local_customer_token");
delete_option("mo_ldap_local_message");
delete_option("mo_ldap_local_enable_login");
delete_option("mo_ldap_local_license_key");
delete_option("mo_ldap_local_license_verified");
delete_option("mo_ldap_plugin_version");
delete_option("mo_ldap_show_groups");
wp_clear_scheduled_hook("mo_ldap_local_utility_sync");
}
function mo_ldap_local_utility_sync()
{
$lp = !empty(get_option("mo_ldap_local_license_key")) ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_license_key")) : '';
if (empty($lp)) {
goto Wf;
}
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($lp), true);
$Gk = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($ot);
Wf:
}
function update_status()
{
$ts = get_option("mo_ldap_local_license_key");
if (empty($ts)) {
goto Sw;
}
$kS = new Mo_Ldap_Local_Customer();
$kS->mo_ldap_local_update_status();
Sw:
}
}
new Mo_Ldap_Local_Login();
?>
Did this file decode correctly?
Original Code
<?php
/*
Plugin Name: LDAP/Active Directory Login for Intranet Sites
Plugin URI: http://miniorange.com
Description: LDAP/Active Directory Login Plugin provides login to WordPress using credentials stored in your LDAP Server.
Author: miniOrange
Version: 27.0.0
Author URI: http://miniorange.com
*/
require_once "\x6d\x6f\x5f\x6c\144\141\x70\x5f\x70\141\x67\145\163\x2e\160\150\x70";
require "\155\x6f\x5f\x6c\144\141\x70\x5f\163\165\x70\160\x6f\162\164\56\160\150\160";
require "\x63\154\x61\163\163\x2d\155\x6f\55\x6c\144\x61\x70\x2d\x63\x75\x73\x74\x6f\155\145\162\x2d\163\145\x74\x75\x70\56\160\x68\160";
require "\x63\x6c\x61\x73\163\x2d\155\157\x2d\154\x64\141\x70\55\165\x74\x69\x6c\x69\164\171\x2e\x70\x68\160";
require "\143\154\x61\163\163\55\155\157\x2d\x6c\144\141\160\55\143\157\x6e\146\151\x67\x2e\x70\x68\160";
require "\x63\154\x61\x73\x73\x2d\155\x6f\55\x6c\144\x61\160\55\x72\157\x6c\x65\x2d\155\x61\x70\160\x69\156\147\x2e\x70\150\160";
require "\155\x6f\137\154\x64\x61\x70\x5f\x6c\151\143\x65\156\x73\151\x6e\147\x5f\160\154\141\156\x73\x2e\160\150\160";
require_once "\155\x6f\x2d\165\x74\151\154\151\164\x79\x2d\146\162\141\x6d\145\167\x6f\x72\153\56\x70\150\x70";
require_once "\x69\x6e\x63\154\165\x64\x65\x73\57\x6c\151\142\57\x75\164\x69\x6c\151\164\171\x2f\x61\x75\x74\157\x6c\157\x61\144\x65\x72\x2e\160\150\160";
require_once "\151\x6e\x63\154\x75\144\x65\163\x2f\x6c\151\x62\57\165\164\151\154\151\164\x79\57\163\x72\143\57\x63\x6c\x61\163\163\55\x6d\x6f\55\x75\x74\x69\154\151\x74\171\55\x73\x65\162\x76\x69\143\145\56\160\x68\x70";
require_once "\155\157\x2d\x6c\x64\141\160\x2d\x66\x65\x65\x64\142\141\x63\153\x2d\146\157\x72\x6d\56\x70\150\160";
require_once "\155\x6f\x2d\x6c\x64\x61\160\x2d\151\156\x74\x72\x61\x6e\145\x74\x2d\166\145\x72\x73\151\x6f\156\55\x75\x70\144\x61\164\x65\56\x70\x68\160";
require_once dirname(__FILE__) . "\57\151\156\x63\x6c\x75\144\x65\x73\x2f\x6c\x69\x62\57\x65\170\x70\x6f\x72\x74\x2e\160\x68\160";
require_once dirname(__FILE__) . "\57\104\x69\162\145\x63\164\157\x72\151\x65\x73\57\x44\151\x72\x65\143\x74\x6f\x72\171\106\x61\x63\x74\x6f\x72\171\56\x70\x68\160";
use MOLDAP\LicenseLibrary\Classes\Mo_Utility_Library;
use MOLDAP\LicenseLibrary\Mo_Utility_Service;
define("\124\x61\142\137\x6c\144\141\160\137\x43\154\x61\163\x73\x5f\116\141\x6d\x65\163", serialize(array("\x6c\144\141\160\137\114\157\x67\151\x6e" => "\155\157\x5f\x6f\160\x74\151\157\x6e\x73\137\154\144\141\160\137\x61\143\143\x5f\144\x65\x74\x61\151\x6c\x73", "\154\x64\x61\x70\x5f\143\x6f\x6e\146\151\x67" => "\155\x6f\137\157\160\x74\x69\157\156\x73\137\x6c\x64\141\x70\x5f\x63\x6f\x6e\x66\151\x67\137\144\x65\x74\141\151\154\x73", "\x52\x6f\x6c\x65\137\115\x61\160\x70\x69\156\147" => "\155\x6f\137\157\160\164\x69\x6f\x6e\x5f\x6c\144\141\160\x5f\162\x6f\154\145\137\155\x61\x70\160\151\x6e\147", "\x41\164\x74\162\x69\x62\165\164\145\137\x4d\x61\x70\x70\x69\156\x67" => "\155\157\137\157\x70\164\x69\x6f\156\163\137\154\144\141\160\137\x65\156\165\155\137\x61\x74\x74\162\151\142\165\x74\x65\137\x6d\x61\x70\160\151\x6e\147", "\x44\x69\x72\x73\x79\x6e\x63\x5f\x4c\144\141\160\x5f\124\157\x5f\127\160\x5f\x53\x79\156\x63" => "\155\157\x5f\x6f\160\x74\151\157\x6e\137\154\x64\141\160\137\144\151\162\x73\x79\156\143\137\x6c\x64\x61\160\x5f\164\x6f\137\x77\160\137\163\x79\x6e\143", "\x44\151\162\163\171\x6e\143\x5f\x57\x70\x5f\124\157\x5f\x4c\144\141\x70\x5f\x73\x79\x6e\x63" => "\x6d\157\137\x6f\160\x74\x69\x6f\x6e\x5f\x6c\x64\141\160\137\144\x69\162\x73\x79\156\143\137\x77\x70\137\164\157\137\154\144\x61\x70\x5f\x73\171\156\x63", "\160\x6c\165\147\151\x6e\x5f\166\x65\x72\x73\x69\x6f\x6e" => "\155\157\137\x70\x6c\165\147\151\x6e\x5f\151\x6e\x66\x6f")));
define("\x4d\117\x5f\x4c\x44\101\x50\137\x4c\x4f\x43\x41\114\x5f\110\x4f\123\x54\x5f\x4e\101\115\x45", "\x68\164\164\x70\x73\72\x2f\57\x6c\157\147\x69\156\56\x78\x65\x63\x75\162\x69\146\x79\56\x63\x6f\x6d");
define("\x4d\x4f\x5f\x4c\x44\101\x50\137\x42\101\x53\105\137\104\x49\122\x5f\x50\x41\124\110", __DIR__);
error_reporting(E_ERROR);
class Mo_Ldap_Local_Login
{
function __construct()
{
$jJ = 7;
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
$fS = new Mo_Utility_Library($Hi);
add_action("\141\x64\155\151\x6e\x5f\155\x65\156\165", array($this, "\155\x6f\137\154\x64\141\x70\x5f\x6c\157\x63\141\154\137\x6c\x6f\x67\151\156\x5f\167\x69\144\147\145\164\137\155\x65\x6e\x75"));
add_action("\x61\x64\x6d\151\156\x5f\x69\156\151\x74", array($this, "\x6c\x6f\147\x69\156\x5f\x77\151\x64\x67\145\164\137\x73\141\x76\145\137\157\x70\x74\x69\157\x6e\163"));
add_action("\x69\156\151\x74", array($this, "\x74\x65\163\164\x5f\141\164\x74\x72\151\142\165\164\x65\137\143\x6f\x6e\x66\x69\x67\165\x72\x61\164\151\157\156"));
add_action("\141\144\155\x69\156\x5f\145\156\x71\x75\x65\165\145\137\163\143\162\x69\x70\x74\163", array($this, "\155\x6f\137\x6c\144\x61\160\137\x6c\x6f\x63\x61\x6c\137\x73\x65\x74\164\151\x6e\x67\163\x5f\163\x74\x79\154\x65"));
add_action("\141\x64\155\x69\156\137\145\156\161\165\x65\165\145\x5f\x73\143\162\x69\160\x74\163", array($this, "\155\x6f\x5f\154\x64\x61\x70\137\154\157\143\141\154\137\x73\x65\164\x74\151\156\147\x73\137\163\143\x72\151\160\164"));
$HB = get_option("\x6d\x6f\137\154\144\141\x70\137\x6c\157\x63\x61\x6c\x5f\x65\x6e\x61\142\154\145\137\165\160\x64\x61\x74\145\x5f\x6c\x64\x61\160");
if (!($HB == 1)) {
goto iI;
}
add_action("\x70\x72\x6f\146\x69\154\145\137\x75\x70\144\141\164\x65", array($this, "\165\160\144\x61\164\145\x5f\x70\x72\157\x66\x69\154\145"), 10, 2);
iI:
$Yu = !empty(get_option("\x6d\x6f\x5f\x6c\x64\141\160\x5f\160\154\165\147\x69\156\137\x76\x65\x72\x73\151\157\156")) ? get_option("\x6d\x6f\137\x6c\144\x61\160\x5f\160\154\x75\147\x69\x6e\137\166\x65\162\x73\151\x6f\x6e") : "\x6e\x6f\156\145";
if (!(strcasecmp($Yu, "\x32\x37\x2e\60\x2e\x30") != 0)) {
goto WW;
}
Mo_Ldap_Local_Util::bp_hjey_hpfeh_dy_mysvejr($Yu);
update_option("\155\x6f\137\154\144\141\160\137\160\x6c\x75\x67\151\x6e\x5f\166\x65\162\163\x69\157\x6e", "\x32\67\56\x30\56\x30");
WW:
remove_action("\141\x64\155\151\156\x5f\156\x6f\x74\151\143\145\163", array($this, "\163\x75\143\143\145\163\163\137\x6d\x65\x73\163\141\147\145"));
remove_action("\141\x64\x6d\x69\156\137\156\157\x74\x69\143\x65\x73", array($this, "\145\x72\162\157\162\x5f\x6d\x65\163\x73\x61\147\145"));
register_deactivation_hook(__FILE__, array($this, "\155\x6f\x5f\x6c\144\x61\160\x5f\154\x6f\143\x61\x6c\137\x64\145\x61\143\164\x69\166\141\x74\x65"));
add_action("\x73\x68\157\x77\137\165\163\145\x72\x5f\160\x72\157\146\x69\x6c\145", array($this, "\163\x68\157\167\x5f\165\x73\145\162\x5f\160\x72\157\146\x69\154\x65"));
add_action("\x65\x64\x69\164\137\x75\x73\145\x72\137\160\x72\157\x66\151\x6c\145", array($this, "\x73\x68\157\167\137\165\163\x65\x72\137\x70\162\157\x66\151\154\x65"));
$x8 = get_option("\155\x6f\137\154\x64\x61\x70\x5f\154\157\x63\141\154\137\141\165\x74\150\157\x72\151\x7a\145\144\137\165\x73\x65\x72\163\x5f\x6f\x6e\x6c\x79");
if (!($x8 == 1)) {
goto uO;
}
add_action("\x77\x70", array($this, "\155\x6f\x5f\x6c\144\x61\160\137\154\x6f\143\141\154\137\154\157\x67\x69\156\x5f\162\x65\x64\x69\162\x65\x63\164"));
uO:
if (!in_array("\156\x65\170\x74\x2d\141\x63\164\x69\x76\x65\x2d\x64\x69\x72\145\x63\x74\x6f\162\171\55\x69\156\x74\145\147\162\141\164\151\157\156\57\151\x6e\144\145\x78\x2e\x70\x68\160", (array) get_option("\x61\143\164\x69\166\x65\x5f\160\154\165\x67\x69\x6e\x73", array()), true)) {
goto GE;
}
$jJ = 20;
GE:
$L2 = get_option("\155\157\x5f\154\144\141\160\x5f\154\x6f\143\141\x6c\137\x65\156\x61\x62\154\145\137\154\157\x67\151\156");
if (!($L2 == 1)) {
goto Gf;
}
remove_filter("\141\x75\164\x68\x65\156\x74\x69\x63\x61\x74\x65", "\x77\x70\x5f\141\165\164\150\145\156\x74\x69\x63\x61\x74\145\x5f\x75\x73\x65\x72\x6e\141\x6d\x65\x5f\x70\x61\x73\163\x77\x6f\162\x64", 20, 3);
add_filter("\141\x75\x74\x68\x65\156\x74\x69\x63\141\164\x65", array($this, "\x6c\x64\141\x70\x5f\154\157\147\x69\x6e"), $jJ, 3);
add_filter("\154\157\147\x69\156\x5f\x72\x65\x64\151\162\145\x63\164", array($this, "\x6d\x6f\x5f\154\144\141\x70\137\154\157\x63\x61\x6c\137\143\165\x73\164\157\155\x5f\x72\x65\144\151\x72\145\143\x74"), 10, 3);
Gf:
$XA = get_option("\155\x6f\137\154\x64\141\160\137\154\x6f\143\141\154\x5f\x65\x6e\x61\x62\154\x65\x5f\141\x74\x74\x72\x5f\155\x61\160\160\151\156\x67");
if (!($XA == 1)) {
goto kh;
}
add_action("\155\x6f\x5f\154\x64\x61\x70\x5f\141\164\x74\x72\x69\x62\165\164\x65\137\164\157\137\165\163\145\162\155\145\164\141\137\165\x70\x64\141\x74\145", array($this, "\155\x6f\x5f\154\144\141\x70\x5f\143\165\x73\164\x6f\155\137\x75\163\x65\x72\x6d\145\164\141\137\165\x70\x64\x61\x74\145"), 101, 1);
kh:
register_activation_hook(__FILE__, array($this, "\155\x6f\x5f\154\x64\x61\x70\137\141\x63\x74\151\166\141\164\145"));
add_action("\155\157\x5f\x6c\x64\x61\x70\137\154\157\143\141\x6c\137\165\164\x69\x6c\151\164\171\137\x73\x79\156\x63", array($this, "\x6d\157\137\154\144\141\x70\x5f\154\x6f\143\x61\x6c\137\165\x74\151\x6c\151\164\x79\137\x73\x79\156\143"));
add_action("\146\154\165\163\150\x63\x61\x63\x68\x65", array($this, "\x75\x70\144\141\x74\x65\x5f\x73\164\141\164\165\163"), 10, 3);
add_filter("\155\157\137\143\x68\x65\x63\153\137\143\157\x6e\x66\x69\x67", array($this, "\167\x61\x5f\x68\167\146\162\x71\141\162\x5f\x6f\x65\150\167\152"));
if (!$Hi) {
goto CM;
}
add_action("\x61\x64\x6d\151\x6e\x5f\146\x6f\157\164\145\162", array($this, "\154\x64\x61\160\137\x66\x65\x65\144\x62\x61\x63\153\x5f\162\145\x71\165\x65\x73\164"));
CM:
}
public function wa_hwfrqar_oehwj()
{
$ve = Mo_Utility_Service::wa_hwfrqar_rnywvrj();
$sK = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ("\x4c\x49\103\105\116\x53\x45\x5f\x56\x41\x4c\111\104" === $ve["\103\117\104\105"]) {
goto yL;
}
if ($sK) {
goto Xo;
}
if (!$ve["\x53\124\x41\x54\125\123"]) {
goto Ii;
}
goto s7;
Xo:
return false;
goto s7;
Ii:
return true;
s7:
goto AK;
yL:
return true;
AK:
return false;
}
public function ldap_feedback_request()
{
display_ldap_feedback_form();
}
function mo_ldap_local_custom_redirect($yt, $Me, $user)
{
$fB = get_option("\155\157\137\154\x64\141\160\x5f\x6c\157\143\x61\x6c\137\x72\x65\x64\151\x72\145\143\164\137\x74\x6f");
if (!(isset($user->roles) && is_array($user->roles))) {
goto rW;
}
if (in_array("\x61\144\x6d\151\156\x69\163\164\x72\x61\164\x6f\x72", $user->roles)) {
goto f0;
}
if ($fB) {
goto UX;
}
goto TK;
f0:
return $yt;
goto TK;
UX:
if ($fB == "\150\157\155\x65\160\x61\147\145") {
goto cb;
}
if ($fB == "\x70\x72\157\146\x69\x6c\145") {
goto ip;
}
if ($fB == "\x63\165\x73\x74\x6f\155") {
goto zB;
}
goto hU;
cb:
$yt = home_url();
goto hU;
ip:
$m3 = home_url() . "\57\x77\x70\x2d\x61\144\x6d\x69\x6e\x2f\160\162\x6f\146\151\x6c\145\x2e\x70\150\160";
$yt = $m3;
goto hU;
zB:
$GG = get_option("\155\x6f\x5f\x6c\144\141\x70\137\154\157\143\141\154\x5f\x63\165\163\x74\157\155\137\162\x65\x64\151\x72\145\143\164");
$yt = $GG;
hU:
TK:
rW:
return $yt;
}
function mo_ldap_local_login_redirect()
{
$S2 = get_queried_object_id();
$EV = rtrim(get_permalink($S2), "\x2f");
$b3 = !empty(get_option("\155\157\137\154\x64\141\x70\137\x70\165\142\154\151\x63\137\160\x61\x67\x65\163\137\x6c\x69\163\x74")) ? unserialize(get_option("\x6d\157\137\x6c\144\x61\x70\137\160\165\x62\x6c\x69\x63\x5f\x70\141\147\145\163\137\x6c\x69\163\x74")) : array();
if (!(empty(get_option("\x6d\x6f\x5f\x6c\144\x61\x70\x5f\x70\x75\x62\154\151\143\x5f\160\x61\147\145\x73\x5f\145\156\141\x62\154\145")) || !in_array(strtolower($EV), $b3))) {
goto Wm;
}
if (is_user_logged_in()) {
goto Ly;
}
auth_redirect();
Ly:
Wm:
}
function bp_srz_fpqtws_azezma($wV)
{
if (!(strcasecmp(Jp_hwfrqar_mzwhwzl_arvowfra::bp_mzwhwzl_azeza($wV), "\x76\145\162\151\x66\x69\x65\x64") == 0)) {
goto gH;
}
return true;
gH:
return false;
}
function mo_ldap_custom_usermeta_update($user)
{
$vb = get_option("\155\157\x5f\154\x64\141\160\x5f\x61\x74\x74\x72\x69\x62\165\x74\x65\137\165\163\145\162\155\145\164\141\x5f\155\141\x70\160\x69\156\x67");
$Fr = "\x6d\157\137\154\x64\x61\x70\137\x6c\157\x63\141\x6c\x5f\143\x75\163\x74\x6f\x6d\137\x61\x74\x74\x72\151\x62\x75\x74\145\x5f";
foreach ($vb as $Hg => $Us) {
$zy = $Fr . $Us;
$AT = get_user_meta($user->ID, $zy, true);
if (empty($AT)) {
goto Ip;
}
update_user_meta($user->ID, $Hg, $AT);
Ip:
A8:
}
Dg:
}
function show_user_profile($user)
{
$ps = unserialize(get_option("\155\x6f\x5f\154\144\141\x70\137\154\157\143\141\154\137\143\165\x73\x74\x6f\x6d\x5f\x61\x74\164\162\x69\142\x75\x74\x65\x73"));
echo "\x9\x9\x3c\150\x33\76\105\170\164\162\141\x20\x70\162\157\x66\x69\x6c\145\x20\151\x6e\146\157\x72\155\141\164\x69\x6f\156\x3c\x2f\x68\63\76\xa\12\11\11\x3c\164\x61\x62\154\145\x20\143\154\141\163\163\75\x22\146\x6f\x72\x6d\55\x74\141\x62\154\145\x22\x3e\12\12\11\x9\x9\x3c\x74\x72\76\12\x9\x9\11\x9\74\164\x64\x3e\x3c\x62\x3e\x3c\154\x61\142\x65\x6c\x20\x66\157\162\75\x22\x75\x73\145\x72\137\144\156\42\x3e\125\x73\145\x72\x20\104\116\x3c\57\x6c\x61\142\x65\x6c\76\x3c\x2f\x62\x3e\74\57\x74\x64\x3e\xa\12\x9\x9\x9\11\74\x74\x64\x3e\xa\x9\x9\11\x9\11\74\142\76";
echo esc_attr(get_the_author_meta("\x6d\x6f\137\154\144\141\160\137\x75\163\x65\x72\x5f\144\x6e", $user->ID));
echo "\x3c\57\142\76\74\x2f\x74\x64\76\xa\x9\x9\11\11\x3c\57\164\x64\x3e\xa\x9\11\11\74\x2f\164\162\x3e\12\11\x9\x9";
if (!get_the_author_meta("\155\157\137\x6c\x64\x61\x70\137\165\163\x65\162\137\x70\x68\157\x6e\x65", $user->ID)) {
goto s0;
}
echo "\11\x9\x9\11\x3c\164\x72\76\xa\11\11\x9\x9\x9\74\x74\144\x3e\74\x62\x3e\x3c\x6c\141\x62\x65\154\40\x66\157\162\75\x22\165\x73\x65\x72\x5f\x70\x68\157\156\145\42\76\x55\x73\145\162\x20\120\150\x6f\156\x65\x20\x4e\165\155\x62\x65\162\x3c\x2f\154\141\x62\145\x6c\x3e\74\57\142\x3e\74\57\x74\x64\x3e\12\12\x9\11\11\11\x9\x3c\x74\x64\76\12\11\x9\11\11\11\11\x3c\142\x3e";
echo esc_attr(get_the_author_meta("\x6d\x6f\x5f\x6c\x64\x61\x70\137\165\163\145\162\137\160\150\157\x6e\145", $user->ID));
echo "\x3c\57\142\76\12\x9\11\11\11\x9\74\57\x74\144\x3e\xa\11\11\x9\11\x3c\x2f\164\x72\x3e\xa\x9\11\11\11";
s0:
foreach ($ps as $NY => $wV) {
$HE = get_user_meta($user->ID, $NY, true);
if (empty($HE)) {
goto cW;
}
echo "\11\11\x9\11\11\x3c\164\162\76\12\11\11\x9\11\x9\x3c\x74\144\x3e\74\x62\76\74\x66\157\x6e\x74\40\143\157\x6c\x6f\162\75\x22\x23\106\x46\60\60\60\60\42\76\x3c\57\x66\157\x6e\164\x3e";
echo $wV;
echo "\x3c\57\142\76\74\57\x74\144\x3e\xa\11\x9\11\11\11";
if (is_array($HE)) {
goto Eg;
}
echo "\x3c\164\x64\x3e";
echo "\74\x62\76" . $HE . "\74\x2f\142\x3e\74\142\x72\76";
echo "\x3c\x2f\x74\144\x3e";
goto uM;
Eg:
echo "\x3c\x74\144\76";
foreach ($HE as $fY) {
echo "\x3c\x62\x3e" . $fY . "\74\57\142\x3e\x3c\x62\162\x3e";
kk:
}
wQ:
echo "\74\57\x74\x64\76";
uM:
echo "\x9\11\x9\x9\x9\74\57\x74\162\x3e\12\11\11\x9\11\x9";
cW:
vu:
}
Sk:
echo "\x9\11\74\57\164\141\142\x6c\x65\x3e\xa\12\x9\11";
}
function update_profile($VL, $gX = null)
{
$tx = apply_filters("\155\x6f\137\143\150\145\x63\x6b\137\143\157\156\146\x69\147", '');
if (!$tx) {
goto g3;
}
$ps = unserialize(get_option("\x6d\157\137\154\144\141\x70\x5f\x6c\x6f\x63\141\154\x5f\143\x75\x73\164\157\155\137\141\x74\164\162\x69\x62\x75\x74\x65\163"));
$p3 = array();
foreach ($ps as $NY => $wV) {
if (!isset($_POST[$wV])) {
goto xP;
}
$p3[$wV] = $_POST[$wV];
xP:
mH:
}
p1:
$user = get_userdata($VL);
$TN = new Mo_Ldap_Local_Config();
$TN->modify_user_info_in_ldap($user, $p3);
g3:
}
function ldap_login($user, $tp, $mo)
{
$tx = apply_filters("\155\157\137\x63\150\145\143\153\x5f\143\x6f\x6e\x66\x69\x67", '');
$tA = get_option("\x61\x63\164\151\166\145\x5f\160\154\165\147\151\156\163");
if (!in_array("\155\151\156\x69\x6f\162\x61\x6e\147\x65\x2d\x63\165\163\x74\157\x6d\x69\172\x65\55\x77\160\x2d\x6c\x64\x61\160\55\154\x6f\x67\151\156\x2d\163\x63\x72\x65\145\x6e\x2d\141\144\x64\x2d\157\x6e\x2f\141\x64\x64\137\x6c\157\147\x69\156\137\x6d\x65\163\x73\141\x67\145\56\160\150\x70", $tA)) {
goto RB;
}
add_filter("\x6c\157\x67\151\156\x5f\x6d\x65\163\x73\x61\147\x65", "\x61\144\144\137\154\157\147\x69\x6e\x5f\x6d\145\x73\163\x61\147\145\163");
function add_login_messages($Ur)
{
$pO = get_option("\155\x6f\137\x6c\144\141\x70\137\x6c\157\x67\151\x6e\x5f\x6d\145\163\163\141\147\145\163");
foreach ($pO as $CX) {
$Ur = $Ur . "\74\160\40\x6e\x61\155\145\75\x27\x63\165\x73\x74\157\155\x2d\x6c\157\x67\151\x6e\55\x6d\145\x73\163\x61\147\x65\x27\40\151\x64\75\47\143\165\163\164\x6f\x6d\55\x6c\157\147\151\156\x2d\155\145\163\163\x61\x67\x65\x27\40\x73\x74\x79\154\x65\75\47\x6d\141\162\147\x69\156\x2d\x74\x6f\160\x3a\40\62\x30\160\x78\73\155\x61\x72\147\x69\156\55\x6c\145\x66\164\72\40\x30\73\160\141\144\x64\151\x6e\147\x3a\40\70\160\170\x20\70\160\x78\40\x38\x70\170\x3b\x66\x6f\x6e\x74\x2d\167\145\151\x67\x68\x74\x3a\x20\62\x30\60\73\x6f\166\x65\x72\x66\154\157\167\x3a\x20\150\x69\x64\144\x65\156\x3b\x62\x61\143\x6b\147\x72\157\x75\156\144\72\x20\43\146\146\146\73\142\x6f\162\x64\x65\x72\x3a\x20\64\x70\170\x20\x73\x6f\154\151\144\40\x23\146\x66\146\73\x62\x6f\170\x2d\x73\x68\141\144\157\167\x3a\x20\60\x20\x31\160\x78\x20\x33\x70\170\40\162\147\x62\x61\x28\60\54\60\x2c\x30\54\56\60\x34\x29\73\x62\x6f\162\x64\x65\162\x2d\x6c\145\146\164\55\143\x6f\x6c\157\162\72\40" . $CX["\x63\157\x6c\157\162"] . "\x3b\x62\x6f\x72\144\x65\x72\55\x74\157\160\72\40\156\157\x6e\x65\x3b\x62\157\x72\144\x65\162\55\142\157\x74\x74\x6f\155\72\x20\156\x6f\x6e\x65\73\x27\76\74\x73\164\x72\x6f\x6e\147\x3e" . $CX["\x6d\x65\x73\163\x61\147\x65"] . "\74\57\163\x74\x72\x6f\156\x67\x3e\x3c\x2f\160\x3e";
dR:
}
Aj:
$Ur = $Ur . "\74\x62\x72\76";
return $Ur;
}
RB:
$vu = get_option("\155\x6f\137\154\x64\141\x70\137\x65\156\x61\x62\154\145\x5f\x75\163\145\x72\137\x73\x65\163\163\151\157\156\x5f\163\x79\156\143");
if ($vu && in_array("\155\151\x6e\151\157\x72\141\156\x67\x65\x2d\x74\x65\x72\x6d\151\156\141\x74\145\55\x6c\144\141\x70\x2d\165\163\145\x72\55\163\x65\163\x73\x69\157\x6e\55\x6f\x6e\55\160\141\x73\x73\167\157\162\x64\55\x75\x70\144\x61\164\x65\x2d\141\144\144\x2d\157\x6e\57\164\x65\x72\155\x69\x6e\x61\x74\145\137\x6c\144\141\160\137\x75\x73\x65\162\x5f\x73\145\x73\x73\151\x6f\156\137\163\x79\x6e\x63\x2e\x70\x68\x70", $tA)) {
goto Ht;
}
$Zj = false;
goto fh;
Ht:
$Zj = true;
fh:
error_log("\x56\x61\x6c\165\x65\x20\146\x6f\162\40\x4c\x44\x41\x50\40\120\127\104\40\163\x79\156\143\40\72\40" . $Zj);
if (!(empty($tp) || empty($mo))) {
goto Kd;
}
$qc = new WP_Error();
if (!empty($tp)) {
goto QV;
}
$qc->add("\145\x6d\x70\x74\171\137\x75\x73\145\162\156\x61\x6d\x65", __("\x3c\163\164\162\x6f\156\147\76\x45\x52\x52\x4f\122\74\57\x73\x74\162\157\x6e\147\x3e\72\x20\105\x6d\x61\x69\154\40\x66\151\145\154\144\x20\151\x73\40\145\155\x70\164\171\x2e"));
QV:
if (!empty($mo)) {
goto RQ;
}
$qc->add("\x65\155\x70\164\171\137\160\x61\x73\x73\x77\x6f\162\144", __("\74\x73\x74\162\x6f\x6e\x67\x3e\105\122\x52\117\x52\74\57\x73\x74\162\x6f\x6e\147\76\72\x20\120\141\x73\x73\x77\157\162\x64\x20\146\x69\145\x6c\144\40\151\163\x20\145\x6d\x70\x74\171\x2e"));
RQ:
return $qc;
Kd:
$R3 = get_option("\155\x6f\x5f\154\144\141\x70\137\154\x6f\x63\x61\154\137\x65\156\x61\x62\154\x65\137\142\157\164\x68\x5f\x6c\x6f\x67\151\x6e");
$TN = new Mo_Ldap_Local_Config();
$gT = $TN->authenticate_ldap_user($tp, $mo);
if ($gT->statusCode == "\x4c\104\101\120\x5f\102\x49\x4e\104\137\123\x55\103\x43\x45\x53\123\137\125\x53\x45\x52\137\105\x58\x49\x53\124\123" && $tx) {
goto oX;
}
if (!empty($R3) || !$tx) {
goto Vc;
}
if ($gT->statusCode == "\x4c\104\101\120\x5f\x43\x4f\116\116\x45\x43\x54\x49\x4f\116\x5f\x45\122\122\x4f\x52") {
goto gk;
}
if ($gT->statusCode == "\114\104\101\120\x5f\x42\111\116\x44\137\x45\122\x52\x4f\x52\x5f\125\123\105\122\x5f\105\x58\111\123\124\123") {
goto Pz;
}
if ($gT->statusCode == "\114\104\x41\120\x5f\105\x58\x54\105\116\123\111\117\116\x5f\x45\x52\x52\117\122") {
goto Vq;
}
if ($gT->statusCode == "\x4f\x50\105\116\x53\x53\114\x5f\x45\x58\x54\x45\116\x53\111\x4f\x4e\x5f\105\122\x52\117\122") {
goto MY;
}
$qc = new WP_Error();
$qc->add("\x55\116\113\116\x4f\127\x4e\137\x45\122\122\117\122", __("\74\x73\164\162\x6f\156\x67\x3e\x45\x52\122\x4f\122\74\57\x73\164\x72\x6f\x6e\x67\x3e\72\40\125\x6e\153\x6e\157\x77\156\40\145\x72\162\157\x72\x20\157\x63\143\x75\x72\x72\x65\144\40\144\165\162\151\x6e\147\x20\x61\165\164\150\145\164\151\143\x61\x74\151\157\x6e\x2e\x20\x50\x6c\145\141\163\x65\40\143\x6f\x6e\x74\x61\143\x74\40\171\157\x75\x72\x20\x61\144\155\151\x6e\151\163\x74\162\141\x74\x6f\162\x2e"));
return $qc;
goto ID;
oX:
$rm = get_option("\155\x6f\x5f\x6c\x64\141\x70\137\145\156\x61\142\154\x65\x5f\x75\154\164\151\x6d\141\x74\145\x5f\155\145\x6d\x62\145\162\x5f\154\x6f\x67\x69\156");
$pm = get_option("\x6d\x6f\x5f\x6c\144\x61\x70\x5f\x65\156\x61\142\x6c\145\137\165\154\164\151\155\x61\x74\145\137\155\145\x6d\x62\145\162\137\160\x72\x6f\146\x69\154\x65");
$FN = $gT->profileAttributesList;
$JU = $FN["\x6d\x61\x69\x6c"];
if (username_exists($tp) || email_exists($tp) || username_exists($JU) || email_exists($JU)) {
goto yc;
}
$Sq = get_option("\155\157\x5f\x6c\144\141\x70\x5f\x6c\x6f\x63\141\x6c\137\x72\x65\x67\x69\x73\164\x65\162\x5f\x75\163\x65\x72");
if (!$Sq) {
goto Yt;
}
$Ww = get_option("\155\x6f\x5f\154\144\141\160\x5f\x6c\157\143\x61\x6c\137\145\156\x61\x62\x6c\145\137\146\x61\154\154\x62\x61\x63\x6b\137\x6c\x6f\147\x69\156");
$yZ = wp_generate_password(10, false);
$JU = '';
$kE = '';
$pJ = '';
$Mx = '';
$X0 = '';
$NJ = get_option("\155\157\137\154\x64\x61\160\137\x6c\x6f\143\141\154\137\145\x6e\141\142\x6c\x65\x5f\141\x74\x74\162\137\155\141\160\x70\151\156\147");
if (!($NJ == 1)) {
goto j4;
}
$dZ = strtolower(get_option("\x6d\x6f\137\154\x64\x61\160\x5f\154\157\x63\x61\x6c\137\x66\x6e\x61\x6d\145\137\141\164\x74\162\x69\x62\165\x74\145"));
$CU = strtolower(get_option("\x6d\157\137\154\144\x61\x70\137\154\157\x63\x61\154\x5f\x6c\156\x61\x6d\145\x5f\x61\164\164\162\151\142\x75\164\145"));
$dK = strtolower(get_option("\x6d\x6f\137\154\x64\141\x70\137\x6c\157\143\x61\x6c\137\145\x6d\x61\151\x6c\x5f\x61\164\x74\x72\151\142\165\x74\145"));
$nX = strtolower(get_option("\155\x6f\137\x6c\x64\x61\x70\137\x6c\157\x63\141\x6c\x5f\160\150\x6f\x6e\x65\x5f\x61\164\164\162\x69\142\x75\x74\x65"));
$se = strtolower(get_option("\x6d\x6f\137\154\144\141\160\x5f\x6c\x6f\143\x61\154\137\156\151\x63\153\x6e\x61\x6d\145\x5f\x61\164\x74\162\x69\x62\165\164\x65"));
$JU = $FN[$dK];
$kE = $FN[$dZ];
$pJ = $FN[$CU];
$Mx = $FN[$se];
$X0 = $FN[$nX];
j4:
$o4 = array("\165\163\145\162\x5f\154\x6f\x67\x69\156" => $tp, "\165\x73\x65\162\137\145\x6d\141\151\154" => $JU, "\146\x69\162\163\164\x5f\156\141\155\145" => $kE, "\154\141\x73\x74\137\156\141\155\145" => $pJ, "\156\x69\x63\x6b\x6e\x61\155\x65" => $Mx, "\165\x73\145\x72\x5f\x70\141\163\163" => $yZ);
if (!($NJ == 1)) {
goto YH;
}
if (empty($Mx)) {
goto Fm;
}
$o4["\x6e\151\x63\x6b\x6e\141\x6d\x65"] = $Mx;
Fm:
$Pz = get_option("\x6d\157\x5f\154\x64\x61\160\137\154\157\143\141\x6c\137\144\151\x73\x70\154\x61\x79\x5f\156\x61\155\x65\x5f\x61\x74\x74\x72\151\x62\x75\x74\145");
if (empty($Pz)) {
goto eD;
}
if ($Pz == "\156\151\x63\x6b\x6e\141\x6d\145" && !empty($Mx)) {
goto lI;
}
if ($Pz == "\145\x6d\141\x69\154") {
goto wr;
}
if ($Pz == "\146\x69\162\x73\164\156\x61\155\x65") {
goto TB;
}
if ($Pz == "\x66\151\x72\x73\x74\x6c\x61\163\164") {
goto V6;
}
if ($Pz == "\x6c\141\163\164\x66\151\162\163\x74") {
goto P7;
}
goto fS;
lI:
$o4["\144\x69\x73\160\x6c\x61\171\x5f\x6e\x61\155\145"] = $Mx;
goto fS;
wr:
$o4["\x64\x69\163\160\x6c\141\x79\137\x6e\141\155\145"] = $JU;
goto fS;
TB:
$o4["\144\x69\163\x70\154\141\x79\137\x6e\x61\155\145"] = $kE;
goto fS;
V6:
$o4["\144\151\x73\x70\x6c\x61\171\137\156\141\155\x65"] = $kE . "\x20" . $pJ;
goto fS;
P7:
$o4["\144\x69\163\160\x6c\x61\171\x5f\156\141\155\145"] = $pJ . "\x20" . $kE;
fS:
eD:
YH:
$VL = wp_insert_user($o4);
if (!is_wp_error($VL)) {
goto FK;
}
$this->mo_ldap_report_update($tp, $gT->statusMessage, "\74\x73\x74\162\x6f\156\x67\76\x4c\157\x67\151\x6e\x20\x45\x72\x72\157\162\x3a\x3c\x2f\x73\164\162\x6f\x6e\x67\76\x20\x54\150\x65\x72\x65\40\x77\x61\163\x20\x61\156\40\145\x72\162\x6f\162\x20\162\x65\x67\x69\x73\164\145\162\x69\x6e\x67\x20\x79\x6f\x75\162\40\x61\143\x63\157\x75\156\164\x2e\40\x50\x6c\145\x61\163\x65\40\164\162\171\x20\x61\x67\141\x69\x6e\56");
$qc = new WP_Error();
$qc->add("\162\x65\x67\151\163\164\162\x61\164\x69\x6f\156\137\145\162\x72\x6f\x72", __("\74\x73\164\x72\157\156\x67\x3e\x45\122\122\117\x52\x3c\57\x73\x74\x72\x6f\156\x67\76\72\40\x54\x68\x65\x72\145\40\167\141\x73\40\141\156\40\x65\x72\x72\x6f\162\x20\162\145\x67\x69\163\x74\x65\162\x69\x6e\x67\40\x79\x6f\165\x72\40\141\x63\143\157\x75\x6e\x74\56\40\x50\154\145\141\163\x65\40\x74\x72\x79\x20\x61\x67\141\x69\x6e\x2e"));
return $qc;
goto Qh;
FK:
$user = get_user_by("\x6c\x6f\147\151\156", $tp);
if (!($Zj == true)) {
goto LD;
}
error_log("\x73\141\166\x69\156\x67\40\165\x73\145\x72\x20\x6d\145\164\x61\x20\153\145\x79");
update_user_meta($user->ID, "\x6d\157\137\x6c\144\141\160\x5f\x75\163\145\x72\x5f\x73\x65\x73\163\x69\157\156\x5f\153\145\171", Mo_Ldap_Local_Util::encrypt($mo));
LD:
update_user_meta($user->ID, "\x6d\x6f\137\154\144\141\x70\137\x75\163\145\x72\137\x64\156", $gT->userDn, false);
update_user_meta($user->ID, "\x6d\x6f\137\x6c\x64\141\x70\137\x75\163\145\x72\137\x70\x68\157\x6e\145", $X0);
$m5 = get_option("\155\x6f\137\x6c\144\141\160\x5f\154\157\143\x61\x6c\137\145\156\x61\x62\154\145\x5f\x72\x6f\154\x65\x5f\155\141\160\x70\x69\156\147");
$D7 = new Mo_Ldap_Local_Role_Mapping();
$Do = $D7->get_member_of_attribute($tp);
if (!($m5 == 1)) {
goto Fh;
}
$D7->mo_ldap_local_update_role_mapping($user->ID, $Do);
Fh:
$user = get_user_by("\x69\x64", $user->ID);
if ($NJ == 1) {
goto Hg;
}
$ps = array();
goto NA;
Hg:
$ps = $gT->extraProfileAttributesList;
NA:
if (!array_key_exists("\155\145\155\x62\145\162\157\146", $ps)) {
goto Iv;
}
$ps["\x6d\145\155\x62\145\162\x6f\146"] = $Do;
Iv:
foreach ($ps as $NY => $wV) {
update_user_meta($user->ID, $NY, $wV);
DH:
}
Ty:
do_action("\x6d\x6f\x5f\154\x64\x61\x70\137\x62\165\x64\x64\171\160\x72\x65\163\x73", $ps, $user);
do_action("\155\x6f\x5f\x6c\144\x61\x70\x5f\x61\x74\164\x72\151\142\165\164\145\x5f\164\x6f\137\165\163\x65\x72\x6d\x65\x74\x61\x5f\165\160\144\141\164\145", $user);
do_action("\x6d\x6f\x5f\x6c\x64\x61\160\x5f\x70\162\157\x66\151\154\x65\137\x70\151\143\164\165\162\145\137\x6d\x61\160\160\151\x6e\147", $user);
do_action("\155\157\137\154\144\x61\x70\x5f\x62\x75\x64\144\x79\160\x72\x65\163\x73\137\160\x72\x6f\x66\151\154\145\x5f\160\x69\x63\x74\165\162\x65\x5f\155\x61\x70\x70\151\156\147", $user);
do_action("\155\157\x5f\x77\160\x5f\x74\x6f\137\154\144\x61\x70\137\147\x72\x6f\165\x70\x73\x5f\x6d\141\x70\160\x69\x6e\x67", $user, $Do);
do_action("\x6d\x6f\137\x6c\x64\x61\x70\137\154\x65\141\x72\156\144\x61\x73\x68\x5f\x67\x72\x6f\x75\160\163\x5f\x6d\x61\x70\160\x69\156\x67", $user, $Do);
do_action("\x6d\157\137\154\x64\141\x70\x5f\x74\165\164\x6f\162\137\147\162\157\x75\x70\x73\137\x6d\141\160\160\151\x6e\x67", $user, $Do);
if (!($pm == 1)) {
goto Kz;
}
delete_option("\165\155\137\143\141\x63\150\x65\x5f\165\163\145\162\x64\141\164\141\x5f{$user->ID}");
Kz:
if ($rm == 1) {
goto Bf;
}
$G9 = get_option("\x6d\x6f\137\154\x64\141\x70\x5f\x65\x6e\x61\x62\x6c\145\x5f\x72\x6f\x6c\x65\137\x72\145\x73\x74\x72\x69\x63\x74\x69\157\156");
if (!$G9) {
goto qT;
}
$u_ = new Mo_Ldap_Local_Role_Mapping();
$lX = $u_->mo_ldap_is_user_login_restricted($user->roles);
if (!$lX) {
goto UG;
}
$qc = new WP_Error();
$qc->add("\125\x4e\x4b\x4e\x4f\x57\116\x5f\105\x52\122\117\122", __("\74\163\164\162\157\156\x67\x3e\x45\x52\x52\x4f\122\74\x2f\x73\164\162\x6f\156\147\x3e\72\x20\131\157\165\40\x61\162\x65\40\x6e\157\x74\x20\141\154\x6c\x6f\x77\x65\144\40\x74\157\x20\x4c\157\x67\151\x6e\x2e\40\120\x6c\145\141\x73\145\40\143\157\156\164\141\143\164\x20\x79\x6f\x75\x72\40\x61\144\x6d\151\156\x69\163\164\x72\x61\x74\x6f\x72"));
return $qc;
UG:
qT:
return $user;
goto pu;
Bf:
wp_set_auth_cookie($user->ID, false);
apply_filters("\154\x6f\147\x69\x6e\137\162\145\x64\x69\162\x65\x63\164", null, null, $user);
pu:
Qh:
goto FQ;
Yt:
$this->mo_ldap_report_update($tp, "\105\x52\x52\117\x52", "\x3c\163\164\x72\x6f\x6e\147\x3e\114\x6f\x67\151\x6e\40\x45\162\x72\x6f\x72\x3a\x3c\x2f\x73\x74\x72\x6f\x6e\147\x3e\40\x59\x6f\x75\x72\40\101\x64\x6d\x69\x6e\x69\163\x74\x72\x61\x74\x6f\162\40\150\x61\163\x20\x6e\x6f\x74\40\x65\x6e\x61\142\154\x65\144\40\x41\165\x74\157\40\122\x65\147\x69\x73\164\x72\141\x74\151\157\156\56\x20\120\x6c\x65\x61\163\x65\x20\x63\157\156\164\x61\x63\x74\40\x79\x6f\x75\162\40\x41\x64\155\x69\156\x69\x73\164\x72\x61\164\157\162\56");
$qc = new WP_Error();
$qc->add("\162\145\147\x69\163\164\x72\x61\x74\151\x6f\x6e\x5f\x64\x69\163\141\142\x6c\145\144\x5f\x65\162\x72\157\x72", __("\74\163\164\162\157\156\x67\76\x45\x52\x52\117\x52\x3c\x2f\163\x74\162\157\156\147\x3e\72\40\131\x6f\x75\x72\x20\x41\144\x6d\x69\x6e\x69\x73\x74\162\141\164\x6f\162\x20\x68\x61\163\x20\x6e\157\164\x20\145\156\141\x62\154\x65\144\x20\x41\165\164\157\x20\122\x65\147\151\163\164\162\x61\164\151\x6f\x6e\56\40\x50\x6c\145\141\x73\x65\40\x63\157\156\x74\x61\x63\164\40\x79\157\165\x72\x20\101\144\x6d\151\x6e\151\163\164\x72\141\x74\x6f\x72\x2e"));
return $qc;
FQ:
goto KN;
yc:
$dK = strtolower(get_option("\155\x6f\137\x6c\144\x61\x70\137\x6c\157\x63\x61\154\x5f\x65\155\x61\151\x6c\x5f\141\164\x74\162\x69\x62\x75\164\x65"));
$user = false;
if (username_exists($tp)) {
goto Zn;
}
if (email_exists($tp)) {
goto DW;
}
if (isset($FN[$dK]) && email_exists($FN[$dK])) {
goto Jx;
}
goto Ql;
Zn:
$user = get_user_by("\x6c\x6f\x67\151\x6e", $tp);
goto Ql;
DW:
$user = get_user_by("\145\x6d\x61\151\x6c", $tp);
goto Ql;
Jx:
$user = get_user_by("\145\155\141\151\154", $FN[$dK]);
Ql:
if ($user) {
goto KX;
}
$this->mo_ldap_report_update($tp, "\x45\x52\x52\x4f\x52", "\x3c\x73\x74\162\x6f\156\147\x3e\x4c\x6f\147\x69\156\x20\x45\162\162\x6f\x72\72\x3c\x2f\x73\164\x72\x6f\156\147\76\x20\111\156\166\141\154\151\144\x20\x55\163\145\162\x6e\141\x6d\x65\x2f\120\141\163\163\167\157\x72\x64\x20\x63\x6f\x6d\142\x69\156\x61\164\x69\x6f\x6e");
goto PF;
KX:
if (!($Zj == true)) {
goto Zb;
}
error_log("\x73\x61\166\151\156\147\40\x75\163\145\x72\x20\155\145\x74\141\40\153\x65\x79");
update_user_meta($user->ID, "\x6d\157\x5f\154\x64\x61\160\137\x75\163\145\x72\137\163\x65\x73\163\x69\157\x6e\137\x6b\x65\171", Mo_Ldap_Local_Util::encrypt($mo));
Zb:
$TN->fetch_or_update_user_attributes($user, $gT);
$user = get_user_by("\x69\144", $user->ID);
if (!($pm == 1)) {
goto yt;
}
delete_option("\x75\155\x5f\x63\141\143\150\x65\137\165\x73\145\162\144\x61\x74\x61\137{$user->ID}");
yt:
if ($rm == 1) {
goto rn;
}
$G9 = get_option("\155\x6f\x5f\154\144\x61\x70\x5f\x65\156\141\142\x6c\145\137\162\x6f\154\x65\137\x72\145\163\x74\162\151\143\x74\151\157\156");
if (!$G9) {
goto BB;
}
$u_ = new Mo_Ldap_Local_Role_Mapping();
$lX = $u_->mo_ldap_is_user_login_restricted($user->roles);
if (!$lX) {
goto Zg;
}
$qc = new WP_Error();
$qc->add("\125\116\113\x4e\117\x57\116\x5f\105\122\122\117\122", __("\x3c\x73\164\162\157\156\147\76\x45\122\x52\x4f\x52\74\x2f\163\x74\x72\157\x6e\147\76\x3a\x20\x59\157\x75\x20\141\x72\x65\40\156\157\164\x20\141\154\x6c\x6f\x77\145\144\40\x74\157\40\114\x6f\x67\x69\x6e\56\x20\120\154\x65\x61\x73\x65\40\143\x6f\156\164\x61\x63\164\x20\171\x6f\165\162\40\x61\x64\155\151\156\x69\x73\x74\162\141\164\x6f\162"));
return $qc;
Zg:
BB:
return $user;
goto A5;
rn:
wp_set_auth_cookie($user->ID, false);
apply_filters("\154\157\147\x69\x6e\x5f\x72\145\144\151\x72\x65\x63\164", null, null, $user);
A5:
PF:
KN:
wp_redirect(site_url());
exit;
goto ID;
Vc:
$user = false;
if (username_exists($tp)) {
goto Ux;
}
if (email_exists($tp)) {
goto Nj;
}
goto bB;
Ux:
$user = get_user_by("\x6c\157\147\151\x6e", $tp);
goto bB;
Nj:
$user = get_user_by("\x65\155\x61\151\x6c", $tp);
bB:
if ($user) {
goto Z_;
}
if ($gT->statusCode == "\114\x44\101\x50\137\103\x4f\x4e\116\105\x43\x54\111\117\116\x5f\x45\x52\x52\117\122") {
goto mb;
}
if ($gT->statusCode == "\114\x44\x41\120\137\102\x49\116\104\x5f\105\x52\122\117\122\x5f\x55\123\x45\x52\x5f\x45\130\x49\x53\x54\123") {
goto VP;
}
$this->mo_ldap_report_update($tp, "\x45\x52\x52\x4f\x52", "\x3c\x73\164\x72\x6f\156\x67\76\114\x6f\147\151\x6e\40\x45\x72\x72\157\162\x3c\57\x73\x74\x72\157\x6e\147\x3e\72\40\125\163\x65\162\x20\167\151\164\150\x20\163\160\x65\143\151\146\151\x65\144\x20\x55\x73\145\x72\x6e\141\155\145\57\105\x6d\x61\x69\x6c\x20\141\144\x64\x72\x65\x73\163\40\116\x6f\x74\x20\x46\x6f\x75\x6e\x64\x2e");
$qc = new WP_Error();
$qc->add("\151\156\x63\157\x72\x72\145\x63\x74\x5f\x63\x72\x65\x64\x65\156\x74\151\141\x6c\x73", __("\74\163\x74\x72\x6f\x6e\147\x3e\x4c\157\147\151\156\40\105\162\162\157\162\x3c\57\163\164\162\x6f\156\147\x3e\72\40\x55\163\x65\x72\x20\167\151\x74\150\x20\x73\160\x65\x63\151\146\x69\x65\x64\40\125\x73\145\x72\x6e\x61\155\x65\x2f\x45\x6d\x61\x69\x6c\x20\141\x64\x64\x72\x65\163\x73\40\116\x6f\164\40\x46\x6f\165\156\x64\56"));
return $qc;
goto NF;
Z_:
if (!(!$tx && $gT->statusCode == "\114\104\101\120\x5f\x42\x49\116\x44\x5f\x53\125\103\x43\x45\123\x53\x5f\x55\123\x45\122\137\x45\130\111\123\124\123")) {
goto rH;
}
$oR = get_user_meta($user->ID, "\155\157\137\154\x64\141\x70\x5f\165\163\x65\x72\137\144\x6e");
$oR = !empty($oR) ? $oR : false;
if (!($oR != false)) {
goto Xx;
}
$this->mo_ldap_report_update($tp, "\105\x52\x52\x4f\122", "\x3c\163\164\162\157\x6e\147\76\124\x72\x69\141\x6c\x3a\x3c\57\163\x74\162\x6f\156\x67\76\x20\131\157\x75\x72\40\124\x72\x69\x61\154\x20\114\151\x63\x65\x6e\x73\145\x20\x68\x61\163\x20\105\170\x70\151\162\145\144");
$qc = new WP_Error();
$qc->add("\162\145\147\151\x73\164\162\x61\164\151\157\156\x5f\x64\151\163\x61\x62\154\145\144\137\145\x72\162\x6f\x72", __("\74\163\x74\162\x6f\156\x67\x3e\105\x52\x52\x4f\122\x3c\57\163\164\162\157\156\x67\x3e\72\x20\131\x6f\x75\162\40\155\x69\x6e\151\117\x72\141\x6e\147\x65\x20\114\104\101\x50\x2f\x41\104\40\114\x6f\x67\x69\x6e\40\x66\x6f\162\40\111\x6e\x74\x72\141\156\145\x74\x20\123\x69\x74\145\163\x20\124\x72\x69\141\x6c\40\114\x69\143\x65\156\x73\x65\x20\150\141\x73\x20\145\170\160\151\x72\145\x64\x2e"));
return $qc;
Xx:
rH:
$RP = false;
if ($R3 == "\141\154\x6c" || !$tx) {
goto zk;
}
if ($R3 == "\x61\144\x6d\151\x6e" && user_can($user->ID, "\155\x61\x6e\x61\x67\x65\x5f\x6f\160\164\151\x6f\x6e\163")) {
goto xo;
}
goto WZ;
zk:
$RP = true;
goto WZ;
xo:
$RP = true;
WZ:
if ($RP && wp_check_password($mo, $user->data->user_pass, $user->ID)) {
goto er;
}
if ($gT->statusCode == "\114\x44\101\120\x5f\103\x4f\116\x4e\105\103\124\111\x4f\x4e\137\x45\122\x52\x4f\x52") {
goto UJ;
}
$this->mo_ldap_report_update($tp, "\105\122\122\117\x52", "\74\163\x74\x72\157\156\x67\x3e\114\x6f\x67\x69\156\x20\105\x72\162\157\162\74\57\x73\x74\162\x6f\156\x67\76\72\40\x54\x68\145\40\160\x61\x73\x73\167\x6f\x72\x64\40\x79\157\x75\x20\145\x6e\x74\145\162\x65\x64\x20\x66\x6f\162\x20\164\x68\145\40\x55\x73\145\162\x20\x3c\163\x74\162\x6f\156\147\76" . $tp . "\x3c\x2f\163\x74\162\x6f\156\147\x3e\40\151\163\x20\151\x6e\x63\x6f\x72\162\145\x63\x74\56");
$qc = new WP_Error();
$qc->add("\151\x6e\x63\157\162\162\145\x63\164\137\143\x72\145\144\x65\x6e\164\x69\x61\x6c\163", __("\x3c\x73\164\162\157\156\147\x3e\114\x6f\147\x69\156\40\x45\x72\x72\x6f\162\x3c\57\x73\x74\162\x6f\x6e\x67\76\x3a\x20\124\150\x65\40\x70\141\x73\163\x77\157\x72\x64\x20\171\x6f\165\40\145\x6e\x74\145\x72\x65\x64\x20\146\157\162\40\x74\x68\145\40\125\x73\145\162\40\x3c\163\164\x72\x6f\156\147\x3e" . $tp . "\x3c\x2f\163\x74\162\157\x6e\147\x3e\x20\151\163\x20\151\x6e\x63\157\x72\x72\x65\143\164\56"));
return $qc;
goto Ph;
er:
$G9 = get_option("\155\x6f\137\154\x64\x61\x70\137\145\x6e\141\x62\154\145\x5f\162\157\154\145\137\x72\145\x73\164\162\x69\143\x74\151\157\156");
if (!$G9) {
goto i1;
}
$u_ = new Mo_Ldap_Local_Role_Mapping();
$lX = $u_->mo_ldap_is_user_login_restricted($user->roles);
if (!$lX) {
goto dJ;
}
$qc = new WP_Error();
$qc->add("\125\x4e\x4b\x4e\117\127\x4e\x5f\x45\122\122\x4f\x52", __("\74\163\x74\162\x6f\x6e\x67\x3e\x45\122\122\x4f\122\x3c\x2f\x73\x74\162\157\156\x67\x3e\x3a\x20\x59\x6f\165\40\141\x72\145\x20\156\157\x74\x20\x61\154\154\157\167\x65\x64\40\x74\157\40\x4c\x6f\147\151\x6e\56\x20\120\x6c\x65\x61\163\x65\x20\x63\x6f\x6e\164\141\x63\x74\40\x79\157\x75\162\40\x61\x64\x6d\151\156\151\x73\x74\162\x61\x74\157\x72"));
return $qc;
dJ:
i1:
return $user;
goto Ph;
UJ:
$this->mo_ldap_report_update($tp, "\105\122\x52\x4f\122", "\74\163\x74\x72\x6f\156\x67\76\x4c\157\147\151\x6e\x20\x45\x72\162\157\162\74\x2f\163\x74\162\157\x6e\x67\76\72\40\x4c\104\x41\x50\x20\163\x65\162\166\x65\x72\x20\151\x73\40\x6e\157\164\x20\x72\145\141\143\150\x61\x62\154\x65\56\40\x41\x75\x74\x68\x65\x6e\x74\x69\x63\x61\x74\x69\x6f\x6e\40\x66\x61\151\x6c\145\144\40\x61\x67\x61\x69\156\163\164\x20\x4c\x6f\x63\141\x6c\40\127\x6f\x72\x64\x50\x72\x65\x73\163\40\x73\145\162\166\145\162\56");
$qc = new WP_Error();
$qc->add("\151\x6e\143\x6f\162\162\x65\x63\164\x5f\x63\162\x65\144\145\156\x74\x69\x61\154\x73", __("\74\x73\x74\162\157\x6e\x67\x3e\x4c\157\x67\151\156\x20\105\x72\x72\157\x72\74\57\163\164\x72\x6f\x6e\x67\76\x3a\x20\114\104\x41\x50\40\163\x65\162\166\x65\162\40\151\163\40\156\157\164\40\x72\145\x61\143\x68\141\142\154\145\56\x20\x41\165\x74\x68\145\156\164\151\x63\x61\x74\151\x6f\x6e\40\146\141\x69\154\145\144\40\141\147\141\x69\156\x73\164\x20\114\x6f\x63\x61\x6c\x20\x57\157\x72\144\x50\x72\145\163\x73\x20\163\x65\162\x76\x65\x72\56"));
return $qc;
Ph:
goto NF;
mb:
$this->mo_ldap_report_update($tp, "\105\x52\122\x4f\122", "\74\163\x74\162\x6f\156\x67\76\x45\x52\x52\117\122\x3c\57\163\164\162\157\x6e\x67\x3e\x3a\40\x4c\x44\x41\x50\x20\163\145\162\x76\x65\162\40\151\163\x20\156\157\x74\40\162\x65\141\x63\150\141\142\x6c\x65\56");
$qc = new WP_Error();
$qc->add("\x69\156\143\157\162\x72\145\143\x74\137\x63\162\145\144\145\156\164\151\141\154\x73", __("\74\x73\164\x72\x6f\x6e\147\76\x45\x52\x52\x4f\x52\74\57\x73\164\162\x6f\156\x67\76\x3a\40\114\x44\x41\x50\x20\x73\x65\162\x76\x65\162\x20\151\163\x20\156\157\x74\40\162\x65\141\x63\150\x61\x62\154\x65\56"));
return $qc;
goto NF;
VP:
$this->mo_ldap_report_update($tp, "\105\122\x52\117\x52", "\74\x73\x74\x72\x6f\156\147\x3e\114\157\x67\151\156\40\105\162\x72\157\162\x3c\57\x73\164\x72\157\x6e\147\x3e\x3a\x20\x54\x68\145\40\160\141\163\x73\x77\157\x72\144\40\171\157\x75\x20\x65\x6e\x74\145\162\x65\x64\x20\x66\157\x72\x20\x74\150\145\40\x55\x73\145\x72\40\74\163\164\162\x6f\x6e\x67\x3e" . $tp . "\x3c\x2f\163\x74\x72\x6f\156\x67\76\x20\151\163\x20\151\156\143\157\x72\x72\x65\x63\x74\56");
$qc = new WP_Error();
$qc->add("\151\x6e\143\x6f\x72\162\145\x63\x74\x5f\x63\x72\145\144\x65\x6e\x74\x69\141\154\x73", __("\x3c\x73\x74\162\157\x6e\x67\76\114\x6f\x67\151\156\x20\105\162\x72\x6f\x72\74\57\x73\x74\162\x6f\x6e\147\x3e\x3a\40\124\150\145\x20\x70\141\x73\163\167\157\162\144\40\x79\157\165\x20\x65\156\x74\145\162\x65\x64\x20\146\157\x72\40\164\150\145\x20\x55\163\145\x72\40\74\163\x74\x72\x6f\156\x67\76" . $tp . "\x3c\57\x73\x74\x72\x6f\156\147\x3e\40\151\163\40\151\x6e\143\x6f\162\162\145\143\x74\x2e"));
return $qc;
NF:
goto ID;
gk:
$this->mo_ldap_report_update($tp, "\x45\122\x52\117\122", "\x3c\x73\164\x72\x6f\156\147\76\x4c\157\147\151\x6e\40\105\x72\x72\x6f\x72\74\x2f\x73\164\162\x6f\x6e\147\x3e\72\x20\114\x44\x41\x50\40\x73\x65\162\x76\145\162\x20\151\x73\x20\x6e\157\x74\40\x72\x65\141\x63\150\x61\x62\154\x65");
$qc = new WP_Error();
$qc->add("\x69\x6e\143\x6f\x72\x72\x65\143\164\x5f\143\162\x65\x64\x65\156\x74\151\141\x6c\163", __("\x3c\163\x74\x72\157\x6e\147\x3e\x4c\157\147\x69\x6e\x20\105\x72\x72\x6f\162\74\57\163\164\x72\x6f\x6e\147\x3e\72\x20\x4c\104\x41\x50\40\x73\145\162\166\x65\x72\40\x69\x73\40\156\x6f\x74\40\162\x65\141\143\x68\x61\x62\154\x65\x2e\40\106\x61\154\154\x62\141\x63\153\x20\x74\157\x20\154\x6f\143\141\154\x20\x57\157\162\x64\x50\x72\145\163\163\x20\x61\x75\164\x68\145\156\164\x69\x63\141\164\151\157\156\x20\151\x73\40\156\x6f\x74\40\x65\x6e\x61\142\x6c\145\x64\56"));
return $qc;
goto ID;
Pz:
$this->mo_ldap_report_update($tp, "\x45\122\122\117\122", "\74\163\x74\162\157\156\147\x3e\114\x6f\147\x69\x6e\40\x45\x72\x72\157\162\74\x2f\163\x74\162\x6f\156\147\76\72\x20\x54\150\145\40\160\141\x73\x73\167\x6f\162\x64\x20\171\x6f\x75\x20\x65\156\164\x65\x72\145\x64\x20\146\157\162\40\164\150\x65\40\x55\163\145\162\x20\x3c\x73\x74\162\157\x6e\147\76" . $tp . "\x3c\x2f\x73\x74\x72\x6f\x6e\x67\x3e\40\151\163\x20\151\156\143\x6f\x72\x72\x65\x63\164\x2e");
$qc = new WP_Error();
$qc->add("\151\x6e\143\157\x72\x72\145\x63\x74\137\143\x72\145\x64\145\156\164\x69\x61\x6c\x73", __("\74\x73\164\x72\157\156\x67\x3e\x4c\x6f\147\151\x6e\x20\105\162\x72\x6f\162\x3c\57\163\x74\162\x6f\156\x67\x3e\72\x20\x54\150\145\40\x70\141\x73\x73\167\x6f\162\x64\40\x79\157\165\x20\x65\156\164\145\x72\x65\x64\x20\146\157\x72\x20\164\x68\x65\40\x55\x73\x65\162\x20\74\x73\164\162\x6f\x6e\147\x3e" . $tp . "\x3c\57\163\164\x72\157\156\147\76\40\x69\163\40\x69\156\x63\x6f\x72\x72\x65\x63\164\56"));
return $qc;
goto ID;
Vq:
$this->mo_ldap_report_update($tp, $gT->statusMessage, "\x3c\x73\x74\162\157\x6e\147\x3e\114\x6f\147\151\156\40\x45\162\162\x6f\162\74\57\x73\164\162\157\156\x67\x3e\x3a\x20\74\141\40\164\x61\x72\x67\145\x74\75\42\x5f\142\154\x61\x6e\x6b\42\40\150\x72\x65\x66\75\42\150\164\164\x70\72\57\x2f\x70\x68\160\x2e\156\145\164\x2f\155\x61\x6e\x75\x61\x6c\57\x65\x6e\57\x6c\144\141\x70\x2e\x69\156\163\164\x61\x6c\154\141\x74\151\x6f\x6e\x2e\x70\x68\x70\x22\x3e\120\110\120\40\x4c\x44\101\x50\x20\x65\x78\x74\x65\156\163\x69\x6f\x6e\x3c\57\141\76\x20\x69\x73\x20\x6e\x6f\164\40\151\156\x73\x74\141\x6c\x6c\145\x64\40\157\162\40\144\x69\x73\141\142\x6c\x65\144\x2e\x20\120\x6c\x65\x61\163\145\40\145\156\141\142\x6c\x65\x20\x69\x74\x2e");
$qc = new WP_Error();
$qc->add("\x4c\x44\x41\x50\x5f\105\130\x54\105\x4e\123\111\117\x4e\x5f\x45\x52\122\x4f\122", __("\x3c\x73\164\162\x6f\156\147\76\x4c\157\147\151\156\40\105\x72\x72\157\162\74\x2f\x73\164\x72\x6f\156\147\x3e\72\40\74\x61\40\164\x61\162\x67\145\164\x3d\x22\x5f\x62\x6c\x61\156\x6b\x22\x20\150\162\x65\x66\x3d\42\150\x74\x74\160\72\x2f\57\160\150\160\x2e\156\145\x74\57\155\141\156\165\x61\x6c\57\x65\x6e\57\154\144\x61\160\x2e\x69\x6e\163\x74\141\154\x6c\x61\x74\x69\157\156\56\160\x68\x70\x22\76\120\x48\120\x20\114\104\101\120\x20\x65\x78\x74\145\156\163\x69\x6f\x6e\74\x2f\x61\x3e\x20\151\163\40\156\x6f\164\x20\x69\156\163\164\x61\154\x6c\145\x64\x20\157\x72\x20\144\x69\163\x61\x62\x6c\145\144\x2e\x20\x50\154\145\x61\x73\x65\40\145\x6e\x61\142\154\x65\40\x69\164\56"));
return $qc;
goto ID;
MY:
$this->mo_ldap_report_update($tp, $gT->statusMessage, "\x3c\163\x74\x72\157\156\x67\76\114\157\147\x69\156\40\x45\162\162\x6f\162\74\57\x73\x74\162\x6f\x6e\x67\x3e\72\40\74\141\40\164\x61\x72\147\x65\x74\x3d\42\x5f\142\154\x61\x6e\153\x22\40\x68\162\x65\146\x3d\x22\x68\x74\x74\x70\72\x2f\57\x70\150\160\56\x6e\145\x74\57\155\141\156\x75\141\x6c\x2f\x65\156\x2f\157\x70\145\156\x73\x73\154\56\x69\x6e\163\164\x61\154\x6c\141\x74\151\x6f\x6e\56\x70\x68\x70\42\76\120\x48\120\x20\117\160\145\x6e\123\123\114\40\145\170\x74\145\x6e\163\151\x6f\156\74\57\141\76\40\x69\x73\x20\x6e\x6f\164\40\x69\156\163\164\x61\x6c\x6c\145\144\x20\x6f\162\x20\x64\151\x73\x61\x62\x6c\x65\144\56");
$qc = new WP_Error();
$qc->add("\x4f\x50\x45\116\123\x53\114\x5f\105\130\x54\x45\x4e\123\x49\117\x4e\137\105\122\x52\x4f\x52", __("\x3c\163\x74\162\x6f\x6e\147\76\114\x6f\x67\151\156\x20\105\162\162\157\x72\74\x2f\x73\164\162\x6f\156\147\76\72\40\x3c\x61\x20\x74\x61\x72\x67\145\x74\75\42\137\142\154\141\156\x6b\42\x20\x68\162\x65\x66\x3d\x22\150\164\164\x70\72\57\57\x70\x68\160\56\x6e\145\164\57\x6d\141\156\x75\141\154\x2f\x65\x6e\57\x6f\x70\145\x6e\x73\163\x6c\x2e\151\x6e\163\164\x61\x6c\x6c\141\164\x69\157\x6e\56\160\x68\160\x22\76\x50\110\x50\x20\117\160\x65\x6e\x53\123\114\40\x65\170\164\145\x6e\x73\151\x6f\x6e\74\x2f\141\x3e\40\151\x73\x20\x6e\x6f\164\40\151\x6e\163\164\x61\x6c\x6c\x65\x64\40\157\x72\x20\x64\151\x73\x61\142\x6c\145\144\x2e"));
return $qc;
ID:
}
function mo_ldap_local_login_widget_menu()
{
add_menu_page("\114\x44\x41\x50\x2f\101\104\x20\x4c\x6f\x67\x69\156\40\x66\157\162\40\111\156\164\162\x61\x6e\x65\x74", "\114\x44\x41\x50\57\101\x44\x20\x4c\157\147\151\156\40\x66\x6f\162\x20\111\x6e\164\x72\141\156\x65\x74", "\x61\x63\164\x69\x76\x61\164\x65\x5f\x70\154\x75\x67\x69\156\x73", "\155\157\137\x6c\144\141\x70\137\154\157\143\141\154\x5f\x6c\157\x67\x69\x6e", array($this, "\155\157\x5f\154\144\141\160\x5f\154\x6f\143\x61\154\137\154\x6f\147\151\156\137\x77\x69\144\147\145\164\x5f\x6f\160\x74\x69\x6f\x6e\163"), plugin_dir_url(__FILE__) . "\151\x6e\143\154\x75\x64\145\163\57\151\x6d\x61\x67\x65\x73\x2f\x6d\x69\x6e\x69\x6f\162\x61\156\x67\x65\137\x69\x63\157\156\56\x70\x6e\147");
}
function mo_ldap_local_login_widget_options()
{
$M_ = array("\x73\x65\162\x76\145\x72\137\165\x72\x6c" => "\x6c\x64\141\x70\72\x2f\x2f\65\x38\56\x36\x34\x2e\61\63\x32\x2e\62\x33\x35\x3a\63\70\71", "\x73\x65\x72\166\x69\x63\x65\x5f\141\x63\x63\157\165\156\164\137\x64\x6e" => "\x63\156\75\164\145\163\x74\x75\x73\x65\162\x2c\x63\x6e\x3d\x55\x73\145\162\163\x2c\x64\x63\75\x6d\x69\x6e\151\157\162\141\x6e\147\145\x2c\144\143\x3d\143\x6f\155", "\x61\x64\x6d\x69\x6e\x5f\160\141\163\x73\x77\157\x72\x64" => "\130\x58\130\130\x58\130\130\x58", "\x64\156\137\x61\164\x74\162\x69\x62\165\164\x65" => "\x64\151\163\164\151\x6e\x67\x75\x69\163\150\145\144\x4e\x61\x6d\145", "\x73\x65\141\x72\x63\150\137\x62\x61\163\x65" => "\x63\156\x3d\125\163\x65\162\163\54\x64\x63\75\x6d\x69\x6e\151\157\162\x61\156\x67\145\54\144\143\75\143\157\x6d", "\x75\163\145\162\x6e\x61\x6d\145\x5f\141\x74\164\162\x69\x62\x75\164\145" => "\163\x41\x4d\x41\143\x63\157\x75\x6e\164\116\x61\x6d\x65", "\x73\145\x61\162\143\x68\137\x66\x69\154\x74\145\x72" => "\x28\46\x28\157\142\x6a\x65\x63\164\103\154\x61\163\163\x3d\52\51\50\143\x6e\75\x3f\x29\x29", "\x74\145\163\x74\137\x75\163\x65\x72\156\141\155\145" => "\x74\145\x73\x74\x75\163\x65\x72", "\x74\145\x73\x74\x5f\x70\x61\x73\163\167\x6f\x72\144" => "\160\x61\163\x73\167\x6f\x72\x64");
update_option("\155\157\x5f\x6c\144\141\160\137\x6c\x6f\x63\141\154\x5f\x64\x65\146\141\x75\x6c\164\x5f\x63\157\x6e\146\151\147", $M_);
mo_ldap_local_settings();
}
function login_widget_save_options()
{
$tx = apply_filters("\x6d\157\x5f\x63\x68\145\x63\x6b\137\143\x6f\156\x66\x69\147", '');
if (isset($_POST["\157\x70\164\151\157\x6e"]) && strcasecmp($_POST["\157\160\164\151\x6f\156"], "\x6d\x6f\137\x6c\144\x61\x70\x5f\154\x6f\x63\141\x6c\137\x76\x65\162\x69\146\171\x5f\143\x75\163\x74\157\x6d\145\x72") == 0) {
goto w9;
}
if (isset($_POST["\157\160\x74\x69\x6f\x6e"]) && strcasecmp($_POST["\157\160\164\x69\x6f\x6e"], "\x6d\157\x5f\x6c\144\x61\x70\137\x6c\157\143\x61\x6c\x5f\166\145\x72\x69\x66\x79\137\x6c\x69\x63\x65\156\163\x65") == 0) {
goto gw;
}
if (isset($_POST["\157\x70\164\151\x6f\156"]) && strcasecmp($_POST["\x6f\x70\x74\x69\x6f\x6e"], "\x6d\157\x2d\143\x68\145\143\153\x2d\x6c\x69\143\x65\156\x73\x65\55\x62\x75\x74\x74\x6f\x6e") == 0) {
goto tJ;
}
if (isset($_POST["\157\160\164\x69\157\x6e"]) && strcasecmp($_POST["\157\160\164\151\x6f\x6e"], "\155\157\55\x63\x68\x61\156\x67\145\55\141\143\143\157\165\x6e\x74\55\x62\165\164\x74\x6f\x6e") == 0) {
goto tZ;
}
if (isset($_POST["\157\160\164\x69\157\156"]) && strcasecmp($_POST["\157\x70\x74\x69\157\x6e"], "\155\x6f\x5f\x6c\144\x61\160\137\160\165\x62\x6c\151\143\137\x70\x61\147\145\x73") == 0) {
goto r7;
}
if (isset($_POST["\x6f\x70\164\x69\x6f\x6e"]) && strcasecmp($_POST["\157\x70\x74\151\157\x6e"], "\x6d\x6f\x5f\154\144\x61\160\x5f\144\145\x6c\145\164\x65\x5f\160\x61\147\x65") == 0) {
goto CS;
}
if (isset($_POST["\157\160\164\151\157\156"]) && strcasecmp($_POST["\x6f\x70\164\x69\157\156"], "\x6d\x6f\137\154\144\x61\160\137\154\x6f\x63\141\x6c\x5f\154\157\x67\x69\x6e\137\x73\x65\156\144\x5f\161\x75\x65\162\171") == 0) {
goto z7;
}
if (isset($_POST["\157\160\x74\151\157\156"]) && strcasecmp($_POST["\157\160\164\x69\x6f\x6e"], "\x6d\157\x5f\x6c\x64\x61\160\137\154\157\x67\x69\156\x5f\163\x65\156\144\x5f\x71\165\x65\162\171") == 0) {
goto X2;
}
if (isset($_POST["\x6f\x70\164\151\157\x6e"]) && strcasecmp($_POST["\x6f\160\x74\x69\x6f\156"], "\x6d\157\x5f\154\x64\x61\160\x5f\x6c\x6f\x67\151\156\137\163\x65\x6e\x64\137\x66\145\x61\164\165\x72\x65\137\x72\145\161\165\145\163\x74\137\x71\x75\x65\162\171") == 0) {
goto kv;
}
goto sC;
w9:
$JU = '';
$mo = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x65\x6d\141\151\x6c"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\160\x61\163\163\167\157\162\x64"])) {
goto H1;
}
$JU = sanitize_email($_POST["\145\155\141\x69\x6c"]);
$mo = $_POST["\160\x61\x73\163\167\x6f\x72\x64"];
goto iB;
H1:
update_option("\x6d\157\137\154\x64\141\x70\137\154\157\x63\x61\154\x5f\x6d\x65\163\163\x61\147\145", "\x41\x6c\154\x20\x74\x68\145\40\x66\x69\145\154\x64\x73\40\141\x72\145\40\162\x65\x71\165\151\162\145\144\56\40\x50\x6c\x65\141\163\145\x20\x65\x6e\x74\145\162\40\166\x61\154\x69\144\40\145\x6e\164\162\x69\x65\x73\56");
$this->show_error_message();
return;
iB:
update_option("\x6d\x6f\137\x6c\x64\x61\x70\x5f\154\157\143\x61\x6c\x5f\x61\x64\x6d\151\156\x5f\x65\x6d\141\x69\x6c", $JU);
update_option("\155\157\137\154\144\x61\x70\137\154\x6f\143\x61\x6c\x5f\160\141\x73\x73\x77\x6f\x72\144", $mo);
$kS = new Mo_Ldap_Local_Customer();
$ot = $kS->get_customer_key();
$j9 = json_decode($ot, true);
if (strcasecmp($j9["\163\164\x61\164\x75\163"], "\x53\125\x43\x43\x45\x53\x53") == 0) {
goto X1;
}
if (strcasecmp($j9["\x73\164\141\x74\x75\163"], "\x45\122\x52\117\x52") == 0) {
goto wm;
}
update_option("\x6d\157\x5f\154\x64\141\160\x5f\x6c\157\143\x61\154\x5f\x6d\x65\x73\163\x61\147\x65", "\111\156\x76\x61\154\x69\144\40\165\x73\145\x72\x6e\x61\155\x65\x20\157\162\x20\x70\141\163\x73\167\157\x72\x64\56\x20\120\x6c\145\x61\163\145\40\164\x72\x79\40\141\x67\141\151\x6e\56");
$this->show_error_message();
goto qJ;
X1:
update_option("\x6d\157\137\154\x64\141\160\137\x6c\x6f\x63\141\154\137\x61\x64\x6d\151\156\x5f\x70\150\x6f\156\x65", $j9["\x70\x68\x6f\x6e\145"]);
$this->save_success_customer_config($j9["\151\x64"], $j9["\x61\x70\x69\113\x65\x79"], $j9["\x74\157\x6b\x65\156"], "\x59\157\x75\x72\40\x61\x63\143\x6f\x75\156\164\40\x68\141\163\x20\142\145\x65\156\40\x72\145\x74\162\x69\x65\166\x65\x64\40\163\165\143\143\x65\163\x73\x66\165\154\x6c\x79\x2e");
update_option("\155\x6f\137\x6c\144\x61\x70\137\x6c\157\143\141\154\137\160\x61\x73\x73\x77\x6f\x72\144", '');
goto qJ;
wm:
update_option("\155\x6f\137\x6c\x64\141\160\x5f\154\x6f\143\x61\x6c\x5f\155\145\163\x73\x61\147\145", $j9["\163\164\x61\164\165\163\x4d\145\163\163\x61\x67\x65"]);
$this->show_error_message();
qJ:
update_option("\155\157\137\154\x64\x61\x70\137\154\x6f\x63\x61\x6c\137\x70\141\163\163\167\x6f\162\x64", '');
goto sC;
gw:
if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x6d\x6f\x5f\154\x64\x61\160\x5f\154\157\143\x61\154\x5f\154\151\143\145\x6e\163\145\x5f\153\145\x79"])) {
goto y0;
}
update_option("\155\157\137\x6c\144\141\x70\137\x6c\157\143\x61\x6c\137\155\145\x73\x73\141\x67\145", "\101\x6c\x6c\x20\164\150\x65\x20\x66\151\145\x6c\144\163\x20\x61\x72\x65\40\x72\145\x71\x75\x69\162\x65\x64\x2e\x20\120\x6c\x65\141\163\145\40\x65\156\x74\145\162\40\166\141\154\151\144\40\x6c\x69\143\145\156\x73\x65\x20\x6b\145\x79\x2e");
$this->show_error_message();
return;
y0:
$lp = trim($_POST["\x6d\157\137\154\144\x61\160\137\x6c\157\x63\x61\154\x5f\x6c\x69\143\x65\x6e\163\145\x5f\153\145\171"]);
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($lp), true);
if (isset($ot["\x73\x74\141\164\165\x73"]) && $ot["\x69\163\x54\x72\x69\141\154"] == true) {
goto WQ;
}
if (isset($ot["\163\164\x61\x74\x75\163"]) && strcasecmp($ot["\163\x74\141\x74\165\x73"], "\x53\x55\103\x43\x45\123\x53") == 0) {
goto bK;
}
if (isset($ot["\163\x74\x61\x74\x75\x73"]) && strcasecmp($ot["\163\164\141\x74\x75\163"], "\x46\101\x49\x4c\105\x44") == 0) {
goto Mq;
}
update_option("\155\157\x5f\x6c\x64\x61\x70\137\154\x6f\x63\141\x6c\x5f\x6d\145\x73\x73\141\147\x65", "\101\156\40\145\162\x72\157\162\x20\x6f\143\143\165\x72\145\144\40\x77\150\x69\154\145\40\x70\x72\x6f\143\x65\x73\x73\x69\x6e\x67\40\171\157\165\162\40\x72\x65\x71\165\145\x73\x74\56\40\120\x6c\x65\x61\x73\145\x20\124\x72\171\x20\x61\147\x61\x69\156\x2e");
$this->show_error_message();
goto cC;
WQ:
$IN = Jp_hwfrqar_mzwhwzl_arvowfra::bp_efzwoezr_zvweh_hwfrqar($ot, $lp);
update_option("\155\x6f\137\154\144\141\x70\x5f\154\157\x63\x61\x6c\137\x6d\145\x73\163\x61\x67\145", $IN["\144\151\163\x70\x6c\141\x79\x4d\x73\147"]);
if ($IN["\x74\x72\x69\141\x6c\123\164\141\164\x75\x73"]) {
goto oJ;
}
$this->show_error_message();
goto SK;
oJ:
$this->show_success_message();
SK:
goto cC;
bK:
update_option("\x6d\x6f\137\x70\154\x75\147\151\156\137\x75\x74\151\154\151\164\171\x5f\153\145\x79\x5f\x73\164\141\164", Jp_hwfrqar_mzwhwzl_arvowfra::rqfvlyz_mzwhwzl("\x70\162\x65\x6d\151\165\x6d"));
delete_option("\x6d\x6f\x5f\x70\154\165\147\151\156\x5f\165\x74\x69\x6c\151\x74\x79\x5f\153\145\x79");
update_option("\155\157\137\154\x64\141\160\x5f\x6c\x6f\x63\x61\154\x5f\x6c\x69\143\145\x6e\x73\x65\x5f\166\145\162\x69\x66\151\145\144", "\164\x72\165\145");
update_option("\155\157\137\154\144\141\160\137\x6c\157\143\x61\154\137\154\151\x63\x65\x6e\163\145\x5f\153\x65\x79", Mo_Ldap_Local_Util::encrypt($lp));
update_option("\155\x6f\x5f\154\x64\x61\x70\137\x6c\157\x63\x61\x6c\x5f\x6d\x65\163\x73\141\147\145", "\131\157\x75\x72\40\x6c\151\143\x65\x6e\x73\145\40\x69\x73\x20\x76\145\x72\151\146\x69\145\144\56\x20\x59\157\x75\x20\143\x61\x6e\40\x6e\x6f\x77\40\163\x65\164\165\x70\40\164\150\x65\x20\x70\154\165\x67\x69\x6e\56");
$this->show_success_message();
goto cC;
Mq:
if (isset($ot["\x73\164\141\164\165\163"]) && strcasecmp($ot["\155\x65\x73\163\x61\147\x65"], "\103\157\144\145\40\x68\x61\x73\x20\105\170\160\x69\162\x65\144") == 0) {
goto rb;
}
update_option("\x6d\157\137\154\x64\x61\160\x5f\x6c\x6f\143\x61\154\x5f\x6d\x65\x73\163\x61\x67\x65", "\x59\x6f\165\40\150\141\x76\x65\40\145\x6e\164\x65\x72\x65\144\40\x61\x6e\40\151\x6e\166\141\x6c\x69\144\40\154\x69\x63\145\156\x73\145\x20\153\x65\x79\x2e\40\120\154\x65\141\x73\x65\40\x65\156\164\x65\x72\x20\x61\40\166\141\154\x69\x64\x20\154\151\143\x65\156\163\145\x20\153\x65\171\56");
goto R4;
rb:
$Ls = add_query_arg(array("\x74\x61\142" => "\x70\x72\x69\143\151\x6e\x67"), $_SERVER["\122\105\x51\x55\105\x53\124\x5f\125\122\x49"]);
update_option("\x6d\157\137\x6c\144\141\x70\137\154\157\143\141\154\x5f\x6d\x65\x73\163\141\147\x65", "\114\151\x63\x65\156\163\145\x20\x6b\x65\x79\x20\x79\157\165\x20\150\x61\x76\145\x20\145\156\x74\x65\162\x65\144\x20\x68\141\x73\40\x61\x6c\162\145\141\x64\171\x20\x62\145\145\x6e\x20\x75\163\x65\144\56\x20\120\154\145\x61\x73\145\40\x65\x6e\x74\145\162\x20\141\40\153\145\x79\40\167\x68\x69\143\x68\x20\x68\141\163\x20\156\157\164\40\x62\145\x65\156\40\165\x73\145\x64\x20\x62\x65\146\157\x72\x65\x20\157\156\x20\x61\156\x79\40\157\x74\150\145\162\x20\x69\x6e\x73\164\x61\156\143\145\40\157\x72\x20\151\x66\40\171\157\x75\x20\x68\x61\166\x65\x20\145\x78\141\165\x73\x74\145\x64\x20\141\154\x6c\40\x79\157\x75\162\40\153\145\x79\x73\40\164\150\145\x6e\x20\x3c\x61\40\x68\162\145\146\x3d\42" . $Ls . "\x22\76\103\154\151\143\153\40\x68\145\162\x65\x3c\57\x61\76\40\164\157\40\x62\x75\x79\x20\x6d\157\162\145\x2e");
R4:
$this->show_error_message();
cC:
goto sC;
tJ:
Mo_Utility_Service::vrtvrag_hwfrqar_rnywvl();
$lp = Mo_Ldap_Local_Util::decrypt(get_option("\155\x6f\137\154\144\141\x70\137\x6c\157\143\x61\154\137\x6c\x69\x63\145\156\163\145\x5f\153\x65\171"));
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($lp), true);
$Gk = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($ot);
update_option("\x6d\x6f\137\x6c\x64\x61\160\x5f\x6c\157\x63\141\x6c\137\155\x65\x73\x73\x61\147\145", $Gk);
$this->show_success_message();
goto sC;
tZ:
Jp_hwfrqar_mzwhwzl_arvowfra::bp_hpspmz_fmazpbrv_mzwhwzl();
goto sC;
r7:
$I2 = $_POST["\155\x6f\x5f\154\x64\141\160\137\143\x75\x73\164\157\x6d\137\x70\x61\147\x65\x5f\162\x65\x73\x74\x72\151\x63\164\x69\157\156\x5f\x63\150\145\143\153"];
update_option("\x6d\157\x5f\154\144\x61\x70\137\x70\x75\142\x6c\151\143\137\x70\141\x67\145\x73\137\145\156\x61\142\154\145", $I2);
$gy = 1;
$b3 = !empty(get_option("\x6d\157\137\154\144\x61\x70\137\x70\x75\x62\x6c\x69\x63\137\160\141\x67\145\x73\137\x6c\151\x73\164")) ? unserialize(get_option("\x6d\x6f\x5f\x6c\144\141\160\x5f\160\165\142\154\151\143\137\x70\141\147\x65\163\137\x6c\151\x73\164")) : array();
DP:
if (!isset($_POST["\x6d\x6f\137\x6c\144\141\160\x5f\x63\x75\x73\164\x6f\155\x5f\160\141\147\x65\x5f" . $gy])) {
goto Y5;
}
if (!(strcasecmp($_POST["\155\157\x5f\x6c\144\x61\160\x5f\143\x75\x73\x74\157\155\137\160\x61\x67\145\x5f" . $gy], '') != 0)) {
goto nG;
}
$x6 = rtrim(sanitize_text_field(strtolower($_POST["\x6d\x6f\x5f\x6c\144\x61\x70\137\x63\165\x73\x74\157\155\137\160\x61\147\x65\137" . $gy])), "\57");
if (!in_array($x6, $b3)) {
goto Pa;
}
$Ur = "\x50\141\147\145\40\74\x62\x3e" . $x6 . "\74\x2f\x62\x3e\40\x41\154\x72\145\141\144\171\x20\101\x64\x64\x65\x64\x2e";
update_option("\x6d\x6f\137\154\144\x61\160\137\154\x6f\x63\141\x6c\137\155\145\163\163\141\147\x65", $Ur);
$this->show_error_message();
goto yM;
Pa:
array_push($b3, $x6);
$Ur = "\120\x61\x67\x65\40\x3c\x62\x3e" . $x6 . "\x3c\x2f\142\76\40\101\144\144\x65\144\x20\123\x75\143\143\x65\163\x73\x66\x75\154\x6c\x79";
update_option("\155\157\x5f\154\x64\141\x70\x5f\x6c\x6f\143\141\154\x5f\155\145\x73\x73\141\x67\x65", $Ur);
$this->show_success_message();
yM:
nG:
$gy++;
goto DP;
Y5:
update_option("\155\157\x5f\154\x64\141\x70\137\x70\165\142\154\x69\143\137\x70\x61\147\145\163\x5f\154\x69\x73\x74", serialize($b3));
goto sC;
CS:
$x6 = $_POST["\155\157\x5f\x6c\x64\x61\160\x5f\144\145\x6c\145\x74\x65\137\x70\141\147\x65\137\156\x61\x6d\145"];
$b3 = !empty(get_option("\x6d\157\x5f\154\144\x61\160\x5f\x70\x75\x62\154\x69\x63\x5f\x70\141\x67\x65\x73\137\x6c\x69\163\164")) ? unserialize(get_option("\x6d\157\137\x6c\144\x61\160\x5f\160\x75\142\154\151\x63\x5f\x70\141\147\x65\163\137\x6c\151\x73\164")) : array();
$CY = array_search($x6, $b3);
unset($b3[$CY]);
update_option("\155\157\x5f\154\x64\x61\x70\137\160\x75\142\154\151\x63\137\x70\x61\x67\x65\163\137\154\x69\x73\x74", serialize($b3));
$Ur = "\120\x61\x67\x65\40\74\142\x3e" . $x6 . "\74\x2f\x62\76\x20\122\x65\x6d\x6f\x76\145\144\40\x53\165\143\143\145\163\x73\x66\x75\154\x6c\x79\x2e";
update_option("\x6d\157\137\154\x64\141\160\137\154\157\x63\x61\x6c\137\x6d\145\163\x73\x61\x67\x65", $Ur);
$this->show_success_message();
goto sC;
z7:
$rj = sanitize_text_field($_POST["\x71\x75\x65\162\171"]);
$JU = sanitize_text_field($_POST["\161\165\145\x72\171\137\x65\x6d\141\151\154"]);
$X0 = sanitize_text_field($_POST["\161\x75\x65\162\171\137\x70\x68\157\156\145"]);
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ($Hi) {
goto us;
}
$rj = "\133\127\x50\40\x4c\104\101\x50\x20\146\x6f\162\x20\x49\156\x74\162\x61\x6e\x65\x74\x20\x28\120\x72\145\x6d\151\x75\x6d\40\163\x69\x6e\147\x6c\145\40\163\151\x74\x65\51\135\72\40" . $rj;
goto hk;
us:
$rj = "\133\127\120\40\114\x44\101\x50\x20\x66\157\162\x20\111\156\164\x72\x61\x6e\x65\x74\x20\x28\106\x72\x65\145\40\124\x72\x69\141\154\40\x73\151\156\147\x6c\x65\40\x73\x69\164\145\x29\x5d\x3a\x20" . $rj;
hk:
$this->mo_ldap_send_query($JU, $X0, $rj);
goto sC;
X2:
$JU = sanitize_text_field($_POST["\151\156\x6e\x65\162\137\x66\x6f\x72\155\x5f\x65\x6d\x61\x69\154\137\x69\x64"]);
$X0 = sanitize_text_field($_POST["\x69\156\x6e\x65\162\x5f\146\x6f\162\x6d\x5f\x70\150\x6f\x6e\145\137\x69\144"]);
$rj = sanitize_text_field($_POST["\x69\x6e\x6e\x65\x72\x5f\146\x6f\162\155\x5f\161\x75\x65\162\x79\x5f\151\x64"]);
$KJ = get_option("\155\157\137\x6c\x64\141\x70\x5f\x64\151\162\145\143\x74\157\162\171\x5f\x73\145\162\166\145\x72\137\x76\x61\154\x75\145");
if (strcasecmp($KJ, "\x6d\x73\x61\x64") == 0) {
goto aI;
}
if (strcasecmp($KJ, "\157\160\145\156\154\x64\141\160") == 0) {
goto pP;
}
if (strcasecmp($KJ, "\x66\162\x65\x65\x69\160\x61") == 0) {
goto e9;
}
if (strcasecmp($KJ, "\152\x75\155\x70\x63\x6c\x6f\x75\x64") == 0) {
goto L3;
}
if (strcasecmp($KJ, "\157\164\150\x65\x72") == 0) {
goto TR;
}
$KJ = "\x4e\x6f\x74\40\103\x6f\156\x66\151\x67\x75\x72\x65\144";
goto rJ;
aI:
$KJ = "\x4d\151\143\x72\x6f\x73\x6f\146\x74\x20\x41\x63\x74\151\166\x65\40\104\151\162\145\x63\x74\x6f\162\171";
goto rJ;
pP:
$KJ = "\117\160\145\x6e\x4c\104\101\120";
goto rJ;
e9:
$KJ = "\106\x72\x65\145\111\120\x41";
goto rJ;
L3:
$KJ = "\112\165\x6d\x70\x43\154\x6f\165\144";
goto rJ;
TR:
$KJ = get_option("\x6d\x6f\137\x6c\144\x61\160\137\x64\151\x72\145\143\164\157\162\171\x5f\x73\x65\x72\166\x65\x72\x5f\143\165\163\164\157\x6d\137\166\x61\x6c\165\x65");
rJ:
update_option("\x6d\157\137\x6c\144\x61\x70\x5f\x6c\157\143\141\x6c\x5f\x64\x69\x72\145\143\x74\x6f\162\171\x5f\163\145\x72\166\145\162", $KJ);
$RY = $_POST["\145\170\160\x6f\x72\164\137\143\x6f\156\x66\151\x67\165\x72\x61\x74\x69\157\x6e\x5f\x63\150\157\x69\x63\x65"];
if ($RY == "\171\x65\163") {
goto rt;
}
if ($RY == "\156\x6f") {
goto is;
}
goto mJ;
rt:
$Kg = $this->auto_email_ldap_export();
$Kg = implode("\x20\74\142\x72\x3e", $Kg);
$rj = $rj . "\x20\54\x3c\142\x72\76\74\142\x72\76\x50\154\x75\147\151\x6e\x20\x43\157\156\x66\x69\147\x75\x72\141\164\151\157\x6e\72\x3c\142\162\x3e\40" . $Kg;
goto mJ;
is:
$Kg = "\103\157\156\146\x69\x67\165\162\141\164\151\x6f\x6e\x20\x77\x61\163\x20\156\157\x74\40\165\x70\154\x6f\x61\144\x65\144\40\142\171\x20\165\x73\x65\x72";
$rj = $rj . "\40\54\x3c\x62\x72\x3e\x3c\142\162\76\120\x6c\x75\147\151\x6e\x20\103\157\x6e\x66\x69\147\165\162\141\x74\x69\157\x6e\x3a\74\142\162\76\x20" . $Kg;
mJ:
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ($Hi) {
goto Dy;
}
$rj = "\x5b\127\x50\40\114\104\101\120\40\146\157\x72\40\111\x6e\164\x72\141\156\x65\x74\x20\50\120\162\145\155\x69\x75\x6d\40\163\151\x6e\147\154\145\40\x73\x69\164\145\51\x5d\72\40" . $rj;
goto IK;
Dy:
$rj = "\x5b\127\x50\x20\114\x44\x41\x50\x20\146\x6f\162\40\x49\x6e\x74\162\x61\156\x65\x74\40\50\x46\162\x65\145\x20\x54\x72\x69\x61\154\x20\163\151\156\147\154\145\x20\x73\x69\164\x65\51\135\x3a\40" . $rj;
IK:
$this->mo_ldap_send_query($JU, $X0, $rj);
goto sC;
kv:
$JU = sanitize_text_field($_POST["\161\x75\145\x72\171\137\x65\x6d\x61\151\x6c"]);
$X0 = sanitize_text_field($_POST["\x71\x75\x65\162\x79\137\160\150\x6f\x6e\145"]);
$rj = sanitize_text_field($_POST["\x71\x75\x65\162\x79"]);
$Hi = Jp_hwfrqar_mzwhwzl_arvowfra::wa_zvweh_fmazpbrv();
if ($Hi) {
goto Jn;
}
$rj = "\133\x57\120\40\114\104\x41\x50\40\x66\x6f\162\40\x49\x6e\x74\x72\141\156\145\x74\40\x28\120\x72\145\x6d\151\x75\x6d\x20\163\x69\x6e\147\154\145\x20\x73\x69\x74\145\51\135\x3a\40" . $rj;
goto ft;
Jn:
$rj = "\133\127\x50\40\114\104\x41\x50\40\x66\x6f\162\x20\x49\156\x74\162\x61\x6e\x65\164\40\50\x46\162\145\x65\x20\x54\162\x69\141\154\40\x73\x69\156\147\x6c\x65\40\163\x69\x74\x65\x29\135\x3a\x20" . $rj;
ft:
$this->mo_ldap_send_query($JU, $X0, $rj);
sC:
if (!(isset($_POST["\157\x70\x74\151\x6f\156"]) && $tx)) {
goto Nc;
}
$ft = $_POST["\157\160\x74\151\x6f\156"];
switch ($ft) {
case "\155\157\x5f\x6c\144\x61\160\x5f\154\x6f\x63\x61\154\137\x73\141\x76\145\137\143\x6f\x6e\x66\151\x67":
if (NddKoYsdasadJD()) {
goto Qd;
}
update_option("\x6d\157\137\154\144\x61\160\x5f\x6c\x6f\x63\x61\x6c\x5f\155\145\163\163\141\147\145", "\x53\145\164\x74\151\156\147\163\40\143\x61\x6e\47\164\40\x62\145\x20\163\x61\166\145\x64\40\167\x69\x74\x68\157\165\x74\x20\166\x65\x72\x69\146\171\x69\x6e\x67\40\171\157\165\162\x20\154\x69\x63\145\x6e\x73\x65\40\153\x65\171\x2e");
$this->show_error_message();
goto gi;
Qd:
$hT = isset($_POST["\141\x6e\157\156\171\x6d\157\x75\163\137\142\151\156\144"]) ? 1 : 0;
update_option("\155\x6f\x5f\x6c\144\x61\160\137\154\157\143\x61\x6c\137\x61\156\x6f\x6e\171\x6d\157\x75\163\x5f\142\x69\x6e\144", $hT);
$sl = '';
$IC = '';
$Sb = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x6c\x64\x61\160\x5f\x73\x65\162\166\145\162"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x64\156"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\141\144\155\x69\156\137\160\141\x73\163\x77\157\x72\x64"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\155\157\x5f\x6c\144\x61\x70\x5f\160\x72\157\164\x6f\x63\x6f\x6c"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\155\x6f\137\154\x64\x61\x70\x5f\x73\x65\162\x76\145\x72\137\x70\x6f\x72\x74\x5f\x6e\157"])) {
goto uy;
}
$VT = $_POST["\155\x6f\137\154\x64\141\160\x5f\x70\162\x6f\x74\157\143\x6f\154"];
$Kp = sanitize_text_field($_POST["\x6d\x6f\137\x6c\x64\141\x70\137\163\x65\162\x76\x65\x72\x5f\160\157\x72\164\x5f\156\x6f"]);
$du = sanitize_text_field($_POST["\x6c\144\141\160\x5f\163\x65\162\x76\145\x72"]);
$sl = $VT . "\x3a\57\57" . $du . "\x3a" . $Kp;
$IC = sanitize_text_field($_POST["\144\x6e"]);
$Sb = $_POST["\x61\x64\155\151\x6e\x5f\x70\x61\163\163\167\157\x72\x64"];
goto D8;
uy:
update_option("\155\157\137\154\x64\x61\160\137\x6c\157\143\x61\154\x5f\x6d\145\x73\163\x61\147\x65", "\x41\154\x6c\x20\164\150\x65\40\x66\151\145\154\144\163\40\x61\x72\145\40\162\x65\161\x75\x69\162\145\x64\56\x20\120\154\145\141\x73\145\x20\x65\x6e\x74\145\162\x20\166\x61\154\151\x64\40\x65\156\164\162\x69\x65\x73\56");
$this->show_error_message();
return;
D8:
if (!Mo_Ldap_Local_Util::is_extension_installed("\x6f\160\145\156\x73\163\154")) {
goto nm;
}
$b5 = $_POST["\155\x6f\x5f\x6c\x64\141\x70\137\144\151\x72\x65\143\x74\x6f\162\x79\137\x73\x65\x72\x76\145\162\x5f\x76\141\154\x75\145"];
if (strcasecmp($b5, "\x6f\164\x68\145\162") == 0) {
goto M4;
}
delete_option("\155\157\x5f\154\x64\141\160\x5f\x64\x69\162\145\143\x74\x6f\162\171\x5f\x73\145\162\166\145\162\x5f\x63\165\x73\x74\157\155\x5f\x76\141\154\165\x65");
goto b5;
M4:
$SJ = isset($_POST["\155\x6f\137\154\144\x61\160\137\144\x69\x72\145\x63\164\x6f\162\171\x5f\163\x65\x72\x76\x65\x72\x5f\x63\x75\x73\164\157\155\137\x76\141\x6c\x75\145"]) && !empty($_POST["\x6d\157\x5f\154\x64\141\160\137\x64\151\162\x65\143\164\157\x72\171\x5f\x73\145\162\166\145\x72\137\143\x75\163\x74\x6f\155\137\166\x61\x6c\165\145"]) ? $_POST["\x6d\x6f\x5f\154\144\141\x70\137\144\151\x72\x65\x63\164\x6f\x72\x79\x5f\163\145\162\166\x65\162\x5f\143\x75\163\164\x6f\x6d\x5f\x76\141\154\x75\x65"] : "\x6f\164\x68\145\x72";
update_option("\x6d\x6f\137\154\x64\141\x70\137\144\x69\162\145\x63\x74\157\162\x79\137\163\145\162\166\145\x72\x5f\x63\x75\163\x74\x6f\155\x5f\166\x61\x6c\x75\145", $SJ);
b5:
update_option("\x6d\x6f\x5f\154\x64\141\x70\x5f\x64\151\x72\145\x63\x74\157\162\x79\137\163\x65\162\x76\145\162\137\x76\x61\154\165\145", $b5);
update_option("\x6d\x6f\137\154\144\x61\160\137\154\157\x63\x61\x6c\137\x6c\x64\x61\160\x5f\160\162\157\x74\157\x63\x6f\154", $VT);
update_option("\x6d\157\137\154\x64\141\x70\x5f\x6c\157\x63\x61\154\x5f\x6c\x64\141\x70\x5f\x73\x65\162\x76\x65\162\137\141\144\x64\162\x65\x73\163", Mo_Ldap_Local_Util::encrypt($du));
if ($VT == "\154\x64\x61\160") {
goto m9;
}
if ($VT == "\x6c\144\x61\160\163") {
goto T3;
}
goto H2;
m9:
update_option("\155\157\x5f\x6c\144\x61\160\137\154\x6f\143\141\154\x5f\154\144\141\x70\137\x70\157\x72\x74\137\156\x75\x6d\x62\x65\x72", $Kp);
goto H2;
T3:
update_option("\155\157\x5f\x6c\144\141\x70\x5f\x6c\x6f\x63\141\154\137\x6c\144\141\x70\163\x5f\160\157\x72\x74\137\156\165\x6d\142\145\x72", $Kp);
H2:
update_option("\155\x6f\137\x6c\144\x61\x70\x5f\154\x6f\143\141\154\x5f\x73\145\162\x76\145\162\137\165\162\x6c", Mo_Ldap_Local_Util::encrypt($sl));
update_option("\x6d\157\x5f\x6c\144\x61\160\x5f\154\x6f\x63\141\154\x5f\x73\145\x72\x76\x65\x72\x5f\x64\x6e", Mo_Ldap_Local_Util::encrypt($IC));
update_option("\x6d\157\137\x6c\144\x61\x70\x5f\154\x6f\x63\x61\x6c\x5f\163\x65\x72\x76\145\x72\x5f\160\x61\163\x73\x77\157\162\x64", Mo_Ldap_Local_Util::encrypt($Sb));
$TN = new Mo_Ldap_Local_Config();
$Ur = "\131\157\165\162\40\143\x6f\x6e\146\151\x67\165\162\x61\164\151\x6f\x6e\40\x68\x61\163\x20\142\145\145\x6e\40\163\x61\166\145\x64\56";
$rR = $TN->test_connection();
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\114\x44\101\x50\x5f\102\x49\x4e\104\x5f\x53\125\103\103\x45\123\x53\x46\125\114") == 0) {
goto B2;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\114\x44\x41\x50\137\102\111\116\x44\137\x45\122\x52\x4f\122") == 0) {
goto Ur;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\x4c\x44\101\120\137\x43\117\116\x4e\x45\x43\x54\111\x4f\116\x5f\105\x52\122\117\x52") == 0) {
goto VB;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\x4c\x44\101\120\x5f\x45\130\x54\105\116\123\x49\x4f\116\137\x45\122\x52\x4f\x52") == 0) {
goto vK;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\x4f\x50\105\x4e\x53\x53\114\x5f\105\x58\124\105\116\x53\111\x4f\116\x5f\x45\122\x52\117\x52") == 0) {
goto il;
}
goto S9;
B2:
update_option("\155\157\137\x6c\x64\x61\x70\x5f\x6c\157\x63\141\154\137\155\x65\x73\163\x61\x67\x65", "\40\x43\157\x6e\156\x65\143\164\x69\x6f\156\x20\x77\141\163\40\145\x73\x74\x61\142\154\x69\163\x68\x65\144\x20\163\x75\143\x63\145\163\x73\146\165\154\x6c\171\56\40" . $Ur . "\x20\120\154\x65\x61\163\145\40\143\157\156\x66\x69\x67\x75\x72\x65\x20\114\x44\101\x50\x20\125\x73\x65\162\x20\115\141\x70\160\151\156\147\x20\156\157\167\56", '', "\156\x6f");
update_option("\x6d\x6f\x5f\x6c\144\x61\160\137\x6c\157\143\141\154\x5f\166\x65\x72\x69\146\171\x5f\154\144\141\x70\137\x63\x6f\156\156\145\143\164\151\x6f\x6e", "\164\x72\x75\145");
$this->show_success_message();
goto S9;
Ur:
$this->mo_ldap_report_update("\x4c\104\x41\120\x20\103\x4f\x4e\x4e\105\x43\x54\x49\x4f\116\x20\x54\x45\123\124", "\x45\122\x52\x4f\x52", "\x3c\163\164\162\x6f\156\x67\76\124\145\x73\164\x20\103\x6f\156\156\x65\x63\164\151\x6f\156\x20\x45\162\x72\x6f\x72\x3a\40\x3c\x2f\163\x74\162\157\156\x67\76" . $rR->statusMessage);
update_option("\x6d\157\137\x6c\144\x61\160\137\x6c\x6f\x63\141\x6c\137\155\x65\x73\163\x61\147\145", $rR->statusMessage, '', "\x6e\x6f");
update_option("\x6d\x6f\x5f\x6c\144\x61\160\137\154\157\143\141\154\137\166\145\162\151\x66\171\x5f\x6c\144\141\160\x5f\x63\157\x6e\x6e\x65\x63\x74\151\x6f\156", "\146\x61\x6c\163\145");
$this->show_error_message();
goto S9;
VB:
$this->mo_ldap_report_update("\x4c\104\x41\x50\40\103\117\116\116\105\x43\x54\111\117\x4e\40\x54\105\x53\124", "\x45\x52\122\x4f\122", "\x3c\x73\x74\x72\157\156\x67\x3e\x54\145\x73\x74\40\x43\x6f\x6e\x6e\145\143\x74\x69\157\156\40\105\x72\x72\x6f\x72\x3a\40\74\x2f\x73\164\162\157\x6e\x67\x3e\103\x61\x6e\156\x6f\x74\40\x63\157\x6e\x6e\145\143\164\x20\x74\x6f\40\114\104\101\120\40\x53\x65\162\x76\145\x72\x2e\x20\x4d\x61\153\x65\40\163\165\162\145\x20\x79\157\x75\x20\150\x61\166\x65\x20\x65\x6e\164\145\162\x65\x64\x20\x63\157\x72\x72\x65\143\x74\x20\114\104\x41\120\40\163\x65\x72\x76\x65\162\x20\x68\x6f\x73\x74\x6e\x61\x6d\145\x20\x6f\x72\x20\111\120\x20\141\144\144\x72\x65\163\163\56");
update_option("\x6d\x6f\x5f\x6c\144\x61\160\137\154\157\143\141\x6c\x5f\x6d\145\163\x73\141\147\145", $rR->statusMessage, '', "\x6e\157");
update_option("\155\x6f\x5f\x6c\x64\141\160\x5f\x6c\x6f\x63\x61\x6c\137\166\145\162\151\x66\171\137\x6c\144\141\x70\x5f\x63\157\x6e\x6e\x65\143\164\151\157\x6e", "\146\141\x6c\x73\x65");
$this->show_error_message();
goto S9;
vK:
$this->mo_ldap_report_update("\114\x44\101\120\x20\x43\117\x4e\116\x45\x43\124\x49\117\x4e\x20\124\x45\123\124", "\x45\x52\x52\117\122", "\x3c\x73\164\x72\157\156\x67\x3e\x54\x65\x73\x74\x20\103\157\156\156\145\143\164\x69\x6f\x6e\x20\105\x72\162\x6f\162\x3a\40\x3c\x2f\163\164\x72\157\156\x67\76" . $rR->statusMessage);
update_option("\155\x6f\x5f\154\x64\141\160\x5f\x6c\x6f\143\141\154\x5f\155\x65\x73\163\141\x67\145", $rR->statusMessage, '', "\156\x6f");
update_option("\155\x6f\137\154\144\x61\x70\x5f\x6c\157\143\141\154\137\166\145\x72\x69\x66\x79\x5f\154\144\141\160\137\143\x6f\156\x6e\145\143\x74\x69\157\x6e", "\x66\141\154\163\145");
$this->show_error_message();
goto S9;
il:
$this->mo_ldap_report_update("\114\x44\101\x50\40\103\117\116\116\x45\103\124\x49\117\116\x20\124\105\123\124", "\x45\122\122\x4f\x52", "\74\163\164\162\x6f\156\x67\x3e\x54\145\163\164\40\x43\x6f\156\x6e\145\143\x74\x69\157\x6e\40\x45\x72\162\x6f\x72\72\40\74\x2f\163\164\x72\157\156\x67\76" . $rR->statusMessage);
update_option("\x6d\157\x5f\x6c\x64\x61\x70\x5f\154\157\x63\x61\x6c\137\155\x65\163\163\141\147\145", $rR->statusMessage, '', "\156\157");
update_option("\155\157\137\x6c\x64\x61\x70\x5f\x6c\157\143\x61\x6c\x5f\x76\x65\x72\151\146\171\137\154\x64\x61\x70\x5f\143\x6f\156\x6e\x65\143\x74\x69\x6f\156", "\x66\x61\154\163\145");
$this->show_error_message();
S9:
goto FP;
nm:
update_option("\x6d\157\137\x6c\144\x61\x70\137\154\x6f\143\x61\x6c\137\155\145\163\163\141\x67\x65", "\x50\x48\120\x20\x4f\x70\145\156\x53\x53\x4c\40\145\x78\164\x65\156\x73\151\157\x6e\x20\x69\x73\x20\x6e\157\x74\x20\151\156\x73\x74\141\154\x6c\x65\x64\40\157\162\x20\144\x69\x73\x61\142\x6c\x65\x64\56\40\x50\x6c\145\141\163\145\40\145\x6e\x61\x62\x6c\x65\x20\151\164\40\x66\151\162\163\164\x2e");
$this->show_error_message();
FP:
gi:
goto zW;
case "\155\157\x5f\154\144\x61\160\x5f\154\157\x63\141\154\x5f\x74\x6c\x73\137\145\x6e\x61\142\154\x65":
$mR = isset($_POST["\x6d\157\x5f\x6c\144\x61\160\137\154\157\x63\x61\154\137\x74\154\163\137\x65\156\x61\142\x6c\145"]) ? $_POST["\155\x6f\137\154\144\141\x70\x5f\x6c\x6f\x63\x61\x6c\137\164\x6c\x73\x5f\145\x6e\141\142\154\145"] : 0;
update_option("\155\157\137\x6c\144\x61\x70\137\x6c\x6f\x63\141\x6c\x5f\x75\163\x65\x5f\x74\x6c\163", $mR);
if ($mR == 1) {
goto Dp;
}
update_option("\155\157\137\154\144\141\160\137\154\x6f\143\x61\154\x5f\155\145\163\x73\141\x67\x65", "\124\x4c\x53\x20\x68\x61\163\40\x62\x65\x65\156\x20\x64\x69\x73\141\142\x6c\145\x64\56");
$this->show_error_message();
goto Yf;
Dp:
update_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\x6f\143\x61\x6c\137\x6d\145\163\163\141\147\145", "\124\114\123\x20\x68\141\x73\x20\x62\x65\x65\156\x20\x65\156\x61\x62\154\145\x64\x2e");
$this->show_success_message();
Yf:
goto zW;
case "\x6d\x6f\x5f\x6c\x64\141\160\137\x6c\x6f\x63\141\x6c\x5f\163\x61\166\145\x5f\165\x73\145\162\x5f\x6d\141\x70\160\151\x6e\147":
delete_option("\155\x6f\137\154\x64\141\x70\x5f\x6c\x6f\x63\141\154\137\165\163\x65\x72\x5f\x6d\x61\160\x70\x69\156\147\x5f\x73\164\x61\x74\165\163");
update_option("\x6d\157\x5f\x6c\x6f\x63\141\x6c\x5f\x66\x69\154\x74\145\162\137\x63\150\x65\x63\153", isset($_POST["\154\144\141\160\x5f\x73\x65\x61\x72\143\x68\137\x66\151\x6c\164\x65\162\163"]) ? 1 : 0);
$Rp = '';
$XC = '';
$RW = '';
$F8 = array();
$LP = array();
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\163\x65\x61\x72\x63\150\x5f\142\x61\x73\145"])) {
goto Wy;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\165\x73\145\162\137\x61\x74\x74\x72\x69\142\165\164\145\x5f\164\145\170\x74"]) && Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x73\145\x61\x72\x63\x68\x5f\146\x69\x6c\x74\x65\x72"])) {
goto of;
}
$XC = strtolower(sanitize_text_field($_POST["\x73\x65\x61\x72\x63\150\x5f\142\x61\x73\145"]));
goto Uk;
Wy:
update_option("\x6d\157\137\154\x64\141\160\137\154\x6f\143\141\x6c\137\155\x65\x73\x73\x61\x67\x65", "\x41\x6c\154\40\x74\x68\x65\40\146\151\x65\x6c\144\x73\x20\x61\x72\x65\x20\162\145\161\165\x69\162\145\x64\56\x20\120\x6c\145\141\163\x65\x20\145\x6e\x74\145\162\x20\x76\x61\154\x69\144\40\145\156\164\x72\x69\x65\163\x2e");
add_option("\x6d\157\x5f\154\144\141\160\x5f\x6c\157\x63\x61\x6c\137\165\163\x65\x72\x5f\155\x61\160\x70\151\x6e\x67\x5f\x73\x74\141\164\165\x73", "\x49\116\x56\101\x4c\111\104", '', "\x6e\x6f");
$this->show_error_message();
return;
goto Uk;
of:
update_option("\155\157\x5f\x6c\144\141\x70\137\x6c\157\x63\x61\x6c\x5f\155\x65\163\x73\141\x67\x65", "\x41\154\154\x20\x74\150\x65\x20\x66\151\145\x6c\x64\163\40\141\x72\x65\x20\x72\145\x71\x75\x69\x72\145\x64\56\x20\x50\154\x65\x61\163\145\x20\x65\156\164\145\x72\x20\166\141\x6c\151\x64\x20\x65\x6e\x74\x72\151\x65\x73\x2e");
add_option("\155\157\x5f\x6c\144\x61\x70\x5f\154\157\x63\x61\x6c\137\165\163\145\x72\137\x6d\141\160\160\151\x6e\147\x5f\163\x74\141\x74\x75\163", "\x49\116\x56\101\114\x49\104", '', "\156\157");
$this->show_error_message();
return;
Uk:
if (!Mo_Ldap_Local_Util::is_extension_installed("\x6f\x70\145\x6e\163\163\154")) {
goto qL;
}
$RW = sanitize_text_field($_POST["\x73\145\x61\162\x63\x68\x5f\x66\x69\x6c\x74\145\x72"]);
$co = sanitize_text_field($_POST["\x75\163\x65\162\137\141\164\x74\x72\x69\142\165\x74\145\137\x74\145\x78\164"]);
$kq = sanitize_text_field($_POST["\x65\x78\164\x72\141\x5f\x75\163\145\x72\x5f\141\x74\164\162\x69\142\x75\164\145"]);
if (!isset($co)) {
goto BQ;
}
foreach ($_POST["\165\x73\145\x72\x5f\141\164\164\x72\x69\142\x75\x74\145\137\x74\145\x78\x74"] as $CY => $wV) {
$F8[$CY] = $wV;
ao:
}
ts:
BQ:
update_option("\155\157\x5f\x6c\144\x61\x70\137\x6c\x6f\x63\x61\x6c\x5f\163\x65\141\x72\x63\x68\x5f\146\151\154\x74\x65\x72", Mo_Ldap_Local_Util::encrypt($RW));
update_option("\155\x6f\137\154\x64\x61\x70\x5f\154\x6f\x63\x61\154\x5f\165\x73\x65\162\x6e\x61\x6d\145\137\x61\x74\x74\x72\151\142\x75\x74\x65", $F8);
update_option("\155\157\137\x6c\x64\x61\160\x5f\154\157\143\141\154\137\145\x78\x74\x72\x61\x5f\x75\163\x65\162\x5f\x61\x74\x74\x72\151\x62\x75\x74\145", $kq);
update_option("\155\157\137\154\x64\x61\x70\137\x6c\x6f\143\141\x6c\x5f\x73\x65\141\x72\143\x68\x5f\142\x61\x73\145", Mo_Ldap_Local_Util::encrypt($XC));
$Ur = "\114\x44\101\120\40\x55\x73\x65\162\x20\115\x61\160\x70\151\x6e\147\40\x43\157\x6e\146\x69\147\165\162\141\164\x69\157\156\x20\x68\141\163\x20\142\145\145\156\x20\x73\141\166\x65\144\56\40\x50\x6c\145\x61\163\145\40\x74\x65\163\164\40\x61\165\164\x68\x65\x6e\164\x69\143\141\x74\151\x6f\156\40\x74\157\40\166\145\x72\151\146\171\x20\x4c\104\101\x50\40\125\163\x65\162\40\115\141\160\160\151\x6e\147\x20\103\157\x6e\146\x69\147\165\x72\141\x74\x69\x6f\156\56";
update_option("\x6d\157\x5f\154\144\x61\x70\x5f\154\157\x63\141\x6c\137\155\145\163\x73\141\147\x65", $Ur, '', "\x6e\157");
add_option("\155\157\137\154\144\141\160\137\154\x6f\x63\x61\x6c\137\x75\163\x65\x72\137\x6d\x61\x70\160\151\156\x67\137\x73\x74\x61\164\x75\x73", "\126\101\114\111\x44", '', "\x6e\x6f");
$this->show_success_message();
update_option("\x6d\157\x5f\x6c\144\x61\x70\137\x6c\x6f\143\141\154\x5f\x63\x68\x65\x63\153\x5f\x75\x73\145\162\137\155\141\160\x70\x69\x6e\x67\x5f\x63\157\x6e\146\151\147", "\x74\x72\165\x65");
goto sX;
qL:
update_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\154\x6f\143\x61\154\137\x6d\145\x73\163\141\147\x65", "\120\x48\x50\40\117\x70\x65\156\123\123\114\x20\145\x78\164\x65\156\163\151\157\156\x20\x69\x73\40\156\x6f\164\x20\151\156\x73\x74\141\x6c\154\x65\144\40\x6f\162\x20\144\151\x73\x61\142\x6c\145\144\x2e\x20\120\154\145\141\163\x65\x20\x65\156\141\x62\154\145\x20\151\164\x20\x66\x69\x72\x73\164\x2e");
add_option("\155\x6f\137\x6c\144\141\x70\x5f\154\x6f\143\141\154\x5f\x75\163\x65\162\x5f\x6d\x61\160\x70\151\x6e\147\137\x73\x74\x61\x74\165\x73", "\111\116\x56\x41\x4c\x49\x44", '', "\156\157");
$this->show_error_message();
sX:
goto zW;
case "\x6d\157\x5f\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\x6c\137\x74\x65\163\x74\x5f\141\x75\x74\x68":
if (NddKoYsdasadJD()) {
goto Et;
}
update_option("\x6d\157\x5f\154\144\141\x70\x5f\154\157\x63\141\x6c\x5f\x6d\145\163\163\141\x67\145", "\123\145\x74\164\x69\x6e\x67\x73\40\x63\x61\156\47\164\x20\x62\x65\40\x74\x65\163\x74\145\144\x20\x77\x69\x74\x68\x6f\x75\x74\40\x76\x65\162\x69\x66\171\x69\156\147\40\171\157\x75\162\40\154\151\x63\145\x6e\x73\145\40\153\x65\171\56");
$this->show_error_message();
goto rz;
Et:
$sl = get_option("\x6d\157\137\x6c\144\141\x70\x5f\154\157\143\x61\154\x5f\x73\x65\x72\166\x65\x72\x5f\165\x72\154");
$IC = get_option("\155\157\x5f\154\144\141\160\137\154\x6f\143\x61\x6c\137\163\x65\x72\166\x65\162\x5f\144\x6e");
$Sb = get_option("\x6d\x6f\137\154\x64\141\x70\137\154\157\143\141\154\x5f\x73\x65\162\x76\145\x72\x5f\x70\141\163\163\x77\157\162\x64");
$XC = get_option("\x6d\x6f\x5f\154\144\141\x70\137\x6c\157\x63\141\x6c\x5f\163\145\141\162\x63\150\137\142\141\163\145");
$F8 = get_option("\155\157\137\154\x64\x61\x70\137\x6c\x6f\143\x61\154\x5f\x75\x73\x65\x72\156\141\155\145\137\141\164\164\x72\151\142\x75\164\x65");
$RW = get_option("\x6d\157\137\154\144\141\160\137\x6c\x6f\143\x61\154\x5f\163\x65\x61\x72\x63\150\x5f\146\151\x6c\x74\x65\162");
$SH = '';
$fa = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x74\145\163\x74\x5f\x75\163\145\x72\x6e\x61\155\145"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x74\x65\x73\x74\137\160\141\x73\163\x77\x6f\x72\144"])) {
goto YE;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($sl) || Mo_Ldap_Local_Util::check_empty_or_null($IC) || Mo_Ldap_Local_Util::check_empty_or_null($Sb) || Mo_Ldap_Local_Util::check_empty_or_null($XC) || Mo_Ldap_Local_Util::check_empty_or_null($F8) || Mo_Ldap_Local_Util::check_empty_or_null($RW)) {
goto n3;
}
$SH = sanitize_text_field($_POST["\164\145\163\164\x5f\165\163\145\x72\156\x61\x6d\145"]);
$fa = $_POST["\164\145\x73\164\x5f\x70\x61\163\163\167\157\x72\x64"];
goto DI;
YE:
$this->mo_ldap_report_update("\x54\x65\x73\x74\x20\x41\x75\x74\150\x65\156\x74\151\143\141\x74\151\157\x6e\x20", "\105\x52\122\x4f\x52", "\x3c\x73\x74\x72\x6f\156\x67\x3e\105\x52\x52\117\122\74\x2f\163\x74\162\x6f\156\147\x3e\x3a\x20\101\x6c\x6c\x20\x74\150\145\40\x66\x69\x65\x6c\144\163\40\141\162\x65\x20\162\x65\x71\165\x69\162\x65\144\x2e\x20\120\x6c\x65\x61\x73\x65\40\x65\x6e\x74\145\x72\x20\166\141\154\151\x64\40\145\x6e\x74\x72\151\x65\163\56");
update_option("\155\x6f\x5f\x6c\144\141\x70\137\x6c\x6f\143\x61\x6c\137\x6d\x65\163\163\x61\147\145", "\x41\x6c\x6c\x20\164\x68\145\40\x66\x69\x65\x6c\x64\x73\x20\x61\162\145\x20\x72\145\x71\x75\151\162\x65\144\x2e\x20\x50\154\145\141\x73\x65\x20\145\x6e\x74\145\x72\x20\x76\141\x6c\x69\x64\40\x65\x6e\164\x72\151\145\x73\56", '', "\x6e\x6f");
$this->show_error_message();
return;
goto DI;
n3:
$this->mo_ldap_report_update("\124\x65\163\x74\40\141\x75\x74\x68\x65\x6e\x74\151\143\141\164\151\157\156", "\x45\x52\122\x4f\x52", "\x3c\163\164\x72\x6f\156\147\x3e\x54\x65\163\x74\x20\x41\165\x74\x68\x65\156\164\x69\143\141\164\151\157\x6e\x20\105\162\162\157\x72\x3c\x2f\x73\x74\162\x6f\x6e\x67\x3e\72\40\x50\x6c\x65\141\x73\x65\x20\163\141\x76\145\40\114\x44\101\x50\x20\x43\x6f\x6e\146\151\x67\165\x72\141\164\x69\157\x6e\x20\x74\157\x20\164\145\x73\164\x20\141\165\164\150\x65\x6e\164\151\143\x61\164\x69\157\156\56");
update_option("\155\x6f\x5f\x6c\144\141\x70\137\154\x6f\x63\x61\x6c\137\155\x65\163\x73\141\147\x65", "\120\154\145\x61\163\145\x20\x73\141\166\145\x20\114\x44\101\120\x20\x43\x6f\x6e\x66\151\x67\165\x72\141\x74\x69\x6f\156\x20\x74\157\40\x74\x65\x73\x74\40\141\x75\164\150\x65\156\x74\x69\143\x61\164\151\157\156\56", '', "\x6e\x6f");
$this->show_error_message();
return;
DI:
$TN = new Mo_Ldap_Local_Config();
$rR = $TN->test_authentication($SH, $fa);
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\x4c\104\x41\120\x5f\x42\111\x4e\x44\x5f\x53\125\x43\103\x45\123\123\x5f\125\x53\105\x52\137\x45\x58\111\123\x54\123") == 0) {
goto kq;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\114\x44\x41\120\x5f\x43\117\x4e\116\105\x43\x54\111\x4f\x4e\x5f\x45\122\122\x4f\122") == 0) {
goto gn;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\114\104\x41\120\x5f\102\111\116\104\137\105\122\x52\x4f\122\137\x55\123\x45\x52\137\105\x58\111\x53\x54\123") == 0) {
goto Ve;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\114\104\x41\x50\137\x42\x49\116\x44\x5f\105\122\x52\117\x52") == 0) {
goto hF;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\x4c\x44\101\120\x5f\125\123\105\x52\137\x4e\117\124\137\x45\130\111\x53\124") == 0) {
goto Ud;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\x4c\104\101\x50\x5f\125\123\105\x52\x5f\123\x45\101\122\x43\110\137\x45\122\x52\117\122") == 0) {
goto eM;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\114\104\x41\120\137\x45\130\124\x45\116\123\x49\x4f\x4e\137\105\122\x52\117\122") == 0) {
goto YB;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\x4f\120\105\x4e\x53\123\x4c\x5f\105\130\124\x45\x4e\x53\x49\x4f\116\137\105\x52\122\x4f\x52") == 0) {
goto AF;
}
if (isset($rR->statusCode) && strcasecmp($rR->statusCode, "\114\x44\101\120\x5f\114\117\x43\101\x4c\137\123\x45\122\126\105\x52\x5f\x4e\117\x54\137\103\x4f\116\106\x49\107\x55\122\105\104") == 0) {
goto oD;
}
$this->mo_ldap_report_update($_POST["\164\145\x73\164\137\x75\163\145\x72\x6e\141\x6d\145"], "\105\122\x52\x4f\122", "\x3c\163\x74\x72\157\156\x67\76\124\145\163\x74\40\101\x75\x74\150\x65\156\164\x69\143\x61\164\151\157\x6e\x20\105\x72\x72\157\162\72\x20\x3c\57\163\164\x72\157\156\147\x3e\x20\124\x68\x65\162\x65\40\167\x61\163\x20\141\156\x20\x65\x72\162\157\162\x20\160\x72\x6f\x63\x65\163\x73\151\x6e\147\40\x79\157\165\x72\40\162\x65\x71\x75\x65\x73\x74\x2e\x20\120\154\145\141\163\145\x20\x76\145\162\x69\x66\x79\40\x74\150\x65\40\x53\145\x61\162\x63\x68\x20\x42\141\163\145\x28\163\51\40\x61\x6e\144\40\x55\163\145\162\x6e\141\155\x65\x20\141\x74\164\x72\151\x62\x75\164\145\56\40\x59\157\x75\x72\40\165\x73\x65\x72\40\163\150\x6f\165\x6c\144\x20\x62\145\40\x70\x72\x65\x73\x65\x6e\x74\x20\x69\156\x20\x74\x68\145\40\x53\145\x61\162\143\150\40\142\141\163\x65\40\x64\x65\x66\x69\156\x65\x64\x2e");
update_option("\x6d\x6f\x5f\x6c\144\141\160\137\x6c\x6f\143\141\154\137\x6d\x65\x73\163\x61\147\145", "\x54\150\145\162\x65\x20\167\141\x73\x20\x61\x6e\40\145\x72\162\157\x72\40\160\162\x6f\x63\x65\x73\163\x69\156\147\x20\x79\157\x75\162\40\x72\145\x71\165\x65\163\164\x2e\x20\120\x6c\x65\x61\163\x65\40\166\x65\x72\x69\x66\171\40\164\x68\x65\40\123\145\x61\x72\143\150\40\x42\141\163\x65\50\x73\x29\x20\x61\x6e\144\40\x55\163\x65\x72\x6e\x61\x6d\x65\40\141\x74\164\x72\x69\142\x75\164\145\56\x20\x59\x6f\x75\162\x20\x75\163\145\162\40\x73\x68\x6f\x75\x6c\x64\x20\x62\145\x20\160\x72\x65\163\145\156\164\40\x69\x6e\40\x74\x68\145\x20\123\x65\x61\162\143\x68\40\x62\x61\163\145\40\144\x65\x66\151\156\x65\x64\x2e");
$this->show_error_message();
goto iT;
kq:
$nm = add_query_arg(array("\164\141\142" => "\x72\x6f\x6c\x65\x6d\141\160\160\x69\x6e\x67"), $_SERVER["\x52\105\x51\x55\x45\x53\x54\x5f\125\x52\111"]);
$Ur = "\131\x6f\165\x20\150\x61\166\145\40\163\x75\x63\x63\x65\163\x73\146\x75\154\154\x79\40\x63\157\x6e\x66\151\x67\165\162\x65\144\40\171\x6f\165\x72\40\114\x44\x41\x50\x20\163\145\164\164\151\x6e\x67\x73\56\74\142\162\x3e\xa\x20\40\40\40\40\x20\x20\x20\40\40\40\40\x20\40\40\x20\40\40\x20\x20\40\40\40\40\x20\40\40\x20\40\40\x20\40\131\157\x75\40\x63\141\156\x20\156\x6f\x77\x20\144\x6f\x20\x65\151\164\150\145\x72\40\x6f\x66\40\x74\167\x6f\x20\x74\x68\x69\156\147\x73\56\74\x62\x72\x3e\12\x20\40\40\x20\40\x20\40\40\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\x20\x20\61\56\x20\105\x6e\x61\x62\x6c\145\x20\114\104\x41\120\x20\x4c\x6f\147\151\x6e\x20\x61\x74\x20\x74\x68\145\x20\x74\157\160\x20\x61\x6e\x64\x20\164\150\x65\156\40\74\x61\40\x68\162\x65\146\75\42" . wp_logout_url(get_permalink()) . "\x22\x3e\114\x6f\147\x6f\165\164\x3c\57\141\76\x20\146\x72\x6f\x6d\x20\x57\x6f\162\144\120\x72\145\163\x73\x20\141\x6e\144\x20\x6c\x6f\x67\151\x6e\x20\141\147\x61\151\x6e\x20\x77\151\164\150\x20\x79\x6f\165\162\x20\114\x44\101\x50\40\143\162\145\144\x65\156\x74\x69\x61\154\x73\56\74\142\x72\x3e\40\xa\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x20\40\40\x20\40\62\x2e\40\104\x6f\x20\162\x6f\x6c\145\x20\155\141\x70\x70\151\x6e\x67\40\50\x3c\x61\40\150\x72\145\x66\75\x22" . $nm . "\x22\x3e\103\154\151\143\153\x20\x68\145\162\x65\x3c\57\141\76\51";
update_option("\155\157\x5f\x6c\x64\x61\x70\137\154\157\143\141\154\x5f\x6d\x65\163\x73\141\x67\145", $Ur, '', "\x6e\157");
$this->show_success_message();
goto iT;
gn:
$this->mo_ldap_report_update($_POST["\164\x65\x73\x74\137\165\x73\145\x72\156\141\155\x65"], "\105\x52\x52\x4f\122", "\x3c\x73\164\x72\x6f\156\x67\76\x54\x65\163\164\x20\x41\x75\164\x68\145\156\x74\151\x63\x61\x74\x69\x6f\x6e\x20\x45\162\x72\x6f\162\x3a\x20\74\57\163\164\x72\157\x6e\147\76" . $rR->statusMessage);
update_option("\x6d\157\x5f\x6c\x64\141\x70\137\x6c\157\x63\x61\154\137\x6d\145\x73\163\x61\x67\145", $rR->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
goto iT;
Ve:
$this->mo_ldap_report_update($_POST["\164\x65\x73\164\x5f\165\x73\x65\162\x6e\141\155\x65"], "\105\x52\122\117\122", "\74\x73\164\162\157\x6e\x67\76\x54\x65\x73\x74\x20\101\165\164\150\145\156\x74\x69\143\141\164\x69\x6f\x6e\x20\x45\x72\162\x6f\x72\72\40\74\x2f\163\164\162\157\156\x67\76" . $rR->statusMessage);
update_option("\x6d\157\137\x6c\x64\x61\x70\137\x6c\x6f\143\x61\x6c\137\x6d\x65\163\163\141\147\145", $rR->statusMessage, '', "\156\157");
$this->show_error_message();
goto iT;
hF:
$this->mo_ldap_report_update($_POST["\x74\145\x73\x74\137\165\163\145\162\x6e\x61\155\x65"], "\x45\x52\122\117\122", "\x3c\x73\x74\x72\x6f\x6e\147\x3e\x54\x65\163\164\40\x41\165\164\x68\145\x6e\164\151\x63\x61\164\x69\x6f\x6e\40\x45\162\162\157\x72\72\x20\74\57\163\164\162\x6f\156\147\76" . $rR->statusMessage);
update_option("\155\x6f\x5f\x6c\x64\141\x70\x5f\154\x6f\x63\141\x6c\137\155\145\x73\163\x61\147\145", $rR->statusMessage, '', "\156\157");
$this->show_error_message();
goto iT;
Ud:
$this->mo_ldap_report_update($_POST["\164\145\163\x74\x5f\x75\163\x65\x72\156\141\x6d\145"], "\x45\122\x52\x4f\122", "\74\163\164\x72\157\x6e\147\76\124\x65\x73\164\x20\101\165\164\150\x65\x6e\164\151\x63\141\x74\x69\x6f\156\x20\105\162\x72\157\x72\72\x20\74\x2f\x73\x74\162\x6f\156\147\76\x20\x43\x61\156\x6e\157\164\x20\x66\x69\x6e\x64\x20\x75\163\145\x72\40\151\x6e\40\x74\x68\145\40\x64\x69\x72\x65\143\164\157\162\x79");
update_option("\155\157\137\154\x64\x61\x70\137\x6c\x6f\x63\141\154\x5f\x6d\x65\163\x73\141\147\145", $rR->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
goto iT;
eM:
$this->mo_ldap_report_update($_POST["\164\145\163\x74\137\x75\x73\x65\x72\156\141\x6d\145"], "\x45\122\x52\117\x52", "\74\x73\x74\x72\x6f\156\147\76\124\145\x73\x74\x20\x41\165\164\x68\x65\x6e\x74\x69\x63\x61\164\x69\157\x6e\40\x45\162\x72\x6f\162\x3a\x20\74\x2f\x73\x74\162\157\156\x67\x3e\x20\x43\141\156\x6e\x6f\x74\x20\146\x69\156\144\40\x75\163\x65\162\40\151\156\40\164\x68\x65\40\x64\x69\x72\145\x63\x74\x6f\x72\x79");
update_option("\x6d\x6f\137\x6c\x64\141\160\x5f\x6c\x6f\x63\x61\x6c\137\155\145\x73\x73\x61\147\145", $rR->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
goto iT;
YB:
$this->mo_ldap_report_update($_POST["\164\145\163\x74\x5f\x75\163\145\162\156\141\x6d\145"], "\x45\x52\x52\117\x52", "\74\163\x74\162\157\x6e\147\76\x54\x65\163\164\40\101\165\x74\x68\x65\x6e\x74\151\x63\x61\164\151\157\x6e\40\105\x72\162\157\x72\72\40\x3c\57\163\164\162\157\156\x67\76" . $rR->statusMessage);
update_option("\x6d\x6f\137\x6c\x64\x61\160\137\154\157\x63\x61\154\x5f\155\145\163\163\141\147\x65", $rR->statusMessage, '', "\156\x6f");
$this->show_error_message();
goto iT;
AF:
$this->mo_ldap_report_update($_POST["\164\x65\x73\x74\x5f\x75\x73\x65\x72\156\x61\x6d\x65"], "\x45\x52\122\x4f\x52", "\74\x73\x74\x72\x6f\x6e\147\x3e\x54\145\163\164\40\101\165\x74\150\145\156\x74\151\x63\141\x74\151\157\x6e\40\105\162\162\x6f\x72\72\x20\x3c\57\163\164\x72\x6f\x6e\x67\76" . $rR->statusMessage);
update_option("\x6d\x6f\137\x6c\x64\141\x70\x5f\x6c\x6f\x63\141\154\x5f\155\x65\x73\x73\x61\147\145", $rR->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
goto iT;
oD:
$this->mo_ldap_report_update($_POST["\x74\145\163\x74\137\165\x73\145\162\156\141\155\145"], "\x45\x52\122\x4f\122", "\74\x73\164\x72\x6f\x6e\147\76\124\x65\163\x74\x20\x41\165\x74\x68\x65\x6e\164\x69\143\x61\x74\151\x6f\156\40\105\162\x72\x6f\162\x3a\40\x3c\57\x73\x74\162\x6f\156\147\76" . $rR->statusMessage);
update_option("\x6d\x6f\137\x6c\144\x61\x70\x5f\x6c\x6f\x63\141\x6c\137\x6d\145\x73\163\x61\x67\x65", $rR->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
iT:
rz:
goto zW;
case "\155\x6f\x5f\154\144\x61\x70\137\x6c\x6f\143\x61\x6c\x5f\x65\156\141\x62\154\145":
if (NddKoYsdasadJD()) {
goto wK;
}
update_option("\x6d\x6f\137\154\x64\x61\160\x5f\x6c\157\x63\141\154\137\155\x65\x73\x73\141\147\x65", "\x53\145\164\164\151\x6e\147\x73\x20\143\x61\156\x27\x74\x20\x62\x65\40\x73\x61\x76\145\x64\x20\167\x69\x74\150\x6f\165\164\x20\x76\x65\x72\x69\146\x79\151\156\147\x20\x79\x6f\x75\162\x20\x6c\151\143\145\156\163\145\x20\x6b\145\171\56");
$this->show_error_message();
goto ni;
wK:
$L2 = isset($_POST["\145\x6e\141\x62\154\x65\137\x6c\144\141\x70\137\x6c\157\147\x69\156"]) ? $_POST["\145\156\141\x62\154\x65\x5f\x6c\144\141\160\x5f\x6c\157\x67\151\x6e"] : 0;
update_option("\155\157\x5f\154\x64\141\160\137\x6c\x6f\x63\141\154\137\x65\156\141\142\x6c\145\x5f\x6c\157\x67\x69\x6e", $L2);
if ($L2 == 1) {
goto t_;
}
update_option("\155\157\x5f\x6c\x64\141\160\137\154\157\143\141\154\137\155\145\x73\x73\x61\x67\x65", "\x4c\157\x67\x69\x6e\40\164\150\162\x6f\x75\x67\x68\x20\x79\157\x75\x72\40\x4c\104\x41\x50\x20\150\141\x73\x20\142\x65\x65\x6e\40\144\151\163\x61\x62\154\145\x64\x2e");
$this->show_error_message();
goto GB;
t_:
update_option("\155\157\137\x6c\x64\141\160\137\x6c\x6f\143\x61\x6c\137\155\x65\163\163\141\x67\145", "\x4c\157\x67\151\156\x20\x74\x68\162\157\x75\147\x68\x20\x79\157\165\x72\40\114\104\101\120\x20\x68\x61\x73\x20\x62\x65\145\156\40\x65\156\141\x62\x6c\145\x64\x2e");
$this->show_success_message();
GB:
ni:
goto zW;
case "\155\x6f\137\x6c\x64\141\160\x5f\154\157\143\x61\x6c\x5f\145\x6e\141\x62\154\145\137\x62\157\x74\150\x5f\x6c\x6f\147\151\156":
$rT = isset($_POST["\x6d\x6f\x5f\x6c\144\141\x70\x5f\x6c\x6f\x63\x61\154\137\x65\156\141\142\x6c\145\137\x62\x6f\164\150\137\x6c\x6f\x67\x69\156"]) ? $_POST["\155\x6f\x5f\154\144\x61\x70\137\x6c\157\143\x61\x6c\137\145\x6e\141\142\154\x65\137\142\x6f\164\x68\137\154\157\147\x69\156"] : '';
update_option("\x6d\x6f\x5f\154\x64\141\x70\137\154\x6f\143\141\154\x5f\145\x6e\x61\x62\154\145\x5f\x62\157\x74\150\137\154\x6f\147\151\156", $rT);
if ($rT == "\141\144\155\x69\156") {
goto JL;
}
if ($rT == "\x61\154\x6c") {
goto ir;
}
update_option("\x6d\x6f\x5f\154\x64\x61\160\137\154\157\143\141\x6c\x5f\155\x65\163\x73\x61\x67\145", "\114\157\147\151\156\40\165\163\151\x6e\x67\40\114\157\x63\x61\154\40\x57\x6f\162\144\x50\162\145\163\163\x20\103\x72\145\x64\x65\156\164\151\141\x6c\x73\x20\151\x73\x20\74\x62\76\144\151\163\141\x62\154\x65\x64\x3c\x2f\x62\x3e\x2e");
$this->show_error_message();
goto TN;
JL:
update_option("\155\x6f\137\x6c\144\141\x70\137\154\x6f\143\141\154\137\x6d\x65\x73\x73\x61\x67\145", "\x4c\x6f\147\x69\156\40\165\163\x69\x6e\147\x20\114\x6f\x63\141\154\x20\127\x6f\x72\144\x50\162\x65\163\x73\40\x43\x72\x65\144\x65\156\164\151\x61\154\x73\x20\x66\x6f\x72\40\x3c\x62\x3e\101\x64\x6d\x69\x6e\151\163\x74\x72\141\164\157\x72\163\74\x2f\x62\76\x20\151\x73\40\x65\x6e\141\x62\154\x65\x64\56");
$this->show_success_message();
goto TN;
ir:
update_option("\155\157\137\154\144\141\x70\137\154\x6f\x63\x61\x6c\137\155\x65\x73\163\141\x67\x65", "\x4c\x6f\x67\151\156\40\x75\163\x69\156\147\x20\x4c\157\143\141\154\x20\127\157\x72\x64\x50\x72\145\x73\163\x20\103\x72\x65\144\145\x6e\164\151\x61\154\163\40\x66\x6f\x72\40\x3c\x62\x3e\101\154\154\40\x55\x73\x65\162\163\x3c\x2f\x62\76\x20\x69\163\40\145\x6e\x61\x62\x6c\145\144\x2e");
$this->show_success_message();
TN:
goto zW;
case "\155\x6f\x5f\154\144\x61\x70\x5f\154\157\143\141\154\137\163\x61\166\x65\x5f\154\x6f\x67\x69\x6e\x5f\x72\x65\x64\151\x72\x65\143\164":
$hR = $_POST["\162\145\x64\151\162\x65\x63\x74\x5f\x74\x6f"];
update_option("\x6d\157\137\x6c\x64\141\160\x5f\154\157\x63\141\x6c\137\162\145\144\151\x72\x65\143\x74\x5f\164\157", $hR);
if ($hR == "\x70\x72\157\x66\151\x6c\x65") {
goto N7;
}
if ($hR == "\150\157\155\x65\160\141\147\145") {
goto Rp;
}
goto I4;
N7:
update_option("\x6d\x6f\137\154\x64\141\x70\137\154\157\x63\x61\x6c\x5f\155\x65\163\163\141\x67\x65", "\125\x73\x65\x72\163\x20\x77\x69\154\x6c\40\x67\x65\x74\40\x72\x65\144\151\x72\145\143\x74\x65\144\40\x74\x6f\40\120\162\157\146\x69\154\x65\40\x50\141\147\x65\40\141\146\x74\x65\162\40\x6c\x6f\147\x69\x6e\56");
goto I4;
Rp:
update_option("\155\157\137\x6c\x64\x61\160\137\x6c\157\x63\141\x6c\x5f\x6d\x65\x73\x73\x61\x67\145", "\x55\163\x65\x72\x73\40\x77\x69\x6c\154\40\147\145\164\40\x72\x65\x64\x69\x72\145\143\x74\x65\144\x20\x74\x6f\40\110\157\155\x65\40\x50\x61\147\x65\x20\x61\x66\164\145\x72\40\x6c\x6f\147\151\x6e\56");
I4:
if ($hR != "\x63\x75\163\164\157\x6d" && $hR !== "\156\x6f\x6e\145") {
goto f2;
}
if ($hR == "\x6e\157\x6e\145") {
goto O2;
}
goto Xg;
f2:
$this->show_success_message();
goto Xg;
O2:
update_option("\x6d\x6f\x5f\x6c\144\x61\x70\137\x6c\x6f\x63\141\x6c\137\155\x65\163\163\x61\x67\x65", "\x52\145\x64\151\162\x65\143\x74\x69\157\x6e\x20\141\146\x74\145\x72\x20\x6c\157\x67\x69\156\x20\x69\163\x20\144\151\x73\x61\x62\154\x65\144\56");
$this->show_error_message();
Xg:
goto zW;
case "\x6d\x6f\x5f\x6c\x64\141\160\x5f\x6c\157\x63\141\x6c\x5f\x63\165\163\x74\x6f\x6d\137\162\x65\144\151\x72\145\x63\x74":
$GG = $_POST["\155\x6f\137\154\x64\x61\x70\x5f\154\157\143\141\x6c\137\143\165\x73\164\157\x6d\137\x75\162\x6c"];
update_option("\x6d\x6f\x5f\154\x64\x61\x70\137\154\x6f\143\x61\154\x5f\143\x75\x73\x74\157\x6d\137\162\x65\144\x69\x72\x65\143\164", $GG);
update_option("\155\x6f\x5f\154\144\141\x70\x5f\x6c\x6f\143\x61\154\x5f\155\145\x73\163\141\147\x65", "\x55\163\x65\162\x73\40\x77\x69\154\x6c\x20\x67\145\164\40\x72\145\x64\151\x72\145\x63\x74\x65\x64\40\164\157\40\143\x75\163\x74\157\x6d\40\x72\145\x64\151\x72\145\143\x74\40\x55\x52\x4c\40\141\146\x74\x65\x72\x20\154\157\147\151\x6e\56");
$this->show_success_message();
goto zW;
case "\x6d\x6f\137\154\144\x61\160\x5f\x6c\x6f\x63\x61\154\x5f\x72\145\x67\151\163\x74\x65\x72\x5f\x75\x73\145\162":
if (NddKoYsdasadJD()) {
goto HC;
}
update_option("\155\157\137\154\144\141\160\x5f\x6c\x6f\x63\x61\154\137\155\145\x73\163\141\147\145", "\x53\145\164\x74\x69\x6e\x67\163\40\143\x61\156\47\x74\x20\x62\145\40\x73\x61\166\145\144\40\167\x69\164\150\157\165\x74\40\166\145\162\151\146\171\x69\156\147\40\x79\157\x75\162\40\154\151\143\145\156\x73\145\x20\153\x65\x79\56");
$this->show_error_message();
goto M0;
HC:
$Px = isset($_POST["\x6d\157\137\x6c\x64\141\160\137\154\x6f\x63\x61\154\137\162\145\147\x69\x73\164\145\162\137\165\x73\x65\x72"]) ? $_POST["\x6d\157\137\154\144\141\160\137\154\157\143\141\x6c\x5f\162\x65\x67\151\163\x74\145\162\x5f\165\x73\x65\162"] : 0;
update_option("\155\157\137\154\x64\x61\160\x5f\x6c\x6f\x63\x61\154\137\162\x65\x67\151\163\164\145\x72\x5f\165\163\145\x72", $Px);
if ($Px == 1) {
goto Kt;
}
update_option("\155\x6f\137\154\144\141\160\x5f\x6c\157\143\x61\x6c\137\x6d\145\x73\163\x61\x67\145", "\x41\x75\164\157\40\x52\145\147\x69\x73\x74\x65\x72\x69\156\147\x20\x75\163\145\162\x73\x20\150\x61\163\40\x62\145\x65\156\40\144\x69\163\141\x62\154\145\144\56");
$this->show_error_message();
goto tu;
Kt:
update_option("\155\157\x5f\x6c\x64\141\160\137\154\x6f\x63\141\154\137\x6d\145\x73\x73\x61\x67\145", "\101\x75\x74\x6f\40\x52\145\147\151\163\x74\145\x72\x69\x6e\147\x20\x75\163\145\x72\163\x20\x68\141\163\40\x62\145\145\x6e\x20\x65\x6e\x61\142\x6c\x65\144\56");
$this->show_success_message();
tu:
M0:
goto zW;
case "\x6d\x6f\x5f\154\x64\141\160\137\154\157\x63\x61\154\137\141\x75\x74\150\157\x72\x69\x7a\x65\144\137\x75\x73\x65\162\163\137\x6f\156\154\171":
if (NddKoYsdasadJD()) {
goto sB;
}
update_option("\x6d\x6f\x5f\x6c\x64\141\160\x5f\x6c\x6f\143\141\x6c\137\155\145\x73\163\x61\147\x65", "\123\x65\x74\164\151\156\147\x73\x20\x63\x61\x6e\47\164\x20\142\145\x20\x73\x61\166\145\x64\40\167\x69\x74\150\157\165\x74\40\166\x65\162\x69\146\171\151\x6e\x67\x20\171\157\165\x72\x20\154\x69\x63\x65\156\x73\145\x20\x6b\145\x79\x2e");
$this->show_error_message();
goto E3;
sB:
$qk = isset($_POST["\141\x75\x74\x68\157\x72\x69\x7a\145\144\x5f\x75\163\x65\x72\163\x5f\x6f\x6e\x6c\171"]) ? $_POST["\x61\165\164\x68\x6f\162\x69\x7a\145\144\x5f\x75\163\145\x72\163\137\x6f\x6e\x6c\x79"] : 0;
update_option("\x6d\x6f\137\154\144\141\x70\137\x6c\157\x63\x61\x6c\137\x61\165\164\150\157\162\x69\172\x65\x64\137\165\163\x65\x72\163\x5f\x6f\156\154\x79", $qk);
if ($qk == 1) {
goto Yq;
}
update_option("\155\x6f\137\154\144\141\160\x5f\154\157\x63\141\154\x5f\155\145\x73\163\x61\147\145", "\x50\x72\157\164\145\x63\x74\40\x43\157\156\x74\145\x6e\x74\x20\142\x79\40\x4c\157\x67\151\156\40\144\151\163\x61\142\154\145\x64\x2e");
$this->show_error_message();
goto oq;
Yq:
update_option("\155\x6f\137\x6c\144\x61\160\137\154\x6f\x63\x61\x6c\x5f\x6d\x65\163\163\141\x67\145", "\120\x72\x6f\x74\145\x63\x74\x20\x43\157\156\164\x65\156\x74\x20\x62\x79\40\114\x6f\x67\151\156\40\x65\156\141\142\x6c\145\144\x2e");
$this->show_success_message();
oq:
E3:
goto zW;
case "\155\157\x5f\154\144\141\160\x5f\x6c\x6f\x63\x61\154\137\x67\x72\157\165\160\x5f\162\157\x6c\145\x5f\x6d\x61\x70\x70\151\156\x67":
$A9 = isset($_POST["\145\x6e\141\x62\154\x65\137\154\144\141\160\x5f\x72\157\154\x65\137\x6d\x61\x70\160\x69\x6e\147\x5f\142\x61\x73\145\x64\137\x6f\x6e\137\x6c\x64\x61\x70\x5f\147\x72\157\x75\x70\x73"]) ? $_POST["\x65\x6e\x61\x62\x6c\145\137\x6c\144\141\160\137\162\157\x6c\145\137\x6d\x61\x70\x70\x69\156\x67\x5f\x62\141\x73\x65\x64\137\x6f\x6e\137\154\144\141\x70\137\x67\162\157\165\x70\x73"] : 0;
update_option("\x6d\x6f\x5f\154\x64\141\x70\x5f\x6c\157\x63\x61\154\137\x65\156\x61\x62\154\145\137\x72\x6f\154\145\137\x6d\141\160\160\x69\156\147\137\x62\141\163\145\144\137\157\x6e\137\x6c\144\x61\160\137\147\x72\157\165\160\x73", $A9);
if ($A9 == 1) {
goto Sl;
}
update_option("\155\157\137\x6c\144\141\160\x5f\154\x6f\x63\141\x6c\137\x6d\x65\163\163\141\x67\x65", "\x4c\x44\x41\x50\x20\107\162\157\165\160\40\164\x6f\x20\127\x50\x20\162\157\x6c\x65\x20\155\141\160\x70\151\156\147\40\150\x61\163\40\x62\x65\x65\156\x20\144\x69\x73\x61\x62\154\145\144\x2e");
$this->show_error_message();
goto YW;
Sl:
update_option("\x6d\x6f\x5f\154\144\x61\x70\x5f\x6c\157\x63\x61\x6c\x5f\155\x65\x73\163\x61\147\x65", "\114\x44\101\x50\x20\107\162\157\x75\x70\x20\x74\x6f\40\x57\x50\40\162\157\x6c\145\x20\155\141\160\x70\151\x6e\x67\40\x68\141\x73\x20\x62\145\145\x6e\40\x65\x6e\x61\142\154\145\x64\56");
$this->show_success_message();
YW:
goto zW;
case "\x6d\157\x5f\154\x64\x61\160\x5f\x66\x65\x74\x63\x68\137\x67\162\x6f\x75\x70\163\x5f\154\x69\163\x74":
if (!isset($_REQUEST["\x6d\x6f\137\x6c\144\x61\160\x5f\147\162\x6f\x75\x70\x73\x5f\x73\x65\x61\x72\x63\150\137\142\x61\163\x65"])) {
goto IO;
}
$XS = trim($_REQUEST["\155\x6f\137\x6c\144\141\160\x5f\147\x72\x6f\165\x70\x73\137\163\145\141\162\143\x68\137\142\x61\163\x65"]);
IO:
update_option("\x6d\157\x5f\154\144\141\x70\x5f\154\157\x63\x61\x6c\137\x67\x72\x6f\x75\x70\x73\x5f\163\x65\x61\x72\x63\150\x5f\x62\x61\x73\145", Mo_Ldap_Local_Util::encrypt($XS));
update_option("\155\157\137\154\144\x61\160\x5f\x73\150\157\x77\x5f\147\162\x6f\165\160\x73", 1);
goto zW;
case "\155\157\137\154\144\x61\x70\x5f\x6c\x6f\143\x61\154\x5f\x73\x61\166\145\x5f\x6d\141\x70\160\x69\x6e\x67":
$xj = array();
$uF = array();
$LP = array();
$A1 = 1;
$rE = 0;
$Ya = $_POST["\155\x61\x70\160\x69\x6e\147\137\x6b\x65\171\x5f" . $A1];
hn:
if (!isset($Ya)) {
goto jl;
}
if (empty($Ya)) {
goto x0;
}
$eq = $_POST["\x73\145\x6c\145\143\x74\x65\x64\137\146\x6f\162\137\163\x61\x76\x65\137\162\157\x6c\x65\x5f\x6d\x61\160\160\151\156\x67\137" . $A1];
if (!($eq == "\164\162\165\145")) {
goto cZ;
}
$rE++;
$aY = $_POST["\x6d\141\160\160\x69\156\x67\137\x67\x72\157\165\x70\x5f\x6e\141\155\145\x5f" . $A1];
$LP[$rE] = $aY;
$xj["\x6d\x6f\x5f\x6c\144\141\x70\137\154\x6f\x63\x61\x6c\137\x6d\141\160\x70\x69\x6e\x67\137\x6b\x65\x79\x5f" . $rE] = trim($Ya);
$uF["\x6d\157\x5f\154\x64\x61\160\x5f\x6c\157\143\x61\154\137\x6d\x61\x70\x70\x69\156\x67\x5f\x76\141\154\x75\145\137" . $rE] = $_POST["\x6d\141\x70\x70\151\x6e\147\137\166\x61\x6c\165\x65\137" . $A1];
cZ:
x0:
$A1++;
$Ya = $_POST["\x6d\x61\x70\160\151\156\147\x5f\153\x65\171\137" . $A1];
goto hn;
jl:
update_option("\155\157\137\x6c\144\141\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\x72\x6f\x6c\x65\x5f\x6d\141\x70\160\x69\156\147\x5f\x6b\x65\171\x5f\141\x72\x72\x61\x79", serialize($xj));
update_option("\155\157\137\x6c\144\x61\160\x5f\x6c\157\143\141\x6c\x5f\162\x6f\154\x65\137\x6d\x61\x70\160\151\156\x67\137\x76\x61\x6c\165\145\137\141\162\162\141\171", serialize($uF));
update_option("\155\157\x5f\x6c\144\141\160\137\154\157\x63\141\154\137\x72\157\x6c\145\x5f\155\141\x70\x70\151\x6e\147\137\147\162\x6f\x75\x70\x5f\156\x61\x6d\145\x73", serialize($LP));
update_option("\155\157\x5f\154\144\x61\x70\x5f\x6c\157\143\x61\154\137\162\157\x6c\x65\137\155\141\160\160\151\x6e\x67\x5f\x63\x6f\x75\156\164", $rE);
if (!isset($_POST["\x6d\x61\x70\160\x69\x6e\147\137\166\141\154\165\145\x5f\144\145\x66\x61\165\154\x74"])) {
goto uE;
}
update_option("\155\157\x5f\x6c\x64\x61\x70\137\x6c\x6f\x63\x61\154\137\x6d\141\x70\x70\x69\156\147\x5f\x76\x61\x6c\165\x65\x5f\144\145\x66\x61\165\154\x74", $_POST["\x6d\x61\160\160\x69\x6e\x67\137\x76\141\154\x75\145\x5f\144\x65\x66\141\x75\154\164"]);
uE:
if (!isset($_POST["\155\x61\160\x70\x69\156\147\137\x6d\x65\x6d\142\x65\162\x6f\146\x5f\141\x74\164\x72\x69\142\x75\x74\x65"])) {
goto MG;
}
update_option("\155\x6f\137\154\144\141\160\x5f\x6c\157\x63\x61\154\137\x6d\141\160\160\x69\156\x67\x5f\155\x65\155\x62\145\162\x6f\146\137\x61\x74\164\162\x69\142\x75\x74\x65", $_POST["\155\x61\160\x70\x69\156\x67\137\155\145\x6d\x62\x65\x72\x6f\x66\x5f\x61\x74\164\x72\151\x62\165\164\145"]);
MG:
$qq = '';
$gc = get_option("\155\x6f\x5f\154\144\x61\160\x5f\154\x6f\x63\141\x6c\x5f\155\141\160\160\x69\x6e\147\x5f\x76\x61\154\x75\145\x5f\144\145\146\x61\x75\x6c\164");
$m5 = get_option("\155\157\137\x6c\144\x61\x70\137\x6c\x6f\143\x61\154\137\x65\156\x61\142\154\145\x5f\x72\157\x6c\145\137\155\141\x70\x70\151\x6e\147");
if (!$gc) {
goto vf;
}
if ($m5 == 0) {
goto c9;
}
goto gD;
vf:
$qq = "\x20\x50\154\145\141\163\x65\x20\x73\x65\154\x65\x63\164\40\x74\x68\145\40\104\145\146\141\165\x6c\x74\40\122\157\154\x65\40\141\x6e\x64\40\x74\x68\x65\x6e\40\143\x68\x65\x63\153\40\x3c\x62\x3e\42\x45\x6e\141\142\x6c\x65\x20\x52\157\x6c\145\x20\x4d\141\160\160\151\156\147\x22\74\57\x62\76\40\164\157\x20\141\x63\164\x69\166\141\x74\x65\40\151\x74\56";
goto gD;
c9:
$qq = "\40\x50\x6c\145\x61\163\145\40\x63\x68\x65\x63\x6b\x20\74\x62\76\42\x45\x6e\x61\x62\154\x65\x20\x52\157\154\x65\40\x4d\x61\160\x70\x69\x6e\x67\x22\x3c\x2f\142\x3e\x20\164\x6f\40\141\x63\164\151\x76\x61\164\145\40\x69\x74\x2e";
gD:
update_option("\155\x6f\137\154\x64\141\x70\137\154\157\143\x61\x6c\x5f\x6d\x65\x73\163\x61\147\145", "\x4c\x44\101\120\40\x47\x72\x6f\x75\160\x20\164\x6f\40\127\120\x20\162\x6f\x6c\x65\x20\155\141\x70\x70\151\156\x67\40\150\141\163\x20\142\145\145\x6e\x20\165\160\144\141\x74\145\144\x2e" . $qq);
$this->show_success_message();
goto zW;
case "\x6d\157\137\x6c\144\x61\x70\137\x6c\x64\x61\160\137\157\x75\137\x62\141\163\x65\144\x5f\x72\157\x6c\145\x5f\x6d\141\160\x70\x69\156\x67":
$E1 = $_POST["\145\x6e\x61\x62\154\145\137\x6c\x64\x61\x70\137\162\157\154\x65\x5f\155\x61\160\x70\x69\x6e\147\137\142\141\163\x65\144\x5f\x6f\x6e\137\154\x64\x61\160\137\157\x75"];
$om = 1;
$qB = array();
aY:
if (empty($_POST["\x6d\157\x5f\x6c\x64\x61\160\137\x72\157\x6c\x65\137\155\141\160\160\151\156\x67\137\157\x75\137\166\x61\154\x75\x65\x5f" . $om])) {
goto SG;
}
$EM = array();
if (empty($_POST["\155\157\x5f\x6c\144\x61\x70\137\x72\x6f\154\145\x5f\155\x61\x70\x70\151\x6e\147\x5f\x6f\165\x5f\166\141\x6c\x75\145\137" . $om])) {
goto g0;
}
$EM["\157\165\137\166\141\154\165\145"] = trim($_POST["\x6d\x6f\x5f\x6c\144\141\x70\x5f\162\x6f\154\x65\137\x6d\x61\160\x70\x69\x6e\147\137\157\x75\x5f\166\141\154\165\x65\x5f" . $om]);
$EM["\x6f\165\137\142\141\x73\145\144\x5f\x77\x70\x5f\162\157\x6c\x65\137\156\x61\155\145"] = trim($_POST["\x6d\x6f\x5f\x6c\x64\141\160\137\157\165\x5f\x6d\141\160\160\x69\x6e\x67\x5f\162\x6f\154\145\137\156\141\155\x65\x5f" . $om]);
g0:
array_push($qB, $EM);
$om++;
goto aY;
SG:
update_option("\x6d\x6f\x5f\154\144\141\x70\137\x6c\x6f\143\x61\x6c\x5f\x6f\165\137\162\x6f\154\x65\137\155\x61\x70\160\x69\156\147\x5f\157\x70\x74\x69\x6f\156\163", serialize($qB));
if ($E1 == 1) {
goto GP;
}
update_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\157\x63\x61\x6c\137\145\x6e\141\x62\154\x65\137\162\x6f\x6c\x65\x5f\x6d\141\160\x70\151\156\x67\137\142\141\x73\x65\144\x5f\x6f\x6e\x5f\x6c\144\x61\160\x5f\157\165", 0);
update_option("\x6d\x6f\137\154\144\x61\x70\137\154\157\143\141\154\x5f\155\x65\163\x73\141\147\145", "\104\x69\x73\141\x62\x6c\x65\x64\x20\122\157\154\145\x20\115\x61\x70\x70\151\156\147\x20\142\141\163\x65\x64\40\157\156\x20\114\104\x41\120\x20\117\125");
$this->show_error_message();
goto hY;
GP:
update_option("\x6d\x6f\x5f\154\144\x61\x70\137\154\157\143\141\154\137\145\x6e\141\142\x6c\x65\x5f\162\x6f\154\x65\x5f\155\141\160\x70\x69\x6e\147\x5f\142\x61\x73\145\144\137\x6f\156\137\x6c\144\x61\x70\137\157\165", 1);
update_option("\x6d\x6f\x5f\154\144\x61\x70\x5f\x6c\x6f\143\141\x6c\x5f\155\145\x73\163\x61\x67\x65", "\123\165\143\x63\145\x73\x73\146\165\x6c\x6c\x79\x20\x73\x61\166\x65\144\x20\122\x6f\x6c\x65\40\x4d\141\160\x70\x69\156\147\40\x62\x61\163\145\x64\40\x6f\156\x20\x4c\x44\101\120\40\x4f\x55");
$this->show_success_message();
hY:
goto zW;
case "\x6d\x6f\x5f\x6c\x64\x61\160\137\x6c\157\143\141\154\137\145\x6e\141\142\154\145\137\162\157\x6c\x65\x5f\155\x61\x70\160\x69\156\147":
$m5 = isset($_POST["\x65\x6e\141\x62\x6c\145\x5f\154\x64\141\160\137\162\157\154\145\x5f\155\x61\160\160\151\x6e\147"]) ? $_POST["\145\x6e\141\142\154\145\137\x6c\x64\x61\160\137\162\157\x6c\145\137\x6d\141\160\x70\x69\x6e\x67"] : 0;
update_option("\x6d\x6f\x5f\154\144\x61\x70\137\154\157\143\141\x6c\x5f\x65\x6e\141\x62\x6c\x65\x5f\162\x6f\154\145\137\155\x61\160\x70\x69\156\x67", $m5);
if ($m5 == 1) {
goto kM;
}
update_option("\155\157\x5f\154\144\141\x70\x5f\154\x6f\x63\x61\x6c\137\155\x65\163\x73\x61\147\145", "\x4c\x44\101\x50\x20\107\x72\157\x75\160\40\x74\x6f\40\127\120\40\162\x6f\154\x65\40\x6d\141\160\x70\x69\156\147\40\x68\x61\163\40\x62\x65\x65\156\x20\144\x69\x73\141\x62\154\145\144\56");
$this->show_error_message();
goto Yg;
kM:
update_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\x6f\x63\x61\x6c\137\155\145\163\163\141\147\145", "\x4c\x44\x41\120\x20\x47\x72\157\x75\x70\x20\x74\157\40\127\x50\40\x72\x6f\x6c\x65\x20\155\141\x70\x70\151\x6e\147\40\x68\141\163\40\x62\145\x65\156\x20\x65\156\x61\142\x6c\145\x64\x2e");
$this->show_success_message();
Yg:
goto zW;
case "\155\157\x5f\x6c\x64\x61\x70\137\154\157\x63\141\x6c\x5f\x6b\x65\x65\160\137\145\170\x69\x73\164\x69\156\x67\137\x75\163\145\162\x5f\x72\x6f\154\x65\163":
$WA = isset($_POST["\153\145\145\160\x5f\145\170\151\x73\x74\x69\x6e\x67\x5f\x75\163\x65\x72\x5f\x72\x6f\x6c\x65\x73"]) ? $_POST["\153\145\145\160\137\145\x78\151\163\164\x69\156\x67\137\165\163\x65\162\137\162\x6f\154\145\163"] : 0;
update_option("\155\157\x5f\154\x64\141\160\137\x6c\x6f\x63\141\x6c\137\x6b\x65\x65\160\137\x65\170\151\163\164\151\156\147\137\165\163\145\162\137\162\x6f\154\x65\163", $WA);
if ($WA == 1) {
goto c1;
}
update_option("\x6d\x6f\137\x6c\144\x61\x70\x5f\154\x6f\x63\141\x6c\137\x6d\x65\x73\163\141\x67\145", "\127\x50\x20\122\157\154\x65\x73\x20\157\x66\x20\x45\x78\x69\x73\x74\151\x6e\x67\40\165\x73\x65\162\x73\x20\x77\151\154\154\40\142\x65\40\x75\160\x64\141\164\x65\x64\56");
$this->show_error_message();
goto p5;
c1:
update_option("\x6d\x6f\x5f\154\144\x61\x70\137\154\157\143\141\x6c\137\155\145\163\x73\x61\147\145", "\x57\x50\x20\122\157\x6c\145\x73\40\x6f\x66\x20\x45\170\151\x73\x74\x69\x6e\x67\40\x75\x73\145\162\163\x20\167\151\x6c\154\x20\156\157\164\x20\x62\x65\x20\162\145\x6d\x6f\166\x65\144\56");
$this->show_success_message();
p5:
goto zW;
case "\155\x6f\137\154\x64\x61\x70\x5f\x66\145\164\x63\x68\x5f\x72\145\143\x75\162\x73\x69\166\145\137\147\162\x6f\165\x70\163\137\145\x6e\x61\142\x6c\x65":
$TK = isset($_POST["\146\x65\164\x63\150\x5f\x72\145\143\165\162\163\151\166\145\x5f\x67\162\157\165\x70\163"]) ? $_POST["\x66\145\164\x63\150\137\162\145\143\165\162\x73\x69\x76\x65\137\x67\x72\157\165\160\x73"] : 0;
update_option("\155\157\x5f\154\x64\x61\160\137\146\145\x74\143\150\x5f\162\x65\x63\x75\x72\163\151\x76\x65\137\147\162\x6f\165\160\x73\137\x65\156\141\x62\154\x65", $TK);
if ($TK) {
goto aD;
}
update_option("\155\157\137\x6c\144\x61\x70\137\154\157\143\x61\154\137\x6d\x65\163\x73\x61\147\x65", "\116\145\x73\164\145\x64\x20\147\162\157\165\x70\163\x20\x66\162\x6f\x6d\x20\x74\150\x65\x20\114\104\x41\120\40\141\163\x73\157\143\151\x61\164\x65\x64\40\x77\x69\x74\150\40\164\x68\x65\x20\x75\x73\145\162\40\x77\151\x6c\154\x20\156\x6f\164\x20\x62\x65\40\146\145\x74\143\x68\145\144\x2e");
$this->show_error_message();
goto Fo;
aD:
update_option("\x6d\157\137\154\144\141\x70\x5f\154\157\x63\141\x6c\137\x6d\145\163\x73\141\147\145", "\x4e\x65\x73\164\145\144\40\147\x72\157\x75\x70\163\40\146\x72\x6f\155\x20\164\x68\145\40\114\x44\101\x50\x20\141\163\163\157\x63\151\141\x74\x65\x64\x20\167\x69\164\x68\x20\164\x68\145\x20\x75\x73\145\162\x20\x77\x69\154\154\40\x62\145\x20\146\x65\x74\x63\x68\x65\144\x2e");
$this->show_success_message();
Fo:
goto zW;
case "\x6d\x6f\137\x6c\144\x61\x70\137\163\x61\166\x65\137\x64\145\146\141\165\154\164\137\162\157\x6c\145":
if (!isset($_POST["\155\141\160\x70\x69\156\147\x5f\x76\141\154\165\145\137\x64\x65\146\141\x75\154\x74"])) {
goto Dl;
}
update_option("\x6d\x6f\x5f\x6c\144\141\x70\x5f\154\157\x63\x61\154\137\155\141\x70\160\151\156\147\137\x76\141\x6c\x75\x65\x5f\144\x65\146\141\165\x6c\x74", $_POST["\x6d\141\160\x70\151\156\x67\x5f\166\x61\x6c\165\x65\x5f\x64\x65\146\141\x75\x6c\164"]);
Dl:
goto zW;
case "\x6d\x6f\137\x6c\144\x61\160\137\162\157\x6c\x65\137\x6d\141\x70\160\151\x6e\x67\x5f\163\145\154\x65\143\x74\x69\157\156":
$j6 = isset($_POST["\155\x6f\x5f\154\x64\x61\160\x5f\x72\x6f\154\x65\x5f\x6d\141\x70\160\x69\156\x67\x5f\x73\145\x6c\145\143\x74\x65\144\x5f\164\x61\x62"]) ? sanitize_text_field($_POST["\155\157\137\x6c\144\141\160\x5f\162\157\x6c\145\137\x6d\141\x70\x70\151\x6e\147\x5f\163\x65\154\x65\143\x74\145\x64\x5f\x74\141\142"]) : 1;
update_option("\x6d\x6f\x5f\x6c\144\141\x70\137\x6c\x6f\143\141\154\x5f\x73\x65\154\x65\x63\x74\145\x64\x5f\162\x6f\x6c\x65\137\155\141\160\x70\x69\x6e\x67\137\163\165\x62\164\141\142", $j6);
goto zW;
case "\155\157\137\x6c\144\141\x70\137\145\156\141\142\x6c\145\137\141\x74\164\x72\151\x62\x75\164\x65\137\155\141\160\160\x69\156\x67":
$NJ = isset($_POST["\155\x6f\x5f\x6c\144\141\160\x5f\x6c\157\143\141\154\x5f\145\x6e\x61\x62\154\x65\x5f\141\164\164\x72\x5f\x6d\x61\x70\160\151\x6e\147"]) ? 1 : 0;
update_option("\155\157\137\x6c\x64\141\160\x5f\154\x6f\x63\x61\154\x5f\145\x6e\141\142\x6c\x65\137\141\164\164\162\137\155\x61\x70\x70\x69\x6e\x67", $NJ);
if ($NJ == 1) {
goto fj;
}
update_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\x6f\143\x61\x6c\x5f\x6d\145\163\x73\141\147\145", "\114\104\101\x50\40\101\x74\x74\162\x69\x62\165\164\145\x20\x4d\x61\160\x70\151\156\147\x20\x44\x69\163\141\x62\154\x65\144");
$this->show_error_message();
goto F5;
fj:
update_option("\155\x6f\137\154\x64\141\160\x5f\154\x6f\x63\141\154\x5f\x6d\x65\x73\163\141\147\145", "\x4c\104\x41\x50\x20\x41\x74\x74\162\151\142\x75\164\x65\40\x4d\x61\160\160\151\x6e\147\40\105\156\x61\x62\154\145\144");
$this->show_success_message();
F5:
goto zW;
case "\x6d\x6f\x5f\154\144\x61\160\x5f\x65\x6e\x61\x62\x6c\145\137\x75\x70\144\x61\164\x69\156\147\137\154\144\x61\160":
$xB = isset($_POST["\145\x6e\x61\142\154\145\x5f\165\x70\144\141\164\x65\137\x6c\x64\141\x70"]) ? 1 : 0;
update_option("\x6d\157\x5f\x6c\x64\141\x70\137\x6c\x6f\x63\141\x6c\137\145\x6e\x61\x62\154\x65\137\x75\160\144\141\x74\x65\x5f\154\144\141\x70", $xB);
if ($xB == 1) {
goto Pl;
}
update_option("\155\157\137\x6c\x64\141\160\x5f\154\157\x63\x61\x6c\x5f\155\145\163\x73\x61\147\145", "\104\151\x73\x61\142\x6c\x65\144\x20\x75\x70\x64\x61\x74\x69\x6e\147\40\151\x6e\x66\x6f\x72\x6d\x61\164\x69\157\x6e\x20\151\156\40\x4c\x44\x41\120\x20\x77\150\x65\156\x20\165\x73\145\162\40\x65\144\x69\164\x73\x20\x70\x72\157\x66\151\154\x65");
$this->show_error_message();
goto V2;
Pl:
update_option("\155\157\x5f\154\x64\x61\x70\x5f\x6c\157\143\141\x6c\137\x6d\x65\163\x73\141\x67\145", "\x45\x6e\141\x62\x6c\x65\x64\x20\x75\x70\x64\x61\x74\151\156\147\x20\151\x6e\146\x6f\162\155\141\x74\x69\x6f\156\40\x69\x6e\40\x4c\104\101\x50\x20\x77\150\145\x6e\40\x75\x73\x65\162\40\145\144\x69\x74\x73\40\x70\x72\x6f\x66\151\154\x65");
$this->show_success_message();
V2:
goto zW;
case "\155\x6f\137\154\x64\x61\x70\x5f\x73\141\166\x65\x5f\x61\x74\164\x72\x69\142\x75\x74\145\137\x63\157\156\x66\x69\147":
update_option("\155\157\137\154\x64\141\x70\137\x64\x69\x72\x65\143\164\x6f\x72\x79\x5f\x73\145\162\166\145\162\137\166\141\x6c\x75\x65", isset($_POST["\x6d\157\x5f\154\144\141\x70\x5f\144\x69\x72\x65\x63\x74\x6f\x72\x79\137\x73\145\162\x76\x65\x72\x5f\166\141\154\x75\145"]) ? $_POST["\155\157\x5f\154\x64\x61\160\137\x64\151\x72\145\x63\x74\x6f\x72\171\137\x73\x65\x72\166\x65\x72\x5f\166\x61\x6c\x75\x65"] : "\155\163\x61\x64");
$dK = sanitize_text_field($_POST["\155\157\x5f\x6c\x64\141\160\137\145\x6d\x61\151\x6c\x5f\x61\164\164\x72\x69\142\x75\x74\x65"]);
$nX = sanitize_text_field($_POST["\x6d\157\x5f\x6c\144\x61\x70\x5f\x70\x68\x6f\156\x65\137\141\x74\164\x72\x69\142\165\164\x65"]);
$dZ = sanitize_text_field($_POST["\155\x6f\137\154\144\141\160\x5f\x66\156\141\155\145\x5f\141\x74\164\x72\151\x62\165\x74\145"]);
$CU = sanitize_text_field($_POST["\155\x6f\137\154\x64\x61\x70\x5f\x6c\x6e\x61\155\145\137\x61\164\164\162\151\142\165\x74\x65"]);
$se = sanitize_text_field($_POST["\x6d\157\x5f\154\x64\141\160\137\x6e\151\143\153\156\x61\155\145\x5f\141\164\164\162\151\x62\x75\164\x65"]);
$Pz = sanitize_text_field($_POST["\x6d\157\x5f\154\x64\x61\x70\x5f\x64\x69\x73\x70\154\141\171\137\x6e\141\x6d\x65\137\141\x74\164\x72\151\142\x75\x74\145"]);
update_option("\155\x6f\137\154\x64\x61\x70\137\154\157\x63\141\x6c\x5f\x65\155\x61\x69\154\x5f\141\x74\x74\x72\151\x62\165\x74\145", $dK);
update_option("\155\x6f\x5f\154\144\x61\x70\137\x6c\x6f\x63\x61\x6c\x5f\x70\x68\x6f\x6e\145\137\x61\164\x74\x72\151\142\165\164\x65", $nX);
update_option("\155\x6f\x5f\x6c\x64\141\160\x5f\x6c\157\x63\141\x6c\x5f\x66\156\141\x6d\x65\x5f\x61\x74\x74\162\151\x62\165\x74\x65", $dZ);
update_option("\155\157\x5f\x6c\144\141\x70\137\154\157\x63\141\x6c\137\154\x6e\x61\x6d\145\137\141\164\164\x72\151\142\x75\x74\145", $CU);
update_option("\x6d\x6f\137\x6c\x64\141\160\137\x6c\157\x63\141\154\137\156\151\x63\x6b\x6e\141\155\x65\137\141\164\164\162\x69\x62\165\164\x65", $se);
update_option("\155\157\x5f\x6c\144\x61\160\x5f\x6c\x6f\143\141\154\137\144\x69\x73\160\x6c\141\x79\137\156\x61\155\x65\137\x61\x74\x74\x72\151\x62\x75\164\x65", $Pz);
$ps = unserialize(get_option("\155\x6f\x5f\x6c\x64\x61\x70\137\x6c\157\143\x61\154\137\x63\x75\163\164\157\x6d\x5f\141\164\x74\x72\151\x62\x75\x74\x65\163"));
if (!Mo_Ldap_Local_Util::check_empty_or_null($ps)) {
goto Wj;
}
$ps = array();
Wj:
$TU = 1;
$WJ = $_POST["\155\x6f\x5f\x6c\144\x61\x70\x5f\154\x6f\x63\x61\154\137\x63\165\x73\x74\157\x6d\137\x61\x74\x74\162\x69\x62\165\164\145\137" . $TU . "\x5f\156\x61\x6d\145"];
MU:
if (!isset($WJ)) {
goto qz;
}
if (empty($WJ)) {
goto qf;
}
if (!(strpos($WJ, "\x20") !== false)) {
goto NU;
}
$WJ = str_replace("\40", '', $WJ);
NU:
$sd = "\x6d\x6f\137\x6c\x64\141\160\137\154\157\x63\x61\x6c\x5f\x63\165\163\164\157\155\x5f\141\164\x74\162\x69\142\165\164\145\x5f" . strtolower(sanitize_text_field($WJ));
$ps[$sd] = strtolower($WJ);
qf:
$TU++;
$WJ = $_POST["\x6d\157\x5f\154\x64\x61\x70\137\x6c\x6f\x63\x61\154\137\143\165\x73\164\x6f\x6d\x5f\x61\x74\x74\162\x69\x62\165\x74\x65\x5f" . $TU . "\x5f\x6e\141\155\x65"];
goto MU;
qz:
if (empty($ps)) {
goto cU;
}
$ps = array_unique($ps);
update_option("\x6d\x6f\x5f\x6c\144\x61\160\x5f\x6c\x6f\143\x61\x6c\x5f\x63\165\x73\164\x6f\x6d\137\141\x74\x74\162\x69\142\x75\164\145\163", serialize(array_unique($ps)));
cU:
$Q8 = !empty(get_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\x61\164\x74\162\x69\142\165\x74\x65\137\x75\x73\x65\162\155\x65\164\x61\137\155\x61\160\160\x69\156\147")) ? get_option("\x6d\x6f\137\154\x64\x61\160\137\x61\164\164\x72\x69\142\165\164\145\137\165\163\145\162\x6d\x65\x74\141\x5f\155\141\x70\160\151\x6e\147") : array();
$vb = array();
$AU = 0;
$wc = "\155\157\137\154\144\x61\x70\x5f\x75\163\145\162\x6d\x65\164\141\137\156\x61\155\145\137";
foreach ($_POST as $CY => $wV) {
if (!(strpos($CY, $wc) !== false)) {
goto ol;
}
$AU++;
$Hg = strtolower(sanitize_text_field($wV));
$Us = strtolower(sanitize_text_field($_POST["\155\x6f\x5f\154\x64\x61\160\137\x75\x73\145\162\155\145\x74\x61\x5f\166\x61\x6c\165\x65\x5f" . $AU]));
$Us = str_replace("\x20", '', $Us);
if (!(!empty($Hg) && !empty($Us))) {
goto Id;
}
if (array_key_exists($Hg, $vb)) {
goto dD;
}
$vb[$Hg] = $Us;
dD:
update_option("\155\x6f\137\x6c\x64\141\x70\x5f\x6c\157\143\x61\154\x5f\x63\165\x73\164\x6f\155\x5f\141\164\x74\x72\x69\x62\165\x74\x65\x5f" . $Us, $Us);
Id:
ol:
NT:
}
BE:
update_option("\155\157\137\154\144\x61\160\137\141\164\164\x72\151\142\x75\x74\x65\x5f\165\163\145\162\x6d\145\x74\x61\x5f\x6d\x61\x70\x70\x69\x6e\x67", $vb);
error_log(print_r($vb, true));
$fM = array();
$fM = array_diff($Q8, $vb);
if (empty($fM)) {
goto jT;
}
foreach ($fM as $La => $hW) {
$yO = get_users(array("\x6d\x65\x74\x61\137\153\145\171" => $La));
foreach ($yO as $user) {
delete_user_meta($user->ID, $La);
zw:
}
zC:
fs:
}
kN:
$bN = "\155\157\x5f\x6c\x64\141\160\x5f\154\x6f\x63\x61\x6c\137\143\165\x73\164\157\155\x5f\141\x74\x74\x72\x69\142\x75\x74\x65\137" . strtolower(sanitize_text_field($hW));
unset($ps[$bN]);
jT:
if (!Mo_Ldap_Local_Util::check_empty_or_null($ps)) {
goto kD;
}
$ps = array();
kD:
foreach ($vb as $zy => $wV) {
$sd = "\155\x6f\x5f\154\x64\141\160\137\154\157\143\141\x6c\x5f\143\165\163\164\157\x6d\137\x61\164\x74\x72\151\142\165\164\145\137" . strtolower(sanitize_text_field($wV));
$ps[$sd] = $wV;
iw:
}
lK:
update_option("\x6d\157\x5f\154\x64\141\160\x5f\x6c\157\x63\141\x6c\137\x63\x75\x73\x74\157\x6d\137\x61\164\x74\162\151\x62\165\164\145\x73", serialize(array_unique($ps)));
update_option("\155\157\137\x6c\144\x61\160\137\x6c\157\x63\141\154\137\x6d\145\x73\x73\x61\147\x65", "\123\165\143\x63\145\x73\163\x66\x75\x6c\154\171\x20\163\141\x76\145\144\40\114\x44\101\120\x20\101\164\164\162\x69\142\x75\x74\x65\40\x43\157\156\x66\151\147\165\x72\x61\x74\151\x6f\x6e");
$this->show_success_message();
goto zW;
case "\155\x6f\137\154\x64\x61\x70\137\144\x65\x6c\145\164\145\x5f\x63\x75\163\x74\157\155\137\x61\164\x74\x72\151\x62\165\164\145":
$wg = strtolower(sanitize_text_field($_POST["\x63\x75\x73\x74\157\x6d\x5f\x61\164\164\x72\x69\x62\x75\164\145\137\x6e\141\x6d\x65"]));
$ta = "\155\x6f\137\x6c\144\x61\160\137\x6c\157\x63\141\x6c\137\143\165\163\164\x6f\155\x5f\x61\x74\x74\162\x69\142\x75\164\145\137" . $wg;
$Wy = unserialize(get_option("\x6d\157\137\154\144\141\x70\137\x6c\x6f\143\141\154\137\x63\x75\163\x74\x6f\x6d\137\141\x74\x74\x72\x69\x62\x75\x74\x65\x73"));
unset($Wy[$ta]);
if (!is_plugin_active("\155\151\x6e\151\157\162\x61\156\x67\145\x2d\x6c\x64\x61\160\55\164\x68\x69\x72\144\x2d\x70\x61\162\x74\171\55\x69\156\x74\x65\147\x72\x61\164\x69\157\156\55\x61\x64\144\55\x6f\x6e\x2f\x6c\x64\x61\160\x2d\x61\x74\x74\162\151\142\x75\164\x65\163\55\164\157\55\x63\165\x73\x74\157\x6d\x2d\165\163\x65\162\x6d\145\x74\141\56\x70\x68\160")) {
goto KC;
}
$yA = get_option("\x6d\x6f\137\154\x64\x61\x70\x5f\141\x74\x74\162\x69\142\x75\x74\145\x5f\165\163\x65\162\x6d\x65\x74\x61\137\x6d\x61\160\x70\x69\x6e\147");
foreach ($yA as $fI => $J3) {
if (!(strcasecmp($wg, $J3) == 0)) {
goto K0;
}
unset($yA[$fI]);
update_option("\155\x6f\137\154\144\x61\160\137\x61\164\164\162\151\x62\x75\164\x65\x5f\165\x73\145\x72\x6d\x65\x74\141\137\155\141\160\x70\151\x6e\x67", $yA);
goto G4;
K0:
Oz:
}
G4:
KC:
update_option("\155\157\x5f\x6c\x64\141\160\137\x6c\157\x63\141\154\137\x63\x75\163\164\x6f\x6d\137\141\164\164\x72\x69\x62\165\x74\x65\x73", serialize(array_unique($Wy)));
do_action("\155\x6f\x5f\154\x64\x61\160\137\142\165\x64\x64\171\x70\162\145\x73\163\137\x75\x70\x64\141\x74\145\137\141\164\x74\x72\x69\x62\165\x74\145\x5f\155\141\x70\x70\x69\x6e\147", $wg);
update_option("\x6d\157\x5f\154\144\x61\160\x5f\154\157\143\141\x6c\x5f\x6d\145\163\x73\x61\147\145", "\x53\165\143\x63\x65\x73\163\146\x75\x6c\x6c\171\x20\144\145\x6c\x65\164\145\x20\x63\x75\x73\164\x6f\x6d\x20\141\164\x74\162\151\142\165\x74\x65\x3a\40\74\142\x3e" . $wg . "\74\x2f\142\x3e");
$this->show_success_message();
goto zW;
case "\165\163\x65\x72\137\162\145\160\x6f\162\164\137\x6c\157\x67\163":
$nR = get_option("\x75\x73\145\162\x5f\x6c\x6f\x67\163\x5f\x74\x61\142\154\145\x5f\145\x78\151\163\164\163");
$Tt = isset($_POST["\155\x6f\137\154\144\141\160\137\154\157\143\x61\x6c\x5f\x75\163\145\162\x5f\x72\x65\x70\157\162\164\137\154\157\x67"]) ? $_POST["\155\157\x5f\154\144\x61\x70\137\x6c\157\x63\x61\x6c\137\x75\163\x65\x72\x5f\x72\145\x70\x6f\x72\164\x5f\154\157\x67"] : 0;
update_option("\x6d\x6f\x5f\154\x64\x61\160\137\154\157\143\x61\154\x5f\x75\163\145\162\x5f\x72\x65\x70\x6f\x72\x74\137\154\x6f\147", $Tt);
if (!($Tt == 1)) {
goto OT;
}
$this->prefix_update_table();
OT:
goto zW;
case "\153\145\x65\x70\137\165\163\x65\162\x5f\x72\x65\160\157\162\x74\x5f\154\x6f\147\x73\x5f\157\x6e\137\165\156\x69\x73\x74\141\154\x6c":
update_option("\155\x6f\137\154\144\x61\160\x5f\x6c\157\x63\x61\154\137\153\145\x65\160\x5f\165\163\145\x72\x5f\162\x65\x70\157\162\164\x5f\154\157\147\x5f\x6f\156\137\x75\x6e\x69\156\x73\x74\x61\154\154", isset($_POST["\155\x6f\x5f\x6c\144\141\160\137\154\x6f\143\x61\x6c\137\x6b\145\145\160\137\165\163\x65\x72\137\162\x65\160\x6f\162\x74\x5f\x6c\x6f\147"]) ? $_POST["\x6d\x6f\137\x6c\144\141\x70\x5f\154\x6f\x63\x61\154\137\153\x65\145\160\137\x75\163\x65\x72\137\x72\145\x70\157\162\x74\x5f\x6c\157\x67"] : 0);
goto zW;
case "\155\x6f\x5f\154\144\141\160\137\x70\x61\x73\163":
$mp = isset($_POST["\145\156\x61\x62\154\x65\x5f\x6c\x64\x61\x70\x5f\x6c\157\147\x69\156"]) ? 1 : 0;
update_option("\x6d\157\137\x6c\144\141\160\137\x65\x78\160\157\162\164", $mp);
if ($mp == 1) {
goto FF;
}
update_option("\x6d\x6f\x5f\x6c\x64\x61\160\137\x6c\x6f\143\x61\x6c\137\x6d\145\x73\163\141\147\x65", "\123\145\162\166\151\x63\145\x20\141\143\x63\157\165\156\164\40\160\x61\163\163\167\x6f\162\x64\40\167\x69\x6c\154\x20\156\157\164\x20\142\x65\40\145\170\x70\157\162\164\145\144\x2e");
$this->show_error_message();
goto Cd;
FF:
update_option("\x6d\157\x5f\x6c\x64\141\160\137\154\157\x63\x61\x6c\137\x6d\145\163\163\141\x67\145", "\123\145\162\166\x69\x63\145\40\141\143\x63\x6f\x75\x6e\x74\x20\160\x61\163\163\167\157\162\144\40\x77\151\154\x6c\x20\x62\x65\x20\x65\x78\160\157\162\x74\145\x64\x20\151\156\x20\x65\156\143\x72\171\160\x74\145\144\40\x66\x61\x73\150\151\157\x6e");
$this->show_success_message();
Cd:
goto zW;
case "\155\157\x5f\x6c\x64\x61\x70\137\x65\170\160\x6f\x72\x74":
$tU = get_option("\x6d\157\137\x6c\x64\141\x70\137\154\x6f\x63\x61\154\137\163\x65\162\x76\145\162\x5f\165\162\x6c");
if (!empty($tU)) {
goto Tm;
}
update_option("\155\157\137\154\144\141\x70\137\154\x6f\x63\141\154\x5f\155\145\163\163\x61\x67\145", "\x4c\104\101\120\40\x43\x6f\x6e\146\151\147\165\162\141\x74\151\157\x6e\x20\x6e\157\x74\x20\x73\145\164\56\x20\120\x6c\x65\141\163\145\x20\x63\157\x6e\x66\x69\147\x75\162\x65\40\114\104\x41\120\x20\103\157\x6e\x6e\x65\143\164\151\x6f\x6e\x20\x73\145\x74\164\151\156\x67\163\56");
$this->show_error_message();
goto Fe;
Tm:
$this->miniorange_ldap_export();
Fe:
goto zW;
case "\155\x6f\x5f\x6c\144\141\160\x5f\151\x6d\x70\x6f\162\x74":
$BF = $_FILES["\155\157\137\154\x64\x61\160\x5f\x69\x6d\x70\157\162\164\x5f\x66\151\x6c\x65"]["\x6e\141\x6d\x65"];
$yN = $_FILES["\155\x6f\x5f\x6c\144\x61\160\137\151\155\160\x6f\162\164\x5f\x66\x69\154\145"]["\163\x69\x7a\x65"];
$Su = $_FILES["\155\x6f\137\x6c\144\141\160\137\151\155\x70\x6f\162\x74\137\x66\151\x6c\x65"]["\x74\155\x70\x5f\x6e\141\155\x65"];
$on = $_FILES["\155\157\x5f\154\x64\x61\160\x5f\x69\x6d\160\157\x72\164\x5f\146\151\x6c\x65"]["\x74\171\160\145"];
$z0 = strtolower(pathinfo($BF, PATHINFO_EXTENSION));
if ($z0 == "\152\163\157\x6e") {
goto ba;
}
update_option("\x6d\157\137\x6c\x64\x61\160\x5f\x6c\157\143\141\154\x5f\155\145\x73\163\x61\147\145", "\x49\156\143\157\x72\x72\145\143\x74\40\x66\151\x6c\x65\x20\165\x70\154\157\141\x64\x65\144\41\40\120\x6c\145\141\x73\x65\x20\165\x70\x6c\157\x61\x64\40\x74\x68\x65\x20\146\x69\x6c\145\40\164\150\141\x74\x20\167\x61\x73\x20\x65\170\160\x6f\x72\x74\x65\144\40\x66\x72\157\155\x20\x74\x68\x69\x73\x20\160\154\x75\x67\x69\156");
$this->show_error_message();
goto Du;
ba:
$ca = file_get_contents($Su);
$WR = json_decode($ca, true);
error_log("\x53\164\x61\162\164\x65\144\40\x69\155\160\157\x72\x74\x69\x6e\147\x20\165\x70\154\157\141\x64\145\x64\x20\143\x6f\156\x66\151\147\165\x72\x61\164\151\157\156\163");
if (array_key_exists("\154\x64\141\x70\137\114\x6f\x67\151\156", $WR) || array_key_exists("\154\144\141\160\137\x63\157\x6e\x66\x69\x67", $WR) || array_key_exists("\122\x6f\154\145\137\x4d\141\160\160\151\156\147", $WR) || array_key_exists("\101\164\164\x72\x69\142\165\164\145\x5f\x4d\x61\x70\x70\151\x6e\x67", $WR) || array_key_exists("\104\x69\x72\163\171\156\143\137\x4c\x64\x61\x70\137\124\x6f\x5f\x57\160\137\x53\x79\156\x63", $WR) || array_key_exists("\x44\x69\162\x73\171\x6e\143\x5f\127\160\x5f\124\x6f\137\x4c\x64\x61\x70\137\x73\171\x6e\143", $WR)) {
goto GN;
}
update_option("\155\157\137\x6c\x64\x61\160\x5f\154\157\x63\141\x6c\x5f\x6d\145\163\x73\x61\x67\x65", "\x49\x6e\x63\157\162\162\x65\143\x74\40\146\151\154\x65\40\165\160\x6c\x6f\x61\x64\x65\x64\41\x20\120\154\145\x61\163\x65\x20\x75\x70\154\157\x61\144\40\164\x68\x65\x20\x66\151\x6c\145\x20\x74\x68\x61\x74\40\167\x61\163\x20\145\x78\x70\157\162\x74\145\x64\x20\x66\162\157\x6d\x20\x74\x68\151\163\40\160\154\x75\147\x69\x6e");
$this->show_error_message();
goto rR;
GN:
delete_option("\155\x6f\x5f\x6c\x64\141\160\137\x6c\157\x63\x61\154\137\x63\x75\163\x74\157\x6d\x5f\141\x74\x74\x72\x69\142\x75\x74\x65\163");
delete_option("\155\157\137\154\144\x61\x70\137\154\x6f\x63\141\154\137\162\x6f\154\x65\x5f\x6d\x61\160\x70\151\x6e\147\x5f\153\145\171\x5f\141\x72\162\141\171");
delete_option("\155\x6f\x5f\154\144\x61\x70\137\x6c\x6f\143\x61\x6c\137\162\157\x6c\x65\137\155\x61\x70\x70\x69\x6e\x67\x5f\x76\141\154\165\145\x5f\141\162\x72\x61\171");
delete_option("\x6d\157\x5f\x6c\144\141\160\137\x6c\157\x63\141\154\x5f\x73\145\x72\x76\145\x72\137\165\x72\x6c\137\163\x74\x61\164\x75\163");
delete_option("\x6d\x6f\137\154\144\141\x70\137\x6c\x6f\x63\x61\x6c\x5f\x73\x65\x72\x76\151\143\x65\x5f\x61\x63\x63\x6f\165\x6e\164\137\x73\x74\x61\164\165\163");
delete_option("\x6d\157\137\x6c\x64\x61\x70\137\154\x6f\143\141\x6c\x5f\x75\x73\145\x72\137\x6d\x61\x70\160\151\156\x67\137\163\x74\x61\164\x75\x73");
delete_option("\x6d\157\137\x6c\144\141\160\137\154\157\x63\x61\154\x5f\165\x73\x65\x72\x6e\x61\155\x65\x5f\163\164\x61\x74\x75\x73");
delete_option("\x6d\x6f\137\154\144\141\x70\x5f\x6c\157\x63\x61\x6c\137\162\x6f\x6c\145\x5f\155\x61\160\x70\151\156\x67\x5f\147\162\157\165\x70\137\156\x61\155\145\163");
delete_option("\x6d\x6f\137\154\144\141\160\x5f\154\157\143\141\x6c\137\154\144\x61\160\137\160\162\157\x74\157\x63\157\154");
delete_option("\155\157\x5f\x6c\144\141\x70\137\154\x6f\143\x61\154\137\154\x64\141\160\137\x73\x65\162\166\145\x72\137\x61\x64\x64\x72\x65\163\x73");
delete_option("\155\x6f\137\x6c\144\141\160\137\x6c\x6f\x63\x61\x6c\x5f\154\144\x61\x70\x5f\160\x6f\162\164\x5f\x6e\x75\155\x62\x65\162");
delete_option("\155\x6f\x5f\x6c\x64\141\160\137\x6c\x6f\x63\141\154\137\163\145\162\166\145\x72\137\160\x61\x73\163\x77\x6f\162\144");
delete_option("\x6d\x6f\x5f\x6c\x64\x61\x70\137\154\157\143\141\x6c\x5f\162\x6f\154\145\137\x6d\141\x70\160\x69\156\147\137\143\157\x75\x6e\164");
update_option("\155\x6f\x5f\154\144\141\x70\137\x6c\x6f\143\141\154\x5f\x65\156\141\142\154\x65\137\x6c\157\147\x69\156", 0);
update_option("\155\x6f\137\154\144\141\160\x5f\154\x6f\x63\141\x6c\x5f\145\x6e\x61\x62\154\145\x5f\162\157\x6c\x65\x5f\x6d\x61\x70\160\151\156\147", 0);
update_option("\x6d\157\x5f\154\x64\x61\x70\x5f\154\x6f\x63\x61\154\x5f\x65\x6e\x61\142\154\145\x5f\141\x74\x74\162\137\155\141\160\x70\151\x6e\x67", 0);
update_option("\x6d\157\137\x6c\144\x61\x70\137\154\x6f\143\141\154\137\145\156\141\x62\154\x65\x5f\x75\x70\x64\141\164\145\x5f\x6c\144\x61\x70", 0);
delete_option("\x6d\x6f\137\x6c\144\x61\x70\137\x6c\157\x63\141\x6c\137\145\x6e\x61\142\x6c\145\137\142\x6f\x74\150\x5f\154\157\x67\x69\156");
update_option("\x6d\157\x5f\154\144\141\160\x5f\x6c\x6f\143\x61\154\x5f\x72\145\147\151\x73\x74\x65\162\137\165\x73\x65\x72", 0);
delete_option("\155\157\137\154\x64\x61\160\137\154\157\x63\x61\154\x5f\162\145\144\151\162\145\143\164\x5f\x74\x6f");
delete_option("\x6d\157\x5f\154\144\x61\x70\137\154\157\x63\x61\x6c\x5f\x63\165\x73\x74\157\x6d\137\x72\x65\x64\151\x72\145\143\164");
update_option("\x6d\x6f\x5f\154\x6f\143\141\154\x5f\146\x69\x6c\x74\x65\162\x5f\143\150\145\x63\153", 0);
update_option("\155\x6f\137\x6c\144\141\x70\137\x6c\157\143\141\x6c\137\x61\x75\164\150\x6f\162\151\x7a\x65\x64\x5f\x75\163\145\162\x73\137\x6f\x6e\154\x79", 0);
update_option("\155\157\x5f\154\144\x61\160\137\154\157\143\x61\154\137\153\x65\145\160\x5f\x65\x78\151\x73\164\151\x6e\147\137\x75\163\145\x72\x5f\162\157\x6c\x65\x73", 0);
delete_option("\155\157\x5f\154\x64\141\x70\x5f\154\157\143\x61\x6c\x5f\165\163\145\x72\156\141\155\x65\137\141\x74\x74\162\151\142\x75\x74\x65");
$Xl = unserialize(Tab_ldap_Class_Names);
$O8 = $WR["\160\x6c\165\x67\151\156\x5f\x76\145\162\163\151\157\156"]["\x70\x6c\165\147\151\156\x5f\x76\x65\x72\x73\151\157\x6e"];
foreach ($WR as $Ct => $Ij) {
$Ap = call_user_func($Xl[$Ct] . "\72\x3a\x67\x65\x74\103\157\x6e\x73\x74\141\156\x74\163");
foreach ($Ap as $CY => $I6) {
if (!array_key_exists($CY, $Ij)) {
goto yw;
}
if (!($CY == "\155\141\x70\160\x69\x6e\x67\137\x63\x6f\165\x6e\164")) {
goto hL;
}
$ZS = $Ij[$CY];
hL:
if ($CY == "\122\x6f\154\x65\137\155\141\x70\160\x69\156\147\x5f\153\145\x79") {
goto cI;
}
if ($CY == "\122\157\154\145\x5f\x6d\141\160\160\x65\x64\137\x76\x61\154\x75\x65") {
goto v1;
}
if ($CY == "\122\157\154\x65\x5f\155\141\x70\x70\x69\x6e\x67\x5f\x6b\145\x79\x5f\x61\x72\x72\x61\x79") {
goto Lh;
}
if ($CY == "\122\x6f\x6c\x65\137\155\x61\160\160\151\156\x67\x5f\x76\x61\x6c\x75\145\x5f\x61\x72\162\x61\x79") {
goto XA;
}
if ($CY == "\122\x6f\x6c\145\137\155\x61\160\x70\x69\x6e\147\x5f\147\x72\157\x75\x70\137\156\141\x6d\x65\x73") {
goto zM;
}
if ($CY == "\x63\x75\x73\x74\x6f\155\137\x61\x74\x74\162\151\142\x75\x74\x65\137\156\x61\155\145") {
goto xL;
}
$wV = !empty(sanitize_text_field($Ij[$CY])) ? sanitize_text_field($Ij[$CY]) : $Ij[$CY];
if (!($I6 == "\155\x6f\x5f\x6c\x64\x61\x70\x5f\x6c\157\x63\141\x6c\137\163\145\162\166\x65\x72\137\165\162\x6c" or $I6 == "\155\x6f\x5f\x6c\x64\x61\160\137\x6c\x6f\143\x61\x6c\137\163\x65\162\166\x65\162\137\x64\156" or $I6 == "\x6d\157\x5f\x6c\x64\141\x70\x5f\154\x6f\143\x61\154\137\x73\x65\141\x72\x63\x68\x5f\x62\141\163\145" or $I6 == "\155\x6f\x5f\x6c\144\x61\x70\137\154\157\x63\141\154\x5f\163\x65\x61\162\x63\x68\137\x66\x69\x6c\164\x65\162" or $I6 == "\155\157\x5f\x6c\x64\x61\160\x5f\x6c\157\143\141\154\137\x75\163\145\x72\x6e\x61\155\145\137\141\164\x74\x72\x69\x62\165\x74\x65")) {
goto aO;
}
if ($I6 == "\x6d\157\x5f\154\144\x61\x70\x5f\154\157\143\141\x6c\x5f\165\x73\145\162\x6e\x61\155\145\137\x61\164\164\162\151\x62\165\x74\x65") {
goto uT;
}
$wV = Mo_Ldap_Local_Util::encrypt($wV);
goto Q5;
uT:
if (!empty($O8)) {
goto YS;
}
$eE = explode("\x3b", $wV);
$Nj = array("\x73\141\x6d\x61\143\143\x6f\x75\156\164\156\141\x6d\x65", "\155\x61\x69\154", "\165\163\x65\162\160\162\x69\156\143\151\x70\141\154\x6e\141\x6d\x65", "\x75\x69\x64", "\143\156");
$wV = array();
$O7 = '';
foreach ($eE as $CY => $y_) {
if (in_array(strtolower($y_), $Nj)) {
goto bS;
}
$O7 = $O7 . "\54" . strtolower($y_);
goto fK;
bS:
array_push($wV, strtolower($y_));
fK:
xU:
}
LZ:
if (!($O7 != '')) {
goto fr;
}
$O7 = trim($O7, "\x2c");
update_option("\x6d\x6f\137\x6c\x64\x61\x70\x5f\154\x6f\143\x61\154\x5f\145\x78\164\162\x61\x5f\165\x73\145\x72\x5f\141\x74\x74\162\x69\x62\165\x74\145", $O7);
array_push($wV, "\x65\x78\164\162\x61\x55\163\x65\162\101\164\x74\162\151\x62\165\x74\x65");
fr:
YS:
Q5:
aO:
update_option($I6, $wV);
goto S3;
cI:
if (!empty($O8)) {
goto bp;
}
$x1 = array();
$Ms = 1;
On:
if (!($Ms <= $ZS)) {
goto a_;
}
$wV = sanitize_text_field($Ij[$CY][$Ms]);
$x1[$I6 . $Ms] = $wV;
O5:
$Ms++;
goto On;
a_:
update_option("\x6d\157\137\154\x64\x61\x70\137\x6c\x6f\143\141\154\x5f\162\157\154\145\137\x6d\141\x70\160\x69\x6e\147\x5f\153\x65\x79\x5f\x72\141\x77\x5f\x61\x72\162\141\x79", $x1);
bp:
goto S3;
v1:
if (!empty($O8)) {
goto fv;
}
$xn = array();
$Ms = 1;
mg:
if (!($Ms <= $ZS)) {
goto VV;
}
$wV = sanitize_text_field($Ij[$CY][$Ms]);
$xn[$I6 . $Ms] = $wV;
kV:
$Ms++;
goto mg;
VV:
update_option("\x6d\157\x5f\x6c\x64\141\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\x72\157\x6c\x65\x5f\x6d\x61\160\x70\151\156\x67\x5f\x76\x61\154\165\x65\137\162\x61\167\x5f\x61\x72\x72\x61\171", $xn);
fv:
goto S3;
Lh:
update_option("\155\x6f\137\x6c\x64\141\160\x5f\x6c\157\143\x61\x6c\x5f\x72\157\x6c\145\137\155\x61\x70\160\x69\x6e\147\x5f\153\x65\x79\x5f\141\162\x72\141\171", serialize($Ij["\122\x6f\x6c\x65\x5f\x6d\141\x70\160\151\x6e\147\x5f\x6b\x65\x79\x5f\141\x72\162\x61\171"]));
goto S3;
XA:
update_option("\155\157\137\x6c\144\141\160\x5f\x6c\x6f\x63\x61\x6c\x5f\162\157\x6c\x65\137\x6d\x61\160\x70\x69\156\147\x5f\x76\x61\x6c\165\x65\x5f\x61\162\162\x61\x79", serialize($Ij["\x52\x6f\x6c\x65\x5f\x6d\141\x70\x70\x69\156\147\137\166\x61\154\165\x65\x5f\x61\162\x72\141\171"]));
goto S3;
zM:
update_option("\155\157\x5f\154\x64\141\160\137\154\157\143\x61\154\137\162\x6f\154\145\137\x6d\141\x70\160\151\156\147\137\x67\162\157\165\160\137\x6e\x61\x6d\145\163", serialize($Ij["\x52\x6f\154\145\137\155\x61\x70\x70\x69\x6e\x67\x5f\x67\162\157\x75\160\x5f\156\141\x6d\145\x73"]));
goto S3;
xL:
$TU = sizeof($Ij[$CY]);
$FK = array();
$Ms = 1;
jE:
if (!($Ms <= $TU)) {
goto vg;
}
$wV = sanitize_text_field($Ij[$CY][$Ms]);
$FK["\x6d\157\137\x6c\144\x61\160\x5f\x6c\x6f\143\x61\154\137\x63\x75\x73\164\157\x6d\137\141\x74\x74\x72\151\142\x75\164\x65\x5f" . $wV] = $wV;
d0:
$Ms++;
goto jE;
vg:
update_option("\x6d\x6f\137\x6c\144\141\x70\x5f\x6c\157\143\x61\x6c\x5f\x63\165\163\x74\x6f\155\x5f\x61\x74\x74\x72\151\142\x75\x74\x65\x73", serialize(array_unique($FK)));
S3:
yw:
wo:
}
Js:
F8:
}
AX:
if (!empty($O8)) {
goto LN;
}
error_log("\x49\x6d\x70\157\x72\164\151\x6e\147\40\x63\x68\x61\x6e\x67\x65\163\x20\146\157\162\40\126\x65\162\163\151\x6f\156\x20\x32\63\56\x30\40\x61\156\x64\x20\x62\145\x6c\157\167");
$UL = Mo_Ldap_Local_Util::decrypt(get_option("\155\x6f\x5f\154\x64\141\x70\137\x6c\157\x63\x61\x6c\x5f\163\x65\162\166\x65\x72\x5f\x75\162\x6c"));
$yG = "\57\x5b\72\x5d\57";
$UL = str_replace("\x2f\x2f", '', $UL);
$sb = preg_split($yG, $UL);
update_option("\x6d\157\x5f\x6c\144\141\x70\137\154\157\x63\x61\x6c\137\154\x64\141\x70\137\160\x72\157\164\x6f\x63\x6f\x6c", $sb[0]);
update_option("\155\x6f\137\154\144\x61\160\137\x6c\x6f\x63\141\154\137\x6c\x64\x61\x70\x5f\x73\x65\162\166\145\162\x5f\141\144\144\x72\x65\x73\x73", Mo_Ldap_Local_Util::encrypt($sb[1]));
update_option("\x6d\x6f\137\x6c\x64\x61\160\137\154\157\143\141\154\137\x6c\x64\141\x70\137\x70\x6f\162\164\x5f\156\x75\x6d\x62\x65\x72", $sb[2]);
$w6 = get_option("\x6d\x6f\137\x6c\144\141\x70\x5f\154\x6f\143\x61\x6c\x5f\162\157\154\x65\x5f\x6d\x61\160\x70\151\x6e\x67\x5f\153\x65\x79\137\162\141\x77\x5f\x61\x72\x72\x61\171");
$t3 = get_option("\x6d\157\137\x6c\x64\x61\160\x5f\x6c\x6f\143\141\x6c\x5f\162\x6f\154\x65\x5f\155\x61\160\x70\151\x6e\x67\x5f\x76\141\x6c\x75\145\137\x72\x61\167\x5f\141\162\x72\141\x79");
delete_option("\155\x6f\x5f\154\144\141\160\x5f\154\x6f\143\x61\x6c\x5f\x72\157\x6c\x65\x5f\x6d\141\x70\160\151\x6e\x67\137\x6b\145\171\x5f\x72\x61\167\137\141\x72\162\141\171");
delete_option("\x6d\157\x5f\x6c\144\x61\160\x5f\x6c\x6f\x63\x61\x6c\x5f\162\157\x6c\x65\x5f\x6d\x61\160\160\151\156\x67\137\166\141\154\165\145\x5f\162\x61\x77\x5f\141\x72\162\141\x79");
$Ax = array();
$Ms = 1;
Zm:
if (!($Ms <= $ZS)) {
goto DB;
}
if (empty($Ax[$w6["\155\157\137\154\x64\141\x70\137\154\x6f\x63\141\x6c\x5f\155\141\160\x70\151\156\x67\137\153\x65\x79\x5f" . $Ms]])) {
goto e5;
}
$xk = $Ax[$w6["\x6d\157\x5f\154\x64\141\x70\137\154\157\x63\141\x6c\x5f\x6d\141\160\x70\151\x6e\x67\x5f\x6b\x65\x79\137" . $Ms]];
array_push($xk, $t3["\155\157\137\x6c\x64\141\160\x5f\x6c\157\143\141\154\137\155\x61\160\x70\x69\x6e\x67\x5f\166\141\154\165\x65\137" . $Ms]);
$Ax[$w6["\x6d\x6f\x5f\x6c\x64\141\x70\x5f\154\x6f\143\141\154\x5f\x6d\141\160\160\x69\156\x67\137\x6b\x65\x79\137" . $Ms]] = $xk;
goto Yb;
e5:
$Ax[$w6["\155\x6f\x5f\x6c\144\141\x70\137\154\157\x63\x61\x6c\137\155\141\x70\x70\151\x6e\147\x5f\153\145\171\137" . $Ms]] = array($t3["\x6d\x6f\x5f\x6c\x64\141\x70\x5f\x6c\x6f\x63\x61\x6c\137\155\141\x70\x70\x69\156\x67\137\166\141\154\165\x65\x5f" . $Ms]);
Yb:
az:
$Ms++;
goto Zm;
DB:
$GA = count($Ax);
update_option("\x6d\x6f\137\154\144\x61\160\x5f\154\157\x63\141\154\137\x72\x6f\x6c\x65\x5f\x6d\x61\x70\x70\151\x6e\147\x5f\143\157\x75\156\x74", $GA);
$AN = array();
$dM = array();
$e3 = array();
$Ms = 1;
$oM = "\57\133\75\54\135\x2f";
foreach ($Ax as $CY => $wV) {
$AN["\x6d\157\x5f\154\144\141\x70\137\154\x6f\143\141\154\137\155\x61\x70\160\x69\156\147\x5f\x6b\145\171\x5f" . $Ms] = $CY;
$dM["\155\157\137\x6c\144\x61\x70\137\x6c\x6f\143\x61\x6c\137\x6d\x61\x70\x70\151\x6e\x67\x5f\166\x61\154\x75\x65\137" . $Ms] = $wV;
$Ia = preg_split($oM, $CY);
$e3[$Ms] = $Ia[1];
$Ms++;
sr:
}
OU:
update_option("\x6d\x6f\137\154\x64\x61\160\x5f\154\157\143\141\x6c\137\162\x6f\x6c\145\137\x6d\x61\x70\160\x69\156\147\x5f\153\x65\171\x5f\141\x72\162\x61\171", serialize($AN));
update_option("\x6d\x6f\137\x6c\x64\x61\x70\137\154\x6f\x63\141\x6c\137\162\x6f\x6c\x65\137\x6d\x61\160\x70\151\x6e\147\137\x76\x61\154\x75\x65\x5f\141\162\x72\x61\171", serialize($dM));
update_option("\155\157\137\x6c\144\x61\x70\137\154\157\x63\141\154\137\x72\157\x6c\145\137\x6d\141\x70\x70\x69\x6e\x67\137\x67\162\157\x75\160\x5f\x6e\x61\x6d\x65\163", serialize($e3));
LN:
$n6 = get_option("\155\x6f\137\154\144\x61\x70\137\154\x6f\143\x61\x6c\137\x75\x73\145\162\x6e\141\155\x65\x5f\141\164\x74\x72\x69\x62\165\164\145");
if (!empty($n6)) {
goto EK;
}
update_option("\155\157\x5f\154\x6f\x63\141\x6c\137\x66\151\154\164\x65\x72\137\x63\150\x65\x63\153", 1);
EK:
update_option("\x6d\157\137\154\144\x61\160\x5f\x6c\157\143\141\x6c\137\155\145\163\163\141\147\x65", "\x54\x68\145\x20\x66\x69\x6c\x65\40\x77\141\163\40\151\x6d\x70\157\x72\164\x65\x64\40\163\x75\143\x63\145\163\163\x66\165\154\x6c\x79");
$this->show_success_message();
rR:
Du:
goto zW;
case "\x6d\157\x5f\154\x64\x61\x70\137\x6c\157\x63\141\x6c\x5f\x66\x61\154\x6c\x62\x61\x63\x6b\x5f\154\157\x67\x69\x6e":
update_option("\x6d\x6f\137\154\x64\x61\160\x5f\154\157\143\x61\154\x5f\145\x6e\x61\142\154\145\137\x66\x61\154\154\142\x61\143\153\137\x6c\x6f\x67\x69\x6e", isset($_POST["\x6d\x6f\x5f\154\144\x61\160\137\154\157\143\141\154\x5f\145\156\141\142\154\x65\x5f\x66\141\x6c\x6c\142\141\x63\153\x5f\x6c\x6f\147\x69\156"]) ? $_POST["\x6d\157\137\154\144\141\x70\x5f\154\157\143\x61\x6c\x5f\145\156\x61\x62\154\x65\x5f\146\x61\x6c\154\x62\x61\143\x6b\x5f\x6c\x6f\x67\151\x6e"] : 0);
update_option("\155\x6f\137\x6c\x64\141\x70\x5f\154\x6f\143\x61\x6c\x5f\x6d\x65\x73\x73\x61\147\145", "\106\141\x6c\x6c\142\141\x63\153\40\x6c\157\x67\x69\156\x20\165\x73\x69\x6e\147\40\127\x6f\162\144\x50\x72\x65\x73\163\x20\160\141\163\x73\x77\x6f\x72\x64\x20\x65\x6e\141\142\x6c\x65\144");
$this->show_success_message();
goto zW;
case "\x6d\157\x5f\x6c\144\141\x70\137\163\141\x76\x65\x5f\162\145\163\x74\x72\x69\x63\x74\x5f\154\157\147\151\156\137\142\x79\137\162\x6f\x6c\145":
$ei = isset($_POST["\x6d\x6f\137\x6c\144\x61\x70\137\x6c\157\143\141\154\137\162\145\x73\x74\162\151\143\164\137\x75\x73\145\x72\x5f\x62\x79\137\162\157\154\x65"]) ? $_POST["\155\157\x5f\154\144\x61\160\137\154\x6f\x63\141\x6c\x5f\x72\x65\x73\x74\162\x69\x63\x74\137\165\163\145\162\137\142\171\137\162\x6f\x6c\x65"] : 0;
update_option("\x6d\157\x5f\154\x64\141\x70\137\x65\x6e\x61\142\154\x65\137\162\x6f\x6c\145\x5f\x72\145\163\164\162\151\143\x74\151\x6f\x6e", $ei);
$sD = empty($_POST["\x6d\157\137\154\x64\141\x70\137\x72\x65\x73\x74\x72\x69\143\164\137\x72\x6f\x6c\x65"]) ? array() : $_POST["\155\x6f\x5f\x6c\144\141\x70\137\x72\145\x73\x74\x72\x69\143\x74\137\x72\x6f\154\x65"];
update_option("\x6d\157\x5f\x6c\144\141\x70\137\x72\x65\163\x74\x72\151\x63\x74\145\x64\137\154\157\147\151\156\x5f\162\x6f\154\x65\x73", serialize($sD));
goto zW;
}
Hb:
zW:
Nc:
if (!(isset($_POST["\157\160\164\x69\157\156"]) && strcasecmp($_POST["\x6f\160\164\x69\157\x6e"], "\155\157\137\x6c\x64\x61\x70\137\x66\x65\145\x64\142\x61\143\153") == 0)) {
goto ZP;
}
$user = wp_get_current_user();
$Ur = "\121\165\145\162\x79\40\72\133\x57\x6f\162\144\120\x72\145\163\163\40\114\x44\101\x50\x2f\x41\104\40\120\154\165\x67\151\156\72\135\x20\120\154\x75\x67\x69\156\40\x44\145\x61\x63\x74\151\x76\x61\x74\145\x64\x3a\x20";
$dU = array_key_exists("\x71\x75\145\162\171\137\146\145\x65\144\x62\141\143\x6b", $_POST) ? sanitize_textarea_field(wp_unslash($_POST["\x71\165\x65\162\171\137\146\x65\145\x64\142\x61\143\x6b"])) : false;
$pf = '';
if (!isset($_POST["\147\145\x74\x5f\162\x65\x70\x6c\x79"])) {
goto ly;
}
$pf = sanitize_text_field(wp_unslash($_POST["\x67\145\x74\x5f\162\x65\160\x6c\171"]));
ly:
if (empty($pf)) {
goto OS;
}
$pf = "\x59\x45\123";
$Ur .= "\x3c\x73\164\162\x6f\x6e\x67\x3e\74\163\x70\141\156\x20\163\x74\171\x6c\145\75\x22\x63\x6f\x6c\x6f\x72\72\40\x67\162\145\145\x6e\x3b\42\76\133\x46\157\154\x6c\x6f\167\40\x75\160\x20\x4e\145\145\144\x65\x64\40\72\40" . $pf . "\x5d\x3c\x2f\x73\x74\162\157\156\147\76\74\57\163\x70\x61\156\76\74\x62\162\x3e";
goto qe;
OS:
$pf = "\x4e\117";
$Ur .= "\x3c\x73\x74\162\x6f\156\x67\76\74\x73\160\x61\x6e\40\163\164\171\x6c\145\75\42\143\157\154\157\162\72\40\162\x65\144\x3b\42\76\133\106\x6f\x6c\154\157\x77\40\x75\x70\40\116\x65\x65\144\145\x64\x20\72\x20" . $pf . "\x5d\74\57\163\x74\x72\x6f\156\147\x3e\74\x2f\x73\160\x61\156\76\x3c\x62\x72\x3e\x20";
qe:
if (empty($dU)) {
goto mB;
}
$Ur .= "\x3c\x62\162\76\x46\145\x65\144\x62\141\143\153\40\x3a\40" . $dU . "\x3c\x62\162\76";
mB:
$Lt = !empty(get_option("\155\157\137\154\144\141\160\137\160\x6c\x75\x67\151\x6e\x5f\166\x65\162\163\x69\157\x6e")) ? get_option("\x6d\x6f\137\x6c\144\141\160\137\x70\x6c\165\x67\x69\x6e\x5f\166\x65\x72\163\x69\157\156") : "\62\67\x2e\x30\56\60";
$Ur .= "\74\142\x72\x3e\x43\x75\x72\x72\x65\156\164\x20\x56\x65\162\163\x69\157\x6e\40\111\156\163\x74\141\154\x6c\x65\144\40\x3a\x20" . $Lt . "\x3c\142\162\x3e";
if (!isset($_POST["\162\141\x74\145"])) {
goto DV;
}
$FZ = sanitize_text_field(wp_unslash($_POST["\162\x61\164\x65"]));
$Ur .= "\74\142\x72\x3e\133\122\x61\164\151\x6e\x67\40\72\40" . $FZ . "\135\x3c\x62\x72\76";
DV:
$JU = isset($_POST["\x71\165\145\x72\171\x5f\155\x61\x69\154"]) ? sanitize_email(wp_unslash($_POST["\x71\x75\145\162\x79\x5f\155\x61\x69\154"])) : '';
$zA = "\127\157\x72\144\x50\x72\145\163\x73\40\x4c\x44\101\120\57\x41\104\40\120\154\165\147\x69\x6e\40\106\145\145\x64\x62\141\143\153\x20\x28\120\162\145\x6d\151\165\155\40\x50\154\x75\x67\151\156\x29\x2d\x20" . $JU;
if (filter_var($JU, FILTER_VALIDATE_EMAIL)) {
goto vm;
}
$JU = get_option("\155\x6f\x5f\x6c\x64\141\x70\x5f\154\157\x63\141\x6c\x5f\x61\144\x6d\x69\x6e\137\x65\x6d\x61\151\154");
if (!empty($JU)) {
goto l8;
}
$JU = $user->user_email;
l8:
vm:
$pb = isset($_POST["\143\157\155\x70\x61\x6e\171"]) ? sanitize_text_field(wp_unslash($_POST["\x63\x6f\x6d\x70\x61\156\171"])) : '';
$qR = new Mo_Ldap_Local_Customer();
if (is_null($qR)) {
goto Ow;
}
$Yc = json_decode($qR->send_email_alert($zA, $JU, $Ur, $pb), true);
if (!(json_last_error() === JSON_ERROR_NONE)) {
goto Ir;
}
if (is_array($Yc) && array_key_exists("\x73\x74\141\164\165\163", $Yc) && strcasecmp($Yc["\163\x74\141\164\x75\163"], "\x45\122\122\117\122") === 0) {
goto kB;
}
if ($Yc) {
goto iK;
}
update_option("\155\157\137\x6c\144\x61\160\x5f\x6c\x6f\143\141\x6c\x5f\155\x65\163\163\141\147\145", "\x45\x72\x72\x6f\162\40\x77\150\x69\x6c\x65\40\x73\x75\x62\x6d\x69\164\164\151\x6e\x67\40\x74\150\x65\40\161\165\x65\x72\x79\x2e");
$this->show_error_message();
iK:
goto zV;
kB:
update_option("\155\x6f\x5f\154\144\141\160\x5f\154\157\143\141\x6c\137\x6d\145\x73\x73\x61\147\145", $Yc["\x6d\x65\163\x73\141\x67\145"]);
$this->show_error_message();
zV:
Ir:
deactivate_plugins(__FILE__);
update_option("\x6d\x6f\x5f\x6c\144\141\160\x5f\154\157\x63\141\154\x5f\155\x65\x73\163\x61\147\x65", "\124\150\x61\x6e\x6b\x20\171\157\x75\40\x66\x6f\x72\40\x74\150\145\x20\146\x65\145\144\142\x61\143\x6b\56");
$this->show_success_message();
wp_safe_redirect("\x70\154\165\147\151\x6e\x73\56\160\150\x70");
exit;
Ow:
ZP:
if (!(isset($_POST["\157\160\164\151\157\x6e"]) && strcasecmp($_POST["\x6f\x70\164\151\157\156"], "\x6d\x6f\x5f\154\144\x61\160\x5f\163\x6b\x69\x70\x5f\x66\145\145\144\142\x61\143\153") == 0)) {
goto o3;
}
deactivate_plugins(__FILE__);
update_option("\x6d\x6f\137\154\144\x61\160\137\154\157\x63\141\154\137\155\x65\163\x73\x61\147\145", "\x50\154\165\x67\151\156\x20\x64\145\141\x63\x74\x69\x76\x61\x74\145\144\x20\163\x75\143\143\145\163\163\146\x75\154\154\x79\56");
$this->deactivate_error_message();
o3:
}
function mo_ldap_send_query($JU, $X0, $rj)
{
if (Mo_Ldap_Local_Util::check_empty_or_null($JU) || Mo_Ldap_Local_Util::check_empty_or_null($rj)) {
goto K2;
}
$Cf = new Mo_Ldap_Local_Customer();
$Yc = json_decode($Cf->submit_contact_us($JU, $X0, $rj), true);
if (isset($Yc["\x73\164\x61\x74\165\163"]) && strcasecmp($Yc["\163\164\x61\164\165\163"], "\x43\125\122\x4c\x5f\x45\x52\x52\x4f\x52") == 0) {
goto q1;
}
if (json_last_error() == JSON_ERROR_NONE) {
goto wf;
}
goto iX;
q1:
update_option("\x6d\157\x5f\154\144\x61\x70\137\154\x6f\143\141\154\x5f\x6d\x65\x73\x73\x61\x67\145", $Yc["\163\164\141\164\x75\163\115\x65\163\163\x61\x67\x65"]);
$this->show_error_message();
goto iX;
wf:
if ($Yc == false) {
goto Zp;
}
update_option("\155\157\x5f\x6c\144\141\x70\137\x6c\157\x63\x61\154\137\x6d\x65\x73\163\x61\x67\145", "\124\150\x61\x6e\153\163\x20\146\x6f\162\x20\147\x65\x74\x74\x69\156\x67\40\151\x6e\40\164\157\x75\143\x68\41\40\x57\x65\x20\x73\x68\141\x6c\154\40\147\x65\164\40\x62\x61\x63\153\40\164\x6f\40\x79\x6f\165\x20\163\x68\x6f\162\x74\x6c\171\56");
$this->show_success_message();
goto GS;
Zp:
update_option("\155\x6f\x5f\154\x64\x61\160\137\x6c\157\143\x61\x6c\137\155\x65\x73\163\141\x67\145", "\x59\157\x75\x72\x20\161\x75\x65\x72\171\x20\143\157\165\154\x64\x20\x6e\x6f\164\x20\x62\145\40\163\x75\x62\x6d\151\164\x74\x65\144\x2e\40\120\154\145\x61\163\145\40\x74\x72\171\40\x61\147\x61\151\156\56");
$this->show_error_message();
GS:
iX:
goto dK;
K2:
update_option("\155\157\137\x6c\144\x61\x70\x5f\x6c\x6f\143\141\154\137\155\145\x73\163\x61\x67\x65", "\120\154\x65\141\163\x65\x20\163\x75\142\x6d\151\x74\40\171\x6f\165\x72\x20\161\165\x65\x72\171\x20\141\154\x6f\156\x67\40\167\x69\164\150\40\145\155\141\x69\x6c\56");
$this->show_error_message();
return;
dK:
}
function miniorange_ldap_export()
{
if (!(array_key_exists("\x6f\160\164\151\157\156", $_POST) && $_POST["\157\x70\164\151\x6f\x6e"] == "\155\157\137\154\144\x61\x70\x5f\x65\170\x70\x6f\x72\x74")) {
goto Iw;
}
$eG = get_option("\141\143\x74\x69\166\x65\x5f\x70\154\x75\x67\x69\x6e\163");
$Wn = in_array("\x64\151\x72\x65\143\x74\x6f\x72\x79\x5f\x73\x79\156\143\57\144\151\x72\x65\x63\x74\157\162\171\137\163\171\x6e\143\56\x70\150\160", $eG);
$cx = array("\104\151\x72\163\171\156\143\137\x4c\x64\141\x70\x5f\x54\x6f\137\x57\160\x5f\123\171\156\x63" => "\x6d\x6f\x5f\x6f\x70\164\151\157\x6e\x5f\154\x64\141\160\x5f\x64\x69\162\x73\171\x6e\143\x5f\154\144\141\160\137\164\157\137\x77\160\137\163\171\156\143", "\104\x69\162\163\171\156\x63\137\x57\160\x5f\x54\157\x5f\x4c\144\x61\x70\x5f\163\x79\x6e\x63" => "\155\x6f\137\157\x70\164\151\157\156\x5f\x6c\x64\141\160\x5f\144\x69\162\x73\171\x6e\x63\x5f\167\x70\x5f\x74\157\x5f\x6c\144\x61\x70\x5f\163\171\x6e\x63");
$Xl = unserialize(Tab_ldap_Class_Names);
$yw = get_option("\x6d\157\137\144\151\x72\x73\x79\x6e\x63\x5f\x6c\144\x61\x70\x5f\164\157\x5f\167\160\137\x63\x6f\x6e\x66\x69\147\x5f\x64\x6f\x6e\145");
$eN = get_option("\155\x6f\x5f\144\x69\x72\x73\171\156\x63\137\x77\160\x5f\x74\x6f\137\x6c\144\141\x70\x5f\143\x6f\x6e\x66\151\147\x5f\x64\x6f\x6e\x65");
if (!$Wn) {
goto oS;
}
if ($yw) {
goto QP;
}
if (!array_key_exists("\x44\151\x72\x73\171\156\143\x5f\x4c\x64\x61\x70\x5f\x54\157\137\x57\160\x5f\123\171\156\143", $Xl)) {
goto Ym;
}
unset($Xl["\x44\x69\162\x73\x79\x6e\143\137\114\x64\141\160\x5f\124\x6f\x5f\127\160\137\123\x79\156\143"]);
Ym:
QP:
if ($eN) {
goto Vr;
}
if (!array_key_exists("\104\151\x72\163\x79\156\143\x5f\127\x70\137\x54\157\137\114\x64\x61\x70\137\163\171\156\143", $Xl)) {
goto xO;
}
unset($Xl["\104\151\162\163\171\x6e\x63\137\127\160\x5f\x54\x6f\137\114\144\141\160\137\x73\171\156\143"]);
xO:
Vr:
goto Qs;
oS:
foreach ($cx as $lK => $I6) {
if (!array_key_exists($lK, $Xl)) {
goto hd;
}
unset($Xl[$lK]);
hd:
IG:
}
YV:
Qs:
$WR = array();
foreach ($Xl as $CY => $wV) {
$WR[$CY] = $this->mo_get_configuration_array($wV);
tS:
}
Zr:
header("\103\157\x6e\164\145\x6e\x74\x2d\104\x69\163\x70\157\x73\151\x74\x69\x6f\x6e\72\x20\141\x74\164\141\143\x68\155\145\156\x74\73\x20\x66\151\x6c\x65\156\141\x6d\x65\75\155\151\156\151\x6f\162\141\x6e\x67\145\x2d\x6c\144\141\x70\55\143\157\156\x66\151\147\56\152\x73\157\156");
echo json_encode($WR, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
exit;
Iw:
}
function mo_get_configuration_array($vh)
{
$Ap = call_user_func($vh . "\x3a\72\147\x65\164\x43\x6f\x6e\163\x74\x61\x6e\164\x73");
$ZS = get_option("\x6d\x6f\x5f\x6c\x64\x61\x70\137\x6c\x6f\143\x61\154\x5f\x72\x6f\154\x65\x5f\x6d\x61\x70\x70\x69\x6e\x67\137\143\x6f\165\x6e\164");
$iI = array();
$v8 = array();
$MI = array();
$QW = array();
foreach ($Ap as $CY => $wV) {
if ($wV == "\155\x6f\137\154\x64\141\160\x5f\154\157\143\x61\x6c\x5f\163\145\162\166\145\x72\137\165\162\x6c" or $wV == "\x6d\157\137\154\x64\x61\x70\x5f\x6c\x6f\143\x61\x6c\137\x73\x65\162\166\145\x72\x5f\x70\x61\x73\x73\x77\x6f\162\x64" or $wV == "\x6d\157\137\x6c\x64\141\x70\x5f\154\157\x63\x61\x6c\137\x73\x65\162\x76\145\x72\137\144\156" or $wV == "\x6d\157\137\154\144\141\x70\137\154\x6f\143\141\154\x5f\163\x65\x61\162\143\150\x5f\142\141\x73\x65" or $wV == "\155\x6f\137\154\x64\x61\x70\x5f\x6c\157\143\x61\154\x5f\163\145\x61\162\143\150\x5f\146\151\154\164\x65\162" or $wV == "\x6d\x6f\x5f\154\144\141\160\137\x6c\157\143\141\154\x5f\x75\163\x65\162\156\x61\155\x65\x5f\x61\x74\164\162\151\x62\x75\x74\x65") {
goto Tl;
}
$DR = 0;
goto xt;
Tl:
$DR = 1;
xt:
if ($wV == "\155\x6f\137\154\x64\141\160\137\154\157\143\141\x6c\x5f\155\141\x70\160\x69\156\147\x5f\x6b\145\171\137") {
goto jI;
}
if ($wV == "\x6d\x6f\137\154\x64\x61\x70\137\x6c\x6f\143\141\x6c\137\x6d\x61\x70\160\x69\156\147\137\166\141\x6c\x75\145\x5f") {
goto S1;
}
if ($wV == "\x6d\x6f\137\154\x64\141\160\137\154\157\143\x61\x6c\x5f\143\165\163\x74\157\155\137\141\164\164\162\x69\142\165\164\145\x5f") {
goto h6;
}
$TS = get_option($wV);
goto GJ;
jI:
$WG = unserialize(get_option("\155\x6f\x5f\154\144\141\x70\137\x6c\x6f\143\x61\x6c\137\162\x6f\154\145\137\x6d\141\x70\x70\151\x6e\147\137\153\x65\x79\137\x61\162\x72\141\x79"));
$Ms = 1;
w8:
if (!($Ms <= $ZS)) {
goto tX;
}
$v8[$Ms] = $WG[$wV . $Ms];
lv:
$Ms++;
goto w8;
tX:
$TS = $v8;
goto GJ;
S1:
$hq = unserialize(get_option("\155\157\x5f\154\144\x61\160\x5f\154\157\143\x61\x6c\137\162\157\154\145\x5f\x6d\x61\x70\160\x69\x6e\147\137\x76\141\154\165\x65\x5f\x61\162\x72\141\171"));
$Ms = 1;
rN:
if (!($Ms <= $ZS)) {
goto Da;
}
$MI[$Ms] = $hq[$wV . $Ms];
yi:
$Ms++;
goto rN;
Da:
$TS = $MI;
goto GJ;
h6:
$ps = unserialize(get_option("\155\157\137\154\144\141\x70\137\x6c\157\143\x61\x6c\137\x63\x75\x73\164\x6f\x6d\x5f\x61\164\164\162\x69\142\x75\x74\145\163"));
$Ms = 1;
foreach ($ps as $NY => $wV) {
$QW[$Ms++] = $wV;
Qm:
}
zK:
$TS = $QW;
GJ:
if (!$TS) {
goto br;
}
if (!(@unserialize(strval($TS)) !== false)) {
goto Xw;
}
$TS = unserialize(strval($TS));
Xw:
if ($DR == 1) {
goto wT;
}
if ($wV == "\x6d\x6f\x5f\154\x64\x61\160\x5f\154\x6f\x63\x61\x6c\x5f\x6f\x75\x5f\x72\x6f\154\x65\x5f\x6d\141\x70\x70\x69\156\x67\x5f\157\160\x74\x69\x6f\156\x73" || $wV == "\x6d\x6f\x5f\154\x64\141\x70\x5f\162\145\163\164\x72\x69\143\164\145\x64\137\x6c\157\147\x69\156\137\x72\x6f\154\145\x73") {
goto gN;
}
$iI[$CY] = $TS;
goto i9;
gN:
$iI[$CY] = serialize($TS);
i9:
goto wb;
wT:
if ($wV == "\155\x6f\137\154\144\x61\160\137\x6c\157\x63\x61\154\x5f\x73\145\162\x76\145\x72\x5f\x70\141\163\x73\167\x6f\x72\144" and get_option("\155\x6f\x5f\x6c\144\141\x70\x5f\145\170\x70\157\x72\164") == "\x30") {
goto fJ;
}
if ($wV == "\155\157\137\154\144\141\x70\x5f\154\157\x63\x61\154\x5f\163\x65\x72\x76\145\x72\x5f\x70\x61\163\x73\x77\157\162\x64" and get_option("\155\x6f\x5f\154\x64\141\160\x5f\145\170\160\x6f\x72\164") == "\61") {
goto d8;
}
if ($CY == "\x75\x73\145\162\x5f\141\164\x74\162") {
goto K3;
}
$iI[$CY] = Mo_Ldap_Local_Util::decrypt($TS);
goto sK;
fJ:
goto vr;
goto sK;
d8:
$iI[$CY] = $TS;
goto sK;
K3:
$iI[$CY] = $TS;
sK:
wb:
br:
vr:
}
By:
return $iI;
}
function auto_email_ldap_export()
{
$b5 = get_option("\x6d\x6f\x5f\154\144\x61\x70\137\154\157\143\x61\154\137\x64\151\162\x65\x63\164\x6f\162\x79\137\x73\x65\162\166\145\x72");
$sl = get_option("\155\157\x5f\x6c\144\x61\x70\137\x6c\157\143\x61\154\x5f\x73\x65\x72\x76\145\x72\137\165\x72\x6c") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\x5f\x6c\x64\141\x70\137\x6c\157\x63\x61\x6c\x5f\163\x65\162\x76\145\162\137\165\162\154")) : '';
$IC = get_option("\155\x6f\x5f\x6c\x64\141\160\x5f\154\157\143\x61\x6c\137\163\145\162\x76\145\162\137\144\x6e") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\157\137\x6c\x64\x61\x70\x5f\x6c\157\143\141\154\x5f\x73\145\x72\x76\145\162\137\x64\x6e")) : '';
$XC = get_option("\155\x6f\137\x6c\144\141\160\x5f\154\157\x63\x61\x6c\x5f\163\x65\141\162\x63\150\137\x62\x61\x73\x65") ? Mo_Ldap_Local_Util::decrypt(get_option("\155\157\137\154\144\x61\160\x5f\154\x6f\143\141\x6c\137\163\x65\141\x72\x63\150\137\142\141\x73\x65")) : '';
$RW = get_option("\155\x6f\137\154\144\x61\160\137\154\x6f\x63\141\x6c\x5f\163\145\x61\x72\x63\x68\x5f\x66\151\x6c\x74\145\x72") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\x5f\154\144\x61\x70\x5f\x6c\x6f\143\x61\154\x5f\163\145\141\x72\x63\150\137\x66\x69\x6c\164\x65\162")) : '';
$Kg = array("\x44\x69\x72\x65\143\x74\157\x72\x79\40\x53\x65\x72\166\145\162" => "\x44\x69\162\x65\x63\x74\157\x72\171\40\123\x65\x72\166\x65\162\x3a\40\40" . $b5, "\x4c\x44\x41\120\x20\x53\x65\162\166\x65\162" => "\114\x44\x41\120\x20\x53\145\162\x76\145\x72\x3a\x20\40" . $sl, "\x53\145\x72\166\151\143\x65\x20\101\143\143\x6f\165\156\x74\x20\x44\116" => "\x53\x65\x72\166\x69\x63\x65\40\101\x63\x63\x6f\x75\156\164\40\x44\x4e\x3a\40\x20" . $IC, "\x53\145\141\162\x63\x68\x20\102\x61\x73\x65" => "\123\x65\141\162\x63\150\40\x42\x61\x73\x65\x3a\40\x20" . $XC, "\114\104\101\120\40\123\x65\x61\162\143\x68\40\x46\x69\x6c\x74\x65\162" => "\x4c\104\101\120\40\123\145\x61\162\x63\150\40\x46\151\x6c\x74\x65\162\x3a\x20\x20" . $RW);
return $Kg;
}
function test_attribute_configuration()
{
$tx = apply_filters("\155\x6f\x5f\143\x68\145\143\x6b\137\143\157\156\x66\x69\x67", '');
if (!(is_user_logged_in() && $tx)) {
goto xH;
}
if (!(current_user_can("\x61\144\155\151\156\151\163\x74\x72\x61\164\157\162") && isset($_REQUEST["\157\160\164\151\x6f\x6e"]))) {
goto R2;
}
if ($_REQUEST["\157\x70\x74\x69\157\x6e"] == "\164\145\x73\164\141\164\164\x72\x63\157\x6e\146\x69\147") {
goto Dw;
}
if ($_REQUEST["\x6f\x70\164\151\x6f\x6e"] == "\164\145\163\164\x72\157\x6c\x65\155\141\x70\x70\x69\156\147\x63\x6f\156\x66\151\147") {
goto q7;
}
if ($_REQUEST["\157\160\164\x69\x6f\x6e"] == "\163\145\141\x72\143\x68\142\x61\x73\145\x6c\151\x73\164") {
goto Jt;
}
if ($_REQUEST["\157\x70\164\x69\x6f\x6e"] == "\x66\x65\x63\x74\150\141\164\x74\162\x69\142\165\x74\x65\163\x66\x6f\162\154\144\x61\160\x73\145\162\x76\145\x72") {
goto TU;
}
goto lO;
Dw:
$tp = $_REQUEST["\165\163\x65\x72"];
$TN = new Mo_Ldap_Local_Config();
$TN->test_attribute_configuration($tp);
goto lO;
q7:
$tp = $_REQUEST["\x75\163\145\162"];
$D7 = new Mo_Ldap_Local_Role_Mapping();
$D7->test_configuration($tp);
goto lO;
Jt:
$TN = new Mo_Ldap_Local_Config();
$TN->show_search_bases_list();
goto lO;
TU:
$b5 = get_option("\x6d\157\x5f\x6c\x64\141\x70\x5f\144\151\162\145\143\x74\157\162\x79\x5f\163\x65\x72\166\x65\x72\137\166\x61\x6c\165\145");
$PB = new DirectoryFactory();
$PB = $PB->selectDirectorySystem($b5);
$TN = new Mo_Ldap_Local_Config();
$TN->show_all_ldap_attributes($PB);
lO:
R2:
xH:
}
function save_success_customer_config($a4, $X2, $Mo, $Ur)
{
update_option("\155\x6f\x5f\154\x64\141\x70\137\154\x6f\143\x61\154\x5f\141\144\x6d\x69\156\x5f\x63\165\x73\x74\157\155\x65\x72\137\153\145\x79", $a4);
update_option("\155\x6f\x5f\x6c\144\x61\160\137\154\x6f\143\141\154\x5f\x61\144\x6d\x69\x6e\137\x61\160\151\137\x6b\x65\171", $X2);
update_option("\x6d\157\137\x6c\144\141\x70\x5f\154\x6f\143\141\x6c\x5f\143\165\163\164\157\x6d\x65\x72\137\164\157\x6b\x65\x6e", $Mo);
update_option("\x6d\x6f\x5f\154\x64\x61\x70\137\x6c\x6f\143\141\x6c\137\x70\x61\x73\x73\x77\157\x72\144", '');
update_option("\x6d\157\x5f\154\144\141\x70\137\154\157\143\141\154\137\155\145\163\x73\x61\x67\x65", $Ur);
$this->show_success_message();
}
function mo_ldap_local_settings_style()
{
wp_enqueue_style("\155\x6f\137\154\144\141\x70\137\x61\144\x6d\151\156\137\163\x65\164\x74\151\156\x67\x73\137\x73\164\x79\x6c\x65", plugins_url("\151\x6e\143\x6c\x75\x64\x65\163\57\143\163\x73\57\163\164\x79\154\x65\x5f\163\x65\x74\x74\x69\156\x67\163\56\x6d\151\156\56\143\x73\163", __FILE__), array(), "\x32\67\56\x30\x2e\x30");
wp_enqueue_style("\155\157\x5f\x6c\x64\141\x70\x5f\141\144\x6d\x69\x6e\x5f\163\145\x74\164\x69\156\147\x73\137\160\x68\x6f\156\145\137\163\x74\x79\x6c\x65", plugins_url("\x69\156\x63\x6c\x75\x64\145\163\57\143\163\163\57\160\150\x6f\x6e\x65\56\155\x69\156\56\143\163\x73", __FILE__), array(), "\x32\x37\56\60\56\x30");
wp_enqueue_style("\x6d\157\137\154\x64\x61\160\137\141\144\155\151\x6e\137\154\x64\x61\x70\x5f\x70\154\x75\x67\151\156\137\163\164\171\154\x65", plugins_url("\x69\156\x63\x6c\x75\144\145\x73\57\143\x73\x73\x2f\x6d\x6f\137\x6c\144\141\160\137\x70\x6c\165\x67\151\156\x73\137\160\x61\x67\145\56\x6d\x69\156\x2e\x63\163\163", __FILE__), array(), "\62\x37\x2e\x30\x2e\x30");
wp_enqueue_style("\x6d\157\x5f\154\144\x61\x70\137\141\144\x6d\x69\x6e\137\146\157\x6e\164\137\141\x77\x73\x6f\x6d\x65", plugins_url("\151\x6e\x63\x6c\165\144\145\x73\57\x66\x6f\156\x74\163\x2f\143\163\163\57\146\157\156\164\x2d\x61\167\145\x73\x6f\x6d\145\x2e\x6d\x69\156\56\143\163\163", __FILE__), array(), "\62\67\56\x30\x2e\60");
}
function mo_ldap_local_settings_script()
{
wp_enqueue_script("\155\157\x5f\x6c\x64\x61\x70\x5f\141\x64\155\x69\x6e\x5f\x73\x65\164\164\151\x6e\147\163\x5f\x70\150\x6f\156\145\x5f\163\x63\x72\x69\160\164", plugins_url("\x69\x6e\143\154\x75\x64\x65\x73\x2f\x6a\163\x2f\160\150\x6f\156\x65\x2e\x6a\x73", __FILE__), array(), "\x32\67\56\60\x2e\x30", false);
wp_enqueue_script("\155\157\x5f\x6c\144\x61\x70\x5f\141\144\x6d\x69\156\137\163\x65\164\164\151\156\147\163\137\x73\x63\x72\151\160\164", plugins_url("\151\156\143\x6c\x75\x64\145\x73\57\x6a\163\x2f\x73\145\x74\164\x69\156\x67\x73\x5f\x70\141\x67\145\x2e\152\x73", __FILE__), array("\152\x71\x75\145\162\x79"), "\x32\67\56\60\56\x30", false);
}
private function deactivate_error_message()
{
$Z1 = "\x65\x72\x72\157\162";
$Ur = get_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\x6c\157\143\x61\154\137\x6d\145\x73\x73\141\x67\145");
$rb = array("\141" => array("\x68\x72\145\x66" => array(), "\164\x69\164\154\x65" => array()), "\x62\x72" => array(), "\145\155" => array(), "\x73\x74\x72\157\156\x67" => array(), "\142" => array(), "\150\61" => array(), "\150\x32" => array(), "\x68\63" => array(), "\x68\64" => array(), "\x68\x35" => array(), "\x68\x36" => array(), "\151" => array());
echo "\x3c\x64\151\166\40\151\x64\x3d\47\x65\162\x72\x6f\162\47\40\x63\x6c\141\163\x73\75\47" . esc_attr($Z1) . "\x27\x3e\x20\x3c\x70\76" . wp_kses($Ur, $rb) . "\x3c\x2f\160\76\x3c\57\x64\x69\166\x3e";
}
function error_message()
{
$Z1 = "\145\162\162\157\x72";
$Ur = get_option("\155\157\x5f\x6c\x64\x61\160\x5f\x6c\157\143\x61\154\137\x6d\145\163\x73\141\147\x65");
echo "\74\x64\x69\x76\40\151\144\75\x27\x65\x72\x72\x6f\162\47\40\x63\154\x61\x73\163\75\x27" . $Z1 . "\x27\x3e\x20\x3c\x70\76" . $Ur . "\74\57\x70\76\x3c\x2f\144\151\166\x3e";
}
function success_message()
{
$Z1 = "\165\x70\x64\141\164\x65\x64";
$Ur = get_option("\x6d\x6f\137\154\x64\x61\160\x5f\x6c\x6f\143\141\x6c\137\155\145\x73\163\x61\147\145");
echo "\x3c\x64\x69\x76\40\151\x64\75\47\163\165\x63\143\x65\x73\163\47\40\143\154\141\163\x73\x3d\x27" . $Z1 . "\x27\x3e\x20\74\160\x3e" . $Ur . "\x3c\57\x70\x3e\74\57\x64\151\166\x3e";
}
function show_success_message()
{
remove_action("\x61\144\155\x69\156\x5f\156\157\x74\x69\143\145\163", array($this, "\x65\x72\x72\x6f\x72\137\x6d\145\163\163\141\x67\x65"));
add_action("\141\144\155\151\156\x5f\156\x6f\x74\151\143\x65\163", array($this, "\163\x75\143\143\x65\163\163\137\155\x65\163\163\x61\x67\x65"));
}
function show_error_message()
{
remove_action("\141\x64\x6d\151\x6e\x5f\156\x6f\164\151\143\x65\163", array($this, "\163\165\x63\x63\x65\x73\163\137\x6d\x65\163\x73\141\x67\x65"));
add_action("\x61\x64\155\x69\156\x5f\156\157\x74\151\x63\x65\x73", array($this, "\x65\x72\x72\157\x72\x5f\155\145\x73\163\x61\x67\145"));
}
function prefix_update_table()
{
global $D1;
global $wpdb;
$pF = $wpdb->get_charset_collate();
$s6 = "\x43\x52\x45\101\x54\105\40\x54\x41\x42\114\x45\x20\x69\x66\x20\156\x6f\164\x20\145\x78\151\x73\164\x73\x60{$wpdb->base_prefix}\165\x73\145\x72\137\162\145\x70\157\x72\164\x60\40\50\xa\11\11\11\x20\40\x69\144\40\x69\156\164\40\116\x4f\124\40\x4e\x55\x4c\x4c\x20\101\x55\x54\117\137\x49\x4e\x43\x52\105\115\105\116\x54\x2c\12\11\x9\x9\40\x20\x75\163\x65\162\x5f\156\x61\x6d\145\x20\166\141\162\x63\x68\141\x72\50\65\60\x29\40\116\x4f\x54\x20\x4e\x55\114\114\x2c\12\x9\11\11\40\40\x74\x69\155\x65\40\x64\x61\x74\x65\x74\x69\x6d\145\40\x44\x45\x46\101\x55\114\x54\40\x27\x30\60\x30\60\55\x30\x30\x2d\x30\x30\x20\x30\60\x3a\x30\x30\72\60\60\x27\40\116\x4f\124\40\116\x55\x4c\114\x2c\12\x9\x9\11\x20\x20\154\x64\141\160\137\x73\164\141\164\x75\163\40\x76\141\162\143\x68\141\x72\x28\62\65\60\51\x20\x4e\x4f\x54\40\x4e\x55\114\114\x2c\12\x9\x9\x9\x20\x20\154\144\x61\x70\x5f\x65\x72\162\157\x72\40\x76\x61\x72\143\150\141\162\50\x32\65\x30\51\40\x2c\xa\x9\x9\11\x20\x20\x50\x52\x49\115\x41\122\x59\x20\x4b\x45\x59\40\40\x28\151\144\51\xa\11\11\x9\51\40{$pF}\x3b";
if (!function_exists("\x64\x62\104\x65\x6c\164\141")) {
require_once ABSPATH . "\167\160\55\x61\144\155\x69\156\57\x69\156\x63\x6c\165\144\145\x73\57\x75\160\x67\x72\141\144\145\x2e\160\x68\160";
}
dbDelta($s6);
update_option("\165\163\x65\x72\x5f\154\x6f\x67\163\137\x74\141\142\x6c\x65\137\145\170\x69\163\x74\163", 1);
}
function mo_ldap_report_update($tp, $AI, $qS)
{
$bL = get_option("\x6d\157\x5f\154\x64\x61\x70\137\x6c\157\x63\x61\x6c\x5f\x75\163\145\x72\137\162\145\160\157\162\x74\137\x6c\157\147");
if (!($bL == 1)) {
goto i8;
}
global $wpdb;
$vx = $wpdb->prefix . "\165\163\x65\x72\x5f\x72\x65\160\x6f\x72\x74";
$wpdb->insert($vx, array("\x75\x73\x65\162\137\x6e\x61\155\145" => $tp, "\x74\x69\x6d\x65" => current_time("\155\x79\163\161\154"), "\x6c\x64\141\x70\x5f\x73\164\141\164\165\x73" => $AI, "\154\144\x61\160\137\x65\x72\162\x6f\162" => $qS));
i8:
}
function mo_ldap_activate()
{
update_option("\155\157\x5f\154\144\141\160\137\x6c\157\143\x61\154\137\162\145\147\151\163\x74\145\162\137\x75\x73\145\162", 1);
$TO = new DateTime("\156\157\167");
$Ib = $TO->getTimestamp();
wp_schedule_event($Ib, "\167\x65\x65\x6b\154\171", "\155\157\x5f\x6c\x64\141\160\137\154\157\143\141\154\137\165\x74\151\x6c\151\164\171\x5f\x73\171\156\x63");
Jp_hwfrqar_mzwhwzl_arvowfra::efzwoezr_mzwhwzl();
}
function mo_ldap_local_deactivate()
{
do_action("\146\x6c\165\163\x68\x63\141\143\150\145");
Jp_hwfrqar_mzwhwzl_arvowfra::jrefzwoezr_mzwhwzl();
delete_option("\x6d\x6f\137\154\144\x61\160\137\x6c\x6f\x63\141\x6c\x5f\141\144\155\151\x6e\x5f\145\155\x61\151\154");
delete_option("\155\x6f\x5f\x6c\144\141\160\x5f\154\x6f\x63\x61\154\x5f\x68\157\x73\x74\x5f\x6e\x61\x6d\x65");
delete_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\x6c\x6f\x63\141\x6c\x5f\144\145\146\141\x75\154\x74\137\x63\x6f\156\x66\x69\147");
delete_option("\x6d\157\137\154\144\x61\x70\137\x6c\x6f\143\141\x6c\x5f\160\141\x73\163\x77\x6f\162\x64");
delete_option("\x6d\x6f\137\154\x64\141\x70\137\x6c\157\143\x61\154\137\x61\144\x6d\x69\156\x5f\160\150\157\x6e\145");
delete_option("\x6d\157\x5f\x6c\144\141\x70\x5f\154\157\143\141\154\x5f\x61\144\x6d\x69\x6e\x5f\x63\165\x73\x74\x6f\x6d\145\162\x5f\153\x65\x79");
delete_option("\155\157\137\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\141\x64\x6d\151\x6e\x5f\141\x70\x69\x5f\x6b\x65\x79");
delete_option("\155\x6f\x5f\154\144\x61\160\137\x6c\157\143\x61\154\x5f\x63\165\163\x74\x6f\155\145\x72\137\164\157\x6b\145\156");
delete_option("\x6d\157\137\154\x64\x61\x70\137\154\x6f\x63\141\154\x5f\x6d\x65\x73\163\x61\x67\x65");
delete_option("\155\x6f\x5f\154\x64\x61\160\x5f\x6c\x6f\143\x61\154\x5f\x65\156\141\x62\x6c\145\x5f\x6c\x6f\147\151\156");
delete_option("\155\157\x5f\154\144\x61\x70\x5f\x6c\157\143\x61\154\137\154\151\x63\x65\156\163\145\x5f\x6b\145\x79");
delete_option("\155\x6f\137\x6c\144\x61\x70\137\154\x6f\x63\141\154\x5f\x6c\x69\143\145\x6e\163\x65\x5f\x76\145\162\151\146\151\x65\144");
delete_option("\x6d\x6f\137\x6c\144\x61\160\137\160\x6c\x75\x67\x69\x6e\137\x76\x65\x72\x73\x69\157\x6e");
delete_option("\155\x6f\137\x6c\x64\141\160\x5f\x73\x68\x6f\167\137\147\162\157\165\x70\x73");
wp_clear_scheduled_hook("\155\x6f\x5f\x6c\144\141\160\x5f\154\x6f\x63\x61\154\x5f\165\164\x69\154\151\164\x79\x5f\x73\x79\156\x63");
}
function mo_ldap_local_utility_sync()
{
$lp = !empty(get_option("\x6d\x6f\x5f\x6c\x64\141\x70\137\x6c\x6f\x63\141\154\x5f\x6c\x69\143\x65\x6e\x73\x65\137\x6b\x65\x79")) ? Mo_Ldap_Local_Util::decrypt(get_option("\155\x6f\137\x6c\x64\x61\160\x5f\154\x6f\143\141\154\137\154\x69\x63\x65\x6e\x73\145\137\x6b\x65\171")) : '';
if (empty($lp)) {
goto Wf;
}
$kS = new Mo_Ldap_Local_Customer();
$ot = json_decode($kS->XfskodsfhHJ($lp), true);
$Gk = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($ot);
Wf:
}
function update_status()
{
$ts = get_option("\155\x6f\x5f\154\144\141\x70\x5f\x6c\x6f\143\x61\x6c\137\154\x69\x63\145\156\163\x65\x5f\x6b\x65\x79");
if (empty($ts)) {
goto Sw;
}
$kS = new Mo_Ldap_Local_Customer();
$kS->mo_ldap_local_update_status();
Sw:
}
}
new Mo_Ldap_Local_Login();
Function Calls
None |
Stats
MD5 | 45e91a96960cbbcb8930fb82e6859152 |
Eval Count | 0 |
Decode Time | 187 ms |