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: 24.1
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 dirname(__FILE__) . "/includes/lib/export.php";
require_once dirname(__FILE__) . "/Directories/DirectoryFactory.php";
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")));
error_reporting(E_ERROR);
class Mo_Ldap_Local_Login
{
function __construct()
{
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"));
$SX = get_option("mo_ldap_local_enable_update_ldap");
if (!($SX == 1)) {
goto Lk;
}
add_action("profile_update", array($this, "update_profile"), 10, 2);
Lk:
$BZ = get_option("mo_ldap_plugin_version");
if (empty($BZ)) {
goto F3;
}
if (strcasecmp($BZ, "24.1") != 0) {
goto d6;
}
goto CE;
F3:
update_option("mo_ldap_plugin_version", "24.1");
goto CE;
d6:
Mo_Ldap_Local_Util::bp_hjey_hpfeh_dy_mysvejr($BZ);
update_option("mo_ldap_plugin_version", "24.1");
CE:
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"));
$R0 = get_option("mo_ldap_local_authorized_users_only");
if (!($R0 == 1)) {
goto om;
}
add_action("wp", array($this, "mo_ldap_local_login_redirect"));
om:
$ct = get_option("mo_ldap_local_enable_login");
if (!($ct == 1)) {
goto TH;
}
remove_filter("authenticate", "wp_authenticate_username_password", 20, 3);
add_filter("authenticate", array($this, "ldap_login"), 7, 3);
add_filter("login_redirect", array($this, "mo_ldap_local_custom_redirect"), 10, 3);
TH:
register_activation_hook(__FILE__, array($this, "mo_ldap_activate"));
add_action("flushcache", array($this, "update_status"), 10, 3);
add_filter("mo_check_config", array($this, "bp_srz_fpqtws_azezma"));
}
function mo_ldap_local_custom_redirect($H6, $K1, $user)
{
$Pt = get_option("mo_ldap_local_skip_redirectto_parameter");
if (array_key_exists("reauth", $_REQUEST) && $_REQUEST["reauth"] == 1) {
goto Nx;
}
if (!($Pt && $Pt == "true")) {
goto W6;
}
update_option("mo_ldap_local_skip_redirectto_parameter", "false");
return $H6;
W6:
goto yl;
Nx:
update_option("mo_ldap_local_skip_redirectto_parameter", "true");
return $H6;
yl:
$C3 = get_option("mo_ldap_local_redirect_to");
if (!(isset($user->roles) && is_array($user->roles) && $C3 != "none")) {
goto s7;
}
if (in_array("administrator", $user->roles)) {
goto P5;
}
if (!$C3) {
goto Ca;
}
if ($C3 == "homepage") {
goto O6;
}
if ($C3 == "profile") {
goto XZ;
}
if (!($C3 == "custom")) {
goto XP;
}
$GX = get_option("mo_ldap_local_custom_redirect");
$H6 = $GX;
XP:
goto n3;
XZ:
$a3 = home_url() . "/wp-admin/profile.php";
$H6 = $a3;
n3:
goto qC;
O6:
$H6 = home_url();
qC:
Ca:
goto VA;
P5:
return $H6;
VA:
s7:
return $H6;
}
function mo_ldap_local_login_redirect()
{
if (is_user_logged_in()) {
goto xO;
}
auth_redirect();
xO:
}
function bp_srz_fpqtws_azezma($D0)
{
if (!(strcasecmp(Jp_hwfrqar_mzwhwzl_arvowfra::bp_mzwhwzl_azeza($D0), "verified") == 0)) {
goto tR;
}
return true;
tR:
return false;
}
function show_user_profile($user)
{
$A7 = unserialize(get_option("mo_ldap_local_custom_attributes"));
echo " <h3>Extra profile information</h3>
\xa
\xa <table class="form-table">\xd
\xd\xa <tr>
<td><b><label for="user_dn">User DN</label></b></td>\xd\xa\xd\xa <td>
<b>";
echo esc_attr(get_the_author_meta("mo_ldap_user_dn", $user->ID));
echo "</b></td>
</td>\xd\xa </tr>
\xa ";
if (!get_the_author_meta("mo_ldap_user_phone", $user->ID)) {
goto tk;
}
echo " <tr>
<td><b><label for="user_phone">User Phone Number</label></b></td>\xd\xa
<td>
\xa <b>";
echo esc_attr(get_the_author_meta("mo_ldap_user_phone", $user->ID));
echo "</b>\xd
</td>\xd\xa </tr>
\xa ";
tk:
foreach ($A7 as $oD => $D0) {
$yj = get_user_meta($user->ID, $oD, true);
if (empty($yj)) {
goto TG;
}
echo " <tr>\xd
<td><b><font color="#FF0000"></font>";
echo $D0;
echo "</b></td>\xd\xa ";
if (is_array($yj)) {
goto P9;
}
echo "<td>";
echo "<b>" . $yj . "</b><br>";
echo "</td>";
goto Mo;
P9:
echo "<td>";
foreach ($yj as $c0) {
echo "<b>" . $c0 . "</b><br>";
E4:
}
eS:
echo "</td>";
Mo:
echo " </tr>";
TG:
TU:
}
lc:
echo " </table>\xd
\xa ";
}
function update_profile($aG, $eo = null)
{
$Re = apply_filters("mo_check_config", '');
if (!$Re) {
goto xo;
}
$A7 = unserialize(get_option("mo_ldap_local_custom_attributes"));
$sX = array();
foreach ($A7 as $oD => $D0) {
if (!isset($_POST[$D0])) {
goto UO;
}
$sX[$D0] = $_POST[$D0];
UO:
Mi:
}
mU:
$user = get_userdata($aG);
$Tg = new Mo_Ldap_Local_Config();
$Tg->modify_user_info_in_ldap($user, $sX);
xo:
}
function ldap_login($user, $Li, $Dj)
{
$Re = apply_filters("mo_check_config", '');
$G5 = get_option("active_plugins");
if (!in_array("miniorange-customize-wp-ldap-login-screen-add-on/add_login_message.php", $G5)) {
goto kr;
}
add_filter("login_message", "add_login_messages");
function add_login_messages($Ps)
{
$z4 = get_option("mo_ldap_login_messages");
foreach ($z4 as $fa) {
$Ps = $Ps . "<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: " . $fa["color"] . ";border-top: none;border-bottom: none;'><strong>" . $fa["message"] . "</strong></p>";
ah:
}
St:
$Ps = $Ps . "<br>";
return $Ps;
}
kr:
$bh = get_option("mo_ldap_enable_user_session_sync");
if ($bh && in_array("miniorange-terminate-ldap-user-session-on-password-update-add-on/terminate_ldap_user_session_sync.php", $G5)) {
goto l9;
}
$st = false;
goto S3;
l9:
$st = true;
S3:
error_log("Value for LDAP PWD sync : " . $st);
if (!(empty($Li) || empty($Dj))) {
goto t2;
}
$Fg = new WP_Error();
if (!empty($Li)) {
goto XG;
}
$Fg->add("empty_username", __("<strong>ERROR</strong>: Email field is empty."));
XG:
if (!empty($Dj)) {
goto ko;
}
$Fg->add("empty_password", __("<strong>ERROR</strong>: Password field is empty."));
ko:
return $Fg;
t2:
$Ln = get_option("mo_ldap_local_enable_both_login");
$Tg = new Mo_Ldap_Local_Config();
$T0 = $Tg->authenticate_ldap_user($Li, $Dj);
if ($T0->statusCode == "LDAP_BIND_SUCCESS_USER_EXISTS" && $Re) {
goto fH;
}
if (!empty($Ln) || !$Re) {
goto RR;
}
if ($T0->statusCode == "LDAP_CONNECTION_ERROR") {
goto VD;
}
if ($T0->statusCode == "LDAP_BIND_ERROR_USER_EXISTS") {
goto oy;
}
if ($T0->statusCode == "LDAP_EXTENSION_ERROR") {
goto io;
}
if ($T0->statusCode == "OPENSSL_EXTENSION_ERROR") {
goto MT;
}
$Fg = new WP_Error();
$Fg->add("UNKNOWN_ERROR", __("<strong>ERROR</strong>: Unknown error occurred during authetication. Please contact your administrator"));
return $Fg;
goto YO;
MT:
$this->mo_ldap_report_update($Li, $T0->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.");
$Fg = new WP_Error();
$Fg->add("OPENSSL_EXTENSION_ERROR", __("<strong>ERROR</strong>: <a target="_blank" href="http://php.net/manual/en/openssl.installation.php">PHP OpenSSL extension</a> is not installed or disabled."));
return $Fg;
YO:
goto l1;
io:
$this->mo_ldap_report_update($Li, $T0->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.");
$Fg = new WP_Error();
$Fg->add("LDAP_EXTENSION_ERROR", __("<strong>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 $Fg;
l1:
goto TO;
oy:
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Login Error:</strong> Invalid Username/Password combination.");
$Fg = new WP_Error();
$Fg->add("incorrect_credentials", __("<strong>ERROR</strong>: Invalid Username/Password combination"));
return $Fg;
TO:
goto yk;
VD:
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Login Error:</strong> LDAP server is not reachable");
$Fg = new WP_Error();
$Fg->add("incorrect_credentials", __("<strong>ERROR</strong>:LDAP server is not reachable. Fallback to local WordPress authentication is not enabled."));
return $Fg;
yk:
goto Kc;
RR:
$user = false;
if (username_exists($Li)) {
goto ZN;
}
if (!email_exists($Li)) {
goto hP;
}
$user = get_user_by("email", $Li);
hP:
goto AW;
ZN:
$user = get_user_by("login", $Li);
AW:
if ($user) {
goto sl;
}
if (!($T0->statusCode == "LDAP_CONNECTION_ERROR")) {
goto te;
}
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Login Error:</strong>LDAP server is not reachable.");
$Fg = new WP_Error();
$Fg->add("incorrect_credentials", __("<strong>ERROR</strong>: LDAP server is not reachable. Invalid username/password combination."));
return $Fg;
te:
goto R8;
sl:
if (!(!$Re && $T0->statusCode == "LDAP_BIND_SUCCESS_USER_EXISTS")) {
goto h3;
}
$VO = get_user_meta($user->ID, "mo_ldap_user_dn");
$VO = !empty($VO) ? $VO : false;
if (!($VO != false)) {
goto kl;
}
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Trial:</strong> Your Trial License has Expired");
$Fg = new WP_Error();
$Fg->add("registration_disabled_error", __("<strong>ERROR</strong>: Your miniOrange LDAP/AD Login for Intranet Sites Trial License has expired."));
return $Fg;
kl:
h3:
$lY = false;
if ($Ln == "all" || !$Re) {
goto fW;
}
if (!($Ln == "admin" && user_can($user->ID, "manage_options"))) {
goto hQ;
}
$lY = true;
hQ:
goto Lr;
fW:
$lY = true;
Lr:
if ($lY && wp_check_password($Dj, $user->data->user_pass, $user->ID)) {
goto UX;
}
if ($T0->statusCode == "LDAP_CONNECTION_ERROR") {
goto bf;
}
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Login Error:</strong> Invalid Username/Password combination");
$Fg = new WP_Error();
$Fg->add("incorrect_credentials", __("<strong>ERROR</strong>: Invalid Username/Password combination"));
return $Fg;
goto NP;
bf:
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Login Error:</strong> LDAP server is not reachable. Authentication failed against Local WordPress server.");
$Fg = new WP_Error();
$Fg->add("incorrect_credentials", __("<strong>ERROR</strong>: LDAP server is not reachable. Authentication failed against Local WordPress server."));
return $Fg;
NP:
goto DY;
UX:
return $user;
DY:
R8:
Kc:
goto Wq;
fH:
$UZ = get_option("mo_ldap_enable_ultimate_member_login");
$AU = get_option("mo_ldap_enable_ultimate_member_profile");
$XG = $T0->profileAttributesList;
$kn = $XG["mail"];
if (username_exists($Li) || email_exists($Li) || username_exists($kn) || email_exists($kn)) {
goto X6;
}
$Y3 = get_option("mo_ldap_local_register_user");
if (!$Y3) {
goto uO;
}
$y2 = get_option("mo_ldap_local_enable_fallback_login");
$ZL = wp_generate_password(10, false);
$kn = '';
$EF = '';
$xG = '';
$oF = '';
$Gy = '';
$Z9 = get_option("mo_ldap_local_enable_attr_mapping");
if (!($Z9 == 1)) {
goto ua;
}
$t3 = strtolower(get_option("mo_ldap_local_fname_attribute"));
$ui = strtolower(get_option("mo_ldap_local_lname_attribute"));
$et = strtolower(get_option("mo_ldap_local_email_attribute"));
$K7 = strtolower(get_option("mo_ldap_local_phone_attribute"));
$EN = strtolower(get_option("mo_ldap_local_nickname_attribute"));
$kn = $XG[$et];
$EF = $XG[$t3];
$xG = $XG[$ui];
$oF = $XG[$EN];
$Gy = $XG[$K7];
ua:
$z6 = array("user_login" => $Li, "user_email" => $kn, "first_name" => $EF, "last_name" => $xG, "nickname" => $oF, "user_pass" => $ZL);
if (!($Z9 == 1)) {
goto C9;
}
if (empty($oF)) {
goto PE;
}
$z6["nickname"] = $oF;
PE:
$tA = get_option("mo_ldap_local_display_name_attribute");
if (empty($tA)) {
goto YE;
}
if ($tA == "nickname" && !empty($oF)) {
goto dw;
}
if ($tA == "email") {
goto hh;
}
if ($tA == "firstname") {
goto e5;
}
if ($tA == "firstlast") {
goto Fe;
}
if (!($tA == "lastfirst")) {
goto JA;
}
$z6["display_name"] = $xG . " " . $EF;
JA:
goto Qj;
Fe:
$z6["display_name"] = $EF . " " . $xG;
Qj:
goto Gq;
e5:
$z6["display_name"] = $EF;
Gq:
goto mt;
hh:
$z6["display_name"] = $kn;
mt:
goto WW;
dw:
$z6["display_name"] = $oF;
WW:
YE:
C9:
$aG = wp_insert_user($z6);
if (!is_wp_error($aG)) {
goto kO;
}
$this->mo_ldap_report_update($Li, $T0->statusMessage, "<strong>Login Error:</strong> There was an error registering your account. Please try again.");
$Fg = new WP_Error();
$Fg->add("registration_error", __("<strong>ERROR</strong>: There was an error registering your account. Please try again."));
return $Fg;
goto lD;
kO:
$user = get_user_by("login", $Li);
if (!($st == true)) {
goto B_;
}
error_log("saving user meta key");
update_user_meta($user->ID, "mo_ldap_user_session_key", Mo_Ldap_Local_Util::encrypt($Dj));
B_:
update_user_meta($user->ID, "mo_ldap_user_dn", $T0->userDn, false);
update_user_meta($user->ID, "mo_ldap_user_phone", $Gy);
$Ja = get_option("mo_ldap_local_enable_role_mapping");
$sK = new Mo_Ldap_Local_Role_Mapping();
$GK = $sK->get_member_of_attribute($Li);
if (!($Ja == 1)) {
goto sj;
}
$sK->mo_ldap_local_update_role_mapping($user->ID, $GK);
sj:
if ($Z9 == 1) {
goto Tx;
}
$A7 = array();
goto gM;
Tx:
$A7 = $T0->extraProfileAttributesList;
gM:
if (!array_key_exists("memberof", $A7)) {
goto pF;
}
$A7["memberof"] = $GK;
pF:
foreach ($A7 as $oD => $D0) {
update_user_meta($user->ID, $oD, $D0);
U4:
}
T0:
do_action("mo_ldap_buddypress", $A7, $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, $GK);
if (!($AU == 1)) {
goto BZ;
}
delete_option("um_cache_userdata_{$user->ID}");
BZ:
if ($UZ == 1) {
goto zm;
}
return $user;
goto yR;
zm:
wp_set_auth_cookie($user->ID, false);
apply_filters("login_redirect", null, null, $user);
yR:
lD:
goto cS;
uO:
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Login Error:</strong> Your Administrator has not enabled Auto Registration. Please contact your Administrator.");
$Fg = new WP_Error();
$Fg->add("registration_disabled_error", __("<strong>ERROR</strong>: Your Administrator has not enabled Auto Registration. Please contact your Administrator."));
return $Fg;
cS:
goto VX;
X6:
$et = strtolower(get_option("mo_ldap_local_email_attribute"));
$user = false;
if (username_exists($Li)) {
goto Wg;
}
if (email_exists($Li)) {
goto AG;
}
if (!(isset($XG[$et]) && email_exists($XG[$et]))) {
goto un;
}
$user = get_user_by("email", $XG[$et]);
un:
goto P2;
AG:
$user = get_user_by("email", $Li);
P2:
goto tL;
Wg:
$user = get_user_by("login", $Li);
tL:
if ($user) {
goto hv;
}
$this->mo_ldap_report_update($Li, "ERROR", "<strong>Login Error:</strong> Invalid Username/Password combination");
goto wp;
hv:
if (!($st == true)) {
goto qj;
}
error_log("saving user meta key");
update_user_meta($user->ID, "mo_ldap_user_session_key", Mo_Ldap_Local_Util::encrypt($Dj));
qj:
$Tg->fetch_or_update_user_attributes($user, $T0);
if (!($AU == 1)) {
goto dL;
}
delete_option("um_cache_userdata_{$user->ID}");
dL:
if ($UZ == 1) {
goto NO;
}
return $user;
goto WE;
NO:
wp_set_auth_cookie($user->ID, false);
apply_filters("login_redirect", null, null, $user);
WE:
wp:
VX:
wp_redirect(site_url());
exit;
Wq:
}
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()
{
$fQ = 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", $fQ);
mo_ldap_local_settings();
}
function login_widget_save_options()
{
$Re = apply_filters("mo_check_config", '');
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_local_verify_customer") == 0) {
goto pm;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo_ldap_local_verify_license") == 0) {
goto r0;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo-check-license-button") == 0) {
goto L2;
}
if (isset($_POST["option"]) && strcasecmp($_POST["option"], "mo-change-account-button") == 0) {
goto sU;
}
goto U0;
sU:
Jp_hwfrqar_mzwhwzl_arvowfra::bp_hpspmz_fmazpbrv_mzwhwzl();
U0:
goto ev;
pm:
$kn = '';
$Dj = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["email"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["password"])) {
goto GW;
}
$kn = sanitize_email($_POST["email"]);
$Dj = sanitize_text_field($_POST["password"]);
goto j0;
GW:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
$this->show_error_message();
return;
j0:
update_option("mo_ldap_local_admin_email", $kn);
update_option("mo_ldap_local_password", $Dj);
$Z6 = new Mo_Ldap_Local_Customer();
$TA = $Z6->get_customer_key();
$cb = json_decode($TA, true);
if (strcasecmp($cb["status"], "SUCCESS") == 0) {
goto GQ;
}
if (strcasecmp($cb["status"], "ERROR") == 0) {
goto ma;
}
update_option("mo_ldap_local_message", "Invalid username or password. Please try again.");
$this->show_error_message();
goto EK;
GQ:
update_option("mo_ldap_local_admin_phone", $cb["phone"]);
$this->save_success_customer_config($cb["id"], $cb["apiKey"], $cb["token"], "Your account has been retrieved successfully.");
update_option("mo_ldap_local_password", '');
goto EK;
ma:
update_option("mo_ldap_local_message", $cb["statusMessage"]);
$this->show_error_message();
EK:
update_option("mo_ldap_local_password", '');
goto ev;
r0:
if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["mo_ldap_local_license_key"])) {
goto vP;
}
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid license key.");
$this->show_error_message();
return;
vP:
$eX = trim($_POST["mo_ldap_local_license_key"]);
$Z6 = new Mo_Ldap_Local_Customer();
$TA = json_decode($Z6->XfskodsfhHJ($eX), true);
/*if (isset($TA["status"]) && $TA["isTrial"] == true) {
goto Gb;
}*/
//if (isset($TA["status"]) && strcasecmp($TA["status"], "SUCCESS") == 0) {
goto zP;
//}
/*if (isset($TA["status"]) && strcasecmp($TA["status"], "FAILED") == 0) {
goto m5;
}
update_option("mo_ldap_local_message", "An error occured while processing your request. Please Try again.");
$this->show_error_message();*/
goto gE;
m5:
if (isset($TA["status"]) && strcasecmp($TA["message"], "Code has Expired") == 0) {
goto XI;
}
update_option("mo_ldap_local_message", "You have entered an invalid license key. Please enter a valid license key.");
goto KI;
XI:
$iX = 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="" . $iX . "">Click here</a> to buy more.");
KI:
$this->show_error_message();
gE:
goto Uu;
zP:
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($eX));
update_option("mo_ldap_local_message", "Your license is verified. You can now setup the plugin.");
$this->show_success_message();
Uu:
goto Vh;
Gb:
$Vt = Jp_hwfrqar_mzwhwzl_arvowfra::bp_efzwoezr_zvweh_hwfrqar($TA, $eX);
update_option("mo_ldap_local_message", $Vt["displayMsg"]);
if ($Vt["trialStatus"]) {
goto lj;
}
$this->show_error_message();
goto qP;
lj:
$this->show_success_message();
qP:
Vh:
goto ev;
L2:
$eX = Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_license_key"));
$Z6 = new Mo_Ldap_Local_Customer();
$TA = json_decode($Z6->XfskodsfhHJ($eX), true);
$xc = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($TA);
update_option("mo_ldap_local_message", $xc);
$this->show_success_message();
ev:
if (!(isset($_POST["option"]) && $Re)) {
goto Az;
}
$oM = $_POST["option"];
switch ($oM) {
case "mo_ldap_local_save_config":
if (NddKoYsdasadJD()) {
goto yn;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto HO;
yn:
$AJ = isset($_POST["anonymous_bind"]) ? 1 : 0;
update_option("mo_ldap_local_anonymous_bind", $AJ);
$QE = '';
$gq = '';
$TX = '';
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 Mr;
}
$NT = $_POST["mo_ldap_protocol"];
$y0 = sanitize_text_field($_POST["mo_ldap_server_port_no"]);
$kZ = sanitize_text_field($_POST["ldap_server"]);
$QE = $NT . "://" . $kZ . ":" . $y0;
$gq = sanitize_text_field($_POST["dn"]);
$TX = sanitize_text_field($_POST["admin_password"]);
goto oG;
Mr:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
$this->show_error_message();
return;
oG:
if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) {
goto G0;
}
$Le = $_POST["mo_ldap_directory_server_value"];
if (strcasecmp($Le, "other") == 0) {
goto Mq;
}
delete_option("mo_ldap_directory_server_custom_value");
goto PM;
Mq:
$No = 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", $No);
PM:
update_option("mo_ldap_directory_server_value", $Le);
update_option("mo_ldap_local_ldap_protocol", $NT);
update_option("mo_ldap_local_ldap_server_address", Mo_Ldap_Local_Util::encrypt($kZ));
if ($NT == "ldap") {
goto QS;
}
if (!($NT == "ldaps")) {
goto OU;
}
update_option("mo_ldap_local_ldaps_port_number", $y0);
OU:
goto I7;
QS:
update_option("mo_ldap_local_ldap_port_number", $y0);
I7:
update_option("mo_ldap_local_server_url", Mo_Ldap_Local_Util::encrypt($QE));
update_option("mo_ldap_local_server_dn", Mo_Ldap_Local_Util::encrypt($gq));
update_option("mo_ldap_local_server_password", Mo_Ldap_Local_Util::encrypt($TX));
$Tg = new Mo_Ldap_Local_Config();
$Ps = "Your configuration has been saved.";
$Y1 = $Tg->test_connection();
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_BIND_SUCCESSFUL") == 0) {
goto RS;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_BIND_ERROR") == 0) {
goto IY;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_CONNECTION_ERROR") == 0) {
goto DH;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_EXTENSION_ERROR") == 0) {
goto PB;
}
if (!(isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "OPENSSL_EXTENSION_ERROR") == 0)) {
goto aT;
}
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
aT:
goto mc;
PB:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
mc:
goto Sk;
DH:
$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", $Y1->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
Sk:
goto hH;
IY:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "false");
$this->show_error_message();
hH:
goto R0;
RS:
update_option("mo_ldap_local_message", " Connection was established successfully. " . $Ps . " Please configure LDAP User Mapping now.", '', "no");
update_option("mo_ldap_local_verify_ldap_connection", "true");
$this->show_success_message();
R0:
goto m6;
G0:
update_option("mo_ldap_local_message", "PHP OpenSSL extension is not installed or disabled. Please enable it first.");
$this->show_error_message();
m6:
HO:
goto Fa;
case "mo_ldap_local_ping_server":
update_option("mo_ldap_local_anonymous_bind", isset($_POST["anonymous_bind"]) ? $_POST["anonymous_bind"] : 0);
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["ldap_server"])) {
goto Pf;
}
$QE = sanitize_text_field($_POST["ldap_server"]);
update_option("mo_ldap_local_server_url", Mo_Ldap_Local_Util::encrypt($QE));
Pf:
$Qq = sanitize_text_field($_POST["ldap_server"]);
$Tg = new Mo_Ldap_Local_Config();
$Y1 = $Tg->check_anonymous_bind($Qq);
if (strcasecmp($Y1->statusCode, "LDAP_EXTENSION_ERROR") == 0) {
goto M7;
}
if (strcasecmp($Y1->statusCode, "OPENSSL_EXTENSION_ERROR") == 0) {
goto X5;
}
if (!(strcasecmp($Y1->statusCode, "LDAP_CONNECTION_ERROR") == 0)) {
goto Cy;
}
$pZ = str_replace("ldap://", '', $Qq);
$pZ = str_replace("ldaps://", '', $pZ);
$r5 = explode(":", $pZ);
if (!isset($r5[0])) {
goto cz;
}
$pZ = $r5[0];
cz:
$eM = "Error connecting to LDAP Server. Please check your LDAP server URL <b>" . $Qq . "</b>.<br>Possible reasons -<br>1. LDAP URL is typed incorrectly. Type it properly, either with IP address or with fully qualified domain name. Both should work. Eg. <b>ldap://58.64.132.235:389</b> or <b>ldap://ldap.miniorange.com:389</b>.<br>2. LDAP server is unreachable - Open a command prompt and see if you are able to ping the your LDAP server (e.g. type this command on a command prompt <b>ping " . $pZ . "</b>. If ping is successful then only 'contact ldap server' will work.<br>3. There is a <b>firewall</b> in between - if there is a firewall, please open the firewall to allow incoming requests to your LDAP from your WordPress IP and port 389.";
update_option("mo_ldap_local_message", $eM, '', "no");
$this->show_error_message();
Cy:
goto J2;
X5:
update_option("mo_ldap_local_message", "OpenSSL Extension is disabled: " . $Y1->statusMessage, '', "no");
$this->show_error_message();
J2:
goto q2;
M7:
update_option("mo_ldap_local_message", "LDAP Extension is disabled: " . $Y1->statusMessage, '', "no");
$this->show_error_message();
q2:
goto Fa;
case "mo_ldap_local_tls_enable":
$IC = isset($_POST["mo_ldap_local_tls_enable"]) ? $_POST["mo_ldap_local_tls_enable"] : 0;
update_option("mo_ldap_local_use_tls", $IC);
if ($IC == 1) {
goto az;
}
update_option("mo_ldap_local_message", "TLS has been disabled.");
$this->show_error_message();
goto ph;
az:
update_option("mo_ldap_local_message", "TLS has been enabled.");
$this->show_success_message();
ph:
goto Fa;
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);
$qU = '';
$Ia = '';
$Dm = '';
$GD = [];
$wP = [];
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["search_base"])) {
goto Ag;
}
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 Fo;
}
$Ia = strtolower(sanitize_text_field($_POST["search_base"]));
goto IP;
Fo:
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;
IP:
goto Yn;
Ag:
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;
Yn:
if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) {
goto Jf;
}
$Dm = sanitize_text_field($_POST["search_filter"]);
$Dk = sanitize_text_field($_POST["user_attribute_text"]);
$jJ = sanitize_text_field($_POST["extra_user_attribute"]);
if (!isset($Dk)) {
goto Wo;
}
foreach ($_POST["user_attribute_text"] as $jA => $D0) {
$GD[$jA] = $D0;
GS:
}
Rt:
Wo:
update_option("mo_ldap_local_search_filter", Mo_Ldap_Local_Util::encrypt($Dm));
update_option("mo_ldap_local_username_attribute", $GD);
update_option("mo_ldap_local_extra_user_attribute", $jJ);
update_option("mo_ldap_local_search_base", Mo_Ldap_Local_Util::encrypt($Ia));
$Ps = "LDAP User Mapping Configuration has been saved. Please test authentication to verify LDAP User Mapping Configuration.";
update_option("mo_ldap_local_message", $Ps, '', "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 Yh;
Jf:
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();
Yh:
goto Fa;
case "mo_ldap_local_test_auth":
if (NddKoYsdasadJD()) {
goto kb;
}
update_option("mo_ldap_local_message", "Settings can't be tested without verifying your license key.");
$this->show_error_message();
goto tA;
kb:
$QE = get_option("mo_ldap_local_server_url");
$gq = get_option("mo_ldap_local_server_dn");
$TX = get_option("mo_ldap_local_server_password");
$Ia = get_option("mo_ldap_local_search_base");
$GD = get_option("mo_ldap_local_username_attribute");
$Dm = get_option("mo_ldap_local_search_filter");
$iB = '';
$qx = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_username"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_password"])) {
goto Vl;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($QE) || Mo_Ldap_Local_Util::check_empty_or_null($gq) || Mo_Ldap_Local_Util::check_empty_or_null($TX) || Mo_Ldap_Local_Util::check_empty_or_null($Ia) || Mo_Ldap_Local_Util::check_empty_or_null($GD) || Mo_Ldap_Local_Util::check_empty_or_null($Dm)) {
goto G_;
}
$iB = sanitize_text_field($_POST["test_username"]);
$qx = sanitize_text_field($_POST["test_password"]);
goto x0;
G_:
$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;
x0:
goto mz;
Vl:
$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;
mz:
$Tg = new Mo_Ldap_Local_Config();
$Y1 = $Tg->test_authentication($iB, $qx);
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_BIND_SUCCESS_USER_EXISTS") == 0) {
goto X2;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_CONNECTION_ERROR") == 0) {
goto kZ;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_BIND_ERROR_USER_EXISTS") == 0) {
goto TL;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_BIND_ERROR") == 0) {
goto S8;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_USER_NOT_EXIST") == 0) {
goto vZ;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_USER_SEARCH_ERROR") == 0) {
goto Pe;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_EXTENSION_ERROR") == 0) {
goto jx;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "OPENSSL_EXTENSION_ERROR") == 0) {
goto KG;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "LDAP_LOCAL_SERVER_NOT_CONFIGURED") == 0) {
goto VR;
}
$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 PP;
VR:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
$this->show_error_message();
PP:
goto c7;
KG:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
$this->show_error_message();
c7:
goto uD;
jx:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
$this->show_error_message();
uD:
goto QU;
Pe:
$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", $Y1->statusMessage, '', "no");
$this->show_error_message();
QU:
goto df;
vZ:
$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", $Y1->statusMessage, '', "no");
$this->show_error_message();
df:
goto tB;
S8:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
$this->show_error_message();
tB:
goto k8;
TL:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
$this->show_error_message();
k8:
goto i9;
kZ:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Y1->statusMessage);
update_option("mo_ldap_local_message", $Y1->statusMessage, '', "no");
$this->show_error_message();
i9:
goto q4;
X2:
$tM = add_query_arg(array("tab" => "rolemapping"), $_SERVER["REQUEST_URI"]);
$Ps = "You have successfully configured your LDAP settings.<br>
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="" . $tM . "">Click here</a>)";
update_option("mo_ldap_local_message", $Ps, '', "no");
$this->show_success_message();
q4:
tA:
goto Fa;
case "mo_ldap_local_enable":
if (NddKoYsdasadJD()) {
goto I8;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto qx;
I8:
$ct = isset($_POST["enable_ldap_login"]) ? $_POST["enable_ldap_login"] : 0;
update_option("mo_ldap_local_enable_login", $ct);
if ($ct == 1) {
goto gQ;
}
update_option("mo_ldap_local_message", "Login through your LDAP has been disabled.");
$this->show_error_message();
goto Bh;
gQ:
update_option("mo_ldap_local_message", "Login through your LDAP has been enabled.");
$this->show_success_message();
Bh:
qx:
goto Fa;
case "mo_ldap_local_enable_both_login":
$Fj = isset($_POST["mo_ldap_local_enable_both_login"]) ? $_POST["mo_ldap_local_enable_both_login"] : '';
update_option("mo_ldap_local_enable_both_login", $Fj);
if ($Fj == "admin") {
goto OZ;
}
if ($Fj == "all") {
goto r2;
}
update_option("mo_ldap_local_message", "Login using Local WordPress Credentials is <b>disabled</b>.");
$this->show_error_message();
goto Sf;
r2:
update_option("mo_ldap_local_message", "Login using Local WordPress Credentials for <b>All Users</b> is enabled.");
$this->show_success_message();
Sf:
goto qQ;
OZ:
update_option("mo_ldap_local_message", "Login using Local WordPress Credentials for <b>Administrators</b> is enabled.");
$this->show_success_message();
qQ:
goto Fa;
case "mo_ldap_local_save_login_redirect":
$FB = $_POST["redirect_to"];
update_option("mo_ldap_local_redirect_to", $FB);
if ($FB == "profile") {
goto od;
}
if (!($FB == "homepage")) {
goto re;
}
update_option("mo_ldap_local_message", "Users will get redirected to Home Page after login.");
re:
goto LQ;
od:
update_option("mo_ldap_local_message", "Users will get redirected to Profile Page after login.");
LQ:
if ($FB != "custom" && $FB !== "none") {
goto fb;
}
if (!($FB == "none")) {
goto dK;
}
update_option("mo_ldap_local_message", "Redirection after login is disabled.");
$this->show_error_message();
dK:
goto jp;
fb:
$this->show_success_message();
jp:
goto Fa;
case "mo_ldap_local_custom_redirect":
$GX = $_POST["mo_ldap_local_custom_url"];
update_option("mo_ldap_local_custom_redirect", $GX);
update_option("mo_ldap_local_message", "Users will get redirected to custom redirect URL after login.");
$this->show_success_message();
goto Fa;
case "mo_ldap_local_register_user":
if (NddKoYsdasadJD()) {
goto d_;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto JV;
d_:
$NE = isset($_POST["mo_ldap_local_register_user"]) ? $_POST["mo_ldap_local_register_user"] : 0;
update_option("mo_ldap_local_register_user", $NE);
if ($NE == 1) {
goto es;
}
update_option("mo_ldap_local_message", "Auto Registering users has been disabled.");
$this->show_error_message();
goto jC;
es:
update_option("mo_ldap_local_message", "Auto Registering users has been enabled.");
$this->show_success_message();
jC:
JV:
goto Fa;
case "mo_ldap_local_authorized_users_only":
if (NddKoYsdasadJD()) {
goto zK;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto BM;
zK:
$Gm = isset($_POST["authorized_users_only"]) ? $_POST["authorized_users_only"] : 0;
update_option("mo_ldap_local_authorized_users_only", $Gm);
if ($Gm == 1) {
goto RA;
}
update_option("mo_ldap_local_message", "Protect Content by Login disabled.");
$this->show_error_message();
goto O2;
RA:
update_option("mo_ldap_local_message", "Protect Content by Login enabled.");
$this->show_success_message();
O2:
BM:
goto Fa;
case "mo_ldap_fetch_groups_list":
if (!isset($_REQUEST["mo_ldap_groups_search_base"])) {
goto Ia;
}
$qf = trim($_REQUEST["mo_ldap_groups_search_base"]);
Ia:
update_option("mo_ldap_local_groups_search_base", Mo_Ldap_Local_Util::encrypt($qf));
goto Fa;
case "mo_ldap_local_save_mapping":
$ji = array();
$OP = array();
$wP = array();
$qp = 1;
$vC = 0;
$sV = $_POST["mapping_key_" . $qp];
m8:
if (!isset($sV)) {
goto Dk;
}
if (empty($sV)) {
goto xU;
}
$dz = $_POST["selected_for_save_role_mapping_" . $qp];
if (!($dz == "true")) {
goto Vw;
}
$vC++;
$Kn = $_POST["mapping_group_name_" . $qp];
$wP[$vC] = $Kn;
$ji["mo_ldap_local_mapping_key_" . $vC] = trim($sV);
$OP["mo_ldap_local_mapping_value_" . $vC] = $_POST["mapping_value_" . $qp];
Vw:
xU:
$qp++;
$sV = $_POST["mapping_key_" . $qp];
goto m8;
Dk:
update_option("mo_ldap_local_role_mapping_key_array", serialize($ji));
update_option("mo_ldap_local_role_mapping_value_array", serialize($OP));
update_option("mo_ldap_local_role_mapping_group_names", serialize($wP));
update_option("mo_ldap_local_role_mapping_count", $vC);
if (!isset($_POST["mapping_value_default"])) {
goto eQ;
}
update_option("mo_ldap_local_mapping_value_default", $_POST["mapping_value_default"]);
eQ:
if (!isset($_POST["mapping_memberof_attribute"])) {
goto TJ;
}
update_option("mo_ldap_local_mapping_memberof_attribute", $_POST["mapping_memberof_attribute"]);
TJ:
$ci = '';
$Q6 = get_option("mo_ldap_local_mapping_value_default");
$Ja = get_option("mo_ldap_local_enable_role_mapping");
if (!$Q6) {
goto PL;
}
if (!($Ja == 0)) {
goto tc;
}
$ci = " Please check <b>"Enable Role Mapping"</b> to activate it.";
tc:
goto y7;
PL:
$ci = " Please select the Default Role and then check <b>"Enable Role Mapping"</b> to activate it.";
y7:
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been updated." . $ci);
$this->show_success_message();
goto Fa;
case "mo_ldap_local_enable_role_mapping":
$Ja = isset($_POST["enable_ldap_role_mapping"]) ? $_POST["enable_ldap_role_mapping"] : 0;
update_option("mo_ldap_local_enable_role_mapping", $Ja);
if ($Ja == 1) {
goto Cb;
}
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been disabled.");
$this->show_error_message();
goto JF;
Cb:
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been enabled.");
$this->show_success_message();
JF:
goto Fa;
case "mo_ldap_local_keep_existing_user_roles":
$NA = isset($_POST["keep_existing_user_roles"]) ? $_POST["keep_existing_user_roles"] : 0;
update_option("mo_ldap_local_keep_existing_user_roles", $NA);
if ($NA == 1) {
goto ye;
}
update_option("mo_ldap_local_message", "WP Roles of Existing users will be updated.");
$this->show_error_message();
goto XM;
ye:
update_option("mo_ldap_local_message", "WP Roles of Existing users will not be removed.");
$this->show_success_message();
XM:
goto Fa;
case "mo_ldap_fetch_recursive_groups_enable":
$E_ = isset($_POST["fetch_recursive_groups"]) ? $_POST["fetch_recursive_groups"] : 0;
update_option("mo_ldap_fetch_recursive_groups_enable", $E_);
if ($E_) {
goto h6;
}
update_option("mo_ldap_local_message", "Nested groups from the LDAP associated with the user will not be fetched.");
$this->show_error_message();
goto z1;
h6:
update_option("mo_ldap_local_message", "Nested groups from the LDAP associated with the user will be fetched.");
$this->show_success_message();
z1:
goto Fa;
case "mo_ldap_save_default_role":
if (!isset($_POST["mapping_value_default"])) {
goto qf;
}
update_option("mo_ldap_local_mapping_value_default", $_POST["mapping_value_default"]);
qf:
goto Fa;
case "mo_ldap_enable_attribute_mapping":
$Z9 = isset($_POST["mo_ldap_local_enable_attr_mapping"]) ? 1 : 0;
update_option("mo_ldap_local_enable_attr_mapping", $Z9);
if ($Z9 == 1) {
goto nQ;
}
update_option("mo_ldap_local_message", "LDAP Attribute Mapping Disabled");
$this->show_error_message();
goto yA;
nQ:
update_option("mo_ldap_local_message", "LDAP Attribute Mapping Enabled");
$this->show_success_message();
yA:
goto Fa;
case "mo_ldap_enable_updating_ldap":
$LT = isset($_POST["enable_update_ldap"]) ? 1 : 0;
update_option("mo_ldap_local_enable_update_ldap", $LT);
if ($LT == 1) {
goto F8;
}
update_option("mo_ldap_local_message", "Disabled updating information in LDAP when user edits profile");
$this->show_error_message();
goto SJ;
F8:
update_option("mo_ldap_local_message", "Enabled updating information in LDAP when user edits profile");
$this->show_success_message();
SJ:
goto Fa;
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");
$et = sanitize_text_field($_POST["mo_ldap_email_attribute"]);
$K7 = sanitize_text_field($_POST["mo_ldap_phone_attribute"]);
$t3 = sanitize_text_field($_POST["mo_ldap_fname_attribute"]);
$ui = sanitize_text_field($_POST["mo_ldap_lname_attribute"]);
$EN = sanitize_text_field($_POST["mo_ldap_nickname_attribute"]);
$tA = sanitize_text_field($_POST["mo_ldap_display_name_attribute"]);
update_option("mo_ldap_local_email_attribute", $et);
update_option("mo_ldap_local_phone_attribute", $K7);
update_option("mo_ldap_local_fname_attribute", $t3);
update_option("mo_ldap_local_lname_attribute", $ui);
update_option("mo_ldap_local_nickname_attribute", $EN);
update_option("mo_ldap_local_display_name_attribute", $tA);
$A7 = unserialize(get_option("mo_ldap_local_custom_attributes"));
if (!Mo_Ldap_Local_Util::check_empty_or_null($A7)) {
goto c0;
}
$A7 = array();
c0:
$yN = 1;
$Ey = $_POST["mo_ldap_local_custom_attribute_" . $yN . "_name"];
WR:
if (!isset($Ey)) {
goto is;
}
if (empty($Ey)) {
goto R2;
}
if (!(strpos($Ey, " ") !== false)) {
goto Fk;
}
$Ey = str_replace(" ", '', $Ey);
Fk:
$GY = "mo_ldap_local_custom_attribute_" . strtolower(sanitize_text_field($Ey));
$A7[$GY] = $Ey;
R2:
$yN++;
$Ey = $_POST["mo_ldap_local_custom_attribute_" . $yN . "_name"];
goto WR;
is:
if (empty($A7)) {
goto AI;
}
update_option("mo_ldap_local_custom_attributes", serialize(array_unique($A7)));
AI:
update_option("mo_ldap_local_message", "Successfully saved LDAP Attribute Configuration");
$this->show_success_message();
goto Fa;
case "mo_ldap_delete_custom_attribute":
$ks = strtolower(sanitize_text_field($_POST["custom_attribute_name"]));
$BL = "mo_ldap_local_custom_attribute_" . $ks;
$S_ = unserialize(get_option("mo_ldap_local_custom_attributes"));
unset($S_[$BL]);
if (!is_plugin_active("miniorange-ldap-third-party-integration-add-on/ldap-attributes-to-custom-usermeta.php")) {
goto my;
}
$jB = get_option("mo_ldap_attribute_usermeta_mapping");
foreach ($jB as $dv => $bt) {
if (!(strcasecmp($ks, $bt) == 0)) {
goto zb;
}
unset($jB[$dv]);
update_option("mo_ldap_attribute_usermeta_mapping", $jB);
goto Hv;
zb:
Xo:
}
Hv:
my:
update_option("mo_ldap_local_custom_attributes", serialize(array_unique($S_)));
do_action("mo_ldap_buddypress_update_attribute_mapping", $ks);
update_option("mo_ldap_local_message", "Successfully delete custom attribute: <b>" . $ks . "</b>");
$this->show_success_message();
goto Fa;
case "user_report_logs":
$fE = get_option("user_logs_table_exists");
$Sm = isset($_POST["mo_ldap_local_user_report_log"]) ? $_POST["mo_ldap_local_user_report_log"] : 0;
update_option("mo_ldap_local_user_report_log", $Sm);
if (!($Sm == 1 && $fE != 1)) {
goto vD;
}
$this->prefix_update_table();
vD:
goto Fa;
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 Fa;
case "mo_ldap_pass":
$q1 = isset($_POST["enable_ldap_login"]) ? 1 : 0;
update_option("mo_ldap_export", $q1);
if ($q1 == 1) {
goto zj;
}
update_option("mo_ldap_local_message", "Service account password will not be exported.");
$this->show_error_message();
goto mf;
zj:
update_option("mo_ldap_local_message", "Service account password will be exported in encrypted fashion");
$this->show_success_message();
mf:
goto Fa;
case "mo_ldap_export":
$Qq = get_option("mo_ldap_local_server_url");
if (!empty($Qq)) {
goto CH;
}
update_option("mo_ldap_local_message", "LDAP Configuration not set. Please configure LDAP Connection settings.");
$this->show_error_message();
goto T1;
CH:
$this->miniorange_ldap_export();
T1:
goto Fa;
case "mo_ldap_import":
$X9 = $_FILES["mo_ldap_import_file"]["name"];
$sU = $_FILES["mo_ldap_import_file"]["size"];
$ao = $_FILES["mo_ldap_import_file"]["tmp_name"];
$A2 = $_FILES["mo_ldap_import_file"]["type"];
$tz = strtolower(pathinfo($X9, PATHINFO_EXTENSION));
if ($tz == "json") {
goto Tw;
}
update_option("mo_ldap_local_message", "Incorrect file uploaded! Please upload the file that was exported from this plugin");
$this->show_error_message();
goto tT;
Tw:
$iO = file_get_contents($ao);
$Mo = json_decode($iO, true);
error_log("Started importing uploaded configurations");
if (array_key_exists("ldap_Login", $Mo) || array_key_exists("ldap_config", $Mo) || array_key_exists("Role_Mapping", $Mo) || array_key_exists("Attribute_Mapping", $Mo) || array_key_exists("Dirsync_Ldap_To_Wp_Sync", $Mo) || array_key_exists("Dirsync_Wp_To_Ldap_sync", $Mo)) {
goto sZ;
}
update_option("mo_ldap_local_message", "Incorrect file uploaded! Please upload the file that was exported from this plugin");
$this->show_error_message();
goto Eu;
sZ:
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");
$Fr = unserialize(Tab_ldap_Class_Names);
$b0 = $Mo["plugin_version"]["plugin_version"];
foreach ($Mo as $QT => $jZ) {
$X5 = call_user_func($Fr[$QT] . "::getConstants");
foreach ($X5 as $jA => $pK) {
if (!array_key_exists($jA, $jZ)) {
goto sO;
}
if (!($jA == "mapping_count")) {
goto Sl;
}
$NU = $jZ[$jA];
Sl:
if ($jA == "Role_mapping_key") {
goto Sv;
}
if ($jA == "Role_mapped_value") {
goto L3;
}
if ($jA == "Role_mapping_key_array") {
goto pP;
}
if ($jA == "Role_mapping_value_array") {
goto uh;
}
if ($jA == "Role_mapping_group_names") {
goto Uq;
}
if ($jA == "custom_attribute_name") {
goto xE;
}
$D0 = !empty(sanitize_text_field($jZ[$jA])) ? sanitize_text_field($jZ[$jA]) : $jZ[$jA];
if (!($pK == "mo_ldap_local_server_url" or $pK == "mo_ldap_local_server_dn" or $pK == "mo_ldap_local_search_base" or $pK == "mo_ldap_local_search_filter" or $pK == "mo_ldap_local_username_attribute")) {
goto pq;
}
if ($pK == "mo_ldap_local_username_attribute") {
goto YI;
}
$D0 = Mo_Ldap_Local_Util::encrypt($D0);
goto LJ;
YI:
if (!empty($b0)) {
goto Fm;
}
$VK = explode(";", $D0);
$rz = array("samaccountname", "mail", "userprincipalname", "uid", "cn");
$D0 = array();
$Z2 = '';
foreach ($VK as $jA => $ad) {
if (in_array(strtolower($ad), $rz)) {
goto Gn;
}
$Z2 = $Z2 . "," . strtolower($ad);
goto Py;
Gn:
array_push($D0, strtolower($ad));
Py:
Aw:
}
hc:
if (!($Z2 != '')) {
goto yf;
}
$Z2 = trim($Z2, ",");
update_option("mo_ldap_local_extra_user_attribute", $Z2);
array_push($D0, "extraUserAttribute");
yf:
Fm:
LJ:
pq:
update_option($pK, $D0);
goto CO;
xE:
$yN = sizeof($jZ[$jA]);
$HI = array();
$RA = 1;
Qn:
if (!($RA <= $yN)) {
goto Dv;
}
$D0 = sanitize_text_field($jZ[$jA][$RA]);
$HI["mo_ldap_local_custom_attribute_" . $D0] = $D0;
x2:
$RA++;
goto Qn;
Dv:
update_option("mo_ldap_local_custom_attributes", serialize(array_unique($HI)));
CO:
goto Rz;
Uq:
update_option("mo_ldap_local_role_mapping_group_names", serialize($jZ["Role_mapping_group_names"]));
Rz:
goto b0;
uh:
update_option("mo_ldap_local_role_mapping_value_array", serialize($jZ["Role_mapping_value_array"]));
b0:
goto GD;
pP:
update_option("mo_ldap_local_role_mapping_key_array", serialize($jZ["Role_mapping_key_array"]));
GD:
goto xZ;
L3:
if (!empty($b0)) {
goto am;
}
$p_ = array();
$RA = 1;
dt:
if (!($RA <= $NU)) {
goto pb;
}
$D0 = sanitize_text_field($jZ[$jA][$RA]);
$p_[$pK . $RA] = $D0;
Er:
$RA++;
goto dt;
pb:
update_option("mo_ldap_local_role_mapping_value_raw_array", $p_);
am:
xZ:
goto V9;
Sv:
if (!empty($b0)) {
goto v_;
}
$m8 = array();
$RA = 1;
mS:
if (!($RA <= $NU)) {
goto s4;
}
$D0 = sanitize_text_field($jZ[$jA][$RA]);
$m8[$pK . $RA] = $D0;
uJ:
$RA++;
goto mS;
s4:
update_option("mo_ldap_local_role_mapping_key_raw_array", $m8);
v_:
V9:
sO:
FE:
}
D2:
OA:
}
d1:
if (!empty($b0)) {
goto WK;
}
error_log("Importing changes for Version 23.0 and below");
$D_ = Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_url"));
$fB = "/[:]/";
$D_ = str_replace("//", '', $D_);
$Gf = preg_split($fB, $D_);
update_option("mo_ldap_local_ldap_protocol", $Gf[0]);
update_option("mo_ldap_local_ldap_server_address", Mo_Ldap_Local_Util::encrypt($Gf[1]));
update_option("mo_ldap_local_ldap_port_number", $Gf[2]);
$c8 = get_option("mo_ldap_local_role_mapping_key_raw_array");
$wZ = 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");
$rA = array();
$RA = 1;
jK:
if (!($RA <= $NU)) {
goto YR;
}
if (empty($rA[$c8["mo_ldap_local_mapping_key_" . $RA]])) {
goto jN;
}
$ey = $rA[$c8["mo_ldap_local_mapping_key_" . $RA]];
array_push($ey, $wZ["mo_ldap_local_mapping_value_" . $RA]);
$rA[$c8["mo_ldap_local_mapping_key_" . $RA]] = $ey;
goto rX;
jN:
$rA[$c8["mo_ldap_local_mapping_key_" . $RA]] = array($wZ["mo_ldap_local_mapping_value_" . $RA]);
rX:
fJ:
$RA++;
goto jK;
YR:
$Mt = count($rA);
update_option("mo_ldap_local_role_mapping_count", $Mt);
$mf = array();
$dm = array();
$s9 = array();
$RA = 1;
$sF = "/[=,]/";
foreach ($rA as $jA => $D0) {
$mf["mo_ldap_local_mapping_key_" . $RA] = $jA;
$dm["mo_ldap_local_mapping_value_" . $RA] = $D0;
$uD = preg_split($sF, $jA);
$s9[$RA] = $uD[1];
$RA++;
ac:
}
Um:
update_option("mo_ldap_local_role_mapping_key_array", serialize($mf));
update_option("mo_ldap_local_role_mapping_value_array", serialize($dm));
update_option("mo_ldap_local_role_mapping_group_names", serialize($s9));
WK:
$DE = get_option("mo_ldap_local_username_attribute");
if (!empty($DE)) {
goto qk;
}
update_option("mo_local_filter_check", 1);
qk:
update_option("mo_ldap_local_message", "The file was imported successfully");
$this->show_success_message();
Eu:
tT:
goto Fa;
case "mo_ldap_local_login_send_query":
$q2 = sanitize_text_field($_POST["query"]);
$kn = sanitize_text_field($_POST["query_email"]);
$Gy = sanitize_text_field($_POST["query_phone"]);
$q2 = "[WP LDAP for Intranet (Premium single site)]: " . $q2;
$this->mo_ldap_send_query($kn, $Gy, $q2);
goto Fa;
case "mo_ldap_login_send_query":
$kn = sanitize_text_field($_POST["inner_form_email_id"]);
$Gy = sanitize_text_field($_POST["inner_form_phone_id"]);
$q2 = sanitize_text_field($_POST["inner_form_query_id"]);
$xD = get_option("mo_ldap_directory_server_value");
if (strcasecmp($xD, "msad") == 0) {
goto ZE;
}
if (strcasecmp($xD, "openldap") == 0) {
goto MX;
}
if (strcasecmp($xD, "freeipa") == 0) {
goto Ox;
}
if (strcasecmp($xD, "jumpcloud") == 0) {
goto A9;
}
if (strcasecmp($xD, "other") == 0) {
goto n4;
}
$xD = "Not Configured";
goto zd;
ZE:
$xD = "Microsoft Active Directory";
goto zd;
MX:
$xD = "OpenLDAP";
goto zd;
Ox:
$xD = "FreeIPA";
goto zd;
A9:
$xD = "JumpCloud";
goto zd;
n4:
$xD = get_option("mo_ldap_directory_server_custom_value");
zd:
update_option("mo_ldap_local_directory_server", $xD);
$cN = $_POST["export_configuration_choice"];
if ($cN == "yes") {
goto eE;
}
if ($cN == "no") {
goto K_;
}
goto ch;
eE:
$nC = $this->auto_email_ldap_export();
$nC = implode(" <br>", $nC);
$q2 = $q2 . " ,<br><br>Plugin Configuration:<br> " . $nC;
goto ch;
K_:
$nC = "Configuration was not uploaded by user";
$q2 = $q2 . " ,<br><br>Plugin Configuration:<br> " . $nC;
ch:
$q2 = "[WP LDAP for Intranet (Premium single site)]: " . $q2;
$this->mo_ldap_send_query($kn, $Gy, $q2);
goto Fa;
case "mo_ldap_login_send_feature_request_query":
$kn = sanitize_text_field($_POST["query_email"]);
$Gy = sanitize_text_field($_POST["query_phone"]);
$q2 = sanitize_text_field($_POST["query"]);
$q2 = "[WP LDAP for Intranet (Premium single site)]: " . $q2;
$this->mo_ldap_send_query($kn, $Gy, $q2);
goto Fa;
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 Fa;
}
Oy:
Fa:
Az:
}
function mo_ldap_send_query($kn, $Gy, $q2)
{
if (Mo_Ldap_Local_Util::check_empty_or_null($kn) || Mo_Ldap_Local_Util::check_empty_or_null($q2)) {
goto H0;
}
$f4 = new Mo_Ldap_Local_Customer();
$vF = json_decode($f4->submit_contact_us($kn, $Gy, $q2), true);
if (isset($vF["status"]) && strcasecmp($vF["status"], "CURL_ERROR") == 0) {
goto uM;
}
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto Lq;
}
if ($vF == false) {
goto Je;
}
update_option("mo_ldap_local_message", "Thanks for getting in touch! We shall get back to you shortly.");
$this->show_success_message();
goto JW;
Je:
update_option("mo_ldap_local_message", "Your query could not be submitted. Please try again.");
$this->show_error_message();
JW:
Lq:
goto k2;
uM:
update_option("mo_ldap_local_message", $vF["statusMessage"]);
$this->show_error_message();
k2:
goto Pw;
H0:
update_option("mo_ldap_local_message", "Please submit your query along with email.");
$this->show_error_message();
return;
Pw:
}
function miniorange_ldap_export()
{
if (!(array_key_exists("option", $_POST) && $_POST["option"] == "mo_ldap_export")) {
goto wA;
}
$Qg = get_option("active_plugins");
$KB = in_array("directory_sync/directory_sync.php", $Qg);
$vj = 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");
$Fr = unserialize(Tab_ldap_Class_Names);
$QU = get_option("mo_dirsync_ldap_to_wp_config_done");
$ch = get_option("mo_dirsync_wp_to_ldap_config_done");
if (!$KB) {
goto Zr;
}
if ($QU) {
goto bi;
}
if (!array_key_exists("Dirsync_Ldap_To_Wp_Sync", $Fr)) {
goto dD;
}
unset($Fr["Dirsync_Ldap_To_Wp_Sync"]);
dD:
bi:
if ($ch) {
goto Hg;
}
if (!array_key_exists("Dirsync_Wp_To_Ldap_sync", $Fr)) {
goto hG;
}
unset($Fr["Dirsync_Wp_To_Ldap_sync"]);
hG:
Hg:
goto MN;
Zr:
foreach ($vj as $mK => $pK) {
if (!array_key_exists($mK, $Fr)) {
goto Aa;
}
unset($Fr[$mK]);
Aa:
oI:
}
uQ:
MN:
$Mo = array();
foreach ($Fr as $jA => $D0) {
$Mo[$jA] = $this->mo_get_configuration_array($D0);
Mw:
}
rn:
header("Content-Disposition: attachment; filename=miniorange-ldap-config.json");
echo json_encode($Mo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
exit;
wA:
}
function mo_get_configuration_array($xy)
{
$X5 = call_user_func($xy . "::getConstants");
$NU = get_option("mo_ldap_local_role_mapping_count");
$zK = array();
$CE = array();
$Gj = array();
$Ck = array();
foreach ($X5 as $jA => $D0) {
if ($D0 == "mo_ldap_local_server_url" or $D0 == "mo_ldap_local_server_password" or $D0 == "mo_ldap_local_server_dn" or $D0 == "mo_ldap_local_search_base" or $D0 == "mo_ldap_local_search_filter" or $D0 == "mo_ldap_local_username_attribute") {
goto Bn;
}
$i8 = 0;
goto qN;
Bn:
$i8 = 1;
qN:
if ($D0 == "mo_ldap_local_mapping_key_") {
goto ND;
}
if ($D0 == "mo_ldap_local_mapping_value_") {
goto Q4;
}
if ($D0 == "mo_ldap_local_custom_attribute_") {
goto jL;
}
$lC = get_option($D0);
goto jv;
ND:
$iw = unserialize(get_option("mo_ldap_local_role_mapping_key_array"));
$RA = 1;
vs:
if (!($RA <= $NU)) {
goto Up;
}
$CE[$RA] = $iw[$D0 . $RA];
SB:
$RA++;
goto vs;
Up:
$lC = $CE;
goto jv;
Q4:
$E5 = unserialize(get_option("mo_ldap_local_role_mapping_value_array"));
$RA = 1;
LR:
if (!($RA <= $NU)) {
goto aq;
}
$Gj[$RA] = $E5[$D0 . $RA];
u9:
$RA++;
goto LR;
aq:
$lC = $Gj;
goto jv;
jL:
$A7 = unserialize(get_option("mo_ldap_local_custom_attributes"));
$RA = 1;
foreach ($A7 as $oD => $D0) {
$Ck[$RA++] = $D0;
cX:
}
Eh:
$lC = $Ck;
jv:
if (!$lC) {
goto AK;
}
if (!(@unserialize(strval($lC)) !== false)) {
goto el;
}
$lC = unserialize(strval($lC));
el:
if ($i8 == 1) {
goto NF;
}
$zK[$jA] = $lC;
goto z0;
NF:
if ($D0 == "mo_ldap_local_server_password" and get_option("mo_ldap_export") == "0") {
goto hF;
}
if ($D0 == "mo_ldap_local_server_password" and get_option("mo_ldap_export") == "1") {
goto GM;
}
if ($jA == "user_attr") {
goto i5;
}
$zK[$jA] = Mo_Ldap_Local_Util::decrypt($lC);
goto lb;
i5:
$zK[$jA] = $lC;
lb:
goto Ui;
GM:
$zK[$jA] = $lC;
Ui:
goto GL;
hF:
goto ij;
GL:
z0:
AK:
ij:
}
oh:
return $zK;
}
function auto_email_ldap_export()
{
$Le = get_option("mo_ldap_local_directory_server");
$QE = get_option("mo_ldap_local_server_url") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_url")) : '';
$gq = get_option("mo_ldap_local_server_dn") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_dn")) : '';
$Ia = get_option("mo_ldap_local_search_base") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_base")) : '';
$Dm = get_option("mo_ldap_local_search_filter") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_filter")) : '';
$nC = array("Directory Server" => "Directory Server: " . $Le, "LDAP Server" => "LDAP Server: " . $QE, "Service Account DN" => "Service Account DN: " . $gq, "Search Base" => "Search Base: " . $Ia, "LDAP Search Filter" => "LDAP Search Filter: " . $Dm);
return $nC;
}
function test_attribute_configuration()
{
$Re = apply_filters("mo_check_config", '');
if (!(is_user_logged_in() && $Re)) {
goto Lj;
}
if (!(current_user_can("administrator") && isset($_REQUEST["option"]))) {
goto tt;
}
if ($_REQUEST["option"] == "testattrconfig") {
goto zq;
}
if ($_REQUEST["option"] == "testrolemappingconfig") {
goto uA;
}
if ($_REQUEST["option"] == "searchbaselist") {
goto nP;
}
if (!($_REQUEST["option"] == "fecthattributesforldapserver")) {
goto kR;
}
$Le = get_option("mo_ldap_directory_server_value");
$Kb = new DirectoryFactory();
$Kb = $Kb->selectDirectorySystem($Le);
$Tg = new Mo_Ldap_Local_Config();
$Tg->show_all_ldap_attributes($Kb);
kR:
goto ZK;
nP:
$Tg = new Mo_Ldap_Local_Config();
$Tg->show_search_bases_list();
ZK:
goto In;
uA:
$Li = $_REQUEST["user"];
$sK = new Mo_Ldap_Local_Role_Mapping();
$sK->test_configuration($Li);
In:
goto E1;
zq:
$Li = $_REQUEST["user"];
$Tg = new Mo_Ldap_Local_Config();
$Tg->test_attribute_configuration($Li);
E1:
tt:
Lj:
}
function save_success_customer_config($ty, $A1, $wi, $Ps)
{
update_option("mo_ldap_local_admin_customer_key", $ty);
update_option("mo_ldap_local_admin_api_key", $A1);
update_option("mo_ldap_local_customer_token", $wi);
update_option("mo_ldap_local_password", '');
update_option("mo_ldap_local_message", $Ps);
$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__));
wp_enqueue_style("mo_ldap_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__));
wp_enqueue_style("mo_ldap_admin_ldap_plugin_style", plugins_url("includes/css/mo_ldap_plugins_page.min.css", __FILE__));
wp_enqueue_style("mo_ldap_admin_font_awsome", plugins_url("includes/css/font-awesome.min.css", __FILE__));
}
function mo_ldap_local_settings_script()
{
wp_enqueue_script("mo_ldap_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__));
wp_enqueue_script("mo_ldap_admin_settings_script", plugins_url("includes/js/settings_page.js", __FILE__), array("jquery"));
}
function error_message()
{
$wJ = "error";
$Ps = get_option("mo_ldap_local_message");
echo "<div id='error' class='" . $wJ . "'> <p>" . $Ps . "</p></div>";
}
function success_message()
{
$wJ = "updated";
$Ps = get_option("mo_ldap_local_message");
echo "<div id='success' class='" . $wJ . "'> <p>" . $Ps . "</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 $vQ;
global $wpdb;
$xT = $wpdb->get_charset_collate();
$m6 = "CREATE TABLE if not exists`{$wpdb->base_prefix}user_report` (\xd\xa\x9\x9\x9 id int NOT NULL AUTO_INCREMENT,
\xa\x9\x9\x9 user_name varchar(50) NOT NULL,
\x9 time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\xd\xa\x9 Ldap_status varchar(250) NOT NULL,\xd
Ldap_error varchar(250) ,\xd
\x9 \x9 PRIMARY KEY (id)\xd\xa\x9\x9\x9) {$xT};";
if (!function_exists("dbDelta")) {
require_once ABSPATH . "wp-admin/includes/upgrade.php";
}
dbDelta($m6);
update_option("user_logs_table_exists", 1);
}
function mo_ldap_report_update($Li, $QQ, $dJ)
{
$qe = get_option("mo_ldap_local_user_report_log");
if (!($qe == 1)) {
goto o0;
}
global $wpdb;
$rF = $wpdb->prefix . "user_report";
$zA = $wpdb->get_row("SELECT id FROM {$rF} WHERE user_name ='" . $Li . "'");
$wpdb->insert($rF, array("user_name" => $Li, "time" => current_time("mysql"), "Ldap_status" => $QQ, "Ldap_error" => $dJ));
o0:
}
function mo_ldap_activate()
{
update_option("mo_ldap_local_host_name", "https://login.xecurify.com");
update_option("mo_ldap_local_register_user", 1);
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");
}
function update_status()
{
$Tv = get_option("mo_ldap_local_license_key");
if (empty($Tv)) {
goto FA;
}
$Z6 = new Mo_Ldap_Local_Customer();
$Z6->mo_ldap_local_update_status();
FA:
}
}
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: 24.1
Author URI: http://miniorange.com
*/
require_once "\x6d\x6f\x5f\154\144\x61\160\137\160\141\x67\145\x73\x2e\x70\x68\160";
require "\155\x6f\x5f\154\x64\x61\160\137\x73\165\160\160\x6f\x72\x74\x2e\160\x68\x70";
require "\143\x6c\x61\x73\x73\55\x6d\x6f\x2d\x6c\x64\x61\160\55\x63\x75\x73\x74\x6f\x6d\x65\x72\55\x73\x65\164\165\160\x2e\x70\150\x70";
require "\143\154\x61\163\x73\x2d\155\x6f\55\154\x64\x61\160\55\165\x74\x69\x6c\151\x74\x79\x2e\x70\x68\160";
require "\x63\x6c\141\x73\x73\55\x6d\x6f\55\154\x64\141\160\55\x63\157\x6e\146\151\x67\x2e\160\x68\x70";
require "\143\154\141\x73\163\x2d\155\x6f\x2d\154\144\x61\x70\55\162\157\x6c\145\55\155\141\160\160\151\x6e\x67\x2e\160\150\x70";
require "\x6d\157\x5f\154\144\x61\160\x5f\154\151\143\145\156\x73\x69\x6e\147\x5f\160\x6c\141\x6e\x73\56\160\x68\x70";
require_once "\x6d\157\x2d\x75\x74\151\154\151\x74\171\55\x66\x72\x61\155\x65\x77\157\162\153\56\x70\150\x70";
require_once dirname(__FILE__) . "\57\151\156\x63\x6c\165\x64\145\x73\x2f\154\151\x62\57\x65\170\x70\x6f\x72\164\x2e\x70\150\x70";
require_once dirname(__FILE__) . "\x2f\x44\151\x72\x65\143\x74\157\162\x69\x65\x73\x2f\x44\151\162\145\143\x74\157\162\x79\x46\x61\x63\164\x6f\162\171\56\x70\150\160";
define("\x54\141\142\x5f\x6c\x64\141\160\137\x43\x6c\x61\x73\x73\x5f\x4e\141\x6d\x65\163", serialize(array("\x6c\x64\x61\160\137\x4c\x6f\147\x69\156" => "\155\157\x5f\x6f\160\x74\x69\157\x6e\x73\x5f\154\x64\x61\160\137\x61\143\143\x5f\x64\145\164\x61\151\x6c\x73", "\x6c\144\141\x70\137\143\x6f\x6e\x66\151\147" => "\155\157\x5f\157\x70\x74\151\x6f\156\x73\137\x6c\144\141\160\137\143\x6f\x6e\146\151\147\x5f\144\145\x74\x61\151\154\163", "\x52\x6f\x6c\x65\x5f\x4d\x61\x70\x70\x69\x6e\x67" => "\x6d\157\x5f\157\160\x74\151\157\156\x5f\154\x64\x61\160\137\162\x6f\154\145\x5f\x6d\x61\160\x70\x69\156\x67", "\101\x74\164\x72\151\142\x75\x74\145\x5f\x4d\141\160\x70\x69\156\147" => "\155\157\137\x6f\160\x74\151\157\x6e\x73\137\x6c\144\x61\x70\x5f\145\x6e\x75\x6d\x5f\141\x74\x74\162\151\x62\x75\164\145\137\155\x61\160\x70\x69\156\147", "\104\151\162\163\171\x6e\143\137\114\x64\x61\x70\x5f\x54\157\x5f\127\x70\x5f\123\171\156\143" => "\x6d\157\x5f\157\x70\164\151\157\x6e\x5f\x6c\144\141\x70\137\144\x69\x72\x73\x79\x6e\x63\137\x6c\144\141\160\137\x74\x6f\x5f\x77\160\137\163\171\x6e\x63", "\x44\151\x72\x73\171\x6e\x63\137\127\160\x5f\x54\x6f\137\x4c\144\x61\160\137\x73\x79\156\143" => "\155\157\x5f\x6f\x70\x74\x69\157\156\x5f\x6c\x64\141\160\x5f\144\151\x72\x73\171\x6e\x63\137\167\160\137\164\157\137\154\x64\141\160\x5f\x73\171\156\x63", "\160\x6c\165\x67\151\156\x5f\166\x65\162\163\151\x6f\x6e" => "\155\157\137\160\x6c\x75\147\x69\156\x5f\151\x6e\146\x6f")));
error_reporting(E_ERROR);
class Mo_Ldap_Local_Login
{
function __construct()
{
add_action("\x61\144\x6d\151\156\x5f\155\x65\156\x75", array($this, "\x6d\157\137\154\144\141\160\x5f\154\157\143\141\154\x5f\x6c\157\147\x69\x6e\x5f\x77\151\144\x67\145\x74\137\155\145\156\x75"));
add_action("\x61\x64\x6d\x69\156\x5f\151\156\x69\164", array($this, "\x6c\157\x67\x69\156\x5f\x77\151\x64\x67\145\x74\137\163\141\x76\x65\x5f\157\x70\164\x69\157\156\163"));
add_action("\151\x6e\151\x74", array($this, "\x74\145\x73\164\x5f\x61\x74\164\x72\x69\x62\x75\x74\145\x5f\143\157\x6e\146\151\x67\x75\x72\x61\x74\x69\157\x6e"));
add_action("\x61\x64\x6d\151\x6e\137\145\x6e\161\165\x65\165\x65\137\163\143\162\x69\160\x74\x73", array($this, "\155\157\137\x6c\x64\x61\x70\x5f\154\x6f\x63\x61\x6c\x5f\x73\145\x74\164\151\156\147\x73\x5f\163\x74\x79\154\x65"));
add_action("\141\144\x6d\x69\x6e\x5f\145\156\x71\x75\145\x75\x65\x5f\163\143\x72\x69\160\x74\163", array($this, "\x6d\157\x5f\x6c\x64\141\160\x5f\x6c\x6f\143\x61\154\x5f\x73\145\164\x74\151\156\x67\x73\137\x73\143\x72\x69\160\164"));
$SX = get_option("\x6d\x6f\137\154\x64\x61\x70\x5f\x6c\157\x63\x61\x6c\x5f\145\156\x61\x62\154\x65\x5f\165\x70\144\141\x74\x65\137\x6c\144\x61\x70");
if (!($SX == 1)) {
goto Lk;
}
add_action("\160\x72\x6f\x66\151\154\145\x5f\165\x70\x64\x61\164\145", array($this, "\x75\160\x64\141\x74\x65\x5f\160\x72\x6f\146\x69\x6c\145"), 10, 2);
Lk:
$BZ = get_option("\x6d\x6f\137\154\x64\x61\x70\x5f\x70\x6c\x75\147\151\156\x5f\x76\145\x72\x73\x69\x6f\x6e");
if (empty($BZ)) {
goto F3;
}
if (strcasecmp($BZ, "\62\x34\56\x31") != 0) {
goto d6;
}
goto CE;
F3:
update_option("\155\x6f\137\154\144\141\x70\137\160\x6c\165\147\x69\156\137\166\145\x72\163\x69\157\x6e", "\x32\64\56\x31");
goto CE;
d6:
Mo_Ldap_Local_Util::bp_hjey_hpfeh_dy_mysvejr($BZ);
update_option("\x6d\157\137\154\x64\141\x70\137\160\x6c\165\x67\x69\x6e\x5f\x76\x65\162\163\151\x6f\x6e", "\x32\64\56\x31");
CE:
remove_action("\x61\144\155\151\156\x5f\156\x6f\164\x69\x63\x65\163", array($this, "\x73\x75\143\143\x65\x73\163\x5f\155\145\163\x73\141\x67\145"));
remove_action("\141\144\155\x69\156\x5f\x6e\x6f\164\x69\143\145\163", array($this, "\145\162\162\x6f\162\x5f\x6d\145\163\x73\x61\147\145"));
register_deactivation_hook(__FILE__, array($this, "\x6d\157\137\x6c\144\141\x70\x5f\x6c\157\x63\141\154\137\x64\145\141\143\164\x69\x76\141\x74\145"));
add_action("\163\150\157\x77\137\x75\163\145\162\x5f\160\162\157\146\x69\x6c\145", array($this, "\x73\x68\x6f\167\137\165\x73\x65\162\137\x70\x72\157\146\x69\x6c\x65"));
$R0 = get_option("\155\x6f\x5f\154\144\141\160\x5f\154\x6f\143\x61\x6c\137\x61\x75\x74\x68\157\x72\151\172\145\x64\137\x75\x73\x65\x72\163\x5f\x6f\x6e\154\x79");
if (!($R0 == 1)) {
goto om;
}
add_action("\167\x70", array($this, "\x6d\157\137\154\144\x61\x70\x5f\x6c\x6f\143\x61\154\137\x6c\157\147\x69\x6e\x5f\x72\x65\144\151\x72\x65\143\164"));
om:
$ct = get_option("\155\x6f\137\154\144\141\160\x5f\x6c\x6f\143\x61\x6c\x5f\x65\156\141\142\x6c\x65\137\154\157\x67\x69\156");
if (!($ct == 1)) {
goto TH;
}
remove_filter("\141\x75\164\150\145\156\x74\151\143\141\x74\145", "\167\x70\137\x61\x75\x74\x68\x65\x6e\x74\151\x63\141\164\x65\x5f\165\x73\145\x72\x6e\x61\155\x65\137\160\141\163\x73\167\157\x72\144", 20, 3);
add_filter("\x61\165\x74\150\145\x6e\164\x69\x63\x61\x74\145", array($this, "\x6c\144\141\160\x5f\x6c\x6f\147\x69\x6e"), 7, 3);
add_filter("\x6c\157\x67\151\156\x5f\x72\x65\x64\x69\x72\145\143\164", array($this, "\155\x6f\137\154\x64\x61\x70\137\154\x6f\x63\x61\154\137\x63\x75\x73\x74\157\x6d\x5f\162\x65\144\x69\162\145\143\x74"), 10, 3);
TH:
register_activation_hook(__FILE__, array($this, "\155\157\x5f\154\x64\x61\x70\x5f\x61\143\x74\151\166\x61\164\x65"));
add_action("\x66\154\x75\163\x68\143\x61\x63\150\145", array($this, "\165\x70\144\x61\x74\145\x5f\163\164\141\x74\165\163"), 10, 3);
add_filter("\x6d\157\137\x63\x68\x65\x63\153\x5f\143\x6f\156\146\151\x67", array($this, "\x62\x70\x5f\x73\x72\x7a\137\146\160\x71\164\167\163\x5f\141\x7a\145\172\x6d\x61"));
}
function mo_ldap_local_custom_redirect($H6, $K1, $user)
{
$Pt = get_option("\x6d\x6f\x5f\x6c\x64\x61\160\x5f\154\157\143\141\x6c\137\163\153\x69\160\x5f\162\x65\144\151\162\145\x63\164\x74\x6f\x5f\x70\141\x72\141\155\x65\x74\145\x72");
if (array_key_exists("\162\145\x61\165\164\x68", $_REQUEST) && $_REQUEST["\x72\145\x61\x75\x74\x68"] == 1) {
goto Nx;
}
if (!($Pt && $Pt == "\164\x72\x75\145")) {
goto W6;
}
update_option("\155\x6f\x5f\x6c\144\x61\160\137\154\157\x63\141\154\137\x73\153\x69\x70\x5f\162\x65\x64\x69\162\145\143\164\x74\157\137\x70\141\x72\x61\155\145\164\x65\x72", "\146\141\154\163\x65");
return $H6;
W6:
goto yl;
Nx:
update_option("\x6d\x6f\137\154\144\141\x70\x5f\154\x6f\143\x61\x6c\137\163\x6b\x69\160\137\162\x65\x64\151\162\x65\x63\164\x74\x6f\137\160\x61\x72\141\155\x65\164\145\x72", "\164\162\x75\x65");
return $H6;
yl:
$C3 = get_option("\155\157\137\x6c\144\x61\x70\x5f\x6c\157\x63\141\x6c\x5f\x72\x65\144\151\162\x65\x63\x74\137\164\x6f");
if (!(isset($user->roles) && is_array($user->roles) && $C3 != "\156\x6f\x6e\145")) {
goto s7;
}
if (in_array("\x61\x64\155\151\x6e\x69\163\x74\162\141\164\157\162", $user->roles)) {
goto P5;
}
if (!$C3) {
goto Ca;
}
if ($C3 == "\x68\x6f\x6d\145\x70\141\x67\x65") {
goto O6;
}
if ($C3 == "\x70\162\157\x66\x69\154\x65") {
goto XZ;
}
if (!($C3 == "\143\x75\163\x74\x6f\155")) {
goto XP;
}
$GX = get_option("\155\157\x5f\x6c\x64\141\x70\137\154\x6f\x63\x61\x6c\x5f\143\165\x73\164\x6f\155\x5f\x72\145\x64\x69\162\145\x63\164");
$H6 = $GX;
XP:
goto n3;
XZ:
$a3 = home_url() . "\57\x77\x70\55\141\144\x6d\151\156\57\x70\x72\x6f\x66\x69\x6c\145\56\x70\150\160";
$H6 = $a3;
n3:
goto qC;
O6:
$H6 = home_url();
qC:
Ca:
goto VA;
P5:
return $H6;
VA:
s7:
return $H6;
}
function mo_ldap_local_login_redirect()
{
if (is_user_logged_in()) {
goto xO;
}
auth_redirect();
xO:
}
function bp_srz_fpqtws_azezma($D0)
{
if (!(strcasecmp(Jp_hwfrqar_mzwhwzl_arvowfra::bp_mzwhwzl_azeza($D0), "\166\145\162\151\x66\x69\145\x64") == 0)) {
goto tR;
}
return true;
tR:
return false;
}
function show_user_profile($user)
{
$A7 = unserialize(get_option("\x6d\x6f\137\x6c\x64\x61\x70\137\x6c\157\143\141\x6c\x5f\x63\165\x73\x74\x6f\x6d\137\141\164\164\162\151\142\165\x74\x65\x73"));
echo "\40\40\x20\40\40\40\40\x20\x3c\150\63\76\x45\x78\x74\162\x61\40\160\x72\157\146\x69\x6c\x65\40\x69\156\146\x6f\162\x6d\141\164\x69\157\x6e\74\57\150\63\x3e\15\xa\15\xa\40\40\40\x20\40\40\40\x20\74\x74\141\x62\x6c\x65\x20\143\154\141\163\x73\75\x22\146\x6f\x72\155\55\164\141\x62\x6c\x65\42\76\xd\12\xd\xa\40\40\40\40\40\40\40\x20\40\x20\x20\x20\74\164\x72\76\15\12\x20\x20\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\40\74\164\x64\x3e\x3c\x62\76\x3c\x6c\x61\x62\x65\154\x20\x66\x6f\162\75\x22\x75\163\x65\162\137\x64\x6e\42\76\125\163\145\x72\x20\104\x4e\74\57\154\141\x62\145\x6c\76\x3c\57\x62\76\74\x2f\164\x64\x3e\xd\xa\xd\xa\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\74\164\144\x3e\15\12\x20\40\40\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\40\40\40\40\x20\x3c\x62\x3e";
echo esc_attr(get_the_author_meta("\155\157\137\154\144\141\160\x5f\x75\163\x65\x72\x5f\144\x6e", $user->ID));
echo "\74\57\142\x3e\x3c\x2f\x74\x64\76\15\12\40\40\40\x20\40\x20\40\x20\40\40\40\40\40\40\x20\x20\x3c\57\x74\144\x3e\xd\xa\x20\40\40\40\x20\40\40\40\40\40\40\x20\x3c\x2f\164\162\76\15\xa\40\x20\40\x20\40\x20\40\40\40\40\40\40";
if (!get_the_author_meta("\x6d\157\x5f\154\x64\141\160\137\165\163\145\x72\x5f\160\x68\x6f\x6e\x65", $user->ID)) {
goto tk;
}
echo "\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\40\x3c\x74\x72\76\15\12\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x3c\x74\144\x3e\74\142\x3e\x3c\x6c\x61\x62\145\154\40\x66\x6f\x72\75\42\x75\163\145\x72\137\x70\x68\x6f\x6e\145\42\x3e\x55\x73\145\x72\40\120\150\157\x6e\x65\x20\116\165\x6d\x62\145\162\x3c\57\154\x61\142\x65\x6c\76\74\x2f\142\76\74\57\x74\144\76\xd\xa\15\12\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\40\x20\40\40\x20\40\40\x3c\164\144\x3e\15\xa\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\40\74\142\x3e";
echo esc_attr(get_the_author_meta("\x6d\157\x5f\x6c\144\x61\160\137\x75\x73\145\162\x5f\x70\x68\x6f\156\x65", $user->ID));
echo "\x3c\57\142\x3e\xd\12\x20\40\40\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x3c\57\164\x64\76\xd\xa\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\40\40\40\x20\x20\74\x2f\164\162\76\15\xa\x20\40\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\40";
tk:
foreach ($A7 as $oD => $D0) {
$yj = get_user_meta($user->ID, $oD, true);
if (empty($yj)) {
goto TG;
}
echo "\40\x20\x20\40\x20\40\40\40\40\40\40\x20\40\x20\x20\x20\x20\40\x20\x20\x3c\164\162\x3e\xd\12\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\40\x3c\164\x64\x3e\74\x62\76\x3c\146\x6f\x6e\164\40\143\157\x6c\157\162\75\42\x23\106\106\x30\60\x30\x30\x22\x3e\74\57\146\x6f\156\164\76";
echo $D0;
echo "\x3c\x2f\x62\76\74\x2f\x74\144\76\xd\xa\40\40\40\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40";
if (is_array($yj)) {
goto P9;
}
echo "\x3c\164\144\x3e";
echo "\x3c\142\x3e" . $yj . "\74\x2f\142\x3e\x3c\x62\162\x3e";
echo "\74\57\164\144\x3e";
goto Mo;
P9:
echo "\74\x74\144\x3e";
foreach ($yj as $c0) {
echo "\x3c\142\76" . $c0 . "\74\x2f\x62\x3e\74\142\x72\x3e";
E4:
}
eS:
echo "\x3c\x2f\164\144\x3e";
Mo:
echo "\40\40\x20\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\40\40\40\x3c\x2f\164\x72\76";
TG:
TU:
}
lc:
echo "\x20\40\40\40\40\x20\x20\x20\x3c\57\x74\141\142\154\x65\76\xd\12\15\xa\40\x20\x20\x20\x20\40\40\x20";
}
function update_profile($aG, $eo = null)
{
$Re = apply_filters("\x6d\x6f\137\x63\x68\x65\x63\153\137\x63\157\x6e\146\x69\147", '');
if (!$Re) {
goto xo;
}
$A7 = unserialize(get_option("\155\x6f\x5f\x6c\x64\141\x70\137\x6c\157\143\141\x6c\x5f\x63\165\163\164\157\x6d\137\141\x74\164\162\x69\x62\165\x74\x65\163"));
$sX = array();
foreach ($A7 as $oD => $D0) {
if (!isset($_POST[$D0])) {
goto UO;
}
$sX[$D0] = $_POST[$D0];
UO:
Mi:
}
mU:
$user = get_userdata($aG);
$Tg = new Mo_Ldap_Local_Config();
$Tg->modify_user_info_in_ldap($user, $sX);
xo:
}
function ldap_login($user, $Li, $Dj)
{
$Re = apply_filters("\x6d\x6f\137\143\x68\x65\x63\x6b\137\x63\x6f\x6e\x66\151\147", '');
$G5 = get_option("\x61\143\164\x69\166\x65\137\160\x6c\165\147\x69\156\x73");
if (!in_array("\155\151\x6e\x69\157\162\x61\156\x67\145\x2d\143\165\x73\164\157\x6d\x69\x7a\x65\x2d\x77\x70\55\154\144\x61\x70\x2d\x6c\157\x67\x69\x6e\x2d\x73\143\162\145\145\156\x2d\x61\x64\144\x2d\157\156\x2f\x61\x64\144\137\x6c\x6f\x67\x69\x6e\137\x6d\x65\163\163\x61\147\145\x2e\x70\x68\160", $G5)) {
goto kr;
}
add_filter("\154\157\x67\x69\156\137\155\145\163\x73\141\147\145", "\x61\x64\x64\137\154\x6f\x67\x69\x6e\x5f\x6d\145\163\x73\141\147\x65\163");
function add_login_messages($Ps)
{
$z4 = get_option("\155\157\137\154\144\141\x70\x5f\154\x6f\x67\x69\156\137\x6d\145\163\163\141\147\145\x73");
foreach ($z4 as $fa) {
$Ps = $Ps . "\74\x70\40\x6e\141\155\x65\x3d\x27\x63\x75\x73\x74\x6f\155\55\154\x6f\147\x69\x6e\55\x6d\145\x73\163\x61\147\x65\x27\x20\151\144\x3d\x27\x63\x75\x73\x74\x6f\155\55\154\x6f\x67\151\156\x2d\x6d\x65\x73\x73\x61\x67\x65\x27\40\163\x74\x79\154\145\75\x27\x6d\141\162\147\x69\x6e\x2d\x74\x6f\160\x3a\40\62\x30\160\x78\x3b\x6d\141\162\147\151\x6e\55\154\145\x66\x74\x3a\x20\x30\73\160\x61\144\x64\x69\x6e\x67\72\40\x38\x70\x78\40\x38\160\x78\40\70\160\x78\x3b\x66\x6f\x6e\164\55\167\145\151\x67\150\164\72\x20\62\x30\x30\73\157\166\x65\x72\x66\x6c\157\167\x3a\40\x68\x69\144\144\145\x6e\x3b\142\141\x63\x6b\147\x72\157\165\x6e\x64\72\40\x23\146\x66\x66\x3b\x62\x6f\162\144\x65\162\72\x20\x34\x70\x78\40\163\x6f\x6c\x69\x64\x20\43\x66\x66\146\x3b\142\157\x78\x2d\163\150\141\144\x6f\x77\x3a\x20\60\40\61\x70\x78\40\63\160\x78\x20\x72\147\x62\x61\50\60\54\x30\x2c\x30\54\56\x30\x34\x29\73\142\157\x72\144\x65\162\55\x6c\145\146\x74\55\x63\157\154\157\x72\x3a\x20" . $fa["\143\x6f\x6c\157\162"] . "\73\142\x6f\x72\x64\145\x72\55\164\157\160\72\40\156\157\x6e\x65\73\142\x6f\x72\x64\x65\x72\55\x62\x6f\164\x74\x6f\x6d\x3a\x20\156\157\156\x65\73\47\76\x3c\x73\x74\x72\x6f\x6e\x67\x3e" . $fa["\x6d\145\x73\x73\141\147\145"] . "\74\57\x73\164\162\x6f\156\x67\76\74\x2f\160\76";
ah:
}
St:
$Ps = $Ps . "\x3c\x62\162\76";
return $Ps;
}
kr:
$bh = get_option("\x6d\157\x5f\x6c\144\141\x70\x5f\145\156\141\x62\154\145\137\165\163\x65\162\x5f\x73\x65\163\x73\151\x6f\x6e\137\163\x79\x6e\143");
if ($bh && in_array("\155\x69\156\x69\157\x72\141\156\x67\x65\55\x74\145\162\155\x69\156\x61\x74\x65\x2d\154\144\141\x70\55\x75\163\x65\x72\x2d\163\x65\x73\163\x69\x6f\156\x2d\x6f\156\x2d\x70\141\163\163\167\x6f\162\144\55\x75\x70\x64\x61\164\145\55\141\x64\x64\55\x6f\156\57\x74\x65\162\155\x69\156\141\164\x65\137\x6c\144\x61\x70\137\165\x73\145\x72\x5f\163\x65\163\x73\x69\157\x6e\137\x73\x79\156\143\x2e\160\x68\160", $G5)) {
goto l9;
}
$st = false;
goto S3;
l9:
$st = true;
S3:
error_log("\x56\141\154\165\x65\x20\146\157\x72\40\x4c\x44\101\120\40\x50\x57\104\x20\163\171\x6e\x63\40\x3a\40" . $st);
if (!(empty($Li) || empty($Dj))) {
goto t2;
}
$Fg = new WP_Error();
if (!empty($Li)) {
goto XG;
}
$Fg->add("\145\x6d\160\164\171\x5f\165\163\145\162\x6e\x61\155\x65", __("\74\x73\x74\162\x6f\156\x67\x3e\105\x52\122\x4f\122\x3c\x2f\163\x74\162\x6f\x6e\x67\x3e\x3a\40\x45\155\141\151\x6c\40\146\151\x65\154\x64\40\x69\x73\40\145\x6d\160\164\171\56"));
XG:
if (!empty($Dj)) {
goto ko;
}
$Fg->add("\145\155\x70\x74\171\x5f\x70\x61\x73\x73\x77\x6f\x72\x64", __("\74\163\x74\x72\x6f\x6e\x67\76\x45\x52\x52\117\122\x3c\57\x73\x74\x72\157\x6e\x67\76\72\40\120\141\163\x73\x77\157\162\144\40\146\x69\x65\x6c\x64\40\x69\163\x20\x65\155\x70\x74\x79\x2e"));
ko:
return $Fg;
t2:
$Ln = get_option("\155\157\x5f\154\x64\141\x70\137\154\157\x63\141\x6c\x5f\x65\156\141\x62\154\x65\137\x62\x6f\164\x68\x5f\x6c\157\147\151\156");
$Tg = new Mo_Ldap_Local_Config();
$T0 = $Tg->authenticate_ldap_user($Li, $Dj);
if ($T0->statusCode == "\114\x44\x41\x50\137\102\111\x4e\x44\137\123\125\103\x43\x45\123\x53\137\125\123\x45\x52\x5f\105\x58\111\x53\x54\x53" && $Re) {
goto fH;
}
if (!empty($Ln) || !$Re) {
goto RR;
}
if ($T0->statusCode == "\x4c\x44\101\120\x5f\x43\x4f\116\x4e\105\103\124\111\x4f\116\x5f\105\x52\x52\117\122") {
goto VD;
}
if ($T0->statusCode == "\x4c\104\101\120\137\x42\111\x4e\104\137\105\122\122\x4f\x52\137\x55\123\105\122\x5f\x45\130\x49\x53\x54\x53") {
goto oy;
}
if ($T0->statusCode == "\114\104\x41\120\137\x45\130\x54\x45\116\123\111\x4f\116\137\x45\x52\x52\117\122") {
goto io;
}
if ($T0->statusCode == "\117\x50\105\116\x53\x53\x4c\x5f\105\x58\124\x45\x4e\123\x49\117\x4e\x5f\105\122\x52\117\122") {
goto MT;
}
$Fg = new WP_Error();
$Fg->add("\125\116\x4b\x4e\117\127\x4e\137\x45\x52\122\117\x52", __("\74\163\x74\x72\x6f\x6e\147\x3e\105\x52\x52\117\x52\74\x2f\163\164\x72\x6f\x6e\147\76\x3a\x20\x55\156\x6b\156\157\167\156\x20\145\x72\x72\157\x72\x20\x6f\x63\x63\165\162\x72\x65\x64\40\144\165\x72\x69\x6e\147\x20\141\x75\164\x68\145\x74\151\143\141\x74\151\x6f\x6e\56\x20\120\x6c\145\141\x73\x65\40\x63\x6f\156\x74\141\143\x74\x20\171\157\x75\x72\40\x61\144\155\x69\156\151\x73\164\162\141\164\x6f\162"));
return $Fg;
goto YO;
MT:
$this->mo_ldap_report_update($Li, $T0->statusMessage, "\74\x73\164\x72\157\156\147\x3e\114\x6f\x67\151\156\x20\x45\162\162\x6f\x72\x3a\74\x2f\x73\x74\x72\157\x6e\x67\x3e\x20\x3c\x61\x20\x74\141\x72\147\x65\164\75\x22\137\142\x6c\x61\x6e\153\x22\40\x68\162\x65\x66\75\42\150\x74\x74\160\x3a\x2f\57\160\150\160\56\x6e\145\164\57\155\141\x6e\165\141\x6c\x2f\145\x6e\57\x6f\160\x65\156\x73\163\x6c\56\151\x6e\x73\x74\141\x6c\x6c\141\x74\151\157\x6e\56\x70\x68\x70\x22\76\120\110\120\x20\117\160\x65\156\123\x53\x4c\x20\145\x78\164\145\x6e\x73\151\157\156\74\x2f\141\76\40\151\x73\40\156\157\164\x20\151\156\163\x74\x61\x6c\154\145\x64\40\157\x72\x20\144\x69\x73\x61\142\x6c\x65\x64\x2e");
$Fg = new WP_Error();
$Fg->add("\117\120\x45\x4e\x53\123\114\137\105\130\124\105\116\123\x49\x4f\116\137\x45\x52\122\x4f\x52", __("\74\x73\164\162\157\156\x67\76\105\x52\x52\117\x52\74\x2f\x73\x74\162\x6f\156\147\76\x3a\x20\74\141\40\164\141\162\x67\x65\164\x3d\x22\x5f\142\154\141\x6e\x6b\x22\x20\150\162\x65\146\75\42\150\164\x74\160\x3a\57\x2f\x70\150\160\x2e\156\x65\164\57\x6d\141\156\x75\141\x6c\57\x65\x6e\x2f\157\160\x65\x6e\x73\163\154\56\x69\156\163\x74\141\154\x6c\141\164\x69\x6f\x6e\x2e\160\x68\160\x22\x3e\120\x48\120\x20\117\160\145\x6e\x53\123\x4c\x20\x65\170\x74\x65\x6e\163\151\x6f\x6e\x3c\57\x61\x3e\x20\151\x73\40\156\157\x74\40\151\156\163\x74\141\x6c\x6c\145\x64\x20\x6f\x72\x20\144\x69\x73\x61\x62\x6c\x65\144\56"));
return $Fg;
YO:
goto l1;
io:
$this->mo_ldap_report_update($Li, $T0->statusMessage, "\x3c\x73\x74\162\x6f\x6e\147\76\114\157\x67\x69\x6e\x20\x45\x72\x72\x6f\162\72\x3c\x2f\x73\x74\x72\x6f\x6e\147\76\x20\74\141\x20\x74\141\162\147\x65\x74\75\42\137\142\x6c\x61\x6e\153\42\40\x68\162\x65\146\x3d\x22\150\164\x74\160\72\x2f\x2f\160\x68\x70\x2e\156\x65\164\57\x6d\x61\156\x75\141\154\57\x65\x6e\57\154\x64\141\160\x2e\x69\x6e\163\164\141\x6c\x6c\141\x74\x69\157\x6e\x2e\160\x68\160\x22\76\x50\110\x50\x20\114\x44\x41\120\40\x65\x78\164\145\x6e\x73\x69\x6f\x6e\x3c\x2f\141\x3e\40\x69\x73\x20\156\x6f\164\x20\151\x6e\163\x74\x61\154\x6c\x65\144\40\157\x72\x20\x64\x69\163\x61\x62\154\145\144\56\40\x50\x6c\x65\141\163\145\40\145\x6e\x61\142\154\145\40\x69\164\x2e");
$Fg = new WP_Error();
$Fg->add("\114\x44\101\120\137\x45\130\x54\x45\x4e\x53\111\117\x4e\137\105\122\122\117\122", __("\74\163\x74\x72\x6f\156\x67\76\105\122\122\117\x52\x3c\x2f\x73\x74\x72\x6f\x6e\x67\76\x3a\x20\x3c\141\x20\x74\x61\x72\x67\x65\x74\x3d\x22\137\x62\154\141\x6e\x6b\42\x20\x68\x72\145\146\x3d\42\150\x74\x74\x70\x3a\57\x2f\160\150\x70\x2e\156\x65\x74\x2f\x6d\x61\x6e\165\141\154\x2f\x65\x6e\57\154\144\141\160\56\151\156\163\164\141\154\x6c\x61\164\x69\x6f\156\x2e\x70\150\x70\42\x3e\120\110\x50\40\114\x44\101\120\x20\145\170\x74\145\x6e\163\151\x6f\x6e\x3c\x2f\x61\x3e\40\x69\163\x20\x6e\x6f\164\40\151\x6e\x73\x74\x61\x6c\x6c\x65\144\40\157\x72\40\x64\x69\163\x61\x62\154\145\144\x2e\40\x50\154\x65\141\x73\145\x20\145\x6e\141\142\x6c\145\40\151\x74\56"));
return $Fg;
l1:
goto TO;
oy:
$this->mo_ldap_report_update($Li, "\x45\122\122\117\x52", "\74\163\x74\162\x6f\x6e\147\x3e\114\x6f\x67\x69\156\x20\105\162\x72\157\162\72\x3c\x2f\163\164\x72\x6f\x6e\x67\76\x20\111\x6e\x76\x61\x6c\x69\144\40\x55\x73\145\162\156\x61\155\x65\x2f\120\x61\163\163\x77\x6f\162\x64\40\143\x6f\155\142\x69\156\141\164\x69\x6f\156\56");
$Fg = new WP_Error();
$Fg->add("\x69\x6e\x63\x6f\162\162\x65\x63\164\x5f\x63\162\x65\144\145\x6e\164\x69\141\154\163", __("\74\163\x74\162\x6f\156\x67\76\x45\x52\122\117\122\x3c\x2f\x73\x74\162\157\x6e\x67\76\72\40\111\x6e\x76\141\x6c\151\x64\40\125\x73\145\162\x6e\141\155\145\x2f\x50\141\163\163\x77\x6f\x72\x64\x20\x63\157\x6d\142\151\156\141\164\x69\x6f\x6e"));
return $Fg;
TO:
goto yk;
VD:
$this->mo_ldap_report_update($Li, "\x45\x52\x52\117\122", "\x3c\163\x74\x72\157\156\x67\76\x4c\157\x67\151\x6e\x20\105\162\x72\157\x72\72\74\57\163\164\x72\x6f\156\x67\76\40\x4c\x44\101\x50\40\163\145\162\x76\145\x72\x20\151\x73\40\156\157\x74\40\x72\x65\x61\x63\150\x61\142\x6c\x65");
$Fg = new WP_Error();
$Fg->add("\x69\x6e\x63\157\162\162\145\143\164\x5f\143\x72\145\144\145\156\x74\151\x61\154\163", __("\74\x73\x74\x72\157\x6e\147\76\105\122\122\117\122\74\x2f\x73\x74\162\157\x6e\147\x3e\72\114\104\x41\120\40\163\145\x72\166\145\x72\x20\151\x73\x20\156\157\x74\40\162\145\x61\143\150\141\142\154\x65\56\40\x46\141\154\154\142\x61\143\x6b\x20\x74\x6f\40\x6c\157\143\x61\154\x20\127\x6f\162\144\x50\x72\145\x73\163\40\141\x75\x74\150\145\x6e\x74\x69\x63\141\164\151\x6f\x6e\x20\151\x73\x20\x6e\x6f\164\40\145\x6e\141\x62\154\145\144\x2e"));
return $Fg;
yk:
goto Kc;
RR:
$user = false;
if (username_exists($Li)) {
goto ZN;
}
if (!email_exists($Li)) {
goto hP;
}
$user = get_user_by("\x65\x6d\x61\x69\x6c", $Li);
hP:
goto AW;
ZN:
$user = get_user_by("\x6c\x6f\x67\151\x6e", $Li);
AW:
if ($user) {
goto sl;
}
if (!($T0->statusCode == "\114\x44\x41\x50\x5f\103\117\116\x4e\105\103\x54\111\117\x4e\137\105\122\x52\x4f\122")) {
goto te;
}
$this->mo_ldap_report_update($Li, "\105\122\122\117\x52", "\x3c\x73\164\x72\157\156\x67\76\114\157\147\x69\x6e\40\x45\162\162\157\x72\72\x3c\x2f\163\x74\x72\157\156\x67\76\x4c\x44\101\120\x20\x73\145\162\166\x65\162\x20\x69\163\40\156\x6f\x74\x20\162\145\141\x63\150\141\x62\154\x65\x2e");
$Fg = new WP_Error();
$Fg->add("\x69\x6e\x63\x6f\x72\162\145\143\164\x5f\x63\x72\x65\x64\x65\156\x74\151\x61\154\x73", __("\74\163\164\162\x6f\156\147\76\105\x52\122\x4f\x52\74\x2f\x73\164\x72\157\156\147\76\72\x20\x4c\x44\x41\x50\40\163\x65\x72\x76\x65\162\40\x69\163\40\x6e\x6f\164\40\x72\x65\x61\x63\x68\141\142\x6c\x65\x2e\x20\111\156\x76\x61\x6c\151\144\x20\x75\x73\x65\x72\156\141\155\x65\57\160\x61\x73\163\x77\157\x72\x64\40\x63\157\x6d\142\151\156\x61\164\151\x6f\x6e\56"));
return $Fg;
te:
goto R8;
sl:
if (!(!$Re && $T0->statusCode == "\114\104\x41\x50\137\x42\x49\116\104\x5f\x53\x55\103\103\x45\x53\123\137\125\x53\x45\x52\x5f\x45\130\111\x53\124\123")) {
goto h3;
}
$VO = get_user_meta($user->ID, "\155\x6f\x5f\x6c\x64\x61\160\x5f\x75\163\145\162\x5f\144\156");
$VO = !empty($VO) ? $VO : false;
if (!($VO != false)) {
goto kl;
}
$this->mo_ldap_report_update($Li, "\x45\122\122\117\122", "\x3c\x73\x74\x72\157\x6e\x67\76\124\x72\151\141\x6c\x3a\74\57\x73\x74\162\157\156\x67\x3e\x20\131\x6f\165\x72\40\x54\x72\x69\141\154\x20\x4c\x69\x63\145\x6e\x73\145\x20\150\x61\163\40\105\x78\160\x69\x72\x65\144");
$Fg = new WP_Error();
$Fg->add("\x72\x65\147\x69\163\164\162\141\x74\151\157\156\x5f\144\x69\x73\141\142\154\x65\144\x5f\x65\162\x72\x6f\162", __("\74\x73\164\162\157\156\147\76\x45\122\122\117\x52\x3c\x2f\x73\164\x72\157\x6e\x67\76\x3a\x20\131\157\165\162\40\155\151\x6e\x69\117\162\x61\x6e\147\145\40\114\x44\x41\120\57\101\104\x20\x4c\157\147\151\156\40\x66\x6f\162\x20\x49\x6e\164\162\x61\x6e\x65\164\x20\123\x69\164\145\163\40\x54\162\151\x61\x6c\40\114\151\x63\x65\x6e\x73\x65\x20\150\141\163\x20\x65\170\x70\151\162\145\x64\56"));
return $Fg;
kl:
h3:
$lY = false;
if ($Ln == "\141\x6c\x6c" || !$Re) {
goto fW;
}
if (!($Ln == "\141\x64\155\151\x6e" && user_can($user->ID, "\x6d\x61\156\141\x67\145\x5f\x6f\x70\164\151\x6f\156\x73"))) {
goto hQ;
}
$lY = true;
hQ:
goto Lr;
fW:
$lY = true;
Lr:
if ($lY && wp_check_password($Dj, $user->data->user_pass, $user->ID)) {
goto UX;
}
if ($T0->statusCode == "\114\x44\x41\120\137\x43\117\x4e\x4e\x45\x43\x54\111\117\116\137\x45\x52\122\117\x52") {
goto bf;
}
$this->mo_ldap_report_update($Li, "\105\x52\122\x4f\x52", "\x3c\163\x74\x72\x6f\x6e\147\x3e\114\157\147\151\156\x20\x45\162\x72\x6f\162\x3a\x3c\x2f\163\x74\x72\157\x6e\147\76\40\x49\156\x76\x61\154\x69\x64\x20\x55\x73\x65\x72\x6e\141\x6d\145\x2f\x50\141\163\x73\x77\157\162\144\40\143\x6f\x6d\142\x69\x6e\x61\x74\x69\x6f\x6e");
$Fg = new WP_Error();
$Fg->add("\151\156\x63\x6f\162\162\145\143\x74\137\143\x72\145\x64\145\x6e\164\x69\141\154\x73", __("\74\x73\164\162\157\x6e\147\x3e\x45\122\x52\117\x52\x3c\x2f\163\x74\162\x6f\156\x67\76\x3a\x20\111\156\166\141\x6c\x69\144\x20\125\x73\x65\x72\x6e\141\x6d\145\x2f\120\141\x73\x73\167\x6f\162\144\40\143\157\155\x62\151\156\x61\x74\151\157\156"));
return $Fg;
goto NP;
bf:
$this->mo_ldap_report_update($Li, "\x45\122\x52\x4f\122", "\x3c\163\164\162\x6f\156\x67\76\x4c\157\147\x69\156\40\105\162\162\x6f\162\72\x3c\57\163\x74\x72\x6f\156\147\x3e\x20\x4c\x44\101\x50\x20\163\145\162\x76\x65\162\x20\x69\x73\40\156\x6f\x74\x20\162\145\141\143\150\x61\x62\x6c\145\56\40\101\x75\x74\x68\x65\x6e\x74\151\x63\x61\x74\151\157\156\40\x66\x61\151\154\145\144\x20\141\x67\x61\x69\x6e\163\164\40\x4c\x6f\x63\141\x6c\40\127\x6f\x72\x64\120\x72\x65\163\163\x20\163\145\x72\166\x65\162\56");
$Fg = new WP_Error();
$Fg->add("\151\156\x63\x6f\162\162\x65\x63\164\137\x63\162\x65\x64\145\156\x74\x69\141\154\x73", __("\74\163\164\162\157\156\x67\x3e\x45\x52\122\x4f\x52\x3c\57\x73\164\x72\x6f\156\147\x3e\72\40\x4c\104\101\120\40\x73\x65\x72\x76\145\162\40\151\x73\x20\x6e\x6f\x74\x20\x72\145\x61\143\x68\141\x62\154\x65\x2e\40\x41\x75\164\x68\145\156\164\151\x63\141\x74\x69\157\x6e\40\x66\x61\151\154\x65\x64\40\141\147\x61\x69\156\x73\x74\40\x4c\157\x63\141\154\40\x57\x6f\x72\x64\x50\162\145\163\163\40\x73\145\x72\166\x65\x72\x2e"));
return $Fg;
NP:
goto DY;
UX:
return $user;
DY:
R8:
Kc:
goto Wq;
fH:
$UZ = get_option("\155\157\137\154\144\141\x70\137\x65\x6e\x61\x62\154\x65\137\x75\x6c\164\x69\155\141\164\145\137\x6d\x65\155\142\x65\x72\137\x6c\157\x67\x69\156");
$AU = get_option("\155\157\x5f\154\144\x61\x70\x5f\145\x6e\141\142\x6c\x65\x5f\x75\154\x74\151\155\141\x74\145\x5f\x6d\x65\155\142\x65\162\x5f\160\x72\157\146\151\154\145");
$XG = $T0->profileAttributesList;
$kn = $XG["\x6d\141\151\154"];
if (username_exists($Li) || email_exists($Li) || username_exists($kn) || email_exists($kn)) {
goto X6;
}
$Y3 = get_option("\155\x6f\137\154\144\x61\x70\x5f\x6c\157\143\141\154\137\x72\x65\x67\151\x73\x74\x65\x72\137\165\163\145\x72");
if (!$Y3) {
goto uO;
}
$y2 = get_option("\x6d\157\x5f\154\x64\x61\160\137\154\x6f\x63\141\154\x5f\145\x6e\x61\x62\154\145\x5f\x66\x61\154\154\142\x61\x63\x6b\137\154\x6f\147\x69\x6e");
$ZL = wp_generate_password(10, false);
$kn = '';
$EF = '';
$xG = '';
$oF = '';
$Gy = '';
$Z9 = get_option("\155\x6f\x5f\x6c\144\141\x70\137\154\x6f\143\141\x6c\x5f\x65\156\x61\142\154\x65\x5f\141\x74\164\x72\x5f\155\x61\160\x70\151\x6e\147");
if (!($Z9 == 1)) {
goto ua;
}
$t3 = strtolower(get_option("\x6d\157\x5f\x6c\144\x61\160\x5f\154\x6f\x63\x61\154\x5f\146\x6e\141\155\145\137\x61\x74\164\162\151\142\x75\164\x65"));
$ui = strtolower(get_option("\x6d\157\x5f\154\x64\x61\160\137\x6c\x6f\143\141\x6c\137\154\x6e\x61\x6d\145\x5f\141\164\164\162\151\142\x75\164\145"));
$et = strtolower(get_option("\155\157\x5f\154\144\x61\160\137\x6c\x6f\143\141\x6c\137\x65\x6d\141\x69\x6c\x5f\141\x74\164\162\x69\x62\x75\x74\145"));
$K7 = strtolower(get_option("\155\x6f\x5f\154\144\141\x70\137\154\x6f\x63\x61\x6c\137\160\x68\157\x6e\x65\x5f\141\164\x74\162\151\x62\165\x74\x65"));
$EN = strtolower(get_option("\x6d\157\137\154\x64\141\x70\137\154\x6f\143\141\154\137\x6e\151\x63\153\x6e\141\155\145\137\x61\164\x74\162\x69\x62\x75\164\x65"));
$kn = $XG[$et];
$EF = $XG[$t3];
$xG = $XG[$ui];
$oF = $XG[$EN];
$Gy = $XG[$K7];
ua:
$z6 = array("\x75\163\x65\x72\137\x6c\157\x67\x69\156" => $Li, "\165\163\x65\x72\137\x65\x6d\141\151\x6c" => $kn, "\146\x69\x72\163\x74\137\x6e\x61\x6d\x65" => $EF, "\154\141\163\164\137\x6e\141\x6d\145" => $xG, "\156\151\143\153\x6e\x61\x6d\x65" => $oF, "\x75\x73\x65\x72\137\160\141\x73\163" => $ZL);
if (!($Z9 == 1)) {
goto C9;
}
if (empty($oF)) {
goto PE;
}
$z6["\x6e\151\x63\153\x6e\x61\x6d\x65"] = $oF;
PE:
$tA = get_option("\155\x6f\137\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\154\137\144\151\163\160\154\141\x79\137\156\x61\155\x65\x5f\141\164\x74\162\151\142\165\x74\145");
if (empty($tA)) {
goto YE;
}
if ($tA == "\x6e\x69\x63\x6b\156\x61\155\x65" && !empty($oF)) {
goto dw;
}
if ($tA == "\x65\155\x61\151\154") {
goto hh;
}
if ($tA == "\x66\x69\162\163\164\x6e\141\x6d\145") {
goto e5;
}
if ($tA == "\x66\x69\x72\x73\x74\154\141\x73\x74") {
goto Fe;
}
if (!($tA == "\x6c\x61\163\164\146\151\x72\x73\164")) {
goto JA;
}
$z6["\x64\151\163\x70\x6c\x61\171\137\156\141\x6d\145"] = $xG . "\40" . $EF;
JA:
goto Qj;
Fe:
$z6["\x64\x69\163\160\x6c\141\x79\137\x6e\x61\155\145"] = $EF . "\x20" . $xG;
Qj:
goto Gq;
e5:
$z6["\144\151\163\x70\x6c\x61\171\x5f\x6e\x61\155\x65"] = $EF;
Gq:
goto mt;
hh:
$z6["\x64\151\x73\160\154\x61\x79\137\156\141\155\x65"] = $kn;
mt:
goto WW;
dw:
$z6["\x64\151\x73\160\x6c\x61\171\137\x6e\141\155\145"] = $oF;
WW:
YE:
C9:
$aG = wp_insert_user($z6);
if (!is_wp_error($aG)) {
goto kO;
}
$this->mo_ldap_report_update($Li, $T0->statusMessage, "\74\x73\x74\162\x6f\156\147\x3e\114\x6f\x67\151\x6e\x20\x45\162\x72\x6f\162\x3a\x3c\x2f\x73\164\x72\x6f\156\147\x3e\x20\124\150\145\x72\145\40\167\x61\163\x20\x61\156\x20\x65\x72\x72\157\162\x20\x72\x65\147\151\163\x74\145\x72\151\x6e\x67\x20\x79\157\165\x72\x20\141\143\x63\157\x75\x6e\x74\x2e\40\120\x6c\145\141\x73\145\40\x74\x72\171\40\141\147\141\x69\156\56");
$Fg = new WP_Error();
$Fg->add("\162\145\x67\151\x73\164\162\x61\x74\x69\157\156\x5f\145\162\x72\x6f\x72", __("\74\163\x74\162\x6f\x6e\147\x3e\105\x52\x52\117\x52\74\x2f\163\164\x72\x6f\156\x67\76\72\x20\x54\150\145\x72\x65\40\167\141\x73\x20\x61\x6e\40\145\162\162\157\162\40\162\x65\x67\x69\x73\164\x65\162\151\156\x67\x20\171\157\x75\x72\40\141\143\143\157\x75\x6e\x74\x2e\40\120\x6c\x65\x61\163\145\x20\x74\162\x79\40\x61\x67\141\151\156\x2e"));
return $Fg;
goto lD;
kO:
$user = get_user_by("\x6c\157\x67\151\x6e", $Li);
if (!($st == true)) {
goto B_;
}
error_log("\x73\141\x76\x69\x6e\x67\x20\165\163\145\162\x20\155\145\164\x61\x20\153\145\171");
update_user_meta($user->ID, "\155\157\137\154\x64\141\x70\137\165\x73\x65\x72\x5f\x73\145\x73\x73\x69\157\156\137\x6b\145\171", Mo_Ldap_Local_Util::encrypt($Dj));
B_:
update_user_meta($user->ID, "\155\x6f\137\154\x64\x61\x70\x5f\165\x73\145\162\x5f\144\x6e", $T0->userDn, false);
update_user_meta($user->ID, "\155\x6f\137\154\144\141\160\x5f\x75\163\x65\x72\137\160\x68\157\156\145", $Gy);
$Ja = get_option("\155\157\x5f\x6c\144\141\160\137\154\157\143\141\154\x5f\145\x6e\141\142\154\x65\x5f\162\x6f\154\145\137\x6d\x61\x70\x70\x69\156\147");
$sK = new Mo_Ldap_Local_Role_Mapping();
$GK = $sK->get_member_of_attribute($Li);
if (!($Ja == 1)) {
goto sj;
}
$sK->mo_ldap_local_update_role_mapping($user->ID, $GK);
sj:
if ($Z9 == 1) {
goto Tx;
}
$A7 = array();
goto gM;
Tx:
$A7 = $T0->extraProfileAttributesList;
gM:
if (!array_key_exists("\x6d\x65\155\x62\x65\162\157\x66", $A7)) {
goto pF;
}
$A7["\x6d\145\155\x62\x65\x72\157\x66"] = $GK;
pF:
foreach ($A7 as $oD => $D0) {
update_user_meta($user->ID, $oD, $D0);
U4:
}
T0:
do_action("\155\x6f\137\x6c\x64\x61\x70\x5f\142\165\144\x64\171\160\x72\145\x73\x73", $A7, $user);
do_action("\155\x6f\137\154\144\141\160\137\141\x74\x74\162\x69\142\x75\x74\x65\x5f\x74\x6f\137\x75\x73\x65\x72\155\145\164\x61\137\x75\160\144\x61\164\x65", $user);
do_action("\155\x6f\137\154\144\141\160\x5f\x70\162\x6f\x66\x69\154\x65\137\160\x69\x63\164\165\x72\145\137\155\x61\x70\x70\151\x6e\x67", $user);
do_action("\155\157\x5f\x6c\144\141\160\137\x62\x75\144\x64\x79\160\162\x65\x73\x73\137\160\x72\157\x66\151\x6c\145\137\160\151\x63\164\165\x72\x65\x5f\155\x61\x70\x70\151\x6e\x67", $user);
do_action("\x6d\x6f\x5f\x77\160\x5f\164\157\x5f\x6c\x64\x61\160\137\x67\x72\x6f\x75\160\163\137\x6d\x61\x70\160\151\x6e\x67", $user, $GK);
if (!($AU == 1)) {
goto BZ;
}
delete_option("\165\155\137\143\x61\x63\150\145\x5f\165\163\x65\x72\144\141\164\x61\x5f{$user->ID}");
BZ:
if ($UZ == 1) {
goto zm;
}
return $user;
goto yR;
zm:
wp_set_auth_cookie($user->ID, false);
apply_filters("\x6c\157\147\151\x6e\x5f\162\145\x64\151\162\145\x63\x74", null, null, $user);
yR:
lD:
goto cS;
uO:
$this->mo_ldap_report_update($Li, "\105\122\x52\x4f\x52", "\x3c\163\164\162\157\156\147\x3e\x4c\x6f\x67\x69\x6e\40\105\x72\x72\x6f\162\x3a\74\x2f\x73\x74\x72\157\156\147\76\x20\131\x6f\165\162\x20\101\144\x6d\151\156\151\x73\x74\162\141\x74\157\x72\x20\150\141\163\40\x6e\x6f\x74\40\145\156\141\x62\154\145\x64\x20\x41\x75\x74\x6f\40\122\145\147\151\163\x74\162\141\x74\151\x6f\156\x2e\x20\x50\154\x65\x61\x73\145\x20\x63\x6f\156\x74\x61\143\164\x20\x79\x6f\165\x72\x20\101\144\155\151\x6e\x69\163\164\162\141\164\x6f\x72\x2e");
$Fg = new WP_Error();
$Fg->add("\x72\145\x67\x69\x73\164\x72\141\164\x69\x6f\x6e\x5f\x64\151\x73\141\142\x6c\145\144\x5f\x65\x72\162\x6f\x72", __("\74\163\164\x72\157\156\147\x3e\105\x52\x52\x4f\x52\x3c\x2f\163\164\162\157\x6e\x67\x3e\x3a\x20\x59\157\x75\162\40\x41\144\155\151\x6e\151\x73\x74\162\x61\x74\157\162\x20\x68\141\x73\x20\x6e\157\x74\x20\x65\x6e\141\142\154\x65\144\40\101\x75\164\157\x20\x52\x65\x67\x69\x73\164\x72\x61\164\151\x6f\156\56\40\x50\x6c\x65\x61\x73\145\40\143\157\x6e\x74\141\x63\x74\40\x79\x6f\165\x72\40\101\144\155\151\x6e\151\x73\164\x72\x61\x74\157\162\x2e"));
return $Fg;
cS:
goto VX;
X6:
$et = strtolower(get_option("\x6d\x6f\x5f\154\144\x61\x70\x5f\x6c\x6f\x63\141\154\x5f\x65\x6d\141\x69\154\x5f\x61\x74\x74\162\x69\x62\x75\x74\145"));
$user = false;
if (username_exists($Li)) {
goto Wg;
}
if (email_exists($Li)) {
goto AG;
}
if (!(isset($XG[$et]) && email_exists($XG[$et]))) {
goto un;
}
$user = get_user_by("\145\155\141\151\154", $XG[$et]);
un:
goto P2;
AG:
$user = get_user_by("\x65\155\x61\151\154", $Li);
P2:
goto tL;
Wg:
$user = get_user_by("\x6c\157\147\x69\x6e", $Li);
tL:
if ($user) {
goto hv;
}
$this->mo_ldap_report_update($Li, "\105\122\122\x4f\122", "\74\x73\164\x72\x6f\156\x67\76\x4c\x6f\x67\151\x6e\x20\105\162\162\157\x72\x3a\x3c\x2f\x73\x74\x72\157\x6e\147\76\x20\111\156\166\141\x6c\151\x64\40\x55\x73\145\162\x6e\141\x6d\x65\57\x50\x61\163\x73\x77\157\162\x64\x20\x63\x6f\155\x62\151\x6e\141\x74\x69\x6f\156");
goto wp;
hv:
if (!($st == true)) {
goto qj;
}
error_log("\163\141\166\151\x6e\147\40\x75\x73\145\162\40\x6d\145\164\141\x20\153\145\171");
update_user_meta($user->ID, "\155\157\137\154\x64\141\160\137\165\x73\145\162\x5f\163\x65\163\163\x69\157\x6e\x5f\153\145\171", Mo_Ldap_Local_Util::encrypt($Dj));
qj:
$Tg->fetch_or_update_user_attributes($user, $T0);
if (!($AU == 1)) {
goto dL;
}
delete_option("\x75\155\x5f\143\x61\143\150\x65\x5f\165\x73\x65\x72\x64\141\x74\141\137{$user->ID}");
dL:
if ($UZ == 1) {
goto NO;
}
return $user;
goto WE;
NO:
wp_set_auth_cookie($user->ID, false);
apply_filters("\x6c\157\147\151\156\x5f\162\x65\x64\151\162\x65\143\x74", null, null, $user);
WE:
wp:
VX:
wp_redirect(site_url());
exit;
Wq:
}
function mo_ldap_local_login_widget_menu()
{
add_menu_page("\114\x44\101\120\57\x41\x44\40\114\157\x67\x69\x6e\40\x66\x6f\162\40\111\x6e\164\x72\x61\156\145\x74", "\x4c\x44\101\120\57\x41\x44\40\114\x6f\x67\151\156\x20\146\x6f\x72\x20\x49\156\164\162\x61\156\x65\164", "\x61\x63\x74\x69\x76\141\164\x65\x5f\160\154\165\x67\x69\156\x73", "\155\x6f\137\x6c\x64\x61\160\x5f\x6c\x6f\x63\141\154\x5f\154\x6f\147\x69\156", array($this, "\x6d\x6f\x5f\x6c\x64\x61\160\x5f\x6c\157\143\x61\154\x5f\154\157\x67\151\x6e\x5f\167\x69\x64\x67\145\164\x5f\157\x70\x74\x69\x6f\156\x73"), plugin_dir_url(__FILE__) . "\151\156\x63\154\165\x64\x65\x73\x2f\x69\x6d\x61\x67\145\163\57\155\x69\x6e\151\x6f\162\x61\156\x67\145\x5f\x69\143\157\x6e\56\160\x6e\147");
}
function mo_ldap_local_login_widget_options()
{
$fQ = array("\163\145\x72\x76\145\x72\137\x75\x72\154" => "\154\x64\141\x70\x3a\57\x2f\x35\x38\56\66\x34\x2e\x31\x33\x32\x2e\62\x33\x35\72\x33\x38\x39", "\163\x65\162\166\151\143\x65\x5f\x61\x63\143\x6f\165\x6e\x74\x5f\x64\156" => "\x63\x6e\75\x74\x65\163\x74\165\163\x65\162\x2c\143\156\75\x55\163\x65\162\x73\54\x64\143\75\x6d\x69\156\151\157\x72\x61\x6e\x67\145\54\144\x63\x3d\143\x6f\155", "\141\x64\x6d\x69\156\x5f\160\x61\163\163\167\x6f\162\144" => "\130\130\130\130\x58\130\130\x58", "\144\156\137\141\164\164\x72\151\142\x75\164\145" => "\x64\151\163\164\151\x6e\147\165\151\163\x68\x65\144\x4e\x61\x6d\x65", "\163\x65\141\162\143\x68\x5f\142\141\163\145" => "\143\156\x3d\x55\x73\x65\162\x73\x2c\x64\x63\x3d\155\151\x6e\x69\x6f\162\x61\x6e\147\145\54\x64\x63\75\143\157\155", "\x75\163\145\162\x6e\141\155\x65\x5f\141\164\164\162\151\142\x75\x74\145" => "\163\101\115\x41\143\x63\157\165\x6e\x74\x4e\x61\155\x65", "\x73\x65\x61\x72\143\x68\137\x66\x69\x6c\164\145\x72" => "\50\46\x28\157\142\152\x65\143\x74\103\154\x61\163\x73\x3d\x2a\51\x28\x63\x6e\x3d\x3f\51\x29", "\164\x65\163\x74\x5f\x75\163\x65\x72\x6e\141\x6d\x65" => "\x74\145\163\x74\x75\x73\x65\x72", "\164\x65\163\164\x5f\x70\141\x73\163\167\x6f\x72\x64" => "\160\x61\163\163\167\x6f\162\x64");
update_option("\155\x6f\137\154\144\141\x70\137\x6c\157\143\141\x6c\x5f\x64\145\x66\141\165\154\164\x5f\x63\157\x6e\x66\x69\147", $fQ);
mo_ldap_local_settings();
}
function login_widget_save_options()
{
$Re = apply_filters("\x6d\157\x5f\143\150\145\x63\x6b\x5f\x63\157\x6e\146\x69\x67", '');
if (isset($_POST["\x6f\x70\x74\x69\157\156"]) && strcasecmp($_POST["\157\x70\x74\151\x6f\x6e"], "\155\x6f\137\154\144\141\160\x5f\154\x6f\143\141\x6c\x5f\166\x65\162\x69\146\x79\137\x63\165\x73\164\x6f\155\x65\x72") == 0) {
goto pm;
}
if (isset($_POST["\157\x70\x74\151\157\156"]) && strcasecmp($_POST["\x6f\160\x74\x69\x6f\x6e"], "\x6d\157\x5f\x6c\x64\x61\160\137\154\157\x63\141\154\x5f\166\x65\162\x69\146\171\x5f\x6c\151\x63\145\x6e\x73\145") == 0) {
goto r0;
}
if (isset($_POST["\x6f\x70\x74\151\157\x6e"]) && strcasecmp($_POST["\x6f\160\164\151\x6f\156"], "\x6d\x6f\55\143\x68\145\143\153\55\154\x69\x63\x65\x6e\x73\x65\55\142\x75\164\x74\x6f\x6e") == 0) {
goto L2;
}
if (isset($_POST["\x6f\x70\x74\151\x6f\156"]) && strcasecmp($_POST["\157\x70\x74\x69\x6f\156"], "\x6d\x6f\x2d\x63\150\x61\x6e\x67\145\x2d\141\x63\143\x6f\x75\156\x74\55\142\x75\164\x74\x6f\x6e") == 0) {
goto sU;
}
goto U0;
sU:
Jp_hwfrqar_mzwhwzl_arvowfra::bp_hpspmz_fmazpbrv_mzwhwzl();
U0:
goto ev;
pm:
$kn = '';
$Dj = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\145\155\141\151\x6c"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x70\x61\x73\163\x77\157\x72\144"])) {
goto GW;
}
$kn = sanitize_email($_POST["\145\x6d\x61\151\x6c"]);
$Dj = sanitize_text_field($_POST["\160\141\x73\163\x77\157\162\x64"]);
goto j0;
GW:
update_option("\155\157\137\154\x64\x61\x70\x5f\154\x6f\143\x61\154\x5f\155\x65\x73\x73\x61\147\x65", "\101\154\154\x20\164\x68\x65\40\x66\x69\x65\x6c\144\x73\40\x61\162\x65\x20\162\x65\161\x75\151\162\145\x64\56\x20\x50\154\145\141\163\145\x20\145\x6e\164\145\x72\x20\x76\x61\x6c\x69\x64\40\x65\x6e\164\x72\x69\x65\163\x2e");
$this->show_error_message();
return;
j0:
update_option("\155\157\x5f\154\x64\141\160\137\154\157\x63\141\x6c\x5f\x61\144\x6d\x69\156\137\x65\x6d\141\151\154", $kn);
update_option("\155\157\x5f\154\144\x61\x70\x5f\154\157\143\x61\x6c\x5f\160\141\163\163\x77\157\162\144", $Dj);
$Z6 = new Mo_Ldap_Local_Customer();
$TA = $Z6->get_customer_key();
$cb = json_decode($TA, true);
if (strcasecmp($cb["\x73\164\x61\164\165\163"], "\123\x55\x43\103\x45\x53\123") == 0) {
goto GQ;
}
if (strcasecmp($cb["\163\164\141\x74\x75\x73"], "\105\122\x52\117\x52") == 0) {
goto ma;
}
update_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\157\143\141\154\x5f\155\145\x73\163\141\147\145", "\111\156\166\141\x6c\151\144\40\x75\163\145\x72\x6e\141\155\145\x20\x6f\x72\x20\160\141\x73\163\167\157\162\x64\56\40\120\154\145\141\163\x65\x20\x74\x72\171\40\141\147\141\151\x6e\56");
$this->show_error_message();
goto EK;
GQ:
update_option("\155\x6f\137\x6c\x64\x61\x70\x5f\x6c\157\x63\141\154\x5f\x61\144\x6d\x69\156\x5f\160\150\157\x6e\145", $cb["\x70\150\x6f\x6e\145"]);
$this->save_success_customer_config($cb["\151\144"], $cb["\x61\x70\151\x4b\x65\171"], $cb["\164\x6f\x6b\x65\156"], "\131\157\x75\x72\x20\x61\x63\x63\157\x75\x6e\164\x20\150\x61\163\x20\142\x65\x65\156\40\x72\x65\164\x72\151\145\x76\x65\144\40\163\x75\143\x63\145\x73\163\x66\165\154\154\171\56");
update_option("\155\157\137\x6c\x64\141\160\x5f\154\x6f\143\x61\x6c\x5f\160\141\x73\163\167\157\162\x64", '');
goto EK;
ma:
update_option("\x6d\157\137\154\x64\x61\160\x5f\x6c\157\x63\x61\154\x5f\x6d\x65\x73\x73\x61\147\145", $cb["\x73\x74\141\164\x75\163\x4d\145\163\163\x61\x67\145"]);
$this->show_error_message();
EK:
update_option("\x6d\157\x5f\154\x64\141\160\137\154\x6f\143\x61\x6c\137\x70\x61\163\x73\167\157\x72\x64", '');
goto ev;
r0:
if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["\155\157\137\154\144\x61\x70\137\x6c\157\x63\141\154\137\x6c\151\143\x65\156\x73\145\x5f\x6b\145\x79"])) {
goto vP;
}
update_option("\x6d\x6f\x5f\x6c\144\141\160\137\154\157\143\x61\154\x5f\155\x65\x73\163\141\x67\145", "\101\154\x6c\40\x74\150\145\x20\146\151\145\x6c\x64\x73\x20\x61\x72\x65\40\x72\x65\161\165\151\162\145\144\56\x20\x50\x6c\145\141\163\145\40\145\x6e\164\145\x72\x20\166\x61\x6c\x69\x64\40\x6c\x69\x63\145\x6e\163\x65\x20\x6b\145\171\56");
$this->show_error_message();
return;
vP:
$eX = trim($_POST["\155\x6f\x5f\154\144\x61\160\x5f\154\x6f\143\x61\154\137\x6c\151\143\145\x6e\x73\x65\137\153\x65\171"]);
$Z6 = new Mo_Ldap_Local_Customer();
$TA = json_decode($Z6->XfskodsfhHJ($eX), true);
/*if (isset($TA["\x73\164\x61\x74\165\x73"]) && $TA["\151\x73\x54\162\x69\x61\154"] == true) {
goto Gb;
}*/
//if (isset($TA["\163\x74\141\164\165\x73"]) && strcasecmp($TA["\x73\164\x61\164\x75\x73"], "\x53\x55\x43\x43\105\123\x53") == 0) {
goto zP;
//}
/*if (isset($TA["\163\x74\x61\164\x75\163"]) && strcasecmp($TA["\163\164\x61\x74\x75\x73"], "\106\101\x49\x4c\x45\x44") == 0) {
goto m5;
}
update_option("\x6d\157\x5f\x6c\144\141\160\137\x6c\157\143\141\154\x5f\155\145\163\163\141\x67\x65", "\x41\156\x20\x65\x72\x72\157\x72\x20\157\x63\x63\165\x72\x65\144\40\167\150\151\x6c\x65\40\x70\162\157\x63\145\163\163\x69\156\147\40\x79\x6f\165\162\x20\x72\x65\x71\165\145\163\164\56\40\120\x6c\145\141\163\x65\40\124\x72\x79\40\x61\x67\x61\x69\156\56");
$this->show_error_message();*/
goto gE;
m5:
if (isset($TA["\163\164\141\x74\165\x73"]) && strcasecmp($TA["\x6d\x65\x73\x73\x61\147\x65"], "\103\x6f\x64\145\x20\x68\x61\163\x20\x45\170\160\x69\162\145\144") == 0) {
goto XI;
}
update_option("\155\157\x5f\x6c\x64\141\160\x5f\x6c\x6f\143\x61\154\137\x6d\x65\x73\163\141\147\x65", "\131\157\165\x20\x68\x61\166\145\x20\145\156\x74\x65\x72\x65\144\x20\x61\156\x20\x69\x6e\166\x61\x6c\x69\144\x20\x6c\x69\143\145\156\x73\145\40\153\145\x79\56\40\120\154\x65\x61\x73\x65\40\x65\x6e\x74\x65\x72\x20\141\40\166\141\x6c\x69\x64\x20\154\151\143\145\156\x73\x65\40\x6b\x65\171\56");
goto KI;
XI:
$iX = add_query_arg(array("\x74\x61\x62" => "\160\162\151\143\x69\156\147"), $_SERVER["\122\x45\x51\x55\105\123\x54\137\x55\122\111"]);
update_option("\x6d\x6f\137\154\144\x61\x70\137\x6c\157\143\141\154\x5f\x6d\145\163\163\141\147\145", "\x4c\x69\x63\145\x6e\x73\x65\x20\153\145\x79\40\171\157\165\x20\x68\141\x76\x65\40\145\156\x74\145\162\x65\144\x20\150\x61\x73\40\x61\154\162\x65\141\x64\x79\x20\x62\x65\x65\156\40\165\x73\x65\x64\56\40\x50\154\145\x61\x73\145\x20\145\156\164\x65\x72\x20\x61\40\153\145\171\x20\167\x68\151\143\150\x20\x68\141\163\40\x6e\157\164\x20\142\x65\x65\156\40\165\163\x65\x64\40\x62\x65\x66\x6f\x72\145\40\x6f\x6e\x20\x61\x6e\171\40\157\x74\150\145\162\40\151\156\163\164\x61\156\x63\145\40\x6f\162\x20\151\146\40\x79\x6f\165\40\150\x61\166\x65\x20\145\170\141\165\x73\164\145\x64\x20\x61\x6c\x6c\x20\171\157\x75\x72\40\x6b\145\171\x73\40\164\150\145\x6e\40\x3c\x61\40\x68\162\145\x66\x3d\42" . $iX . "\42\x3e\x43\154\x69\x63\153\x20\x68\x65\162\145\74\57\141\76\40\164\x6f\40\142\165\171\40\155\x6f\162\145\x2e");
KI:
$this->show_error_message();
gE:
goto Uu;
zP:
update_option("\x6d\x6f\137\160\x6c\165\147\151\156\x5f\x75\164\151\x6c\151\x74\171\137\153\145\171\137\x73\164\x61\164", Jp_hwfrqar_mzwhwzl_arvowfra::rqfvlyz_mzwhwzl("\160\162\x65\155\151\x75\155"));
delete_option("\x6d\x6f\x5f\160\x6c\165\x67\x69\x6e\137\x75\x74\x69\154\x69\x74\171\137\x6b\145\171");
update_option("\155\x6f\137\154\144\x61\x70\x5f\154\157\143\141\x6c\137\x6c\x69\143\x65\156\x73\145\x5f\166\x65\x72\x69\x66\151\145\144", "\164\162\165\x65");
update_option("\155\157\x5f\x6c\x64\x61\x70\x5f\154\157\x63\x61\154\137\x6c\x69\143\x65\x6e\163\x65\137\x6b\x65\171", Mo_Ldap_Local_Util::encrypt($eX));
update_option("\x6d\157\x5f\154\x64\x61\x70\x5f\154\x6f\x63\141\154\x5f\x6d\145\163\x73\141\147\145", "\x59\x6f\x75\162\40\x6c\151\143\145\x6e\163\x65\40\151\x73\x20\166\x65\162\151\146\x69\145\144\x2e\x20\131\x6f\165\x20\143\141\x6e\40\x6e\157\x77\40\163\x65\164\165\x70\x20\164\x68\145\40\160\154\165\x67\151\156\56");
$this->show_success_message();
Uu:
goto Vh;
Gb:
$Vt = Jp_hwfrqar_mzwhwzl_arvowfra::bp_efzwoezr_zvweh_hwfrqar($TA, $eX);
update_option("\x6d\x6f\x5f\x6c\144\141\160\137\x6c\x6f\x63\141\154\137\x6d\x65\163\x73\141\147\x65", $Vt["\144\x69\x73\x70\x6c\141\x79\115\163\147"]);
if ($Vt["\164\x72\151\141\x6c\x53\x74\x61\x74\x75\x73"]) {
goto lj;
}
$this->show_error_message();
goto qP;
lj:
$this->show_success_message();
qP:
Vh:
goto ev;
L2:
$eX = Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\137\x6c\144\141\x70\137\x6c\157\143\x61\154\137\154\151\x63\145\156\x73\x65\x5f\153\145\x79"));
$Z6 = new Mo_Ldap_Local_Customer();
$TA = json_decode($Z6->XfskodsfhHJ($eX), true);
$xc = Jp_hwfrqar_mzwhwzl_arvowfra::bp_myjezr_hwfrqar_mzwhwzl($TA);
update_option("\x6d\157\x5f\154\144\x61\160\137\x6c\157\x63\141\154\x5f\155\145\x73\163\x61\147\145", $xc);
$this->show_success_message();
ev:
if (!(isset($_POST["\157\160\x74\151\157\x6e"]) && $Re)) {
goto Az;
}
$oM = $_POST["\x6f\160\164\x69\157\x6e"];
switch ($oM) {
case "\x6d\x6f\137\154\144\x61\x70\137\x6c\157\143\141\154\x5f\x73\x61\166\x65\137\143\157\x6e\x66\151\x67":
if (NddKoYsdasadJD()) {
goto yn;
}
update_option("\x6d\157\x5f\x6c\144\141\x70\x5f\x6c\x6f\x63\x61\x6c\137\155\145\x73\163\x61\x67\x65", "\x53\145\x74\x74\x69\156\147\x73\x20\143\141\x6e\x27\x74\40\x62\145\x20\163\141\166\x65\x64\x20\x77\x69\164\x68\157\x75\x74\x20\x76\145\162\151\x66\x79\151\x6e\147\40\171\x6f\x75\162\40\x6c\151\x63\145\x6e\x73\145\40\153\x65\171\56");
$this->show_error_message();
goto HO;
yn:
$AJ = isset($_POST["\x61\x6e\157\156\x79\155\x6f\165\x73\137\x62\x69\x6e\x64"]) ? 1 : 0;
update_option("\155\157\137\154\x64\x61\x70\137\x6c\157\143\141\x6c\x5f\x61\156\157\156\171\155\157\x75\x73\137\142\x69\156\x64", $AJ);
$QE = '';
$gq = '';
$TX = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x6c\144\141\160\x5f\x73\x65\x72\166\145\x72"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\144\156"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x61\x64\155\x69\x6e\137\x70\141\x73\x73\x77\157\x72\x64"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x6d\x6f\137\x6c\144\x61\160\x5f\x70\162\x6f\164\157\x63\157\154"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\155\157\x5f\x6c\144\141\160\137\163\145\x72\x76\x65\162\x5f\x70\157\162\164\137\x6e\157"])) {
goto Mr;
}
$NT = $_POST["\155\157\137\154\x64\141\160\x5f\160\162\x6f\x74\157\x63\157\x6c"];
$y0 = sanitize_text_field($_POST["\155\x6f\x5f\x6c\144\x61\x70\x5f\x73\145\162\166\145\x72\x5f\x70\x6f\162\x74\137\x6e\x6f"]);
$kZ = sanitize_text_field($_POST["\154\144\x61\x70\x5f\163\x65\x72\166\145\162"]);
$QE = $NT . "\x3a\x2f\x2f" . $kZ . "\72" . $y0;
$gq = sanitize_text_field($_POST["\144\156"]);
$TX = sanitize_text_field($_POST["\x61\144\x6d\x69\156\137\x70\141\163\163\x77\157\x72\144"]);
goto oG;
Mr:
update_option("\155\157\x5f\154\x64\141\x70\137\x6c\157\x63\141\154\x5f\x6d\x65\x73\x73\x61\147\x65", "\x41\x6c\x6c\x20\x74\150\x65\40\146\x69\145\154\x64\163\x20\x61\162\x65\40\x72\145\x71\165\151\x72\x65\x64\x2e\x20\x50\x6c\145\141\163\145\x20\145\x6e\x74\145\162\40\166\x61\154\x69\x64\x20\145\x6e\164\162\151\145\x73\x2e");
$this->show_error_message();
return;
oG:
if (!Mo_Ldap_Local_Util::is_extension_installed("\157\160\x65\x6e\163\163\154")) {
goto G0;
}
$Le = $_POST["\155\x6f\137\x6c\144\141\x70\x5f\x64\x69\x72\x65\143\x74\157\x72\x79\137\x73\x65\x72\x76\x65\162\x5f\166\141\x6c\165\145"];
if (strcasecmp($Le, "\157\164\x68\145\162") == 0) {
goto Mq;
}
delete_option("\x6d\157\137\154\144\x61\160\137\x64\x69\x72\145\x63\164\x6f\x72\x79\137\x73\145\162\166\x65\162\x5f\143\x75\163\164\157\155\137\x76\x61\x6c\x75\x65");
goto PM;
Mq:
$No = isset($_POST["\155\157\x5f\154\x64\141\160\x5f\144\151\162\x65\x63\x74\157\x72\171\137\163\145\x72\166\x65\162\137\x63\165\163\x74\157\155\137\166\x61\154\x75\x65"]) && !empty($_POST["\x6d\157\137\154\144\141\x70\x5f\x64\x69\x72\145\143\x74\157\162\171\x5f\x73\145\x72\166\x65\x72\x5f\143\x75\163\x74\157\x6d\x5f\x76\x61\154\165\145"]) ? $_POST["\155\157\x5f\x6c\144\141\160\x5f\144\151\162\145\x63\164\157\162\x79\137\163\x65\162\x76\x65\162\x5f\x63\165\x73\x74\x6f\155\137\x76\x61\x6c\165\x65"] : "\x6f\164\x68\145\162";
update_option("\x6d\x6f\x5f\x6c\144\141\160\137\x64\x69\x72\x65\143\x74\x6f\x72\171\137\163\145\x72\166\x65\162\137\x63\x75\x73\x74\157\155\137\x76\x61\154\x75\x65", $No);
PM:
update_option("\x6d\x6f\137\x6c\x64\141\160\x5f\x64\151\162\x65\x63\x74\x6f\x72\171\x5f\x73\x65\162\x76\145\162\x5f\x76\141\x6c\165\145", $Le);
update_option("\x6d\x6f\137\x6c\144\141\x70\137\154\157\x63\141\154\x5f\x6c\144\x61\x70\137\160\x72\157\164\157\143\x6f\x6c", $NT);
update_option("\155\x6f\x5f\154\x64\x61\160\137\154\x6f\143\141\x6c\137\x6c\144\141\x70\x5f\x73\145\162\166\x65\x72\x5f\x61\x64\x64\x72\145\163\x73", Mo_Ldap_Local_Util::encrypt($kZ));
if ($NT == "\154\x64\141\160") {
goto QS;
}
if (!($NT == "\154\144\x61\160\163")) {
goto OU;
}
update_option("\155\157\x5f\x6c\x64\x61\x70\137\x6c\x6f\x63\141\x6c\137\x6c\x64\x61\160\163\x5f\160\x6f\x72\x74\137\156\x75\x6d\142\145\162", $y0);
OU:
goto I7;
QS:
update_option("\x6d\157\137\154\x64\141\160\137\x6c\157\x63\x61\154\137\x6c\144\x61\x70\137\160\x6f\x72\164\137\x6e\165\x6d\x62\x65\x72", $y0);
I7:
update_option("\x6d\157\x5f\x6c\144\x61\160\137\154\x6f\x63\141\154\137\163\145\162\166\x65\x72\x5f\x75\x72\x6c", Mo_Ldap_Local_Util::encrypt($QE));
update_option("\x6d\157\137\x6c\144\141\160\x5f\154\157\x63\x61\154\x5f\163\145\162\166\x65\162\x5f\144\156", Mo_Ldap_Local_Util::encrypt($gq));
update_option("\x6d\x6f\137\x6c\x64\141\x70\x5f\x6c\157\x63\141\154\137\163\x65\x72\x76\x65\162\x5f\160\x61\163\163\x77\x6f\162\144", Mo_Ldap_Local_Util::encrypt($TX));
$Tg = new Mo_Ldap_Local_Config();
$Ps = "\x59\x6f\x75\x72\x20\x63\x6f\156\146\x69\147\x75\x72\x61\164\151\x6f\156\x20\x68\141\x73\40\x62\145\145\156\40\x73\141\166\x65\144\56";
$Y1 = $Tg->test_connection();
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\x4c\104\x41\x50\x5f\x42\111\116\104\x5f\x53\125\103\x43\x45\x53\x53\106\125\114") == 0) {
goto RS;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\x4c\x44\101\120\x5f\102\111\x4e\104\x5f\x45\122\122\117\122") == 0) {
goto IY;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\x4c\x44\101\x50\x5f\103\x4f\116\116\105\103\124\111\x4f\116\137\x45\122\x52\x4f\x52") == 0) {
goto DH;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\x4c\104\x41\120\137\105\130\x54\x45\x4e\x53\x49\117\x4e\137\105\122\122\x4f\x52") == 0) {
goto PB;
}
if (!(isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\117\x50\105\116\x53\123\114\x5f\105\130\124\105\116\x53\111\117\x4e\137\x45\122\122\117\122") == 0)) {
goto aT;
}
$this->mo_ldap_report_update("\114\104\x41\x50\40\103\x4f\x4e\x4e\105\x43\124\x49\117\116\40\124\x45\x53\x54", "\x45\x52\x52\117\x52", "\74\x73\x74\x72\157\156\147\x3e\x54\x65\163\164\x20\x43\157\156\156\x65\x63\x74\151\157\x6e\40\x45\162\162\157\x72\x3a\x20\x3c\x2f\163\164\162\157\x6e\147\76" . $Y1->statusMessage);
update_option("\155\157\137\x6c\144\141\160\137\x6c\x6f\143\x61\x6c\x5f\155\x65\163\x73\141\x67\145", $Y1->statusMessage, '', "\x6e\x6f");
update_option("\155\157\137\x6c\x64\141\x70\x5f\x6c\157\143\x61\x6c\x5f\x76\x65\162\151\146\x79\137\154\144\x61\160\x5f\143\157\156\156\x65\143\x74\x69\x6f\x6e", "\x66\x61\154\x73\145");
$this->show_error_message();
aT:
goto mc;
PB:
$this->mo_ldap_report_update("\114\104\x41\120\x20\103\x4f\116\116\105\x43\x54\111\x4f\116\x20\x54\105\x53\124", "\x45\x52\x52\x4f\122", "\74\163\164\x72\x6f\156\147\x3e\x54\145\x73\x74\40\103\157\x6e\x6e\145\x63\164\x69\157\156\x20\105\162\x72\157\162\x3a\40\x3c\57\x73\164\162\x6f\156\147\x3e" . $Y1->statusMessage);
update_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\157\143\x61\154\137\155\145\163\x73\141\147\145", $Y1->statusMessage, '', "\156\x6f");
update_option("\x6d\157\137\154\144\x61\x70\x5f\x6c\157\x63\x61\x6c\137\166\145\162\x69\x66\171\137\154\x64\x61\x70\137\143\x6f\156\x6e\145\143\x74\151\157\156", "\146\x61\x6c\x73\x65");
$this->show_error_message();
mc:
goto Sk;
DH:
$this->mo_ldap_report_update("\x4c\104\x41\120\x20\x43\x4f\x4e\116\105\x43\x54\x49\x4f\x4e\x20\124\105\x53\x54", "\105\122\122\x4f\x52", "\74\x73\164\162\x6f\156\147\x3e\124\x65\x73\x74\x20\x43\157\156\156\x65\x63\x74\x69\157\x6e\40\105\162\162\x6f\162\x3a\40\x3c\57\163\164\x72\157\x6e\147\76\x43\141\x6e\x6e\157\164\40\x63\x6f\x6e\156\145\143\164\x20\x74\157\40\114\104\x41\x50\40\x53\x65\162\166\x65\162\x2e\x20\x4d\x61\153\x65\x20\x73\165\162\x65\40\x79\157\x75\x20\x68\x61\166\145\40\145\156\164\145\x72\145\x64\x20\143\157\x72\162\x65\x63\x74\x20\114\104\x41\120\40\x73\145\162\x76\x65\x72\40\x68\x6f\163\x74\156\x61\x6d\145\40\x6f\162\40\x49\x50\40\x61\x64\x64\x72\145\163\x73\x2e");
update_option("\x6d\x6f\137\x6c\x64\x61\x70\137\154\157\143\x61\x6c\137\x6d\145\163\x73\141\147\145", $Y1->statusMessage, '', "\156\x6f");
update_option("\x6d\157\137\154\x64\141\x70\137\x6c\157\143\x61\154\137\x76\x65\x72\151\146\171\x5f\x6c\144\x61\160\x5f\143\157\x6e\156\x65\x63\164\151\x6f\x6e", "\146\x61\x6c\x73\x65");
$this->show_error_message();
Sk:
goto hH;
IY:
$this->mo_ldap_report_update("\114\104\x41\120\40\103\x4f\116\116\105\103\124\x49\x4f\116\40\x54\x45\123\124", "\x45\122\x52\117\122", "\74\163\x74\162\157\156\147\76\x54\145\x73\164\x20\103\x6f\x6e\x6e\x65\143\164\x69\157\x6e\40\105\x72\x72\157\x72\72\40\x3c\x2f\163\164\x72\x6f\x6e\147\x3e" . $Y1->statusMessage);
update_option("\x6d\157\137\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\x6d\x65\163\x73\x61\147\145", $Y1->statusMessage, '', "\x6e\x6f");
update_option("\155\157\137\154\144\141\160\x5f\154\157\143\x61\x6c\x5f\166\145\x72\151\146\171\137\x6c\x64\141\160\137\x63\x6f\x6e\156\x65\143\x74\x69\x6f\156", "\146\141\x6c\163\145");
$this->show_error_message();
hH:
goto R0;
RS:
update_option("\x6d\x6f\137\154\144\x61\x70\137\154\157\x63\141\x6c\x5f\x6d\x65\x73\163\141\x67\x65", "\40\103\157\156\x6e\145\x63\164\x69\157\156\40\x77\x61\163\40\145\x73\164\x61\142\154\x69\x73\150\x65\144\x20\163\165\143\143\x65\x73\x73\x66\165\x6c\x6c\x79\x2e\40" . $Ps . "\x20\120\x6c\x65\x61\163\x65\40\143\157\156\146\x69\x67\x75\162\145\x20\114\x44\x41\120\40\125\x73\x65\162\40\x4d\x61\x70\160\151\x6e\147\x20\x6e\x6f\167\x2e", '', "\x6e\x6f");
update_option("\x6d\x6f\137\x6c\144\141\x70\137\x6c\x6f\143\x61\x6c\137\166\x65\162\151\146\171\137\154\x64\x61\160\137\x63\157\x6e\156\145\143\164\x69\x6f\x6e", "\x74\x72\x75\145");
$this->show_success_message();
R0:
goto m6;
G0:
update_option("\155\157\137\x6c\x64\x61\160\x5f\x6c\157\x63\141\x6c\x5f\x6d\x65\x73\163\141\x67\145", "\120\x48\120\x20\117\160\x65\x6e\x53\x53\x4c\x20\x65\x78\x74\x65\156\163\x69\157\x6e\x20\151\163\x20\x6e\157\164\x20\151\x6e\163\164\141\x6c\x6c\x65\144\40\x6f\162\x20\x64\x69\163\141\142\154\x65\x64\x2e\x20\120\x6c\x65\141\163\145\x20\x65\x6e\x61\x62\154\145\x20\151\164\x20\x66\x69\x72\163\x74\56");
$this->show_error_message();
m6:
HO:
goto Fa;
case "\155\157\137\x6c\x64\141\x70\x5f\x6c\157\143\x61\x6c\x5f\160\151\156\147\x5f\163\145\162\x76\x65\x72":
update_option("\x6d\157\137\x6c\x64\x61\x70\137\154\x6f\143\141\x6c\x5f\141\x6e\x6f\156\171\155\157\165\163\x5f\x62\151\x6e\144", isset($_POST["\141\156\x6f\x6e\171\x6d\157\x75\163\137\142\x69\x6e\144"]) ? $_POST["\141\x6e\157\156\171\x6d\x6f\165\163\137\x62\x69\x6e\144"] : 0);
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\154\x64\x61\160\137\x73\x65\162\166\x65\x72"])) {
goto Pf;
}
$QE = sanitize_text_field($_POST["\x6c\144\141\160\137\163\145\x72\x76\x65\x72"]);
update_option("\x6d\157\x5f\154\144\141\160\137\154\x6f\143\141\x6c\137\x73\145\x72\x76\145\162\137\165\162\154", Mo_Ldap_Local_Util::encrypt($QE));
Pf:
$Qq = sanitize_text_field($_POST["\154\x64\x61\160\x5f\x73\x65\162\166\x65\x72"]);
$Tg = new Mo_Ldap_Local_Config();
$Y1 = $Tg->check_anonymous_bind($Qq);
if (strcasecmp($Y1->statusCode, "\114\x44\101\120\137\x45\x58\x54\x45\116\x53\x49\117\x4e\x5f\x45\x52\x52\117\122") == 0) {
goto M7;
}
if (strcasecmp($Y1->statusCode, "\117\x50\105\116\123\x53\114\x5f\x45\130\124\105\x4e\123\111\x4f\116\137\105\x52\x52\117\122") == 0) {
goto X5;
}
if (!(strcasecmp($Y1->statusCode, "\x4c\x44\x41\x50\x5f\103\117\x4e\116\x45\x43\x54\x49\117\116\137\105\x52\122\117\122") == 0)) {
goto Cy;
}
$pZ = str_replace("\154\x64\141\x70\x3a\x2f\x2f", '', $Qq);
$pZ = str_replace("\x6c\x64\141\x70\x73\x3a\x2f\57", '', $pZ);
$r5 = explode("\72", $pZ);
if (!isset($r5[0])) {
goto cz;
}
$pZ = $r5[0];
cz:
$eM = "\105\x72\162\x6f\162\40\143\x6f\156\156\x65\143\164\151\x6e\x67\x20\164\157\x20\x4c\x44\x41\120\40\x53\x65\x72\x76\145\x72\56\40\120\x6c\145\x61\x73\145\x20\143\x68\145\143\x6b\x20\x79\x6f\x75\x72\x20\114\x44\x41\x50\40\163\145\162\x76\x65\x72\x20\x55\x52\x4c\x20\74\x62\76" . $Qq . "\x3c\57\142\x3e\x2e\x3c\x62\x72\76\x50\x6f\163\163\x69\142\x6c\x65\40\x72\x65\x61\163\x6f\156\x73\40\x2d\x3c\x62\x72\x3e\61\56\x20\x4c\x44\101\x50\40\125\x52\114\x20\151\x73\40\x74\x79\x70\145\x64\40\151\x6e\x63\x6f\x72\162\x65\x63\164\x6c\171\x2e\40\124\x79\x70\145\x20\x69\x74\40\x70\162\x6f\160\145\x72\154\x79\54\x20\145\151\x74\150\x65\162\40\167\151\164\x68\40\x49\x50\40\141\x64\144\x72\x65\163\x73\x20\157\162\40\x77\x69\x74\150\40\x66\x75\x6c\154\x79\x20\x71\165\x61\x6c\151\146\x69\x65\x64\x20\x64\157\x6d\x61\x69\156\40\x6e\141\x6d\x65\x2e\x20\x42\x6f\164\150\x20\163\150\157\165\154\144\40\x77\x6f\162\x6b\x2e\40\105\147\56\x20\x3c\x62\x3e\x6c\x64\x61\x70\72\x2f\57\65\x38\x2e\66\64\56\x31\x33\62\56\62\63\x35\72\x33\70\x39\x3c\57\142\76\40\x6f\x72\x20\74\142\x3e\154\144\x61\160\x3a\57\x2f\x6c\x64\141\160\56\x6d\151\x6e\151\157\162\141\156\147\x65\x2e\x63\157\155\x3a\63\70\71\74\57\142\x3e\56\74\x62\162\76\62\56\40\114\x44\x41\120\x20\163\145\162\166\x65\162\x20\x69\163\x20\165\x6e\162\x65\141\x63\x68\x61\142\x6c\x65\40\x2d\x20\117\160\145\156\x20\x61\x20\x63\157\x6d\x6d\141\156\x64\x20\x70\x72\x6f\155\x70\164\x20\x61\x6e\x64\x20\163\145\x65\x20\x69\x66\40\x79\x6f\165\x20\141\x72\x65\x20\141\x62\x6c\145\40\x74\157\40\x70\x69\x6e\x67\x20\x74\x68\145\40\171\157\165\162\40\114\x44\x41\x50\x20\163\145\162\x76\145\x72\40\x28\145\x2e\147\56\40\x74\171\160\145\40\164\x68\x69\x73\40\143\x6f\155\x6d\141\x6e\144\40\x6f\x6e\40\x61\40\143\x6f\x6d\x6d\x61\156\144\40\160\162\157\x6d\160\164\40\74\x62\x3e\160\151\x6e\147\40" . $pZ . "\x3c\57\x62\x3e\56\40\x49\146\x20\160\x69\156\x67\x20\x69\x73\x20\163\165\x63\x63\x65\x73\x73\x66\165\x6c\40\x74\x68\145\156\x20\157\x6e\154\x79\40\x27\x63\157\156\164\x61\x63\x74\40\x6c\x64\141\160\40\163\x65\x72\x76\x65\162\47\x20\167\x69\x6c\154\x20\x77\157\162\x6b\56\74\142\162\x3e\x33\56\40\x54\x68\x65\x72\145\x20\151\163\40\141\x20\74\x62\x3e\x66\151\162\x65\167\x61\154\154\x3c\57\x62\76\x20\x69\x6e\x20\142\145\x74\x77\x65\145\156\40\55\40\x69\x66\40\164\150\145\x72\x65\x20\x69\x73\x20\x61\40\x66\151\162\x65\167\x61\154\x6c\x2c\x20\x70\x6c\145\x61\x73\145\x20\157\160\x65\156\x20\x74\x68\x65\x20\x66\x69\x72\x65\x77\141\x6c\x6c\40\x74\x6f\x20\141\x6c\154\157\167\40\x69\156\x63\157\x6d\151\x6e\x67\40\162\x65\x71\x75\x65\x73\x74\163\40\164\157\40\171\157\165\162\40\114\104\x41\120\x20\146\162\157\x6d\40\171\157\x75\162\40\127\157\x72\144\120\x72\x65\x73\163\40\111\x50\x20\141\156\144\40\x70\157\x72\x74\40\x33\x38\x39\x2e";
update_option("\155\157\x5f\154\x64\x61\x70\137\154\x6f\x63\141\x6c\137\155\x65\x73\x73\141\147\145", $eM, '', "\156\157");
$this->show_error_message();
Cy:
goto J2;
X5:
update_option("\155\157\x5f\154\144\141\160\x5f\x6c\157\x63\141\x6c\x5f\155\x65\x73\163\141\147\x65", "\x4f\160\145\156\x53\x53\114\x20\x45\170\164\x65\x6e\163\x69\x6f\x6e\x20\x69\163\40\144\151\163\x61\142\x6c\x65\x64\72\x20" . $Y1->statusMessage, '', "\x6e\157");
$this->show_error_message();
J2:
goto q2;
M7:
update_option("\155\x6f\x5f\x6c\x64\141\x70\x5f\154\x6f\143\141\x6c\x5f\x6d\x65\163\163\141\x67\145", "\x4c\104\101\120\40\105\x78\x74\x65\x6e\x73\x69\x6f\x6e\x20\151\x73\x20\144\151\163\141\142\x6c\145\x64\x3a\x20" . $Y1->statusMessage, '', "\156\157");
$this->show_error_message();
q2:
goto Fa;
case "\155\157\x5f\x6c\144\x61\160\137\154\x6f\x63\141\x6c\x5f\164\154\x73\x5f\x65\x6e\x61\142\x6c\145":
$IC = isset($_POST["\155\x6f\137\154\144\x61\x70\x5f\x6c\157\143\x61\x6c\x5f\164\x6c\163\137\145\x6e\141\142\x6c\145"]) ? $_POST["\x6d\157\x5f\154\144\x61\x70\137\x6c\157\x63\x61\x6c\x5f\164\154\163\x5f\145\x6e\x61\x62\154\145"] : 0;
update_option("\155\157\137\154\x64\141\x70\x5f\154\157\143\141\154\137\x75\x73\x65\x5f\x74\x6c\x73", $IC);
if ($IC == 1) {
goto az;
}
update_option("\x6d\x6f\137\x6c\144\141\x70\x5f\154\157\143\x61\x6c\x5f\x6d\145\163\x73\141\x67\x65", "\x54\114\123\40\x68\141\163\40\142\x65\x65\156\40\144\x69\163\141\142\154\145\x64\x2e");
$this->show_error_message();
goto ph;
az:
update_option("\x6d\157\x5f\x6c\144\141\x70\137\154\157\143\141\x6c\x5f\155\x65\163\x73\141\x67\x65", "\124\114\x53\40\x68\141\163\40\x62\x65\145\x6e\x20\x65\x6e\141\x62\x6c\145\x64\x2e");
$this->show_success_message();
ph:
goto Fa;
case "\155\x6f\137\154\x64\x61\160\x5f\x6c\157\x63\141\154\137\163\x61\x76\145\x5f\165\x73\145\x72\x5f\x6d\x61\x70\x70\x69\156\x67":
delete_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\157\143\x61\154\x5f\165\x73\145\162\137\155\x61\160\160\151\x6e\x67\x5f\x73\x74\141\x74\x75\163");
update_option("\155\x6f\x5f\x6c\x6f\x63\141\154\137\146\x69\154\164\145\x72\x5f\x63\x68\x65\x63\x6b", isset($_POST["\x6c\144\141\x70\x5f\163\x65\x61\162\143\150\x5f\x66\151\154\x74\145\x72\163"]) ? 1 : 0);
$qU = '';
$Ia = '';
$Dm = '';
$GD = [];
$wP = [];
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x73\x65\141\162\143\150\x5f\x62\x61\163\x65"])) {
goto Ag;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\165\163\x65\162\x5f\141\x74\x74\162\x69\142\x75\x74\x65\x5f\x74\x65\170\164"]) && Mo_Ldap_Local_Util::check_empty_or_null($_POST["\163\145\141\x72\143\150\137\x66\151\154\164\145\162"])) {
goto Fo;
}
$Ia = strtolower(sanitize_text_field($_POST["\x73\145\x61\162\x63\150\x5f\142\141\x73\145"]));
goto IP;
Fo:
update_option("\155\157\137\x6c\144\x61\x70\x5f\154\157\143\141\154\137\x6d\145\163\x73\141\147\145", "\101\154\x6c\40\x74\x68\145\40\146\151\145\154\x64\x73\x20\141\x72\145\40\162\145\161\165\151\x72\x65\x64\x2e\x20\x50\154\145\141\x73\x65\40\145\x6e\164\145\162\x20\x76\141\154\151\144\40\145\x6e\x74\162\x69\x65\x73\56");
add_option("\x6d\157\x5f\154\144\141\160\137\154\x6f\x63\x61\x6c\137\165\x73\x65\x72\x5f\x6d\x61\160\x70\x69\156\147\137\x73\164\x61\x74\x75\163", "\111\x4e\126\x41\x4c\x49\x44", '', "\156\157");
$this->show_error_message();
return;
IP:
goto Yn;
Ag:
update_option("\x6d\157\x5f\x6c\x64\141\160\137\154\157\x63\141\x6c\x5f\x6d\x65\163\163\141\147\x65", "\x41\154\154\x20\164\150\x65\x20\146\151\x65\154\144\163\x20\x61\x72\145\x20\162\145\161\x75\151\x72\145\x64\x2e\x20\120\154\145\141\x73\x65\40\145\x6e\x74\145\162\40\x76\x61\154\151\144\40\x65\156\164\x72\151\x65\x73\x2e");
add_option("\155\157\x5f\154\x64\x61\160\x5f\154\157\x63\x61\154\137\165\x73\145\x72\137\155\141\x70\x70\x69\x6e\147\x5f\163\164\141\x74\x75\163", "\111\116\126\x41\x4c\x49\104", '', "\x6e\157");
$this->show_error_message();
return;
Yn:
if (!Mo_Ldap_Local_Util::is_extension_installed("\157\160\145\x6e\x73\163\154")) {
goto Jf;
}
$Dm = sanitize_text_field($_POST["\163\x65\141\x72\x63\x68\137\146\151\x6c\164\145\x72"]);
$Dk = sanitize_text_field($_POST["\165\163\145\x72\137\x61\164\164\x72\151\142\165\164\x65\137\164\145\170\x74"]);
$jJ = sanitize_text_field($_POST["\x65\x78\x74\162\x61\x5f\165\163\x65\x72\x5f\x61\x74\x74\x72\x69\x62\165\164\x65"]);
if (!isset($Dk)) {
goto Wo;
}
foreach ($_POST["\165\163\145\x72\137\141\164\x74\162\151\142\165\164\145\137\x74\x65\170\x74"] as $jA => $D0) {
$GD[$jA] = $D0;
GS:
}
Rt:
Wo:
update_option("\155\157\137\x6c\x64\141\x70\137\154\x6f\x63\141\154\x5f\163\x65\141\x72\x63\x68\x5f\x66\151\x6c\164\x65\162", Mo_Ldap_Local_Util::encrypt($Dm));
update_option("\x6d\x6f\x5f\x6c\x64\141\160\x5f\x6c\157\x63\x61\x6c\137\165\x73\145\162\156\x61\x6d\145\x5f\141\x74\164\162\x69\x62\x75\164\x65", $GD);
update_option("\x6d\157\x5f\x6c\144\141\160\x5f\154\157\x63\x61\x6c\x5f\145\x78\164\162\141\x5f\165\163\145\162\x5f\141\x74\164\162\151\x62\165\x74\x65", $jJ);
update_option("\x6d\157\x5f\x6c\144\141\x70\137\x6c\x6f\143\141\x6c\x5f\163\x65\141\x72\x63\x68\x5f\x62\x61\x73\145", Mo_Ldap_Local_Util::encrypt($Ia));
$Ps = "\x4c\x44\101\120\40\x55\x73\145\162\40\x4d\141\x70\160\x69\156\147\x20\x43\x6f\x6e\146\151\x67\x75\162\141\164\151\x6f\156\40\x68\141\x73\x20\x62\145\145\x6e\40\x73\141\x76\145\144\x2e\x20\120\x6c\145\x61\163\x65\x20\164\145\163\x74\40\x61\165\x74\150\145\x6e\x74\x69\x63\x61\164\x69\x6f\x6e\40\164\x6f\40\166\145\162\151\146\171\x20\114\x44\x41\120\x20\125\163\x65\x72\40\115\x61\x70\160\x69\x6e\x67\40\103\x6f\156\x66\x69\x67\165\x72\141\164\x69\157\156\x2e";
update_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\x6c\157\x63\x61\x6c\137\x6d\145\163\x73\141\x67\145", $Ps, '', "\x6e\157");
add_option("\x6d\157\x5f\x6c\144\x61\160\137\x6c\x6f\x63\x61\x6c\137\x75\x73\x65\x72\137\x6d\x61\160\x70\x69\156\x67\137\163\x74\141\164\165\163", "\126\x41\114\111\x44", '', "\156\x6f");
$this->show_success_message();
update_option("\155\x6f\137\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\154\137\143\x68\x65\x63\x6b\137\165\163\145\x72\137\x6d\x61\160\x70\151\156\147\137\x63\x6f\156\x66\x69\x67", "\x74\162\x75\145");
goto Yh;
Jf:
update_option("\155\157\x5f\x6c\144\x61\x70\x5f\154\157\143\x61\x6c\x5f\x6d\145\163\x73\141\x67\145", "\120\x48\x50\40\x4f\160\x65\x6e\x53\123\x4c\40\145\x78\x74\x65\x6e\x73\151\157\156\x20\151\163\40\x6e\x6f\164\x20\x69\156\163\x74\x61\154\154\x65\144\40\157\x72\40\144\x69\x73\x61\x62\154\145\x64\56\x20\120\154\145\141\163\x65\40\145\156\x61\142\x6c\x65\x20\x69\x74\x20\x66\x69\162\x73\164\x2e");
add_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\x6f\x63\x61\x6c\x5f\165\x73\x65\162\x5f\x6d\x61\160\x70\x69\x6e\147\137\x73\x74\141\164\x75\x73", "\x49\x4e\126\x41\114\111\x44", '', "\x6e\157");
$this->show_error_message();
Yh:
goto Fa;
case "\x6d\x6f\x5f\154\144\141\160\x5f\x6c\x6f\x63\141\x6c\x5f\x74\145\x73\x74\137\x61\165\164\150":
if (NddKoYsdasadJD()) {
goto kb;
}
update_option("\x6d\157\137\154\x64\x61\x70\x5f\x6c\157\143\x61\154\x5f\x6d\145\163\x73\x61\147\x65", "\123\x65\164\164\x69\x6e\x67\x73\40\x63\x61\x6e\47\x74\x20\x62\x65\40\164\145\163\164\145\144\x20\167\151\x74\150\157\165\164\x20\166\x65\x72\x69\x66\x79\151\x6e\147\x20\171\x6f\165\x72\40\x6c\x69\x63\x65\x6e\163\x65\40\153\x65\171\56");
$this->show_error_message();
goto tA;
kb:
$QE = get_option("\155\157\137\x6c\144\x61\160\x5f\154\x6f\143\141\x6c\x5f\163\145\x72\x76\145\162\x5f\x75\x72\154");
$gq = get_option("\155\157\x5f\154\x64\x61\160\137\x6c\157\x63\x61\154\x5f\x73\x65\x72\166\x65\162\137\x64\156");
$TX = get_option("\155\x6f\x5f\154\x64\x61\x70\x5f\x6c\x6f\x63\141\x6c\x5f\163\x65\162\166\x65\x72\137\160\x61\163\x73\x77\157\162\144");
$Ia = get_option("\155\157\137\154\x64\141\x70\137\x6c\157\143\141\154\x5f\163\x65\x61\x72\143\x68\137\142\x61\163\145");
$GD = get_option("\155\157\x5f\154\144\x61\x70\137\x6c\157\143\x61\x6c\x5f\x75\x73\x65\162\x6e\x61\x6d\x65\x5f\x61\164\164\162\x69\x62\x75\164\145");
$Dm = get_option("\155\157\137\x6c\x64\141\x70\x5f\154\x6f\x63\x61\154\137\163\145\x61\x72\x63\150\x5f\146\x69\x6c\164\145\x72");
$iB = '';
$qx = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\164\145\x73\164\137\165\163\145\x72\156\x61\x6d\x65"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x74\145\163\164\x5f\160\141\163\163\167\157\x72\144"])) {
goto Vl;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($QE) || Mo_Ldap_Local_Util::check_empty_or_null($gq) || Mo_Ldap_Local_Util::check_empty_or_null($TX) || Mo_Ldap_Local_Util::check_empty_or_null($Ia) || Mo_Ldap_Local_Util::check_empty_or_null($GD) || Mo_Ldap_Local_Util::check_empty_or_null($Dm)) {
goto G_;
}
$iB = sanitize_text_field($_POST["\164\x65\x73\164\137\165\163\145\x72\x6e\x61\155\x65"]);
$qx = sanitize_text_field($_POST["\x74\145\163\x74\137\x70\141\x73\163\x77\157\162\144"]);
goto x0;
G_:
$this->mo_ldap_report_update("\124\x65\x73\x74\x20\x61\165\x74\x68\x65\x6e\x74\151\x63\x61\164\x69\x6f\x6e", "\105\122\122\x4f\x52", "\x3c\163\x74\162\157\x6e\x67\76\x54\x65\163\164\x20\101\x75\x74\150\145\156\x74\x69\143\x61\x74\151\x6f\156\40\x45\162\x72\157\162\x3c\57\x73\x74\162\x6f\156\147\x3e\72\x20\x50\x6c\x65\141\x73\145\40\x73\x61\x76\145\x20\x4c\104\101\120\x20\103\x6f\x6e\x66\151\147\x75\162\x61\x74\151\157\156\40\x74\157\40\164\x65\163\x74\40\x61\x75\x74\150\145\x6e\x74\x69\x63\141\164\151\x6f\x6e\56");
update_option("\x6d\157\x5f\154\144\141\160\x5f\154\x6f\x63\x61\x6c\x5f\155\x65\163\x73\x61\147\145", "\120\154\145\141\x73\145\40\163\x61\x76\x65\40\114\104\x41\120\x20\103\157\x6e\146\151\x67\x75\162\141\164\x69\x6f\156\40\x74\157\x20\164\145\163\x74\40\x61\165\164\150\145\156\164\x69\x63\141\x74\151\x6f\x6e\x2e", '', "\x6e\157");
$this->show_error_message();
return;
x0:
goto mz;
Vl:
$this->mo_ldap_report_update("\124\x65\x73\x74\x20\x41\x75\x74\150\145\x6e\164\x69\x63\141\164\151\x6f\x6e\x20", "\x45\122\x52\x4f\122", "\74\163\x74\x72\157\x6e\x67\76\105\x52\x52\x4f\x52\x3c\57\x73\x74\x72\157\x6e\x67\x3e\72\x20\101\154\154\40\x74\x68\x65\40\146\x69\x65\x6c\x64\x73\x20\141\x72\x65\40\x72\x65\x71\x75\151\x72\x65\x64\x2e\40\120\154\145\141\163\x65\x20\x65\156\164\145\x72\40\x76\141\154\151\144\x20\x65\156\164\x72\x69\x65\x73\56");
update_option("\155\157\x5f\154\144\x61\x70\x5f\x6c\157\143\x61\x6c\x5f\x6d\145\x73\163\141\147\145", "\x41\154\154\x20\x74\x68\145\40\146\x69\x65\154\144\x73\40\141\x72\x65\40\162\145\x71\165\151\162\145\144\x2e\x20\x50\x6c\x65\141\163\145\40\x65\156\164\x65\x72\x20\166\x61\x6c\151\x64\40\145\x6e\x74\162\x69\145\x73\x2e", '', "\156\x6f");
$this->show_error_message();
return;
mz:
$Tg = new Mo_Ldap_Local_Config();
$Y1 = $Tg->test_authentication($iB, $qx);
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\114\x44\101\120\137\x42\x49\116\x44\x5f\123\125\x43\x43\105\123\x53\x5f\x55\x53\105\x52\x5f\105\130\x49\123\x54\x53") == 0) {
goto X2;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\114\x44\101\x50\x5f\x43\117\x4e\x4e\x45\x43\124\111\x4f\116\x5f\105\122\122\117\x52") == 0) {
goto kZ;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\x4c\104\x41\x50\137\x42\111\x4e\104\x5f\105\x52\x52\117\122\137\125\123\105\x52\x5f\105\130\111\x53\124\123") == 0) {
goto TL;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\114\x44\101\120\137\x42\111\116\104\x5f\x45\122\122\x4f\122") == 0) {
goto S8;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\114\x44\101\x50\x5f\x55\123\x45\x52\137\116\117\124\x5f\x45\x58\111\123\x54") == 0) {
goto vZ;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\114\x44\x41\x50\x5f\125\x53\105\x52\x5f\123\x45\x41\x52\x43\110\x5f\105\x52\122\x4f\x52") == 0) {
goto Pe;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\x4c\104\x41\120\x5f\105\130\x54\x45\116\x53\x49\117\116\137\x45\122\x52\117\x52") == 0) {
goto jx;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\x4f\120\105\116\x53\x53\114\x5f\x45\130\124\105\x4e\x53\x49\x4f\x4e\137\x45\122\x52\117\x52") == 0) {
goto KG;
}
if (isset($Y1->statusCode) && strcasecmp($Y1->statusCode, "\114\x44\101\120\137\x4c\117\x43\x41\114\137\x53\105\122\126\105\x52\137\x4e\x4f\x54\x5f\103\x4f\x4e\x46\x49\107\x55\x52\x45\x44") == 0) {
goto VR;
}
$this->mo_ldap_report_update($_POST["\164\x65\163\x74\137\165\x73\x65\162\156\x61\x6d\x65"], "\x45\x52\122\x4f\122", "\x3c\x73\x74\162\157\x6e\147\76\x54\145\x73\x74\x20\x41\x75\x74\x68\145\156\164\151\143\141\164\x69\157\x6e\40\x45\162\162\x6f\162\72\x20\74\x2f\163\164\x72\157\156\x67\x3e\x20\124\150\145\162\145\x20\167\141\x73\x20\141\x6e\40\x65\162\162\157\x72\x20\160\x72\157\x63\145\163\163\151\x6e\x67\x20\171\x6f\x75\x72\x20\x72\x65\161\x75\x65\x73\x74\56\x20\120\x6c\145\x61\163\145\x20\x76\x65\162\x69\146\x79\40\x74\x68\x65\x20\x53\x65\x61\162\x63\150\40\102\141\x73\145\x28\x73\x29\40\141\156\144\40\x55\163\x65\162\156\141\x6d\x65\x20\141\x74\164\162\151\x62\x75\164\x65\x2e\40\131\x6f\165\x72\40\165\163\x65\x72\x20\163\150\x6f\165\154\144\x20\x62\x65\x20\160\162\x65\163\145\x6e\164\x20\151\156\40\x74\x68\x65\40\123\x65\141\162\x63\150\x20\x62\141\163\x65\x20\x64\145\x66\x69\156\145\x64\x2e");
update_option("\x6d\157\x5f\154\x64\x61\160\x5f\x6c\157\x63\141\154\x5f\x6d\x65\163\x73\x61\x67\145", "\x54\150\x65\162\145\40\167\x61\x73\40\x61\x6e\40\145\162\x72\157\x72\x20\160\162\157\143\145\x73\163\151\x6e\147\40\x79\x6f\165\x72\40\162\145\x71\165\x65\163\164\56\x20\120\154\145\x61\x73\145\40\166\145\162\x69\x66\171\40\x74\150\x65\40\123\145\141\x72\x63\150\x20\102\141\163\145\x28\x73\51\40\x61\x6e\144\40\x55\x73\x65\x72\x6e\x61\155\145\x20\141\164\x74\162\x69\142\x75\164\x65\x2e\40\x59\x6f\x75\x72\40\x75\x73\x65\162\x20\x73\x68\157\165\154\144\40\142\x65\x20\x70\162\x65\x73\145\156\164\x20\x69\156\40\164\150\145\x20\123\x65\141\x72\143\x68\x20\142\141\x73\145\x20\x64\145\x66\151\156\x65\x64\x2e");
$this->show_error_message();
goto PP;
VR:
$this->mo_ldap_report_update($_POST["\164\x65\163\164\x5f\x75\x73\145\x72\x6e\x61\155\145"], "\105\x52\x52\117\x52", "\x3c\163\x74\x72\x6f\156\147\x3e\x54\145\x73\x74\40\x41\165\x74\x68\145\x6e\x74\151\x63\x61\x74\x69\157\x6e\x20\105\162\162\157\162\x3a\x20\x3c\x2f\163\164\x72\157\x6e\x67\76" . $Y1->statusMessage);
update_option("\155\157\137\x6c\x64\x61\160\137\154\157\x63\141\x6c\x5f\155\145\163\x73\x61\x67\145", $Y1->statusMessage, '', "\156\157");
$this->show_error_message();
PP:
goto c7;
KG:
$this->mo_ldap_report_update($_POST["\x74\x65\x73\x74\x5f\x75\x73\145\162\156\141\155\145"], "\105\122\x52\117\122", "\74\163\164\162\157\x6e\147\76\x54\x65\163\164\x20\x41\x75\164\150\x65\x6e\x74\x69\x63\141\164\151\157\x6e\40\x45\x72\x72\x6f\162\x3a\x20\x3c\57\x73\164\162\157\x6e\147\76" . $Y1->statusMessage);
update_option("\x6d\x6f\137\x6c\144\x61\160\x5f\154\157\x63\x61\x6c\x5f\155\145\x73\x73\x61\147\x65", $Y1->statusMessage, '', "\156\157");
$this->show_error_message();
c7:
goto uD;
jx:
$this->mo_ldap_report_update($_POST["\x74\x65\x73\x74\137\165\x73\x65\x72\x6e\141\155\145"], "\105\122\122\117\122", "\x3c\x73\x74\162\x6f\156\x67\76\x54\x65\163\164\x20\x41\x75\x74\150\145\x6e\x74\x69\x63\x61\164\x69\x6f\x6e\x20\105\162\162\157\162\x3a\40\x3c\57\163\164\x72\x6f\x6e\147\76" . $Y1->statusMessage);
update_option("\155\x6f\137\x6c\144\x61\160\x5f\154\157\x63\141\x6c\137\x6d\145\x73\163\141\147\x65", $Y1->statusMessage, '', "\156\x6f");
$this->show_error_message();
uD:
goto QU;
Pe:
$this->mo_ldap_report_update($_POST["\x74\x65\163\x74\x5f\165\x73\x65\x72\156\x61\x6d\145"], "\105\122\122\117\122", "\74\163\164\162\x6f\156\147\x3e\x54\x65\x73\164\x20\x41\165\164\150\x65\x6e\164\x69\x63\x61\164\151\x6f\x6e\x20\105\x72\162\157\162\x3a\x20\74\57\163\164\x72\x6f\156\x67\76\40\103\141\156\x6e\157\164\x20\x66\151\x6e\144\x20\x75\x73\145\162\40\151\x6e\40\x74\150\x65\x20\144\x69\x72\145\x63\x74\x6f\x72\171");
update_option("\x6d\x6f\x5f\x6c\144\141\160\137\154\x6f\143\141\154\137\x6d\x65\163\163\141\147\145", $Y1->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
QU:
goto df;
vZ:
$this->mo_ldap_report_update($_POST["\x74\x65\163\x74\137\x75\163\145\162\156\x61\155\145"], "\105\122\x52\117\x52", "\74\x73\x74\162\x6f\x6e\147\76\x54\145\x73\x74\40\x41\165\x74\x68\x65\156\164\151\143\141\x74\151\x6f\x6e\40\105\162\x72\x6f\x72\72\40\x3c\x2f\163\x74\162\x6f\156\147\x3e\x20\103\141\x6e\156\157\164\x20\x66\x69\156\144\x20\x75\163\x65\162\x20\x69\156\40\x74\x68\x65\x20\144\151\x72\x65\x63\x74\157\162\171");
update_option("\x6d\x6f\137\154\x64\x61\160\137\x6c\157\x63\x61\x6c\x5f\x6d\145\x73\x73\141\147\145", $Y1->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
df:
goto tB;
S8:
$this->mo_ldap_report_update($_POST["\x74\x65\x73\164\137\x75\x73\145\x72\156\141\x6d\145"], "\105\x52\x52\x4f\x52", "\74\x73\x74\162\x6f\156\x67\x3e\x54\x65\x73\x74\40\101\165\x74\150\145\x6e\x74\151\x63\x61\x74\151\157\156\x20\105\x72\162\157\x72\72\40\74\57\163\164\162\157\x6e\147\76" . $Y1->statusMessage);
update_option("\x6d\157\137\x6c\x64\x61\160\x5f\154\x6f\143\x61\154\137\x6d\145\x73\163\x61\x67\145", $Y1->statusMessage, '', "\156\157");
$this->show_error_message();
tB:
goto k8;
TL:
$this->mo_ldap_report_update($_POST["\x74\x65\163\x74\137\165\x73\x65\162\x6e\x61\x6d\145"], "\105\122\x52\117\x52", "\x3c\x73\x74\162\x6f\x6e\x67\x3e\124\x65\163\x74\40\x41\165\x74\150\145\x6e\164\151\143\x61\x74\151\x6f\x6e\40\105\162\162\x6f\x72\x3a\40\74\x2f\x73\164\162\157\x6e\x67\x3e" . $Y1->statusMessage);
update_option("\x6d\157\137\x6c\144\x61\x70\137\x6c\157\143\141\154\137\x6d\145\x73\163\x61\x67\145", $Y1->statusMessage, '', "\156\157");
$this->show_error_message();
k8:
goto i9;
kZ:
$this->mo_ldap_report_update($_POST["\x74\145\x73\x74\137\x75\163\x65\x72\x6e\141\x6d\x65"], "\105\122\x52\117\122", "\74\163\164\x72\x6f\156\147\76\124\x65\163\x74\40\101\165\x74\x68\145\156\x74\x69\143\x61\164\151\x6f\x6e\40\x45\162\162\157\x72\72\x20\x3c\x2f\x73\x74\162\x6f\156\x67\76" . $Y1->statusMessage);
update_option("\x6d\x6f\137\154\144\x61\160\x5f\154\157\143\141\x6c\x5f\155\x65\x73\163\x61\147\x65", $Y1->statusMessage, '', "\x6e\x6f");
$this->show_error_message();
i9:
goto q4;
X2:
$tM = add_query_arg(array("\x74\141\142" => "\162\157\x6c\x65\155\141\160\x70\x69\x6e\147"), $_SERVER["\x52\x45\121\x55\105\123\x54\137\125\122\111"]);
$Ps = "\x59\x6f\165\40\x68\141\166\x65\x20\163\165\143\143\145\x73\x73\x66\x75\154\x6c\x79\x20\x63\x6f\x6e\x66\x69\147\165\162\x65\x64\40\x79\x6f\x75\162\x20\x4c\x44\x41\x50\x20\x73\x65\164\164\151\x6e\x67\x73\x2e\74\x62\x72\x3e\15\12\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\40\131\x6f\165\40\143\141\156\40\156\x6f\167\40\144\x6f\x20\x65\x69\164\x68\145\x72\x20\157\146\x20\x74\167\x6f\40\164\x68\x69\x6e\147\x73\x2e\x3c\x62\162\x3e\15\12\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\x20\x31\x2e\40\105\156\x61\x62\154\145\40\114\x44\x41\120\40\114\157\147\x69\156\x20\x61\x74\40\x74\150\145\40\x74\157\160\x20\x61\156\144\40\x74\x68\x65\156\x20\74\141\x20\x68\162\145\146\75\42" . wp_logout_url(get_permalink()) . "\42\x3e\114\x6f\147\157\x75\x74\x3c\57\141\76\40\x66\162\x6f\155\x20\x57\x6f\162\144\x50\x72\145\x73\163\40\141\156\x64\40\154\157\147\x69\x6e\40\x61\x67\x61\x69\x6e\40\x77\x69\164\x68\40\x79\x6f\165\162\x20\114\104\101\120\40\143\x72\145\144\x65\x6e\164\151\x61\x6c\163\x2e\x3c\142\162\x3e\40\15\xa\40\40\40\x20\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\62\x2e\x20\x44\x6f\x20\162\157\154\145\x20\155\x61\x70\160\x69\156\x67\40\50\x3c\x61\40\x68\162\145\x66\75\42" . $tM . "\x22\x3e\x43\x6c\151\143\153\40\150\x65\x72\x65\74\x2f\141\76\51";
update_option("\155\x6f\x5f\x6c\144\x61\160\137\x6c\157\x63\141\154\137\155\145\x73\163\x61\147\x65", $Ps, '', "\x6e\x6f");
$this->show_success_message();
q4:
tA:
goto Fa;
case "\155\x6f\x5f\154\144\x61\x70\x5f\154\x6f\143\141\154\x5f\145\156\x61\142\x6c\145":
if (NddKoYsdasadJD()) {
goto I8;
}
update_option("\155\157\137\154\144\141\x70\x5f\x6c\157\x63\x61\x6c\137\x6d\x65\163\163\x61\x67\x65", "\123\x65\164\x74\x69\x6e\147\x73\x20\143\x61\x6e\47\x74\40\x62\x65\x20\x73\x61\166\x65\x64\x20\167\x69\164\x68\x6f\x75\x74\40\x76\x65\162\x69\146\x79\151\156\x67\x20\171\x6f\165\x72\40\x6c\151\143\x65\x6e\x73\145\40\153\145\x79\56");
$this->show_error_message();
goto qx;
I8:
$ct = isset($_POST["\145\156\x61\142\154\145\x5f\x6c\144\x61\x70\x5f\x6c\157\x67\151\156"]) ? $_POST["\x65\156\x61\x62\154\x65\x5f\x6c\x64\141\160\x5f\x6c\x6f\x67\x69\x6e"] : 0;
update_option("\x6d\157\137\154\x64\x61\x70\137\x6c\x6f\143\x61\154\x5f\145\156\141\x62\x6c\145\x5f\154\x6f\x67\151\156", $ct);
if ($ct == 1) {
goto gQ;
}
update_option("\x6d\x6f\137\154\144\x61\160\137\x6c\157\143\141\154\137\155\145\163\163\x61\147\145", "\114\x6f\x67\151\156\40\x74\150\162\157\165\147\x68\x20\171\x6f\165\x72\40\x4c\104\x41\120\x20\x68\x61\163\x20\x62\145\x65\x6e\x20\144\x69\163\x61\x62\154\145\144\x2e");
$this->show_error_message();
goto Bh;
gQ:
update_option("\155\x6f\137\x6c\144\141\160\137\x6c\x6f\143\141\154\x5f\x6d\145\163\x73\x61\x67\x65", "\x4c\x6f\147\151\156\40\x74\150\x72\157\x75\x67\150\x20\x79\x6f\165\x72\40\114\104\x41\120\x20\x68\141\163\x20\x62\x65\145\x6e\x20\x65\156\141\142\x6c\x65\144\x2e");
$this->show_success_message();
Bh:
qx:
goto Fa;
case "\155\157\x5f\154\144\141\x70\137\x6c\157\143\x61\154\x5f\145\x6e\x61\x62\x6c\145\137\x62\157\x74\x68\x5f\x6c\x6f\147\151\156":
$Fj = isset($_POST["\155\x6f\x5f\154\x64\x61\160\x5f\x6c\x6f\143\141\154\x5f\x65\x6e\x61\142\x6c\145\137\142\x6f\x74\x68\x5f\x6c\157\x67\151\x6e"]) ? $_POST["\155\x6f\x5f\154\x64\x61\160\x5f\154\157\143\141\x6c\137\145\x6e\141\142\x6c\145\x5f\x62\x6f\x74\x68\x5f\154\x6f\x67\x69\156"] : '';
update_option("\155\x6f\x5f\x6c\x64\x61\x70\x5f\154\157\x63\x61\x6c\137\x65\156\x61\142\x6c\145\x5f\142\x6f\164\150\137\x6c\x6f\147\151\156", $Fj);
if ($Fj == "\x61\144\155\x69\x6e") {
goto OZ;
}
if ($Fj == "\141\x6c\x6c") {
goto r2;
}
update_option("\155\157\137\154\x64\141\160\137\x6c\157\143\x61\x6c\137\155\145\x73\x73\x61\x67\x65", "\x4c\157\x67\151\x6e\x20\165\x73\151\156\x67\40\x4c\157\143\x61\x6c\40\127\157\162\144\x50\x72\x65\x73\163\x20\x43\x72\145\x64\x65\156\164\x69\x61\154\163\x20\x69\x73\x20\x3c\142\x3e\x64\x69\163\141\142\154\x65\144\74\x2f\x62\76\x2e");
$this->show_error_message();
goto Sf;
r2:
update_option("\155\x6f\137\x6c\x64\141\160\x5f\x6c\x6f\143\x61\x6c\x5f\x6d\145\163\163\x61\x67\x65", "\114\157\147\x69\156\40\x75\163\151\156\147\40\114\157\143\141\154\40\x57\x6f\162\144\120\x72\145\x73\163\40\x43\x72\145\x64\x65\156\164\151\141\154\163\x20\x66\x6f\162\40\74\142\76\x41\154\x6c\40\x55\163\x65\162\x73\74\x2f\x62\x3e\40\151\163\x20\145\x6e\141\142\x6c\x65\144\x2e");
$this->show_success_message();
Sf:
goto qQ;
OZ:
update_option("\x6d\157\x5f\154\144\x61\160\x5f\154\157\x63\141\154\x5f\x6d\145\x73\x73\141\147\145", "\114\x6f\147\x69\x6e\x20\x75\163\151\156\x67\x20\x4c\x6f\143\x61\154\40\x57\157\x72\144\120\x72\x65\x73\163\40\103\162\x65\x64\x65\156\164\151\x61\x6c\x73\40\x66\157\162\x20\74\142\x3e\101\x64\x6d\x69\156\x69\x73\164\162\x61\164\x6f\162\x73\74\57\142\x3e\40\151\163\40\145\156\x61\142\154\x65\144\x2e");
$this->show_success_message();
qQ:
goto Fa;
case "\155\157\x5f\x6c\x64\141\x70\x5f\154\157\x63\141\154\x5f\x73\x61\166\145\x5f\x6c\x6f\x67\x69\x6e\137\x72\145\144\151\x72\145\x63\x74":
$FB = $_POST["\162\145\x64\151\x72\145\x63\164\137\x74\157"];
update_option("\155\157\x5f\154\144\141\x70\x5f\154\x6f\143\x61\154\x5f\x72\145\x64\x69\x72\145\x63\x74\x5f\x74\x6f", $FB);
if ($FB == "\x70\162\x6f\x66\151\x6c\145") {
goto od;
}
if (!($FB == "\x68\x6f\x6d\145\x70\x61\147\145")) {
goto re;
}
update_option("\155\x6f\x5f\154\x64\x61\x70\137\x6c\x6f\143\x61\x6c\x5f\155\x65\163\x73\x61\147\145", "\x55\163\x65\x72\x73\x20\167\x69\154\x6c\40\147\145\164\x20\x72\145\144\151\x72\x65\143\x74\x65\144\x20\164\157\x20\x48\157\155\145\40\120\x61\147\x65\x20\x61\x66\x74\x65\162\x20\x6c\157\147\x69\x6e\56");
re:
goto LQ;
od:
update_option("\155\x6f\x5f\x6c\x64\x61\x70\137\x6c\x6f\x63\141\154\137\x6d\145\163\163\x61\147\145", "\125\163\145\x72\163\x20\x77\x69\x6c\154\40\x67\x65\164\40\x72\x65\144\x69\162\x65\x63\164\145\144\x20\164\x6f\40\x50\x72\x6f\x66\x69\154\145\40\120\x61\147\x65\40\x61\146\x74\145\x72\40\154\x6f\147\x69\156\x2e");
LQ:
if ($FB != "\143\165\163\x74\157\x6d" && $FB !== "\x6e\x6f\x6e\x65") {
goto fb;
}
if (!($FB == "\x6e\157\156\145")) {
goto dK;
}
update_option("\x6d\x6f\x5f\154\x64\141\160\137\x6c\157\x63\141\154\137\x6d\x65\x73\163\141\x67\x65", "\x52\145\144\x69\x72\x65\x63\x74\x69\157\156\x20\x61\146\x74\x65\x72\x20\x6c\x6f\x67\x69\156\x20\x69\x73\x20\144\x69\x73\x61\142\154\x65\x64\56");
$this->show_error_message();
dK:
goto jp;
fb:
$this->show_success_message();
jp:
goto Fa;
case "\155\157\x5f\x6c\x64\x61\160\137\154\157\143\x61\x6c\137\x63\165\163\164\x6f\155\x5f\162\x65\144\151\x72\145\143\164":
$GX = $_POST["\x6d\x6f\x5f\154\x64\141\x70\x5f\154\x6f\143\x61\x6c\x5f\x63\165\x73\x74\x6f\155\x5f\165\x72\154"];
update_option("\155\x6f\137\154\x64\141\160\137\154\157\x63\x61\x6c\137\143\165\163\x74\157\155\137\162\x65\x64\x69\x72\x65\x63\x74", $GX);
update_option("\155\x6f\x5f\154\144\x61\x70\137\154\157\143\x61\154\x5f\x6d\x65\163\163\x61\x67\x65", "\x55\x73\145\162\x73\x20\x77\151\154\x6c\40\x67\x65\164\x20\162\x65\x64\x69\x72\145\143\164\145\x64\40\164\x6f\x20\x63\165\163\164\x6f\155\x20\x72\x65\144\x69\x72\145\143\164\40\x55\122\x4c\40\141\146\x74\x65\162\40\x6c\157\x67\151\156\56");
$this->show_success_message();
goto Fa;
case "\155\157\137\x6c\x64\141\x70\x5f\x6c\x6f\x63\141\154\x5f\x72\145\x67\151\x73\164\145\x72\x5f\165\x73\x65\x72":
if (NddKoYsdasadJD()) {
goto d_;
}
update_option("\x6d\x6f\x5f\x6c\x64\x61\160\x5f\x6c\157\x63\x61\x6c\137\155\x65\163\x73\x61\147\x65", "\x53\x65\164\x74\151\x6e\x67\163\40\x63\141\156\47\164\40\x62\145\40\x73\x61\x76\x65\x64\40\167\x69\x74\150\157\x75\164\40\166\x65\x72\x69\x66\x79\x69\156\x67\40\x79\x6f\165\162\40\x6c\x69\143\x65\156\163\x65\40\x6b\145\171\56");
$this->show_error_message();
goto JV;
d_:
$NE = isset($_POST["\x6d\x6f\137\154\144\141\x70\137\154\157\x63\x61\154\137\162\145\147\x69\163\x74\145\162\137\165\163\x65\162"]) ? $_POST["\155\157\137\154\x64\x61\x70\137\x6c\x6f\x63\x61\154\137\162\x65\147\x69\x73\x74\145\x72\137\x75\x73\145\x72"] : 0;
update_option("\x6d\x6f\x5f\x6c\x64\141\160\137\x6c\x6f\143\x61\x6c\x5f\162\x65\147\151\x73\x74\x65\x72\x5f\x75\163\145\x72", $NE);
if ($NE == 1) {
goto es;
}
update_option("\x6d\x6f\137\x6c\144\x61\x70\137\154\x6f\143\x61\154\137\x6d\145\163\163\x61\x67\145", "\101\165\x74\157\x20\122\145\x67\151\163\x74\x65\x72\x69\x6e\x67\40\x75\163\145\162\x73\x20\x68\141\163\x20\x62\145\145\156\40\144\x69\163\x61\142\154\145\x64\56");
$this->show_error_message();
goto jC;
es:
update_option("\155\x6f\137\x6c\x64\x61\x70\137\154\x6f\x63\x61\154\x5f\155\x65\x73\163\141\147\x65", "\x41\165\x74\157\x20\x52\145\x67\151\163\x74\145\x72\x69\x6e\x67\40\x75\x73\145\162\x73\40\x68\141\163\x20\142\x65\145\x6e\x20\x65\x6e\141\x62\154\x65\x64\x2e");
$this->show_success_message();
jC:
JV:
goto Fa;
case "\x6d\157\x5f\154\x64\x61\x70\137\x6c\x6f\x63\x61\x6c\x5f\141\x75\x74\x68\x6f\162\151\x7a\145\144\137\x75\163\145\x72\163\x5f\157\156\154\x79":
if (NddKoYsdasadJD()) {
goto zK;
}
update_option("\x6d\157\x5f\x6c\144\141\160\137\154\157\143\141\x6c\137\x6d\x65\163\163\x61\x67\x65", "\x53\145\164\x74\x69\156\x67\x73\x20\143\x61\156\x27\x74\x20\x62\145\40\x73\141\x76\x65\144\40\167\151\x74\150\157\x75\x74\40\x76\x65\x72\151\146\171\151\x6e\x67\x20\171\x6f\x75\162\40\154\151\143\x65\156\163\145\x20\153\x65\171\56");
$this->show_error_message();
goto BM;
zK:
$Gm = isset($_POST["\141\x75\x74\150\x6f\162\x69\172\x65\x64\x5f\x75\x73\145\162\x73\x5f\x6f\x6e\x6c\x79"]) ? $_POST["\141\165\x74\150\157\x72\x69\172\145\x64\137\x75\x73\x65\162\163\x5f\157\x6e\x6c\x79"] : 0;
update_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\x6c\157\143\x61\x6c\x5f\x61\x75\164\x68\x6f\162\x69\x7a\x65\144\x5f\x75\x73\145\x72\163\x5f\157\x6e\x6c\171", $Gm);
if ($Gm == 1) {
goto RA;
}
update_option("\x6d\x6f\x5f\x6c\x64\x61\160\137\x6c\x6f\143\141\154\x5f\x6d\x65\163\x73\141\x67\x65", "\120\x72\x6f\164\x65\x63\x74\40\103\x6f\156\x74\145\x6e\x74\x20\142\171\40\114\x6f\x67\x69\x6e\x20\x64\151\x73\141\x62\x6c\145\144\56");
$this->show_error_message();
goto O2;
RA:
update_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\x6c\x6f\143\x61\154\x5f\155\x65\163\x73\x61\147\x65", "\120\x72\157\x74\145\x63\x74\x20\103\157\x6e\164\145\x6e\x74\x20\x62\171\40\114\x6f\147\x69\156\x20\x65\156\141\x62\x6c\x65\x64\56");
$this->show_success_message();
O2:
BM:
goto Fa;
case "\x6d\x6f\x5f\154\144\141\x70\137\146\145\164\x63\x68\x5f\x67\162\x6f\x75\160\x73\x5f\154\151\x73\164":
if (!isset($_REQUEST["\x6d\157\137\154\x64\141\x70\x5f\x67\162\157\165\x70\x73\137\x73\x65\141\x72\x63\150\x5f\142\x61\x73\145"])) {
goto Ia;
}
$qf = trim($_REQUEST["\155\x6f\137\x6c\x64\x61\x70\137\147\162\157\165\160\x73\x5f\x73\x65\141\x72\143\150\x5f\x62\x61\163\x65"]);
Ia:
update_option("\x6d\157\x5f\x6c\144\x61\x70\137\x6c\157\x63\141\154\137\147\x72\x6f\x75\160\x73\137\163\145\141\x72\143\x68\137\x62\141\x73\145", Mo_Ldap_Local_Util::encrypt($qf));
goto Fa;
case "\155\157\137\x6c\144\141\160\x5f\154\x6f\143\141\x6c\x5f\163\141\x76\x65\x5f\155\141\x70\x70\x69\156\x67":
$ji = array();
$OP = array();
$wP = array();
$qp = 1;
$vC = 0;
$sV = $_POST["\x6d\141\160\x70\151\x6e\147\137\x6b\x65\x79\x5f" . $qp];
m8:
if (!isset($sV)) {
goto Dk;
}
if (empty($sV)) {
goto xU;
}
$dz = $_POST["\x73\145\x6c\x65\x63\164\145\x64\137\x66\157\162\x5f\163\141\166\145\x5f\162\x6f\154\x65\137\155\141\160\160\x69\x6e\x67\137" . $qp];
if (!($dz == "\164\x72\165\x65")) {
goto Vw;
}
$vC++;
$Kn = $_POST["\x6d\141\160\x70\151\x6e\x67\x5f\x67\x72\157\x75\160\x5f\x6e\141\x6d\145\137" . $qp];
$wP[$vC] = $Kn;
$ji["\155\x6f\137\x6c\x64\141\160\x5f\154\157\143\x61\154\x5f\155\141\160\160\x69\156\x67\x5f\153\145\x79\x5f" . $vC] = trim($sV);
$OP["\155\x6f\137\x6c\144\141\x70\x5f\154\157\143\x61\154\x5f\155\x61\x70\x70\151\x6e\147\x5f\x76\141\154\165\145\x5f" . $vC] = $_POST["\155\x61\160\160\x69\156\x67\x5f\x76\x61\x6c\165\145\137" . $qp];
Vw:
xU:
$qp++;
$sV = $_POST["\x6d\141\160\x70\151\156\147\137\x6b\145\x79\x5f" . $qp];
goto m8;
Dk:
update_option("\155\157\x5f\x6c\x64\141\160\x5f\154\x6f\143\x61\154\x5f\x72\x6f\154\x65\x5f\155\141\x70\x70\151\x6e\x67\x5f\153\x65\x79\137\x61\x72\162\141\x79", serialize($ji));
update_option("\155\x6f\x5f\x6c\144\141\160\137\154\157\143\x61\154\x5f\x72\x6f\x6c\x65\x5f\x6d\141\x70\160\x69\156\147\x5f\166\141\x6c\165\x65\137\141\162\x72\x61\171", serialize($OP));
update_option("\x6d\x6f\137\154\144\x61\160\137\x6c\157\x63\141\154\137\x72\157\154\145\x5f\155\x61\160\160\x69\x6e\147\137\147\x72\157\x75\160\137\x6e\141\x6d\x65\163", serialize($wP));
update_option("\x6d\x6f\x5f\154\x64\x61\x70\x5f\x6c\157\x63\x61\x6c\x5f\162\157\x6c\145\137\x6d\141\160\x70\x69\156\147\137\143\x6f\165\156\x74", $vC);
if (!isset($_POST["\x6d\141\x70\160\151\156\x67\x5f\166\141\x6c\x75\x65\x5f\x64\x65\x66\x61\165\154\x74"])) {
goto eQ;
}
update_option("\x6d\x6f\x5f\x6c\144\141\160\x5f\x6c\157\143\x61\x6c\137\155\141\x70\x70\x69\156\147\137\166\x61\154\165\145\137\144\145\146\141\x75\x6c\164", $_POST["\x6d\x61\x70\x70\x69\x6e\x67\x5f\x76\141\154\165\x65\x5f\x64\x65\146\141\x75\154\164"]);
eQ:
if (!isset($_POST["\155\141\160\160\151\156\x67\x5f\155\x65\x6d\x62\x65\x72\157\x66\x5f\141\x74\x74\x72\x69\142\165\164\x65"])) {
goto TJ;
}
update_option("\155\x6f\x5f\154\144\141\x70\x5f\x6c\157\x63\141\x6c\137\155\x61\x70\160\x69\x6e\x67\x5f\155\145\x6d\142\x65\162\157\x66\x5f\141\x74\164\x72\151\142\x75\x74\145", $_POST["\x6d\141\x70\160\151\x6e\x67\x5f\155\x65\x6d\x62\145\162\157\146\137\141\x74\164\162\x69\x62\165\164\145"]);
TJ:
$ci = '';
$Q6 = get_option("\155\157\x5f\x6c\144\141\160\x5f\154\157\x63\141\154\x5f\155\141\160\x70\151\x6e\147\137\166\x61\154\x75\145\x5f\x64\x65\146\x61\x75\x6c\x74");
$Ja = get_option("\155\x6f\x5f\x6c\x64\141\x70\137\x6c\x6f\143\141\154\137\x65\x6e\141\142\x6c\145\137\x72\157\154\x65\x5f\155\141\160\160\x69\x6e\147");
if (!$Q6) {
goto PL;
}
if (!($Ja == 0)) {
goto tc;
}
$ci = "\x20\x50\x6c\145\x61\163\145\x20\x63\150\145\x63\x6b\40\x3c\142\76\x22\105\x6e\x61\x62\154\145\x20\122\157\x6c\x65\40\115\x61\160\x70\151\x6e\x67\x22\x3c\x2f\142\x3e\x20\x74\157\40\x61\143\164\x69\166\141\164\x65\40\x69\164\56";
tc:
goto y7;
PL:
$ci = "\x20\120\154\145\x61\x73\145\40\x73\x65\154\x65\143\x74\40\164\x68\x65\x20\104\x65\x66\141\x75\154\164\x20\x52\x6f\154\x65\x20\141\156\x64\x20\x74\x68\x65\x6e\40\x63\x68\145\143\153\x20\74\142\x3e\42\105\x6e\141\142\154\x65\x20\x52\x6f\154\x65\x20\115\x61\160\160\151\x6e\x67\x22\74\57\142\76\40\x74\x6f\40\x61\143\x74\151\166\x61\164\x65\x20\151\x74\56";
y7:
update_option("\x6d\x6f\137\x6c\144\x61\160\137\x6c\157\x63\141\154\x5f\x6d\x65\163\163\x61\147\145", "\x4c\104\101\x50\40\107\162\x6f\165\x70\x20\x74\x6f\40\x57\x50\40\162\157\x6c\x65\40\x6d\x61\160\x70\x69\156\x67\x20\x68\x61\163\40\142\145\145\x6e\x20\x75\x70\x64\x61\x74\x65\x64\56" . $ci);
$this->show_success_message();
goto Fa;
case "\x6d\x6f\x5f\154\144\x61\160\x5f\154\x6f\143\x61\x6c\x5f\145\156\x61\x62\154\x65\x5f\162\157\154\x65\x5f\x6d\x61\160\x70\151\156\147":
$Ja = isset($_POST["\x65\x6e\x61\x62\154\x65\137\x6c\x64\x61\x70\x5f\x72\157\x6c\145\137\155\x61\x70\160\151\x6e\147"]) ? $_POST["\145\156\141\x62\x6c\x65\137\154\x64\141\160\x5f\x72\x6f\x6c\145\137\x6d\x61\x70\160\x69\156\x67"] : 0;
update_option("\x6d\157\x5f\154\x64\x61\160\137\154\157\x63\x61\x6c\x5f\145\x6e\141\142\154\x65\x5f\x72\x6f\x6c\145\137\155\141\160\160\x69\156\x67", $Ja);
if ($Ja == 1) {
goto Cb;
}
update_option("\155\157\x5f\154\144\141\160\137\x6c\x6f\143\141\154\x5f\155\x65\x73\163\x61\147\x65", "\x4c\104\101\120\x20\107\162\x6f\165\160\40\x74\157\40\127\x50\40\162\157\154\x65\40\x6d\x61\160\x70\x69\x6e\x67\x20\150\x61\163\40\142\145\x65\156\40\144\x69\x73\141\x62\154\x65\x64\56");
$this->show_error_message();
goto JF;
Cb:
update_option("\x6d\157\x5f\154\x64\x61\160\x5f\x6c\x6f\x63\141\x6c\x5f\155\145\x73\163\141\x67\145", "\114\x44\101\x50\x20\107\162\x6f\165\160\x20\164\157\40\x57\x50\x20\162\157\x6c\x65\x20\155\141\160\x70\x69\x6e\147\x20\150\x61\163\x20\142\145\145\156\40\145\156\x61\x62\x6c\145\144\x2e");
$this->show_success_message();
JF:
goto Fa;
case "\155\x6f\x5f\x6c\144\x61\160\x5f\154\157\143\141\154\137\153\145\145\160\x5f\x65\170\151\163\x74\151\156\x67\x5f\x75\163\145\x72\137\162\157\x6c\145\163":
$NA = isset($_POST["\153\x65\145\160\137\x65\x78\151\163\x74\151\156\x67\137\x75\x73\x65\162\137\x72\x6f\x6c\145\x73"]) ? $_POST["\153\x65\x65\x70\137\x65\x78\151\x73\x74\151\x6e\x67\x5f\x75\x73\x65\x72\137\x72\x6f\x6c\x65\163"] : 0;
update_option("\155\157\x5f\x6c\x64\x61\x70\x5f\154\x6f\x63\x61\x6c\137\153\x65\x65\x70\137\x65\170\x69\163\164\151\156\x67\x5f\x75\x73\145\162\x5f\162\x6f\x6c\x65\163", $NA);
if ($NA == 1) {
goto ye;
}
update_option("\155\x6f\137\154\x64\x61\160\137\154\x6f\x63\141\154\137\x6d\x65\x73\x73\x61\x67\145", "\127\x50\x20\x52\x6f\x6c\x65\x73\40\x6f\146\40\105\x78\151\x73\x74\151\156\147\40\165\163\145\162\x73\x20\167\151\x6c\x6c\x20\142\145\40\x75\160\x64\141\x74\145\x64\x2e");
$this->show_error_message();
goto XM;
ye:
update_option("\155\157\137\154\144\x61\160\x5f\154\157\143\x61\154\x5f\155\x65\x73\163\x61\147\145", "\x57\x50\x20\x52\157\154\145\163\40\x6f\x66\x20\x45\x78\151\x73\x74\x69\156\x67\40\165\163\145\x72\163\40\167\x69\154\x6c\x20\x6e\157\164\40\x62\x65\40\x72\145\x6d\157\x76\145\144\x2e");
$this->show_success_message();
XM:
goto Fa;
case "\x6d\x6f\x5f\154\144\x61\x70\x5f\146\145\164\x63\x68\137\x72\145\x63\x75\162\163\x69\166\145\137\x67\x72\157\x75\x70\163\x5f\x65\x6e\141\x62\x6c\x65":
$E_ = isset($_POST["\146\x65\x74\x63\150\137\162\145\143\x75\162\163\x69\x76\x65\137\147\162\157\165\x70\x73"]) ? $_POST["\146\x65\164\143\x68\x5f\x72\x65\143\x75\x72\163\151\166\145\137\x67\162\x6f\165\160\163"] : 0;
update_option("\155\157\137\154\144\x61\x70\x5f\146\145\x74\x63\150\137\x72\x65\x63\x75\x72\163\x69\x76\145\x5f\x67\x72\x6f\x75\160\163\x5f\x65\x6e\x61\142\154\x65", $E_);
if ($E_) {
goto h6;
}
update_option("\155\x6f\137\x6c\x64\x61\x70\x5f\154\x6f\x63\x61\154\137\x6d\145\x73\x73\141\147\145", "\116\145\163\164\x65\144\x20\x67\162\x6f\165\160\163\x20\x66\x72\x6f\155\40\164\150\x65\40\x4c\x44\101\120\40\x61\x73\x73\x6f\x63\151\x61\164\145\x64\40\x77\151\x74\x68\x20\x74\x68\145\x20\165\x73\x65\162\x20\x77\151\x6c\x6c\x20\x6e\157\164\40\142\x65\40\x66\145\x74\143\150\145\x64\x2e");
$this->show_error_message();
goto z1;
h6:
update_option("\155\157\x5f\154\x64\141\160\x5f\154\157\143\x61\154\137\x6d\x65\163\163\141\147\x65", "\116\145\x73\164\x65\144\x20\x67\162\157\165\160\163\40\146\162\x6f\155\40\x74\150\x65\40\x4c\104\101\120\40\141\x73\x73\157\x63\x69\141\x74\145\144\x20\167\x69\164\150\x20\x74\x68\145\x20\x75\x73\145\x72\40\167\x69\154\154\40\142\x65\40\146\x65\x74\143\150\x65\x64\x2e");
$this->show_success_message();
z1:
goto Fa;
case "\155\x6f\x5f\154\x64\x61\x70\x5f\163\x61\x76\x65\137\x64\145\146\x61\165\x6c\x74\x5f\162\157\x6c\x65":
if (!isset($_POST["\155\x61\160\x70\x69\156\147\x5f\x76\141\x6c\165\145\137\x64\x65\146\141\x75\x6c\164"])) {
goto qf;
}
update_option("\x6d\157\x5f\154\x64\x61\160\137\x6c\157\143\141\154\x5f\155\x61\160\160\x69\x6e\147\x5f\x76\141\x6c\x75\x65\137\144\x65\146\141\165\x6c\x74", $_POST["\155\141\x70\x70\x69\156\147\x5f\x76\x61\x6c\165\145\137\144\x65\146\141\x75\154\x74"]);
qf:
goto Fa;
case "\x6d\157\137\x6c\x64\x61\160\137\145\156\141\142\154\x65\137\141\x74\x74\x72\151\x62\165\x74\145\x5f\x6d\x61\160\160\x69\x6e\x67":
$Z9 = isset($_POST["\x6d\x6f\x5f\x6c\x64\141\160\x5f\x6c\157\143\x61\154\x5f\145\x6e\x61\142\154\145\137\141\x74\164\162\x5f\155\x61\x70\x70\x69\156\x67"]) ? 1 : 0;
update_option("\155\157\x5f\154\x64\x61\x70\137\x6c\x6f\x63\141\154\x5f\145\156\141\x62\x6c\145\137\141\164\164\x72\137\155\x61\160\160\151\x6e\147", $Z9);
if ($Z9 == 1) {
goto nQ;
}
update_option("\x6d\x6f\137\x6c\144\x61\160\137\x6c\157\143\141\x6c\x5f\x6d\x65\163\163\141\147\145", "\114\104\101\120\x20\x41\x74\164\162\151\x62\x75\x74\x65\x20\x4d\141\160\160\x69\156\x67\x20\104\151\x73\x61\x62\154\145\144");
$this->show_error_message();
goto yA;
nQ:
update_option("\x6d\157\137\x6c\144\141\160\x5f\154\x6f\x63\141\x6c\x5f\x6d\x65\x73\x73\141\x67\x65", "\x4c\x44\x41\x50\x20\101\164\164\x72\151\142\x75\x74\145\x20\x4d\x61\160\160\x69\x6e\x67\40\105\x6e\141\x62\x6c\x65\144");
$this->show_success_message();
yA:
goto Fa;
case "\x6d\157\137\x6c\x64\141\x70\x5f\x65\156\x61\x62\x6c\x65\x5f\x75\x70\144\141\x74\151\156\x67\137\x6c\x64\x61\160":
$LT = isset($_POST["\x65\x6e\141\x62\x6c\x65\137\165\x70\144\141\164\x65\x5f\154\144\x61\x70"]) ? 1 : 0;
update_option("\155\x6f\x5f\154\x64\141\x70\x5f\154\x6f\x63\141\x6c\137\x65\156\x61\x62\x6c\x65\x5f\x75\160\144\x61\x74\x65\x5f\x6c\x64\x61\160", $LT);
if ($LT == 1) {
goto F8;
}
update_option("\155\157\137\x6c\x64\x61\x70\x5f\154\157\x63\x61\x6c\x5f\155\x65\x73\x73\141\147\145", "\x44\151\163\141\x62\154\x65\x64\x20\x75\x70\144\141\164\x69\156\147\x20\x69\156\x66\157\162\x6d\141\164\151\157\156\x20\151\156\x20\114\104\x41\120\40\x77\x68\x65\x6e\x20\x75\163\145\162\x20\x65\144\151\164\163\40\160\x72\x6f\x66\151\x6c\145");
$this->show_error_message();
goto SJ;
F8:
update_option("\155\157\x5f\x6c\144\141\160\x5f\x6c\x6f\143\x61\x6c\x5f\x6d\x65\x73\x73\141\x67\145", "\x45\x6e\141\142\154\x65\144\40\x75\160\144\x61\x74\151\x6e\147\40\151\x6e\146\157\162\155\141\164\x69\x6f\156\x20\x69\x6e\x20\114\x44\x41\x50\x20\x77\150\x65\x6e\40\x75\163\x65\x72\40\145\144\151\164\163\x20\160\x72\x6f\146\x69\154\x65");
$this->show_success_message();
SJ:
goto Fa;
case "\x6d\x6f\x5f\x6c\144\x61\160\137\163\x61\x76\x65\137\x61\164\164\x72\151\x62\x75\164\x65\x5f\x63\157\x6e\146\x69\x67":
update_option("\x6d\157\x5f\154\x64\x61\x70\137\144\x69\x72\145\143\x74\157\162\171\137\163\x65\162\x76\145\x72\x5f\166\x61\154\x75\x65", isset($_POST["\x6d\x6f\x5f\x6c\x64\x61\x70\137\144\151\162\x65\143\x74\157\x72\171\x5f\163\x65\x72\166\145\x72\137\166\x61\154\x75\145"]) ? $_POST["\155\x6f\137\154\144\x61\x70\137\144\151\x72\x65\x63\x74\x6f\x72\x79\x5f\163\145\x72\166\145\162\137\166\141\154\x75\145"] : "\155\x73\141\144");
$et = sanitize_text_field($_POST["\x6d\157\x5f\154\144\141\160\x5f\145\155\141\151\x6c\x5f\141\x74\164\x72\x69\x62\165\164\x65"]);
$K7 = sanitize_text_field($_POST["\x6d\157\137\x6c\144\141\160\x5f\160\x68\x6f\156\x65\x5f\x61\x74\x74\162\151\x62\165\x74\145"]);
$t3 = sanitize_text_field($_POST["\155\x6f\x5f\154\144\x61\x70\137\x66\x6e\141\155\145\137\141\164\164\162\x69\142\x75\164\x65"]);
$ui = sanitize_text_field($_POST["\x6d\x6f\137\154\x64\141\160\137\x6c\x6e\x61\155\x65\x5f\x61\x74\164\x72\151\x62\165\164\145"]);
$EN = sanitize_text_field($_POST["\155\157\x5f\x6c\x64\x61\x70\x5f\x6e\x69\x63\x6b\x6e\x61\x6d\145\x5f\141\164\164\162\151\142\x75\x74\x65"]);
$tA = sanitize_text_field($_POST["\155\157\x5f\x6c\x64\141\160\x5f\144\151\x73\x70\x6c\x61\x79\x5f\x6e\141\155\x65\x5f\x61\x74\164\x72\x69\x62\x75\x74\145"]);
update_option("\x6d\157\137\154\x64\141\160\137\154\157\x63\141\154\x5f\145\x6d\x61\x69\154\x5f\141\x74\x74\x72\151\x62\x75\x74\x65", $et);
update_option("\155\157\137\154\x64\x61\x70\x5f\154\x6f\143\141\x6c\x5f\x70\150\x6f\156\x65\x5f\x61\x74\164\x72\151\x62\x75\x74\x65", $K7);
update_option("\x6d\x6f\x5f\x6c\144\141\x70\137\x6c\x6f\143\141\x6c\137\x66\x6e\x61\x6d\145\x5f\141\164\x74\x72\x69\142\x75\164\x65", $t3);
update_option("\x6d\x6f\137\154\144\141\x70\137\x6c\x6f\143\141\x6c\x5f\154\x6e\141\x6d\145\137\x61\x74\164\162\x69\142\165\x74\145", $ui);
update_option("\x6d\x6f\137\x6c\144\141\160\x5f\154\157\x63\141\x6c\x5f\x6e\x69\143\153\156\141\155\145\x5f\141\164\164\162\151\x62\165\164\x65", $EN);
update_option("\155\157\x5f\154\144\141\x70\x5f\x6c\x6f\143\x61\154\137\144\151\163\x70\x6c\x61\171\137\x6e\x61\155\x65\137\141\x74\x74\162\x69\142\x75\164\x65", $tA);
$A7 = unserialize(get_option("\x6d\157\137\154\x64\141\x70\x5f\x6c\x6f\143\141\154\x5f\143\x75\163\x74\x6f\155\137\141\164\x74\162\x69\x62\165\x74\145\x73"));
if (!Mo_Ldap_Local_Util::check_empty_or_null($A7)) {
goto c0;
}
$A7 = array();
c0:
$yN = 1;
$Ey = $_POST["\155\x6f\137\154\144\141\x70\x5f\x6c\157\143\x61\x6c\137\x63\x75\x73\x74\157\155\x5f\x61\x74\x74\162\151\142\x75\x74\x65\x5f" . $yN . "\137\156\x61\x6d\x65"];
WR:
if (!isset($Ey)) {
goto is;
}
if (empty($Ey)) {
goto R2;
}
if (!(strpos($Ey, "\40") !== false)) {
goto Fk;
}
$Ey = str_replace("\x20", '', $Ey);
Fk:
$GY = "\155\157\x5f\x6c\144\141\160\137\154\157\x63\x61\x6c\137\143\x75\x73\164\157\x6d\137\x61\164\x74\162\151\x62\x75\164\145\x5f" . strtolower(sanitize_text_field($Ey));
$A7[$GY] = $Ey;
R2:
$yN++;
$Ey = $_POST["\x6d\157\x5f\x6c\x64\x61\x70\x5f\x6c\157\x63\141\154\x5f\143\x75\x73\x74\x6f\155\137\141\x74\164\162\x69\142\x75\x74\145\137" . $yN . "\x5f\x6e\x61\x6d\x65"];
goto WR;
is:
if (empty($A7)) {
goto AI;
}
update_option("\x6d\x6f\137\x6c\x64\141\160\x5f\154\x6f\x63\141\x6c\137\143\x75\x73\x74\x6f\x6d\137\x61\164\x74\162\x69\x62\x75\164\x65\x73", serialize(array_unique($A7)));
AI:
update_option("\155\x6f\137\154\x64\x61\x70\137\x6c\157\x63\141\x6c\x5f\x6d\145\163\x73\x61\147\145", "\x53\165\143\x63\145\x73\163\x66\x75\x6c\x6c\171\x20\x73\141\x76\x65\x64\x20\x4c\104\101\x50\40\x41\164\164\x72\151\x62\165\164\145\40\x43\157\156\146\x69\x67\165\162\x61\164\151\157\x6e");
$this->show_success_message();
goto Fa;
case "\x6d\x6f\x5f\154\x64\141\x70\137\144\145\x6c\x65\x74\x65\x5f\x63\165\163\164\157\x6d\x5f\141\164\164\162\x69\x62\x75\164\145":
$ks = strtolower(sanitize_text_field($_POST["\x63\x75\163\x74\157\155\137\141\164\x74\x72\x69\x62\165\164\145\x5f\156\x61\x6d\x65"]));
$BL = "\155\157\x5f\154\144\141\x70\137\154\157\x63\141\x6c\x5f\143\165\163\x74\x6f\155\137\x61\x74\164\x72\151\142\x75\164\x65\x5f" . $ks;
$S_ = unserialize(get_option("\x6d\x6f\x5f\154\x64\141\160\x5f\154\x6f\x63\x61\x6c\137\143\x75\163\164\157\x6d\x5f\141\164\164\162\x69\142\165\x74\145\163"));
unset($S_[$BL]);
if (!is_plugin_active("\155\x69\156\x69\157\x72\x61\156\147\x65\55\x6c\144\x61\160\x2d\x74\150\151\162\x64\x2d\160\x61\162\x74\171\x2d\x69\156\164\145\147\x72\x61\x74\x69\157\x6e\x2d\x61\144\144\x2d\157\x6e\x2f\x6c\144\x61\160\55\141\x74\164\162\x69\142\165\x74\145\x73\55\x74\157\55\143\x75\163\x74\157\x6d\55\165\x73\145\162\155\x65\164\x61\x2e\x70\150\x70")) {
goto my;
}
$jB = get_option("\x6d\x6f\137\154\x64\x61\x70\137\141\x74\x74\162\x69\142\165\x74\145\x5f\165\x73\x65\x72\x6d\x65\x74\141\137\x6d\141\x70\160\151\x6e\147");
foreach ($jB as $dv => $bt) {
if (!(strcasecmp($ks, $bt) == 0)) {
goto zb;
}
unset($jB[$dv]);
update_option("\x6d\x6f\137\x6c\x64\x61\160\137\141\164\x74\162\x69\x62\165\x74\145\x5f\x75\163\x65\x72\x6d\x65\x74\x61\137\155\x61\x70\160\x69\156\x67", $jB);
goto Hv;
zb:
Xo:
}
Hv:
my:
update_option("\x6d\x6f\137\154\x64\141\x70\x5f\154\x6f\x63\x61\x6c\x5f\143\x75\163\x74\157\x6d\137\141\x74\x74\162\151\142\165\164\145\x73", serialize(array_unique($S_)));
do_action("\155\x6f\x5f\154\x64\141\x70\137\x62\165\144\x64\x79\x70\x72\145\x73\163\x5f\165\160\144\141\x74\x65\x5f\141\164\164\162\x69\x62\165\x74\145\137\x6d\x61\x70\x70\151\156\x67", $ks);
update_option("\x6d\157\137\x6c\144\x61\x70\137\x6c\x6f\x63\x61\x6c\x5f\155\x65\x73\x73\x61\x67\x65", "\123\165\x63\x63\145\163\x73\x66\x75\154\x6c\171\x20\x64\145\154\145\164\x65\40\x63\x75\x73\x74\x6f\x6d\40\141\164\164\x72\151\142\x75\164\x65\72\x20\74\x62\76" . $ks . "\74\57\142\76");
$this->show_success_message();
goto Fa;
case "\x75\x73\145\162\137\x72\145\x70\x6f\x72\x74\x5f\154\x6f\x67\163":
$fE = get_option("\x75\163\x65\x72\x5f\x6c\157\x67\x73\137\164\x61\x62\x6c\x65\x5f\145\170\x69\x73\x74\x73");
$Sm = isset($_POST["\x6d\157\x5f\154\x64\141\160\137\x6c\x6f\143\141\x6c\x5f\165\163\145\x72\137\x72\145\160\x6f\x72\164\x5f\154\157\x67"]) ? $_POST["\x6d\x6f\137\154\144\141\160\137\x6c\x6f\143\x61\154\x5f\165\x73\145\x72\x5f\x72\x65\x70\157\x72\x74\x5f\x6c\157\147"] : 0;
update_option("\x6d\157\137\154\x64\x61\160\137\154\157\x63\x61\154\x5f\x75\163\145\x72\x5f\x72\145\160\157\x72\164\x5f\154\x6f\x67", $Sm);
if (!($Sm == 1 && $fE != 1)) {
goto vD;
}
$this->prefix_update_table();
vD:
goto Fa;
case "\x6b\145\145\160\137\x75\x73\x65\162\137\162\x65\x70\x6f\x72\164\x5f\154\157\x67\x73\x5f\x6f\x6e\x5f\165\156\151\163\164\141\154\x6c":
update_option("\155\x6f\137\x6c\x64\x61\160\137\x6c\x6f\x63\x61\x6c\137\x6b\145\145\x70\137\x75\163\145\162\137\162\x65\x70\157\x72\164\137\x6c\157\x67\137\x6f\156\x5f\x75\156\x69\156\163\x74\x61\154\x6c", isset($_POST["\155\157\137\154\x64\141\x70\137\154\157\x63\x61\x6c\x5f\153\x65\145\x70\x5f\x75\x73\x65\162\x5f\x72\145\x70\x6f\162\x74\x5f\154\x6f\147"]) ? $_POST["\155\157\x5f\x6c\144\x61\160\137\154\157\143\x61\x6c\x5f\x6b\x65\x65\160\137\x75\x73\x65\162\x5f\162\145\160\x6f\x72\x74\x5f\154\157\147"] : 0);
goto Fa;
case "\155\x6f\137\154\144\x61\160\137\160\x61\x73\x73":
$q1 = isset($_POST["\145\x6e\141\x62\154\x65\137\154\x64\141\160\137\x6c\x6f\147\151\156"]) ? 1 : 0;
update_option("\x6d\x6f\x5f\x6c\x64\141\x70\x5f\x65\x78\x70\157\162\164", $q1);
if ($q1 == 1) {
goto zj;
}
update_option("\155\157\137\154\144\141\x70\x5f\x6c\x6f\x63\141\154\137\155\x65\163\163\x61\x67\x65", "\x53\145\x72\x76\151\x63\145\x20\x61\x63\143\157\165\156\x74\40\160\x61\x73\x73\x77\157\162\144\40\167\151\154\154\x20\x6e\x6f\x74\40\x62\145\40\x65\170\x70\x6f\162\x74\x65\x64\x2e");
$this->show_error_message();
goto mf;
zj:
update_option("\x6d\x6f\x5f\x6c\144\141\160\x5f\x6c\x6f\x63\x61\154\x5f\155\x65\163\x73\x61\x67\x65", "\123\x65\x72\x76\x69\143\145\x20\141\143\143\157\165\156\164\x20\160\141\x73\163\x77\x6f\x72\x64\x20\x77\x69\154\x6c\40\x62\145\40\145\x78\160\157\162\x74\x65\x64\x20\x69\156\x20\145\156\x63\162\171\x70\164\145\144\40\146\x61\163\150\151\157\156");
$this->show_success_message();
mf:
goto Fa;
case "\x6d\157\137\154\144\x61\x70\137\x65\170\x70\x6f\x72\x74":
$Qq = get_option("\x6d\157\137\154\144\141\160\x5f\154\157\143\141\x6c\137\163\x65\162\x76\145\x72\137\x75\x72\x6c");
if (!empty($Qq)) {
goto CH;
}
update_option("\155\x6f\137\154\x64\141\160\137\x6c\x6f\143\x61\x6c\x5f\155\x65\x73\163\x61\x67\x65", "\x4c\104\101\120\40\103\157\x6e\x66\151\147\x75\x72\141\164\151\157\x6e\40\156\157\164\x20\x73\145\x74\x2e\x20\120\154\145\141\x73\x65\x20\143\157\156\x66\151\147\x75\162\145\40\114\104\101\120\x20\103\157\156\x6e\x65\143\164\x69\x6f\156\40\x73\x65\164\x74\151\156\x67\x73\x2e");
$this->show_error_message();
goto T1;
CH:
$this->miniorange_ldap_export();
T1:
goto Fa;
case "\x6d\157\x5f\154\x64\141\160\x5f\151\155\x70\x6f\162\x74":
$X9 = $_FILES["\155\157\x5f\154\x64\141\x70\x5f\151\x6d\160\157\x72\164\x5f\146\x69\x6c\x65"]["\156\141\155\145"];
$sU = $_FILES["\x6d\157\x5f\x6c\x64\x61\160\137\151\x6d\x70\x6f\162\x74\137\146\x69\x6c\x65"]["\x73\x69\172\x65"];
$ao = $_FILES["\x6d\x6f\x5f\x6c\144\141\160\137\x69\x6d\160\157\162\164\137\146\x69\154\x65"]["\x74\155\x70\137\x6e\141\x6d\145"];
$A2 = $_FILES["\155\x6f\x5f\154\x64\x61\160\x5f\151\155\x70\157\x72\164\x5f\146\x69\x6c\145"]["\x74\171\160\x65"];
$tz = strtolower(pathinfo($X9, PATHINFO_EXTENSION));
if ($tz == "\x6a\x73\157\x6e") {
goto Tw;
}
update_option("\x6d\157\x5f\x6c\144\141\x70\x5f\154\x6f\143\x61\x6c\x5f\155\145\163\163\x61\x67\x65", "\x49\156\143\157\162\162\145\143\x74\40\x66\x69\154\145\40\x75\160\x6c\157\x61\x64\x65\x64\41\40\120\154\x65\x61\163\145\40\165\x70\x6c\157\141\144\x20\164\x68\x65\x20\146\151\154\x65\40\x74\150\141\x74\40\x77\x61\163\x20\145\170\160\x6f\162\164\x65\x64\x20\x66\x72\157\155\x20\164\150\x69\163\x20\160\x6c\165\x67\x69\x6e");
$this->show_error_message();
goto tT;
Tw:
$iO = file_get_contents($ao);
$Mo = json_decode($iO, true);
error_log("\x53\x74\141\162\x74\x65\144\40\x69\155\160\x6f\162\x74\151\156\x67\x20\165\x70\154\x6f\141\x64\145\x64\x20\x63\x6f\x6e\x66\151\147\x75\162\141\164\151\157\x6e\x73");
if (array_key_exists("\154\144\141\x70\137\x4c\x6f\x67\151\156", $Mo) || array_key_exists("\154\x64\141\160\137\x63\157\x6e\x66\151\147", $Mo) || array_key_exists("\x52\x6f\x6c\x65\x5f\x4d\x61\x70\x70\x69\x6e\x67", $Mo) || array_key_exists("\x41\164\164\x72\151\142\x75\x74\x65\137\115\x61\x70\160\151\x6e\147", $Mo) || array_key_exists("\x44\x69\162\x73\x79\156\x63\137\x4c\x64\x61\160\x5f\124\x6f\x5f\x57\160\x5f\123\171\x6e\x63", $Mo) || array_key_exists("\x44\x69\x72\x73\171\x6e\143\137\127\160\137\x54\x6f\137\x4c\144\x61\x70\137\163\171\x6e\x63", $Mo)) {
goto sZ;
}
update_option("\155\157\137\154\144\141\160\137\x6c\x6f\x63\x61\154\137\155\x65\163\163\x61\147\145", "\111\156\x63\x6f\162\162\x65\x63\x74\x20\146\x69\154\x65\40\x75\160\x6c\157\141\144\145\144\x21\x20\x50\154\145\x61\163\x65\40\165\x70\x6c\157\141\x64\x20\x74\150\x65\x20\x66\x69\154\x65\40\x74\150\x61\x74\x20\x77\x61\163\40\x65\170\160\157\162\x74\x65\x64\40\x66\x72\x6f\x6d\x20\164\x68\x69\x73\x20\160\154\x75\x67\x69\156");
$this->show_error_message();
goto Eu;
sZ:
delete_option("\x6d\157\x5f\x6c\x64\141\160\137\154\x6f\143\141\x6c\x5f\143\165\x73\x74\157\155\137\x61\164\164\162\x69\142\x75\x74\x65\163");
delete_option("\155\x6f\x5f\x6c\144\141\160\x5f\154\157\143\141\154\x5f\162\157\x6c\x65\137\155\141\x70\x70\x69\156\x67\137\x6b\x65\x79\x5f\141\x72\x72\141\171");
delete_option("\x6d\157\x5f\x6c\x64\x61\160\137\x6c\157\x63\x61\154\137\162\x6f\154\145\137\155\141\x70\160\151\x6e\147\137\x76\141\154\x75\145\137\141\x72\162\x61\x79");
delete_option("\155\157\x5f\154\144\x61\x70\137\154\x6f\x63\x61\x6c\x5f\x73\x65\162\166\x65\x72\x5f\x75\x72\154\137\x73\x74\x61\164\x75\x73");
delete_option("\x6d\x6f\137\154\x64\x61\x70\137\x6c\157\x63\141\154\x5f\x73\145\x72\x76\151\x63\145\137\x61\143\143\x6f\165\x6e\164\137\x73\x74\141\x74\165\x73");
delete_option("\155\157\137\154\144\141\160\x5f\154\157\x63\x61\x6c\137\x75\163\x65\162\x5f\x6d\141\160\160\x69\x6e\147\137\163\x74\x61\x74\165\x73");
delete_option("\155\157\x5f\x6c\144\141\160\x5f\x6c\x6f\143\x61\x6c\x5f\165\x73\x65\162\x6e\141\x6d\145\x5f\x73\x74\x61\164\165\163");
delete_option("\155\157\x5f\x6c\144\x61\x70\x5f\154\x6f\x63\x61\154\x5f\x72\157\x6c\145\137\x6d\141\x70\160\x69\x6e\147\x5f\x67\x72\x6f\x75\x70\137\x6e\x61\155\x65\x73");
delete_option("\155\x6f\x5f\x6c\x64\x61\160\x5f\154\157\143\x61\154\x5f\154\x64\x61\160\x5f\160\x72\157\x74\x6f\143\x6f\x6c");
delete_option("\x6d\x6f\137\x6c\144\141\x70\137\x6c\x6f\x63\141\154\x5f\x6c\x64\x61\160\x5f\x73\145\162\x76\x65\162\137\x61\144\x64\x72\145\x73\163");
delete_option("\x6d\x6f\137\154\x64\x61\x70\x5f\154\157\x63\141\x6c\137\x6c\x64\141\160\x5f\160\157\162\x74\137\x6e\x75\155\x62\145\162");
delete_option("\x6d\157\137\154\x64\x61\160\x5f\154\x6f\143\141\154\137\163\145\162\x76\145\162\x5f\x70\x61\163\x73\167\157\x72\x64");
delete_option("\155\157\137\x6c\144\x61\160\x5f\154\157\x63\141\x6c\x5f\x72\157\x6c\145\137\155\141\160\160\151\156\147\x5f\143\x6f\165\156\x74");
update_option("\x6d\x6f\137\x6c\x64\x61\160\x5f\154\x6f\x63\x61\154\x5f\145\156\141\x62\154\x65\x5f\x6c\x6f\x67\x69\x6e", 0);
update_option("\155\157\137\154\x64\x61\x70\x5f\x6c\x6f\x63\141\x6c\137\x65\x6e\x61\x62\x6c\145\x5f\x72\x6f\154\x65\x5f\155\x61\160\x70\151\156\147", 0);
update_option("\155\157\x5f\x6c\x64\141\x70\x5f\154\157\x63\x61\154\x5f\x65\156\141\142\154\x65\x5f\141\x74\164\x72\137\x6d\x61\x70\160\151\x6e\x67", 0);
update_option("\x6d\x6f\137\x6c\144\141\160\137\154\x6f\143\141\x6c\137\145\156\x61\142\154\x65\137\x75\x70\144\141\164\145\x5f\x6c\144\x61\160", 0);
delete_option("\x6d\x6f\137\x6c\144\141\x70\137\x6c\157\x63\141\x6c\x5f\145\x6e\x61\x62\154\x65\137\142\x6f\164\150\137\154\157\x67\151\x6e");
update_option("\x6d\157\137\x6c\x64\x61\160\x5f\154\x6f\x63\x61\x6c\x5f\162\145\147\x69\x73\164\x65\162\x5f\165\163\145\x72", 0);
delete_option("\x6d\x6f\x5f\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\x6c\137\162\145\x64\151\x72\x65\x63\164\x5f\x74\x6f");
delete_option("\155\157\137\x6c\x64\x61\x70\x5f\154\157\143\141\x6c\x5f\143\165\x73\164\157\x6d\137\162\145\144\151\x72\145\x63\164");
update_option("\x6d\157\137\154\157\x63\141\154\137\x66\x69\154\x74\145\162\x5f\143\x68\145\143\x6b", 0);
update_option("\155\157\137\x6c\144\x61\160\x5f\x6c\157\x63\x61\x6c\137\x61\x75\x74\150\157\162\x69\x7a\145\144\137\165\x73\x65\x72\163\x5f\157\x6e\x6c\171", 0);
update_option("\155\x6f\137\154\x64\x61\160\x5f\154\x6f\143\x61\154\137\x6b\145\x65\160\137\145\x78\151\163\x74\x69\x6e\147\137\x75\163\145\162\x5f\162\157\154\145\x73", 0);
delete_option("\x6d\157\x5f\154\144\141\x70\x5f\154\x6f\x63\141\x6c\137\x75\x73\x65\162\x6e\141\x6d\x65\x5f\x61\x74\x74\x72\151\142\165\164\145");
$Fr = unserialize(Tab_ldap_Class_Names);
$b0 = $Mo["\160\x6c\x75\x67\x69\x6e\x5f\166\145\162\163\x69\157\x6e"]["\x70\154\x75\x67\x69\x6e\x5f\x76\145\x72\163\x69\157\x6e"];
foreach ($Mo as $QT => $jZ) {
$X5 = call_user_func($Fr[$QT] . "\x3a\x3a\147\145\164\103\157\x6e\163\x74\x61\156\164\x73");
foreach ($X5 as $jA => $pK) {
if (!array_key_exists($jA, $jZ)) {
goto sO;
}
if (!($jA == "\x6d\x61\x70\x70\x69\x6e\147\137\143\x6f\165\156\164")) {
goto Sl;
}
$NU = $jZ[$jA];
Sl:
if ($jA == "\122\x6f\154\145\x5f\x6d\x61\x70\160\x69\156\x67\x5f\x6b\145\x79") {
goto Sv;
}
if ($jA == "\x52\x6f\154\x65\137\x6d\x61\x70\x70\x65\x64\137\166\141\154\165\x65") {
goto L3;
}
if ($jA == "\x52\x6f\x6c\x65\137\x6d\141\160\x70\151\x6e\147\x5f\x6b\145\x79\x5f\x61\162\162\x61\x79") {
goto pP;
}
if ($jA == "\x52\x6f\154\x65\x5f\155\141\160\x70\x69\x6e\x67\x5f\166\141\x6c\x75\x65\x5f\x61\x72\x72\141\x79") {
goto uh;
}
if ($jA == "\x52\157\154\x65\137\155\141\160\x70\x69\x6e\x67\137\x67\x72\157\165\160\x5f\156\x61\x6d\145\x73") {
goto Uq;
}
if ($jA == "\x63\x75\163\164\157\x6d\x5f\x61\164\x74\x72\x69\142\165\164\145\137\156\141\155\x65") {
goto xE;
}
$D0 = !empty(sanitize_text_field($jZ[$jA])) ? sanitize_text_field($jZ[$jA]) : $jZ[$jA];
if (!($pK == "\x6d\157\x5f\x6c\144\x61\160\x5f\x6c\157\x63\x61\x6c\137\163\x65\x72\166\145\x72\x5f\x75\162\154" or $pK == "\x6d\157\x5f\154\x64\141\x70\x5f\x6c\x6f\143\x61\154\137\163\x65\x72\166\x65\x72\x5f\x64\156" or $pK == "\155\157\x5f\x6c\144\141\160\137\154\x6f\x63\141\x6c\137\163\145\141\x72\x63\x68\x5f\142\x61\163\x65" or $pK == "\x6d\157\x5f\x6c\144\x61\160\137\x6c\x6f\x63\x61\x6c\137\163\145\x61\162\x63\x68\x5f\146\151\x6c\164\x65\162" or $pK == "\155\157\x5f\154\x64\141\160\137\x6c\x6f\x63\141\154\137\165\x73\145\162\x6e\x61\x6d\x65\x5f\141\x74\x74\162\x69\x62\165\164\x65")) {
goto pq;
}
if ($pK == "\155\157\137\154\144\x61\x70\x5f\154\x6f\x63\x61\x6c\137\165\163\145\x72\156\x61\155\145\x5f\x61\164\164\x72\x69\x62\165\x74\145") {
goto YI;
}
$D0 = Mo_Ldap_Local_Util::encrypt($D0);
goto LJ;
YI:
if (!empty($b0)) {
goto Fm;
}
$VK = explode("\x3b", $D0);
$rz = array("\x73\x61\x6d\141\x63\143\157\165\x6e\164\156\x61\155\145", "\155\141\x69\154", "\165\163\x65\x72\160\x72\x69\156\x63\151\x70\x61\154\x6e\x61\155\x65", "\165\151\144", "\143\156");
$D0 = array();
$Z2 = '';
foreach ($VK as $jA => $ad) {
if (in_array(strtolower($ad), $rz)) {
goto Gn;
}
$Z2 = $Z2 . "\54" . strtolower($ad);
goto Py;
Gn:
array_push($D0, strtolower($ad));
Py:
Aw:
}
hc:
if (!($Z2 != '')) {
goto yf;
}
$Z2 = trim($Z2, "\54");
update_option("\155\157\x5f\x6c\x64\x61\160\x5f\x6c\157\143\141\x6c\x5f\145\x78\164\x72\x61\137\x75\x73\x65\x72\x5f\141\164\x74\x72\151\x62\165\164\x65", $Z2);
array_push($D0, "\145\170\164\162\141\125\163\x65\x72\101\164\x74\x72\x69\142\x75\164\145");
yf:
Fm:
LJ:
pq:
update_option($pK, $D0);
goto CO;
xE:
$yN = sizeof($jZ[$jA]);
$HI = array();
$RA = 1;
Qn:
if (!($RA <= $yN)) {
goto Dv;
}
$D0 = sanitize_text_field($jZ[$jA][$RA]);
$HI["\155\157\137\154\x64\141\160\x5f\x6c\157\143\141\154\137\x63\165\x73\x74\x6f\155\137\x61\164\x74\x72\151\142\x75\x74\x65\137" . $D0] = $D0;
x2:
$RA++;
goto Qn;
Dv:
update_option("\155\x6f\137\154\144\141\x70\x5f\154\x6f\x63\x61\154\x5f\x63\x75\163\x74\157\155\x5f\x61\164\164\x72\x69\142\165\164\x65\x73", serialize(array_unique($HI)));
CO:
goto Rz;
Uq:
update_option("\155\x6f\x5f\x6c\144\141\160\x5f\154\157\x63\x61\x6c\x5f\x72\157\154\145\x5f\155\x61\x70\160\x69\x6e\147\137\147\x72\x6f\165\x70\137\156\141\x6d\x65\x73", serialize($jZ["\122\157\154\x65\x5f\x6d\x61\x70\x70\x69\156\147\137\x67\162\157\165\x70\137\156\141\155\145\x73"]));
Rz:
goto b0;
uh:
update_option("\155\157\x5f\154\144\x61\160\x5f\x6c\157\x63\x61\154\x5f\x72\157\154\145\137\155\x61\160\160\x69\156\147\x5f\x76\x61\154\x75\x65\137\x61\162\x72\x61\x79", serialize($jZ["\122\x6f\154\145\x5f\x6d\141\x70\x70\151\156\147\x5f\166\141\x6c\x75\x65\x5f\141\162\x72\141\x79"]));
b0:
goto GD;
pP:
update_option("\x6d\157\137\154\144\141\160\137\154\x6f\143\x61\x6c\x5f\162\157\154\145\137\155\x61\160\x70\151\156\147\137\153\145\171\x5f\x61\x72\162\141\171", serialize($jZ["\x52\x6f\154\145\137\x6d\141\x70\x70\x69\156\x67\137\x6b\x65\171\x5f\141\162\x72\141\171"]));
GD:
goto xZ;
L3:
if (!empty($b0)) {
goto am;
}
$p_ = array();
$RA = 1;
dt:
if (!($RA <= $NU)) {
goto pb;
}
$D0 = sanitize_text_field($jZ[$jA][$RA]);
$p_[$pK . $RA] = $D0;
Er:
$RA++;
goto dt;
pb:
update_option("\x6d\157\137\154\x64\x61\x70\137\154\157\143\141\x6c\137\162\x6f\x6c\145\137\155\141\x70\160\151\156\147\137\x76\x61\154\165\145\137\162\141\x77\x5f\x61\x72\162\141\171", $p_);
am:
xZ:
goto V9;
Sv:
if (!empty($b0)) {
goto v_;
}
$m8 = array();
$RA = 1;
mS:
if (!($RA <= $NU)) {
goto s4;
}
$D0 = sanitize_text_field($jZ[$jA][$RA]);
$m8[$pK . $RA] = $D0;
uJ:
$RA++;
goto mS;
s4:
update_option("\x6d\x6f\137\x6c\x64\x61\160\x5f\x6c\x6f\143\x61\154\x5f\162\157\x6c\x65\137\x6d\141\160\x70\151\156\x67\x5f\153\145\171\x5f\x72\141\x77\x5f\141\162\x72\141\171", $m8);
v_:
V9:
sO:
FE:
}
D2:
OA:
}
d1:
if (!empty($b0)) {
goto WK;
}
error_log("\x49\x6d\160\x6f\x72\164\x69\156\x67\40\x63\150\141\156\147\x65\x73\40\146\157\162\40\126\x65\162\163\151\x6f\x6e\40\x32\63\x2e\60\x20\141\156\144\x20\142\145\154\x6f\167");
$D_ = Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\137\x6c\144\141\x70\x5f\x6c\157\x63\141\154\x5f\x73\145\162\x76\x65\162\x5f\165\x72\x6c"));
$fB = "\57\x5b\72\135\x2f";
$D_ = str_replace("\57\x2f", '', $D_);
$Gf = preg_split($fB, $D_);
update_option("\x6d\x6f\137\x6c\x64\x61\160\x5f\x6c\x6f\x63\x61\154\x5f\x6c\x64\x61\x70\x5f\x70\162\x6f\x74\x6f\143\157\154", $Gf[0]);
update_option("\x6d\157\137\x6c\x64\141\160\137\x6c\157\x63\x61\x6c\x5f\154\144\x61\x70\137\163\x65\162\x76\x65\x72\137\141\144\x64\162\145\x73\163", Mo_Ldap_Local_Util::encrypt($Gf[1]));
update_option("\155\x6f\x5f\x6c\x64\141\160\137\x6c\157\143\x61\154\137\154\144\x61\160\137\160\157\x72\164\137\x6e\x75\x6d\x62\x65\162", $Gf[2]);
$c8 = get_option("\x6d\x6f\137\x6c\x64\141\x70\x5f\154\157\143\141\154\137\x72\x6f\154\145\x5f\155\141\x70\x70\x69\x6e\147\137\153\x65\171\x5f\162\x61\167\137\x61\162\x72\x61\171");
$wZ = get_option("\x6d\157\x5f\154\144\x61\160\x5f\154\x6f\x63\x61\x6c\x5f\x72\x6f\154\145\137\155\x61\x70\160\151\156\147\x5f\166\141\154\165\x65\137\162\141\167\x5f\141\x72\162\x61\x79");
delete_option("\x6d\157\137\x6c\x64\x61\160\x5f\154\x6f\143\141\154\x5f\162\x6f\x6c\145\137\x6d\141\160\160\151\156\x67\x5f\153\145\171\x5f\162\x61\167\137\141\162\x72\141\171");
delete_option("\x6d\x6f\137\154\144\141\160\x5f\x6c\157\x63\141\154\x5f\162\157\x6c\x65\137\155\x61\x70\x70\151\156\147\137\x76\141\x6c\165\x65\137\x72\x61\167\x5f\x61\x72\162\141\171");
$rA = array();
$RA = 1;
jK:
if (!($RA <= $NU)) {
goto YR;
}
if (empty($rA[$c8["\x6d\x6f\137\154\x64\141\160\137\154\x6f\143\x61\154\x5f\x6d\141\x70\x70\x69\156\x67\x5f\153\x65\x79\137" . $RA]])) {
goto jN;
}
$ey = $rA[$c8["\x6d\x6f\137\x6c\x64\141\160\x5f\154\157\x63\141\x6c\x5f\x6d\141\x70\160\151\156\x67\137\153\145\x79\x5f" . $RA]];
array_push($ey, $wZ["\x6d\157\x5f\154\144\141\x70\x5f\x6c\x6f\143\141\x6c\x5f\155\141\160\160\151\156\147\137\x76\x61\154\x75\145\137" . $RA]);
$rA[$c8["\x6d\x6f\137\154\x64\141\160\x5f\154\157\143\141\154\137\x6d\141\160\x70\x69\x6e\x67\x5f\153\x65\171\137" . $RA]] = $ey;
goto rX;
jN:
$rA[$c8["\x6d\x6f\x5f\x6c\x64\141\160\x5f\154\x6f\143\141\154\x5f\155\x61\x70\160\151\156\147\137\153\x65\171\137" . $RA]] = array($wZ["\155\x6f\x5f\x6c\x64\141\160\x5f\x6c\x6f\143\141\x6c\137\155\141\x70\x70\x69\156\147\x5f\x76\x61\154\x75\145\137" . $RA]);
rX:
fJ:
$RA++;
goto jK;
YR:
$Mt = count($rA);
update_option("\155\157\137\x6c\x64\x61\160\137\x6c\x6f\x63\141\x6c\x5f\x72\157\x6c\x65\137\x6d\x61\160\x70\x69\156\147\137\x63\x6f\x75\156\164", $Mt);
$mf = array();
$dm = array();
$s9 = array();
$RA = 1;
$sF = "\57\x5b\x3d\54\x5d\57";
foreach ($rA as $jA => $D0) {
$mf["\155\157\x5f\x6c\144\x61\x70\x5f\154\x6f\143\x61\154\x5f\x6d\141\160\x70\151\156\x67\x5f\153\145\171\x5f" . $RA] = $jA;
$dm["\155\157\x5f\154\144\x61\160\x5f\154\157\x63\x61\x6c\137\x6d\141\x70\160\x69\156\x67\x5f\166\x61\154\165\145\137" . $RA] = $D0;
$uD = preg_split($sF, $jA);
$s9[$RA] = $uD[1];
$RA++;
ac:
}
Um:
update_option("\155\157\137\x6c\144\141\x70\x5f\x6c\x6f\x63\141\x6c\x5f\x72\x6f\154\x65\x5f\155\x61\160\x70\x69\156\147\x5f\x6b\145\x79\x5f\x61\x72\162\x61\171", serialize($mf));
update_option("\155\157\137\x6c\144\141\160\x5f\154\x6f\x63\x61\154\x5f\x72\x6f\x6c\x65\137\x6d\141\x70\x70\x69\156\x67\137\x76\x61\154\165\145\137\x61\x72\x72\x61\171", serialize($dm));
update_option("\x6d\157\137\154\144\141\x70\137\x6c\x6f\x63\141\x6c\137\x72\x6f\x6c\145\137\x6d\141\160\x70\151\x6e\x67\x5f\147\x72\157\x75\x70\x5f\x6e\141\155\x65\163", serialize($s9));
WK:
$DE = get_option("\x6d\157\137\154\x64\x61\160\x5f\x6c\x6f\x63\x61\x6c\x5f\165\163\145\x72\156\141\x6d\x65\x5f\141\x74\x74\x72\151\142\165\164\145");
if (!empty($DE)) {
goto qk;
}
update_option("\155\x6f\137\154\x6f\x63\141\x6c\x5f\x66\x69\x6c\x74\145\x72\137\143\150\x65\x63\153", 1);
qk:
update_option("\155\x6f\x5f\x6c\144\x61\x70\x5f\154\157\143\x61\154\137\x6d\x65\x73\x73\141\147\x65", "\124\x68\x65\40\146\151\x6c\145\x20\167\x61\163\40\151\155\160\157\x72\x74\x65\144\40\163\x75\x63\143\x65\x73\x73\146\x75\x6c\154\171");
$this->show_success_message();
Eu:
tT:
goto Fa;
case "\x6d\x6f\x5f\x6c\x64\x61\x70\137\x6c\x6f\x63\x61\x6c\x5f\154\157\x67\151\156\137\163\145\156\144\x5f\161\165\x65\x72\171":
$q2 = sanitize_text_field($_POST["\x71\165\x65\x72\171"]);
$kn = sanitize_text_field($_POST["\x71\165\x65\162\x79\x5f\x65\x6d\x61\151\154"]);
$Gy = sanitize_text_field($_POST["\x71\x75\x65\x72\x79\137\x70\x68\157\156\x65"]);
$q2 = "\x5b\x57\x50\40\114\x44\x41\120\x20\146\x6f\x72\40\111\156\164\x72\141\156\145\x74\40\x28\120\x72\x65\x6d\151\165\x6d\x20\x73\x69\x6e\x67\154\145\40\163\x69\x74\145\51\x5d\x3a\x20" . $q2;
$this->mo_ldap_send_query($kn, $Gy, $q2);
goto Fa;
case "\x6d\x6f\137\154\144\141\160\137\x6c\157\147\x69\156\137\163\x65\156\x64\137\x71\165\145\162\x79":
$kn = sanitize_text_field($_POST["\151\156\x6e\x65\162\137\146\x6f\x72\155\x5f\x65\x6d\141\x69\154\x5f\151\x64"]);
$Gy = sanitize_text_field($_POST["\151\x6e\x6e\x65\162\x5f\x66\x6f\162\155\137\160\x68\x6f\x6e\x65\137\x69\x64"]);
$q2 = sanitize_text_field($_POST["\x69\x6e\156\145\162\x5f\146\x6f\162\155\137\161\x75\x65\x72\x79\137\x69\x64"]);
$xD = get_option("\155\157\x5f\154\x64\141\x70\x5f\x64\x69\162\145\143\x74\157\162\x79\137\163\145\162\166\145\162\137\166\141\154\x75\145");
if (strcasecmp($xD, "\x6d\x73\x61\x64") == 0) {
goto ZE;
}
if (strcasecmp($xD, "\x6f\x70\145\x6e\x6c\144\x61\160") == 0) {
goto MX;
}
if (strcasecmp($xD, "\x66\162\x65\x65\x69\160\141") == 0) {
goto Ox;
}
if (strcasecmp($xD, "\x6a\165\x6d\160\x63\x6c\157\165\144") == 0) {
goto A9;
}
if (strcasecmp($xD, "\157\164\x68\145\162") == 0) {
goto n4;
}
$xD = "\116\x6f\x74\x20\103\157\156\x66\x69\147\165\x72\145\x64";
goto zd;
ZE:
$xD = "\x4d\151\143\x72\157\163\157\146\x74\x20\101\x63\x74\x69\166\145\40\x44\x69\x72\145\x63\164\157\x72\171";
goto zd;
MX:
$xD = "\117\x70\145\x6e\114\104\101\120";
goto zd;
Ox:
$xD = "\x46\162\145\145\x49\120\x41";
goto zd;
A9:
$xD = "\x4a\x75\155\x70\x43\x6c\157\165\x64";
goto zd;
n4:
$xD = get_option("\155\157\x5f\154\x64\141\160\x5f\x64\x69\x72\145\143\x74\157\162\x79\137\163\x65\162\x76\x65\162\137\143\165\163\164\157\155\x5f\x76\x61\x6c\165\x65");
zd:
update_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\154\x6f\143\141\154\137\x64\151\x72\x65\143\164\157\162\171\137\x73\145\x72\x76\x65\162", $xD);
$cN = $_POST["\145\x78\160\x6f\x72\164\x5f\143\x6f\156\x66\151\147\165\x72\x61\164\151\x6f\x6e\137\143\x68\157\151\x63\x65"];
if ($cN == "\171\x65\163") {
goto eE;
}
if ($cN == "\x6e\x6f") {
goto K_;
}
goto ch;
eE:
$nC = $this->auto_email_ldap_export();
$nC = implode("\40\x3c\142\x72\x3e", $nC);
$q2 = $q2 . "\40\54\x3c\x62\x72\x3e\x3c\142\162\76\120\x6c\165\x67\x69\x6e\x20\x43\x6f\x6e\146\x69\x67\x75\x72\x61\x74\151\157\x6e\x3a\74\x62\x72\x3e\x20" . $nC;
goto ch;
K_:
$nC = "\103\x6f\x6e\146\151\147\165\162\141\164\x69\x6f\156\x20\167\x61\163\x20\156\x6f\x74\x20\x75\x70\154\x6f\x61\x64\145\144\x20\142\x79\x20\x75\163\145\x72";
$q2 = $q2 . "\40\54\x3c\x62\x72\x3e\x3c\x62\x72\76\120\154\x75\x67\x69\156\x20\103\x6f\x6e\x66\151\147\x75\162\x61\164\x69\x6f\x6e\72\74\142\x72\76\40" . $nC;
ch:
$q2 = "\x5b\x57\x50\x20\x4c\104\101\120\40\x66\x6f\x72\x20\x49\x6e\164\162\x61\156\x65\x74\40\x28\x50\162\x65\155\x69\165\x6d\x20\163\x69\156\147\154\x65\40\x73\x69\164\145\x29\135\x3a\40" . $q2;
$this->mo_ldap_send_query($kn, $Gy, $q2);
goto Fa;
case "\155\x6f\137\154\144\141\x70\x5f\154\x6f\x67\151\156\x5f\163\145\x6e\144\x5f\x66\x65\x61\x74\165\x72\145\x5f\x72\145\x71\165\x65\163\164\137\x71\165\145\x72\171":
$kn = sanitize_text_field($_POST["\161\x75\x65\x72\171\137\145\x6d\x61\x69\x6c"]);
$Gy = sanitize_text_field($_POST["\x71\x75\x65\162\171\137\x70\x68\x6f\x6e\x65"]);
$q2 = sanitize_text_field($_POST["\161\165\x65\x72\x79"]);
$q2 = "\133\127\120\x20\x4c\x44\101\120\x20\x66\157\x72\40\111\x6e\164\x72\x61\156\145\164\40\x28\x50\162\145\x6d\151\x75\155\40\163\x69\156\x67\154\145\x20\163\151\x74\145\x29\135\x3a\40" . $q2;
$this->mo_ldap_send_query($kn, $Gy, $q2);
goto Fa;
case "\155\x6f\x5f\x6c\x64\141\x70\x5f\154\157\x63\x61\154\x5f\146\x61\154\154\x62\141\x63\153\x5f\154\x6f\147\x69\x6e":
update_option("\155\x6f\137\154\x64\141\160\x5f\154\x6f\143\x61\154\137\145\x6e\x61\x62\154\x65\137\146\141\x6c\154\142\x61\143\x6b\137\x6c\157\x67\x69\x6e", isset($_POST["\x6d\157\137\x6c\144\141\x70\x5f\x6c\x6f\x63\141\154\137\145\156\x61\x62\x6c\x65\x5f\146\141\x6c\154\142\x61\143\153\137\154\x6f\x67\151\156"]) ? $_POST["\x6d\157\x5f\x6c\x64\141\160\137\x6c\x6f\x63\141\x6c\137\x65\x6e\x61\x62\154\145\x5f\x66\x61\154\154\x62\141\x63\x6b\x5f\154\157\147\151\x6e"] : 0);
update_option("\x6d\157\x5f\x6c\144\x61\160\x5f\154\157\143\141\x6c\x5f\155\145\163\163\141\x67\x65", "\x46\x61\x6c\154\142\141\x63\153\x20\x6c\157\147\151\x6e\x20\165\163\x69\156\147\x20\127\x6f\162\144\x50\x72\x65\163\163\40\160\x61\163\163\167\x6f\x72\x64\x20\145\156\141\x62\154\x65\144");
$this->show_success_message();
goto Fa;
}
Oy:
Fa:
Az:
}
function mo_ldap_send_query($kn, $Gy, $q2)
{
if (Mo_Ldap_Local_Util::check_empty_or_null($kn) || Mo_Ldap_Local_Util::check_empty_or_null($q2)) {
goto H0;
}
$f4 = new Mo_Ldap_Local_Customer();
$vF = json_decode($f4->submit_contact_us($kn, $Gy, $q2), true);
if (isset($vF["\x73\x74\141\x74\x75\x73"]) && strcasecmp($vF["\x73\x74\141\x74\165\163"], "\103\125\x52\x4c\x5f\105\122\x52\117\122") == 0) {
goto uM;
}
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto Lq;
}
if ($vF == false) {
goto Je;
}
update_option("\155\x6f\137\154\144\x61\160\137\154\x6f\143\x61\154\137\x6d\145\x73\163\x61\x67\x65", "\124\150\x61\x6e\153\163\40\x66\x6f\162\40\x67\x65\164\x74\x69\x6e\147\x20\151\x6e\x20\164\157\x75\143\x68\x21\x20\x57\145\x20\x73\x68\141\x6c\x6c\x20\147\x65\164\40\142\141\143\x6b\x20\164\x6f\x20\x79\157\x75\x20\163\x68\x6f\162\x74\x6c\171\x2e");
$this->show_success_message();
goto JW;
Je:
update_option("\x6d\157\137\x6c\x64\x61\x70\x5f\x6c\157\x63\x61\154\137\155\145\163\x73\x61\x67\x65", "\131\157\x75\162\40\161\165\145\x72\171\40\143\x6f\165\x6c\144\x20\x6e\157\x74\40\142\145\x20\x73\165\x62\155\151\164\x74\x65\x64\x2e\x20\x50\x6c\x65\x61\163\145\x20\x74\x72\x79\40\x61\147\x61\151\x6e\x2e");
$this->show_error_message();
JW:
Lq:
goto k2;
uM:
update_option("\155\x6f\137\x6c\144\x61\x70\x5f\154\x6f\x63\x61\154\x5f\155\x65\x73\163\141\147\x65", $vF["\x73\x74\x61\164\x75\163\115\145\163\x73\141\147\145"]);
$this->show_error_message();
k2:
goto Pw;
H0:
update_option("\x6d\x6f\x5f\x6c\144\141\x70\137\x6c\x6f\x63\x61\154\137\155\x65\x73\x73\x61\147\x65", "\x50\154\145\x61\163\x65\40\x73\165\142\x6d\x69\164\40\171\x6f\165\162\x20\x71\165\x65\x72\171\40\141\x6c\x6f\x6e\x67\x20\167\151\x74\150\40\x65\x6d\141\x69\154\56");
$this->show_error_message();
return;
Pw:
}
function miniorange_ldap_export()
{
if (!(array_key_exists("\x6f\160\164\151\157\x6e", $_POST) && $_POST["\x6f\x70\x74\151\x6f\156"] == "\155\x6f\x5f\x6c\144\141\160\x5f\145\170\160\157\x72\164")) {
goto wA;
}
$Qg = get_option("\x61\x63\164\151\x76\145\x5f\160\154\x75\x67\x69\156\x73");
$KB = in_array("\x64\x69\162\145\x63\x74\157\x72\171\x5f\163\171\x6e\x63\x2f\144\151\162\145\143\x74\157\162\171\137\163\x79\156\x63\56\x70\150\160", $Qg);
$vj = array("\104\151\x72\163\171\156\143\137\x4c\x64\x61\x70\x5f\124\x6f\137\127\160\x5f\123\171\x6e\x63" => "\x6d\157\x5f\x6f\x70\x74\x69\157\x6e\x5f\x6c\x64\x61\x70\x5f\x64\151\x72\163\x79\x6e\143\x5f\154\x64\141\x70\137\164\x6f\137\x77\160\137\163\171\x6e\x63", "\104\151\162\163\x79\x6e\x63\137\x57\160\137\124\157\137\114\144\141\x70\x5f\163\171\x6e\x63" => "\155\157\137\x6f\x70\x74\151\157\156\x5f\154\144\x61\160\x5f\144\151\162\163\x79\x6e\143\137\167\x70\137\x74\157\137\x6c\144\141\x70\137\163\171\156\143");
$Fr = unserialize(Tab_ldap_Class_Names);
$QU = get_option("\155\157\137\144\x69\162\x73\171\156\x63\x5f\x6c\144\141\x70\x5f\x74\157\137\167\160\x5f\x63\157\x6e\146\151\147\137\x64\x6f\156\145");
$ch = get_option("\155\157\x5f\x64\x69\x72\163\x79\x6e\143\137\167\160\137\164\157\x5f\x6c\144\141\x70\137\143\157\156\146\151\x67\x5f\x64\x6f\156\145");
if (!$KB) {
goto Zr;
}
if ($QU) {
goto bi;
}
if (!array_key_exists("\x44\151\x72\x73\x79\x6e\x63\x5f\x4c\x64\141\160\x5f\124\x6f\x5f\127\x70\137\x53\x79\x6e\x63", $Fr)) {
goto dD;
}
unset($Fr["\x44\x69\162\163\171\156\143\137\x4c\144\141\x70\x5f\124\157\137\127\160\x5f\123\171\x6e\x63"]);
dD:
bi:
if ($ch) {
goto Hg;
}
if (!array_key_exists("\x44\x69\162\x73\x79\x6e\x63\137\127\x70\x5f\124\x6f\x5f\114\x64\x61\160\x5f\x73\171\156\x63", $Fr)) {
goto hG;
}
unset($Fr["\x44\x69\162\163\x79\156\x63\137\x57\160\x5f\124\x6f\137\x4c\144\x61\160\x5f\163\x79\x6e\x63"]);
hG:
Hg:
goto MN;
Zr:
foreach ($vj as $mK => $pK) {
if (!array_key_exists($mK, $Fr)) {
goto Aa;
}
unset($Fr[$mK]);
Aa:
oI:
}
uQ:
MN:
$Mo = array();
foreach ($Fr as $jA => $D0) {
$Mo[$jA] = $this->mo_get_configuration_array($D0);
Mw:
}
rn:
header("\103\157\x6e\x74\x65\156\164\x2d\104\x69\x73\x70\x6f\163\151\x74\151\157\x6e\x3a\x20\141\164\x74\141\x63\150\x6d\x65\156\164\73\x20\146\151\154\x65\156\x61\x6d\x65\75\x6d\x69\156\151\157\162\x61\156\x67\145\55\x6c\144\141\160\x2d\143\x6f\156\x66\x69\147\x2e\x6a\163\157\156");
echo json_encode($Mo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
exit;
wA:
}
function mo_get_configuration_array($xy)
{
$X5 = call_user_func($xy . "\x3a\72\147\x65\x74\x43\x6f\156\x73\x74\141\156\x74\x73");
$NU = get_option("\155\x6f\137\154\144\141\x70\x5f\x6c\x6f\143\141\154\x5f\x72\157\154\x65\x5f\155\x61\160\x70\x69\156\x67\137\143\x6f\x75\156\x74");
$zK = array();
$CE = array();
$Gj = array();
$Ck = array();
foreach ($X5 as $jA => $D0) {
if ($D0 == "\x6d\157\137\x6c\144\x61\160\x5f\x6c\157\143\x61\154\137\x73\x65\x72\x76\x65\162\x5f\x75\162\x6c" or $D0 == "\x6d\x6f\x5f\x6c\x64\141\160\x5f\154\x6f\x63\x61\x6c\137\x73\x65\162\166\x65\x72\137\160\141\x73\x73\167\x6f\162\x64" or $D0 == "\x6d\157\x5f\154\144\141\x70\137\154\157\143\141\154\x5f\163\x65\x72\x76\145\x72\137\144\x6e" or $D0 == "\155\157\137\154\144\141\160\x5f\x6c\x6f\143\141\154\137\x73\x65\x61\162\143\x68\137\x62\141\x73\x65" or $D0 == "\155\157\137\154\144\141\160\x5f\x6c\157\x63\x61\154\137\x73\145\x61\x72\x63\x68\137\146\x69\x6c\164\x65\x72" or $D0 == "\155\157\137\x6c\x64\141\x70\137\154\x6f\143\141\x6c\137\x75\163\x65\x72\156\x61\155\145\137\141\164\164\x72\151\x62\x75\164\x65") {
goto Bn;
}
$i8 = 0;
goto qN;
Bn:
$i8 = 1;
qN:
if ($D0 == "\x6d\157\137\154\144\141\x70\137\154\x6f\x63\x61\154\137\155\x61\x70\x70\151\156\147\x5f\x6b\x65\171\137") {
goto ND;
}
if ($D0 == "\x6d\x6f\137\x6c\144\141\160\x5f\x6c\157\143\x61\x6c\137\155\141\x70\160\x69\156\147\137\166\141\154\x75\145\137") {
goto Q4;
}
if ($D0 == "\155\157\137\154\144\x61\160\137\154\x6f\143\141\x6c\137\143\165\x73\x74\x6f\x6d\137\x61\164\164\x72\x69\142\165\x74\145\137") {
goto jL;
}
$lC = get_option($D0);
goto jv;
ND:
$iw = unserialize(get_option("\155\x6f\137\154\144\141\160\137\154\x6f\143\x61\x6c\x5f\162\x6f\154\x65\x5f\155\x61\x70\x70\151\x6e\147\x5f\x6b\145\x79\137\x61\x72\x72\141\x79"));
$RA = 1;
vs:
if (!($RA <= $NU)) {
goto Up;
}
$CE[$RA] = $iw[$D0 . $RA];
SB:
$RA++;
goto vs;
Up:
$lC = $CE;
goto jv;
Q4:
$E5 = unserialize(get_option("\155\x6f\x5f\x6c\144\x61\x70\x5f\154\157\143\x61\x6c\137\162\x6f\154\x65\137\155\141\x70\x70\151\x6e\x67\137\x76\x61\154\x75\x65\x5f\141\x72\x72\x61\171"));
$RA = 1;
LR:
if (!($RA <= $NU)) {
goto aq;
}
$Gj[$RA] = $E5[$D0 . $RA];
u9:
$RA++;
goto LR;
aq:
$lC = $Gj;
goto jv;
jL:
$A7 = unserialize(get_option("\x6d\x6f\x5f\154\x64\x61\160\137\x6c\x6f\143\141\x6c\x5f\x63\x75\x73\164\157\x6d\x5f\141\164\x74\162\151\142\x75\164\145\163"));
$RA = 1;
foreach ($A7 as $oD => $D0) {
$Ck[$RA++] = $D0;
cX:
}
Eh:
$lC = $Ck;
jv:
if (!$lC) {
goto AK;
}
if (!(@unserialize(strval($lC)) !== false)) {
goto el;
}
$lC = unserialize(strval($lC));
el:
if ($i8 == 1) {
goto NF;
}
$zK[$jA] = $lC;
goto z0;
NF:
if ($D0 == "\155\x6f\137\x6c\x64\141\160\x5f\154\x6f\143\x61\154\x5f\x73\x65\162\x76\x65\162\137\x70\141\x73\163\x77\157\x72\144" and get_option("\155\x6f\x5f\154\x64\x61\x70\x5f\145\170\160\157\x72\x74") == "\x30") {
goto hF;
}
if ($D0 == "\155\x6f\137\x6c\x64\141\160\x5f\x6c\157\x63\x61\x6c\137\163\x65\162\x76\145\162\x5f\160\x61\163\163\167\157\x72\x64" and get_option("\x6d\x6f\x5f\154\144\141\x70\x5f\x65\170\x70\x6f\x72\164") == "\x31") {
goto GM;
}
if ($jA == "\165\x73\x65\x72\x5f\141\164\x74\x72") {
goto i5;
}
$zK[$jA] = Mo_Ldap_Local_Util::decrypt($lC);
goto lb;
i5:
$zK[$jA] = $lC;
lb:
goto Ui;
GM:
$zK[$jA] = $lC;
Ui:
goto GL;
hF:
goto ij;
GL:
z0:
AK:
ij:
}
oh:
return $zK;
}
function auto_email_ldap_export()
{
$Le = get_option("\155\x6f\x5f\154\x64\x61\160\137\x6c\x6f\143\141\154\137\x64\151\162\x65\x63\x74\x6f\162\x79\x5f\x73\x65\x72\166\145\162");
$QE = get_option("\x6d\157\x5f\154\x64\x61\160\x5f\154\157\143\141\x6c\x5f\163\145\x72\166\x65\162\x5f\165\162\x6c") ? Mo_Ldap_Local_Util::decrypt(get_option("\155\x6f\137\154\144\x61\x70\137\x6c\157\143\141\154\x5f\x73\x65\x72\x76\145\162\137\x75\x72\x6c")) : '';
$gq = get_option("\x6d\157\x5f\x6c\x64\x61\160\137\x6c\157\x63\141\154\137\163\145\x72\x76\145\162\137\x64\x6e") ? Mo_Ldap_Local_Util::decrypt(get_option("\155\x6f\137\154\x64\x61\x70\137\x6c\x6f\x63\141\154\137\163\x65\162\x76\145\x72\x5f\x64\156")) : '';
$Ia = get_option("\x6d\157\137\x6c\144\x61\x70\x5f\154\x6f\x63\x61\x6c\137\x73\145\141\162\143\x68\x5f\x62\141\163\x65") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\x5f\x6c\144\x61\x70\x5f\154\157\143\141\154\137\x73\145\141\x72\143\x68\137\x62\141\163\x65")) : '';
$Dm = get_option("\155\157\x5f\154\144\141\160\x5f\x6c\157\143\x61\x6c\137\x73\x65\141\162\x63\x68\137\x66\151\154\x74\x65\162") ? Mo_Ldap_Local_Util::decrypt(get_option("\155\157\137\154\x64\x61\160\137\x6c\x6f\x63\x61\x6c\137\163\145\141\162\143\150\137\146\151\x6c\x74\x65\162")) : '';
$nC = array("\104\x69\162\x65\143\164\157\x72\171\x20\123\145\x72\166\145\162" => "\x44\x69\162\x65\143\164\157\x72\x79\x20\x53\x65\x72\x76\145\x72\72\x20\x20" . $Le, "\114\x44\101\120\40\123\x65\162\x76\145\x72" => "\x4c\104\101\120\x20\x53\145\162\166\145\162\72\40\40" . $QE, "\123\145\x72\x76\151\x63\x65\40\x41\143\143\x6f\165\156\x74\40\x44\x4e" => "\x53\x65\x72\x76\x69\x63\145\40\x41\143\x63\x6f\165\x6e\164\40\104\116\72\x20\x20" . $gq, "\123\x65\x61\162\x63\150\40\x42\141\163\145" => "\x53\x65\x61\162\x63\150\40\x42\141\163\145\72\x20\x20" . $Ia, "\x4c\x44\x41\x50\40\123\x65\141\x72\143\x68\40\x46\151\154\164\x65\162" => "\x4c\x44\x41\120\40\x53\x65\141\162\143\x68\x20\106\151\154\x74\145\162\72\x20\40" . $Dm);
return $nC;
}
function test_attribute_configuration()
{
$Re = apply_filters("\155\x6f\137\x63\x68\x65\x63\x6b\x5f\143\157\x6e\146\x69\x67", '');
if (!(is_user_logged_in() && $Re)) {
goto Lj;
}
if (!(current_user_can("\141\144\155\151\x6e\151\x73\x74\162\141\164\157\x72") && isset($_REQUEST["\157\160\x74\x69\157\156"]))) {
goto tt;
}
if ($_REQUEST["\157\x70\x74\x69\x6f\156"] == "\x74\x65\163\164\141\164\x74\x72\x63\x6f\156\x66\x69\x67") {
goto zq;
}
if ($_REQUEST["\157\160\164\x69\157\x6e"] == "\164\145\163\x74\162\x6f\x6c\x65\x6d\x61\x70\x70\151\x6e\147\x63\157\x6e\146\151\x67") {
goto uA;
}
if ($_REQUEST["\x6f\x70\164\151\157\156"] == "\163\x65\141\x72\143\x68\x62\x61\x73\145\x6c\x69\163\x74") {
goto nP;
}
if (!($_REQUEST["\x6f\160\x74\151\157\156"] == "\x66\x65\x63\164\150\x61\164\x74\162\x69\142\x75\x74\145\163\x66\157\x72\154\144\141\x70\x73\145\x72\x76\145\x72")) {
goto kR;
}
$Le = get_option("\x6d\157\x5f\154\x64\141\x70\137\x64\x69\162\145\143\164\157\162\x79\137\x73\145\x72\x76\145\162\x5f\166\141\x6c\x75\x65");
$Kb = new DirectoryFactory();
$Kb = $Kb->selectDirectorySystem($Le);
$Tg = new Mo_Ldap_Local_Config();
$Tg->show_all_ldap_attributes($Kb);
kR:
goto ZK;
nP:
$Tg = new Mo_Ldap_Local_Config();
$Tg->show_search_bases_list();
ZK:
goto In;
uA:
$Li = $_REQUEST["\165\163\145\162"];
$sK = new Mo_Ldap_Local_Role_Mapping();
$sK->test_configuration($Li);
In:
goto E1;
zq:
$Li = $_REQUEST["\165\x73\x65\162"];
$Tg = new Mo_Ldap_Local_Config();
$Tg->test_attribute_configuration($Li);
E1:
tt:
Lj:
}
function save_success_customer_config($ty, $A1, $wi, $Ps)
{
update_option("\x6d\157\x5f\x6c\x64\x61\160\x5f\x6c\x6f\x63\141\x6c\137\141\144\x6d\x69\x6e\x5f\x63\x75\x73\x74\157\155\x65\x72\137\x6b\145\x79", $ty);
update_option("\155\x6f\137\x6c\x64\141\160\137\x6c\157\143\141\x6c\137\x61\144\x6d\151\156\137\141\x70\151\137\153\x65\x79", $A1);
update_option("\155\157\137\x6c\144\x61\160\137\x6c\157\x63\141\x6c\x5f\x63\x75\163\x74\x6f\155\145\162\x5f\164\157\x6b\x65\x6e", $wi);
update_option("\x6d\x6f\x5f\x6c\x64\x61\160\x5f\x6c\157\x63\141\x6c\137\160\141\x73\x73\167\157\162\x64", '');
update_option("\x6d\157\x5f\154\x64\141\x70\x5f\x6c\157\x63\x61\154\x5f\x6d\145\x73\x73\141\147\145", $Ps);
$this->show_success_message();
}
function mo_ldap_local_settings_style()
{
wp_enqueue_style("\155\x6f\x5f\154\x64\141\x70\137\141\144\x6d\x69\x6e\x5f\163\145\x74\x74\x69\156\147\x73\x5f\x73\x74\x79\x6c\x65", plugins_url("\151\x6e\143\x6c\165\x64\145\163\x2f\x63\163\163\57\x73\164\171\154\145\137\163\145\x74\x74\x69\156\147\163\56\x6d\x69\x6e\56\x63\163\x73", __FILE__));
wp_enqueue_style("\x6d\x6f\137\x6c\144\x61\160\137\141\x64\155\151\x6e\x5f\163\145\164\164\151\x6e\x67\163\x5f\160\x68\x6f\x6e\x65\137\x73\x74\x79\154\x65", plugins_url("\151\156\x63\154\x75\144\x65\163\x2f\143\x73\x73\x2f\160\150\157\156\x65\x2e\x63\163\163", __FILE__));
wp_enqueue_style("\x6d\x6f\137\154\144\141\x70\x5f\141\x64\x6d\x69\x6e\x5f\x6c\x64\x61\x70\x5f\160\154\165\x67\151\156\x5f\x73\x74\171\x6c\x65", plugins_url("\151\x6e\x63\x6c\165\144\145\x73\x2f\x63\x73\x73\57\x6d\157\137\x6c\x64\141\160\x5f\x70\x6c\165\147\151\156\163\x5f\x70\141\147\x65\x2e\155\x69\x6e\56\143\x73\x73", __FILE__));
wp_enqueue_style("\x6d\157\x5f\x6c\144\141\x70\137\141\x64\155\x69\156\137\x66\157\156\164\137\x61\167\x73\157\155\x65", plugins_url("\x69\156\x63\x6c\165\x64\x65\x73\x2f\143\163\163\57\x66\157\x6e\x74\x2d\x61\167\145\163\x6f\155\145\56\155\x69\x6e\56\x63\x73\x73", __FILE__));
}
function mo_ldap_local_settings_script()
{
wp_enqueue_script("\x6d\157\x5f\x6c\x64\141\160\x5f\141\144\x6d\151\156\137\x73\x65\164\164\151\x6e\147\163\x5f\160\150\x6f\x6e\x65\x5f\x73\x63\162\x69\x70\164", plugins_url("\x69\156\x63\x6c\x75\144\x65\x73\x2f\152\163\x2f\x70\x68\157\x6e\x65\x2e\152\x73", __FILE__));
wp_enqueue_script("\x6d\x6f\x5f\154\144\x61\x70\x5f\x61\144\155\151\x6e\x5f\x73\145\164\x74\151\156\147\163\x5f\163\143\x72\x69\160\x74", plugins_url("\151\156\143\x6c\x75\x64\x65\x73\x2f\x6a\x73\x2f\163\x65\x74\164\x69\156\147\163\137\x70\x61\147\145\x2e\152\163", __FILE__), array("\152\161\165\x65\162\x79"));
}
function error_message()
{
$wJ = "\x65\162\x72\x6f\162";
$Ps = get_option("\x6d\x6f\x5f\x6c\x64\141\160\137\154\157\143\x61\154\137\x6d\145\163\163\x61\147\x65");
echo "\x3c\144\151\166\40\151\x64\75\x27\x65\162\162\x6f\162\x27\40\143\x6c\141\x73\163\75\47" . $wJ . "\x27\76\40\x3c\160\x3e" . $Ps . "\74\x2f\x70\76\x3c\57\144\x69\166\x3e";
}
function success_message()
{
$wJ = "\165\160\x64\141\x74\x65\144";
$Ps = get_option("\155\x6f\x5f\x6c\x64\x61\x70\137\x6c\x6f\x63\141\x6c\137\x6d\145\x73\x73\141\x67\x65");
echo "\74\x64\151\166\40\x69\144\75\47\x73\165\x63\143\x65\x73\163\47\40\x63\x6c\141\163\163\75\x27" . $wJ . "\47\x3e\40\74\x70\x3e" . $Ps . "\74\x2f\160\x3e\x3c\x2f\144\151\166\76";
}
function show_success_message()
{
remove_action("\x61\x64\x6d\x69\x6e\137\156\157\x74\151\x63\x65\163", array($this, "\x65\162\162\x6f\162\x5f\x6d\145\x73\x73\141\x67\145"));
add_action("\141\x64\x6d\x69\x6e\x5f\156\157\x74\x69\x63\x65\x73", array($this, "\163\165\143\143\x65\163\x73\x5f\155\x65\x73\x73\x61\147\145"));
}
function show_error_message()
{
remove_action("\x61\144\155\x69\x6e\x5f\156\157\x74\x69\143\x65\x73", array($this, "\163\165\143\x63\x65\163\163\137\x6d\145\163\x73\x61\x67\145"));
add_action("\x61\144\x6d\x69\156\137\156\157\x74\151\143\145\x73", array($this, "\x65\x72\x72\157\x72\137\155\x65\163\x73\x61\147\x65"));
}
function prefix_update_table()
{
global $vQ;
global $wpdb;
$xT = $wpdb->get_charset_collate();
$m6 = "\103\122\x45\x41\124\x45\x20\x54\101\x42\114\x45\40\151\146\40\156\157\x74\40\145\170\151\x73\x74\163\x60{$wpdb->base_prefix}\165\x73\x65\162\x5f\x72\x65\x70\157\162\x74\x60\x20\50\xd\xa\x9\x9\x9\40\x20\151\x64\x20\x69\x6e\x74\40\116\117\124\x20\x4e\125\114\114\x20\101\125\x54\x4f\x5f\111\x4e\x43\122\105\x4d\x45\116\124\x2c\15\xa\x9\x9\x9\x20\40\165\x73\x65\162\137\156\141\x6d\145\40\166\x61\x72\143\150\x61\162\x28\x35\60\x29\40\x4e\x4f\124\x20\x4e\x55\x4c\114\x2c\15\12\x9\11\11\x20\x20\x74\x69\x6d\145\40\x64\141\x74\145\164\x69\x6d\145\x20\104\105\x46\x41\x55\114\x54\x20\x27\60\x30\60\x30\x2d\x30\x30\x2d\x30\x30\x20\60\60\72\x30\x30\72\x30\x30\47\x20\x4e\117\124\40\116\x55\x4c\114\x2c\xd\xa\x9\11\11\40\x20\x4c\144\x61\160\137\163\164\141\164\165\x73\x20\166\x61\162\143\x68\141\x72\50\x32\x35\60\x29\40\116\117\124\x20\116\x55\114\x4c\x2c\xd\12\11\11\11\40\x20\x4c\144\x61\x70\x5f\145\162\x72\x6f\162\40\166\x61\x72\x63\150\141\x72\50\62\x35\x30\x29\40\54\xd\12\x9\11\x9\x20\40\x50\122\x49\x4d\101\x52\131\40\x4b\105\131\40\x20\50\x69\144\51\xd\xa\x9\x9\x9\x29\40{$xT}\73";
if (!function_exists("\x64\142\x44\145\x6c\164\x61")) {
require_once ABSPATH . "\x77\160\x2d\x61\x64\155\151\156\x2f\151\156\143\154\165\144\x65\163\x2f\165\x70\147\162\141\144\145\x2e\x70\150\x70";
}
dbDelta($m6);
update_option("\165\x73\x65\x72\x5f\154\x6f\x67\163\x5f\x74\x61\142\154\145\137\145\x78\151\163\164\163", 1);
}
function mo_ldap_report_update($Li, $QQ, $dJ)
{
$qe = get_option("\155\157\x5f\x6c\x64\141\160\x5f\x6c\157\x63\141\x6c\x5f\x75\x73\x65\162\137\162\145\x70\157\x72\x74\x5f\154\157\147");
if (!($qe == 1)) {
goto o0;
}
global $wpdb;
$rF = $wpdb->prefix . "\165\x73\x65\x72\137\x72\145\160\157\162\x74";
$zA = $wpdb->get_row("\123\x45\114\x45\x43\x54\x20\x69\144\40\x46\122\x4f\115\40{$rF}\x20\x57\x48\105\122\x45\40\x75\x73\145\x72\137\x6e\x61\155\x65\40\75\47" . $Li . "\47");
$wpdb->insert($rF, array("\165\163\145\162\137\156\141\155\x65" => $Li, "\x74\151\155\145" => current_time("\x6d\x79\163\x71\154"), "\114\x64\141\x70\x5f\x73\164\x61\164\165\163" => $QQ, "\x4c\x64\x61\160\137\x65\x72\x72\x6f\162" => $dJ));
o0:
}
function mo_ldap_activate()
{
update_option("\x6d\157\137\154\144\141\160\x5f\x6c\x6f\x63\141\154\x5f\150\x6f\163\164\137\x6e\x61\155\x65", "\x68\164\164\x70\x73\x3a\57\x2f\x6c\x6f\x67\x69\156\56\170\145\143\165\162\151\146\x79\x2e\143\x6f\x6d");
update_option("\155\157\137\154\x64\x61\x70\x5f\x6c\157\x63\141\154\x5f\x72\145\147\x69\163\164\x65\x72\137\165\x73\x65\162", 1);
Jp_hwfrqar_mzwhwzl_arvowfra::efzwoezr_mzwhwzl();
}
function mo_ldap_local_deactivate()
{
do_action("\146\154\x75\163\150\x63\141\143\150\x65");
Jp_hwfrqar_mzwhwzl_arvowfra::jrefzwoezr_mzwhwzl();
delete_option("\x6d\157\137\x6c\144\x61\x70\x5f\x6c\x6f\143\141\154\x5f\141\x64\x6d\x69\x6e\x5f\145\x6d\x61\x69\x6c");
delete_option("\155\x6f\137\154\x64\141\x70\x5f\154\x6f\143\x61\154\137\150\x6f\x73\164\x5f\x6e\x61\x6d\145");
delete_option("\x6d\157\x5f\154\144\x61\160\137\154\x6f\143\141\x6c\x5f\144\x65\146\141\165\x6c\x74\x5f\x63\x6f\156\x66\x69\x67");
delete_option("\155\157\137\154\x64\x61\x70\137\x6c\x6f\x63\x61\x6c\137\x70\x61\163\163\x77\x6f\162\144");
delete_option("\155\x6f\137\x6c\x64\141\160\137\x6c\x6f\143\141\x6c\137\141\144\x6d\151\156\x5f\160\x68\157\156\x65");
delete_option("\155\x6f\x5f\154\x64\141\160\137\154\x6f\x63\141\x6c\x5f\141\144\x6d\151\x6e\x5f\x63\165\163\x74\x6f\x6d\x65\x72\x5f\153\x65\171");
delete_option("\x6d\157\137\154\144\141\x70\x5f\154\x6f\x63\x61\x6c\137\x61\x64\155\x69\x6e\x5f\x61\160\151\x5f\153\x65\x79");
delete_option("\155\157\x5f\x6c\144\x61\x70\x5f\154\x6f\x63\x61\x6c\x5f\x63\165\x73\x74\157\x6d\x65\162\137\x74\x6f\153\145\x6e");
delete_option("\155\x6f\137\154\144\141\x70\x5f\154\157\143\141\154\x5f\x6d\145\x73\x73\x61\147\x65");
delete_option("\x6d\x6f\137\x6c\144\141\160\137\x6c\157\x63\x61\154\x5f\x65\156\x61\142\x6c\x65\x5f\154\x6f\147\x69\156");
delete_option("\155\157\137\x6c\x64\x61\160\x5f\x6c\x6f\x63\141\x6c\137\x6c\151\x63\145\156\163\x65\137\x6b\145\x79");
delete_option("\x6d\x6f\137\154\144\141\x70\137\154\157\x63\141\154\x5f\x6c\x69\143\145\156\x73\x65\x5f\166\145\162\x69\146\x69\145\x64");
}
function update_status()
{
$Tv = get_option("\x6d\x6f\x5f\x6c\144\x61\160\137\154\x6f\x63\141\x6c\x5f\154\x69\x63\145\x6e\x73\145\137\x6b\x65\171");
if (empty($Tv)) {
goto FA;
}
$Z6 = new Mo_Ldap_Local_Customer();
$Z6->mo_ldap_local_update_status();
FA:
}
}
new Mo_Ldap_Local_Login();
Function Calls
None |
Stats
MD5 | 726f647e7be0119763a251f7bad654c3 |
Eval Count | 0 |
Decode Time | 149 ms |