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..
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: 22.2
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 dirname(__FILE__) . "/includes/lib/export.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")));
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"));
if (!(get_option("mo_ldap_local_enable_update_ldap") == 1)) {
goto BY;
}
add_action("profile_update", array($this, "update_profile"), 10, 2);
BY:
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"));
register_uninstall_hook(__FILE__, "mo_ldap_local_uninstall");
add_action("login_footer", "mo_ldap_local_link");
add_action("show_user_profile", array($this, "show_user_profile"));
if (!(get_option("mo_ldap_local_authorized_users_only") == 1)) {
goto FX;
}
add_action("wp", array($this, "mo_ldap_local_login_redirect"));
FX:
if (!(get_option("mo_ldap_local_enable_login") == 1)) {
goto Os;
}
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);
Os:
register_activation_hook(__FILE__, array($this, "mo_ldap_activate"));
}
function mo_ldap_local_custom_redirect($gJ, $zd, $user)
{
$iT = get_option("mo_ldap_local_skip_redirectto_parameter");
if (array_key_exists("reauth", $_REQUEST) && $_REQUEST["reauth"] == 1) {
goto bk;
}
if (!($iT && $iT == "true")) {
goto H2;
}
update_option("mo_ldap_local_skip_redirectto_parameter", "false");
return $gJ;
H2:
goto hi;
bk:
update_option("mo_ldap_local_skip_redirectto_parameter", "true");
return $gJ;
hi:
$uw = get_option("mo_ldap_local_redirect_to");
if (!(isset($user->roles) && is_array($user->roles) && $uw != "none")) {
goto nW;
}
if (in_array("administrator", $user->roles)) {
goto VW;
}
if (!$uw) {
goto XH;
}
if ($uw == "homepage") {
goto HO;
}
if ($uw == "profile") {
goto eF;
}
if (!($uw == "custom")) {
goto SX;
}
$TX = get_option("mo_ldap_local_custom_redirect");
$gJ = $TX;
SX:
goto Bg;
eF:
$kQ = home_url() . "/wp-admin/profile.php";
$gJ = $kQ;
Bg:
goto UZ;
HO:
$gJ = home_url();
UZ:
XH:
goto zE;
VW:
return $gJ;
zE:
nW:
return $gJ;
}
function mo_ldap_local_login_redirect()
{
if (is_user_logged_in()) {
goto kK;
}
auth_redirect();
kK:
}
function show_user_profile($user)
{
$Mh = array();
$G2 = wp_load_alloptions();
?>
<h3>Extra profile information</h3>
<table class="form-table">
<tr>
<td><b><label for="user_dn">User DN</label></b></td>
<td>
<b><?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: 22.2
Author URI: http://miniorange.com
*/
echo esc_attr(get_the_author_meta("mo_ldap_user_dn", $user->ID));
?>
</b></td>
</td>
</tr>
<?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: 22.2
Author URI: http://miniorange.com
*/
if (!get_the_author_meta("mo_ldap_user_phone", $user->ID)) {
goto Gl;
}
?>
<tr>
<td><b><label for="user_phone">User Phone Number</label></b></td>
<td>
<b><?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: 22.2
Author URI: http://miniorange.com
*/
echo esc_attr(get_the_author_meta("mo_ldap_user_phone", $user->ID));
?>
</b>
</td>
</tr>
<?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: 22.2
Author URI: http://miniorange.com
*/
Gl:
foreach ($G2 as $Zh => $Kq) {
if (strpos($Zh, "mo_ldap_local_custom_attribute_") === false) {
goto Ra;
}
$Zy = get_user_meta($user->ID, $Zh, true);
if (empty($Zy)) {
goto Cr;
}
?>
<tr>
<td><b><font color="#FF0000"></font><?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: 22.2
Author URI: http://miniorange.com
*/
echo $Kq;
?>
</b></td>
<?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: 22.2
Author URI: http://miniorange.com
*/
if (is_array($Zy)) {
goto Vs;
}
echo "<td>";
echo "<b>" . $Zy . "</b><br>";
echo "</td>";
goto B2;
Vs:
echo "<td>";
foreach ($Zy as $EJ) {
echo "<b>" . $EJ . "</b><br>";
Yd:
}
mR:
echo "</td>";
B2:
?>
</tr><?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: 22.2
Author URI: http://miniorange.com
*/
Cr:
goto ro;
Ra:
ro:
gM:
}
SD:
?>
</table>
<?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: 22.2
Author URI: http://miniorange.com
*/
}
function update_profile($hV, $Na = null)
{
$G2 = wp_load_alloptions();
$Mh = array();
$rq = array();
foreach ($G2 as $Zh => $Kq) {
if (strpos($Zh, "mo_ldap_local_custom_attribute_") === false) {
goto rr;
}
array_push($Mh, $Kq);
goto wO;
rr:
wO:
LY:
}
OZ:
$GG = 0;
rp:
if (!($GG < sizeof($Mh))) {
goto hs;
}
if (!isset($_POST[$Mh[$GG]])) {
goto Oj;
}
$rq[$Mh[$GG]] = $_POST[$Mh[$GG]];
Oj:
Wv:
$GG++;
goto rp;
hs:
$user = get_userdata($hV);
$km = new Mo_Ldap_Local_Config();
$km->modify_user_info_in_ldap($user, $rq);
}
function ldap_login($user, $G6, $ah)
{
if (!(empty($G6) || empty($ah))) {
goto Dv;
}
$ml = new WP_Error();
if (!empty($G6)) {
goto Lw;
}
$ml->add("empty_username", __("<strong>ERROR</strong>: Email field is empty."));
Lw:
if (!empty($ah)) {
goto zI;
}
$ml->add("empty_password", __("<strong>ERROR</strong>: Password field is empty."));
zI:
return $ml;
Dv:
$km = new Mo_Ldap_Local_Config();
$TF = $km->ldap_login($G6, $ah);
if ($TF->statusMessage == "SUCCESS") {
goto Xf;
}
if ($TF->statusMessage == "LDAP_NOT_RESPONDING") {
goto tY;
}
if ($TF->statusMessage == "LDAP_ERROR") {
goto U7;
}
if ($TF->statusMessage == "CURL_ERROR") {
goto Qn;
}
if ($TF->statusMessage == "OPENSSL_ERROR") {
goto Ay;
}
$this->mo_ldap_report_update($G6, $TF->statusMessage, "<strong>Login Error:</strong> Invalid username or incorrect password");
$Z4 = get_option("mo_ldap_local_enable_both_login");
if (!empty($Z4)) {
goto oA;
}
$ml = new WP_Error();
$ml->add("connection_error", __("<strong>ERROR</strong>: Invalid username or incorrect password"));
return $ml;
goto Pe;
oA:
$user = false;
if (username_exists($G6)) {
goto f3;
}
if (!email_exists($G6)) {
goto qU;
}
$user = get_user_by("email", $G6);
qU:
goto Bq;
f3:
$user = get_user_by("login", $G6);
Bq:
if ($user) {
goto MK;
}
$this->mo_ldap_report_update($G6, "ERROR", "<strong>Login Error:</strong> User Does Not Exist");
$ml = new WP_Error();
$ml->add("incorrect_credentials", __("<strong>ERROR</strong>: Invalid Username"));
return $ml;
goto R4;
MK:
$Iy = false;
if ($Z4 == "all") {
goto Tg;
}
if (!($Z4 == "admin" && user_can($user->ID, "manage_options"))) {
goto e0;
}
$Iy = true;
e0:
goto AV;
Tg:
$Iy = true;
AV:
if ($Iy && wp_check_password($ah, $user->data->user_pass, $user->ID)) {
goto O9;
}
$ml = new WP_Error();
$ml->add("incorrect_credentials", __("<strong>ERROR</strong>: Invalid Username/Password combination"));
return $ml;
goto UJ;
O9:
return $user;
UJ:
R4:
Pe:
goto Da;
Ay:
$this->mo_ldap_report_update($G6, $TF->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.");
$ml = new WP_Error();
$ml->add("OPENSSL_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 $ml;
Da:
goto Zi;
Qn:
$this->mo_ldap_report_update($G6, $TF->statusMessage, "<strong>Login Error:</strong> <a href="http://php.net/manual/en/curl.installation.php">PHP cURL extension</a> is not installed or disabled.");
$ml = new WP_Error();
$ml->add("curl_error", __("<strong>ERROR</strong>: <a href="http://php.net/manual/en/curl.installation.php">PHP cURL extension</a> is not installed or disabled."));
return $ml;
Zi:
goto FP;
U7:
$this->mo_ldap_report_update($G6, $TF->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.");
$ml = new WP_Error();
$ml->add("curl_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 $ml;
FP:
goto Ea;
tY:
$this->mo_ldap_report_update($G6, $TF->statusMessage, "<strong>Login Error: </strong> LDAP server is not responding ");
$Z4 = get_option("mo_ldap_local_enable_both_login");
if (!empty($Z4)) {
goto Cz;
}
$ml = new WP_Error();
$ml->add("connection_error", __("<strong>ERROR</strong>: Connection error occurred during authetication. Please contact your administrator"));
return $ml;
goto Hq;
Cz:
$user = false;
if (username_exists($G6)) {
goto ZW;
}
if (!email_exists($G6)) {
goto o5;
}
$user = get_user_by("email", $G6);
o5:
goto JD;
ZW:
$user = get_user_by("login", $G6);
JD:
if ($user) {
goto OG;
}
$this->mo_ldap_report_update($G6, "ERROR", "<strong>Login Error:</strong> User Does Not Exist");
$ml = new WP_Error();
$ml->add("incorrect_credentials", __("<strong>ERROR</strong>: Invalid Username"));
return $ml;
goto oX;
OG:
$Iy = false;
if ($Z4 == "all") {
goto FC;
}
if (!($Z4 == "admin" && user_can($user->ID, "manage_options"))) {
goto tk;
}
$Iy = true;
tk:
goto ox;
FC:
$Iy = true;
ox:
if ($Iy && wp_check_password($ah, $user->data->user_pass, $user->ID)) {
goto Rj;
}
$this->mo_ldap_report_update($G6, "ERROR", "<strong>Login Error:</strong> Invalid Username/Password combination");
$ml = new WP_Error();
$ml->add("incorrect_credentials", __("<strong>ERROR</strong>: Invalid Username/Password combination"));
return $ml;
goto aD;
Rj:
return $user;
aD:
oX:
Hq:
Ea:
goto Z9;
Xf:
$hF = $TF->profileAttributesList;
if (username_exists($G6) || email_exists($G6)) {
goto hM;
}
if (!get_option("mo_ldap_local_register_user")) {
goto AP;
}
error_log("New User " . $G6);
$Q3 = $km->get_user_ldap_info($G6);
$Yz = get_option("mo_ldap_local_enable_fallback_login");
$KI = wp_generate_password(10, false);
if (get_option("mo_ldap_local_enable_attr_mapping") == 1) {
goto tQ;
}
$n3 = '';
$NR = '';
$rd = '';
$Gc = '';
$LB = '';
goto Fe;
tQ:
$hF = $TF->profileAttributesList;
error_log("profile attributes" . print_r($hF, true));
$n3 = $hF["mail"];
$NR = $hF["fname"];
$rd = $hF["lname"];
$Gc = $hF["nickname"];
$LB = $hF["phone"];
Fe:
$pM = array("user_login" => $G6, "user_email" => $n3, "first_name" => $NR, "last_name" => $rd, "nickname" => $Gc, "user_pass" => $KI);
if (empty($Gc)) {
goto I3;
}
$pM["nickname"] = $Gc;
I3:
$WP = get_option("mo_ldap_local_display_name_attribute");
if (empty($WP)) {
goto jz;
}
if (get_option("mo_ldap_local_display_name_attribute") == "nickname" && !empty($Gc)) {
goto Fi;
}
if (get_option("mo_ldap_local_display_name_attribute") == "email") {
goto tF;
}
if (get_option("mo_ldap_local_display_name_attribute") == "firstname") {
goto gT;
}
if (get_option("mo_ldap_local_display_name_attribute") == "firstlast") {
goto aC;
}
if (!(get_option("mo_ldap_local_display_name_attribute") == "lastfirst")) {
goto xF;
}
$pM["display_name"] = $rd . " " . $NR;
xF:
goto UT;
aC:
$pM["display_name"] = $NR . " " . $rd;
UT:
goto Rx;
gT:
$pM["display_name"] = $NR;
Rx:
goto mF;
tF:
$pM["display_name"] = $n3;
mF:
goto Iy;
Fi:
$pM["display_name"] = $Gc;
Iy:
jz:
error_log("New User Data " . print_r($pM, true));
$hV = wp_insert_user($pM);
if (!is_wp_error($hV)) {
goto T8;
}
$this->mo_ldap_report_update($G6, $TF->statusMessage, "<strong>Login Error:</strong> There was an error registering your account. Please try again.");
$ml = new WP_Error();
$ml->add("registration_error", __("<strong>ERROR</strong>: There was an error registering your account. Please try again."));
return $ml;
goto lL;
T8:
$user = get_user_by("login", $G6);
update_user_meta($user->ID, "mo_ldap_user_dn", $TF->userDn, false);
update_user_meta($user->ID, "mo_ldap_user_phone", $LB);
if (get_option("mo_ldap_local_enable_attr_mapping") == 1) {
goto WE;
}
$Mh = array();
goto ML;
WE:
$Mh = $TF->attributeList;
error_log("Custom Attributes " . print_r($Mh, true));
ML:
update_user_meta($user->ID, "mo_ldap_custom_buddypress_attributes", $Mh);
update_user_meta($user->ID, "mo_ldap_buddypress_attributes", $hF);
foreach ($Mh as $ai => $Kq) {
update_user_meta($user->ID, $ai, $Kq);
iK:
}
F0:
do_action("mo_ldap_buddypress", $Mh, $user);
do_action("mo_ldap_profile_picture_mapping", $user);
$mX = get_option("mo_ldap_local_enable_role_mapping");
error_log("enable_role_mapping " . $mX);
if (!($mX == 1)) {
goto f0;
}
$Xv = new Mo_Ldap_Local_Role_Mapping();
$SO = $Xv->get_member_of_attribute($G6, $ah);
error_log("Current user is Present in the following" . print_r($SO, true));
$Xv->mo_ldap_local_update_role_mapping($user->ID, $SO);
f0:
return $user;
lL:
goto Wm;
AP:
$this->mo_ldap_report_update($G6, "ERROR", "<strong>Login Error:</strong> Your Administrator has not enabled Auto Registration. Please contact your Administrator.");
$ml = new WP_Error();
$ml->add("registration_disabled_error", __("<strong>ERROR</strong>: Your Administrator has not enabled Auto Registration. Please contact your Administrator."));
return $ml;
Wm:
goto IJ;
hM:
$user = false;
if (username_exists($G6)) {
goto FJ;
}
if (email_exists($G6)) {
goto bA;
}
if (!(isset($hF["mail"]) && email_exists($hF["mail"]))) {
goto G_;
}
$user = get_user_by("email", $hF["mail"]);
G_:
goto dc;
bA:
$user = get_user_by("email", $G6);
dc:
goto bD;
FJ:
$user = get_user_by("login", $G6);
bD:
do_action("mo_ldap_profile_picture_mapping", $user);
if ($user) {
goto FE;
}
$this->mo_ldap_report_update($G6, "ERROR", "<strong>Login Error:</strong> Invalid Username/Password combination");
goto XG;
FE:
error_log("User " . $G6 . " Exists");
update_user_meta($user->ID, "mo_ldap_buddypress_attributes", $hF);
$mX = get_option("mo_ldap_local_enable_role_mapping");
error_log("enable_role_mapping " . $mX);
if (!($mX == 1)) {
goto YX;
}
error_log("Role Mapping is enabled");
$Xv = new Mo_Ldap_Local_Role_Mapping();
$SO = $Xv->get_member_of_attribute($G6, $ah);
error_log("Current user is Present in the following Groups: " . print_r($SO, true));
$Xv->mo_ldap_local_update_role_mapping($user->ID, $SO);
YX:
update_user_meta($user->ID, "mo_ldap_user_dn", $TF->userDn, false);
update_user_meta($user->ID, "mo_ldap_user_phone", $hF["phone"]);
if (!(get_option("mo_ldap_local_enable_attr_mapping") == 1)) {
goto tD;
}
error_log("Attribute Mapping is enabled");
error_log("profile_attributes " . print_r($hF, true));
$n3 = $hF["mail"];
$NR = $hF["fname"];
$rd = $hF["lname"];
$Gc = $hF["nickname"];
$IE = array("ID" => $user->ID, "user_email" => $n3, "first_name" => $NR, "last_name" => $rd);
$WP = get_option("mo_ldap_local_display_name_attribute");
if (empty($WP)) {
goto Zb;
}
if (get_option("mo_ldap_local_display_name_attribute") == "nickname" && !empty($Gc)) {
goto e7;
}
if (get_option("mo_ldap_local_display_name_attribute") == "email") {
goto JM;
}
if (get_option("mo_ldap_local_display_name_attribute") == "firstname") {
goto Bj;
}
if (get_option("mo_ldap_local_display_name_attribute") == "firstlast") {
goto Ai;
}
if (!(get_option("mo_ldap_local_display_name_attribute") == "lastfirst")) {
goto lB;
}
$IE["display_name"] = $rd . " " . $NR;
lB:
goto Y0;
Ai:
$IE["display_name"] = $NR . " " . $rd;
Y0:
goto Zf;
Bj:
$IE["display_name"] = $NR;
Zf:
goto Nr;
JM:
$IE["display_name"] = $n3;
Nr:
goto cN;
e7:
$IE["display_name"] = $Gc;
cN:
Zb:
error_log("User Data to update " . print_r($IE, true));
wp_update_user($IE);
update_user_meta($user->ID, "nickname", $Gc);
$Mh = $TF->attributeList;
foreach ($Mh as $ai => $Kq) {
update_user_meta($user->ID, $ai, $Kq);
Cg:
}
CE:
tD:
update_user_meta($user->ID, "mo_ldap_custom_buddypress_attributes", $Mh);
do_action("mo_ldap_buddypress", $Mh, $user);
return $user;
XG:
IJ:
wp_redirect(site_url());
die;
Z9:
}
function mo_ldap_add_user($hV)
{
$xU = get_userdata($hV);
$km = new Mo_Ldap_Local_Config();
$km->add_user($xU);
}
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()
{
$Gv = 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", $Gv);
mo_ldap_local_settings();
}
function login_widget_save_options()
{
if (!isset($_POST["option"])) {
goto XM;
}
if ($_POST["option"] == "mo_ldap_local_register_customer") {
goto Qz;
}
if ($_POST["option"] == "mo_ldap_local_verify_customer") {
goto r5;
}
if ($_POST["option"] == "mo_ldap_local_enable") {
goto T6;
}
if ($_POST["option"] == "anonymous_bind") {
goto Jp;
}
if ($_POST["option"] == "user_report_logs") {
goto eE;
}
if ($_POST["option"] == "keep_user_report_logs_on_unistall") {
goto eh;
}
if ($_POST["option"] == "mo_ldap_local_tls_enable") {
goto Z0;
}
if ($_POST["option"] == "mo_ldap_local_register_user") {
goto eJ;
}
if ($_POST["option"] == "mo_ldap_local_save_config") {
goto LH;
}
if ($_POST["option"] == "mo_ldap_local_save_user_mapping") {
goto fd;
}
if ($_POST["option"] == "mo_ldap_local_test_auth") {
goto hT;
}
if ($_POST["option"] == "mo_ldap_local_login_send_query") {
goto Ry;
}
if ($_POST["option"] == "mo_ldap_local_resend_otp") {
goto k3;
}
if ($_POST["option"] == "mo_ldap_local_validate_otp") {
goto i4;
}
if ($_POST["option"] == "mo_ldap_local_ping_server") {
goto w3;
}
if ($_POST["option"] == "mo_ldap_local_enable_role_mapping") {
goto Lm;
}
if ($_POST["option"] == "mo_ldap_local_keep_existing_user_roles") {
goto jf;
}
if ($_POST["option"] == "mo_ldap_local_save_mapping") {
goto Mu;
}
if ($_POST["option"] == "mo_ldap_save_attribute_config") {
goto sd;
}
if ($_POST["option"] == "mo_ldap_user_management_config") {
goto bN;
}
if ($_POST["option"] == "mo_ldap_delete_custom_attribute") {
goto P0;
}
if ($_POST["option"] == "mo_ldap_local_fallback_login") {
goto NB;
}
if ($_POST["option"] == "mo_ldap_local_cancel") {
goto XR;
}
if ($_POST["option"] == "mo_ldap_local_phone_verification") {
goto vs;
}
if ($_POST["option"] == "mo_ldap_local_authorized_users_only") {
goto JN;
}
if ($_POST["option"] == "mo_ldap_pass") {
goto gh;
}
if ($_POST["option"] == "mo_ldap_export") {
goto P7;
}
if ($_POST["option"] == "mo_ldap_import") {
goto hx;
}
if ($_POST["option"] == "mo_ldap_login_send_query") {
goto O0;
}
if ($_POST["option"] == "mo_ldap_login_send_feature_request_query") {
goto pu;
}
if ($_POST["option"] == "mo_ldap_local_enable_both_login") {
goto J1;
}
if ($_POST["option"] == "mo_ldap_local_save_login_redirect") {
goto XW;
}
if (!($_POST["option"] == "mo_ldap_local_custom_redirect")) {
goto Bc;
}
$TX = $_POST["mo_ldap_local_custom_url"];
update_option("mo_ldap_local_custom_redirect", $TX);
update_option("mo_ldap_local_message", "Users will get redirected to custom redirect URL after login");
$this->show_success_message();
Bc:
goto FO;
XW:
update_option("mo_ldap_local_redirect_to", $_POST["redirect_to"]);
if ($_POST["redirect_to"] == "profile") {
goto PT;
}
if (!($_POST["redirect_to"] == "homepage")) {
goto zd;
}
update_option("mo_ldap_local_message", "Users will get redirected to homepage after login");
zd:
goto Zw;
PT:
update_option("mo_ldap_local_message", "Users will get redirected to profile page after login");
Zw:
if ($_POST["redirect_to"] != "custom" && $_POST["redirect_to"] !== "none") {
goto VK;
}
if (!($_POST["redirect_to"] == "none")) {
goto cr;
}
update_option("mo_ldap_local_message", "Redirection after login is disabled");
$this->show_error_message();
cr:
goto QG;
VK:
$this->show_success_message();
QG:
FO:
goto NH;
J1:
update_option("mo_ldap_local_enable_both_login", isset($_POST["mo_ldap_local_enable_both_login"]) ? $_POST["mo_ldap_local_enable_both_login"] : '');
$Y5 = get_option("mo_ldap_local_enable_both_login");
if ($Y5 == "admin") {
goto lg;
}
if ($Y5 == "all") {
goto Qf;
}
update_option("mo_ldap_local_message", "Login using Local Wordpress Credentials is <b>disabled</b>");
$this->show_error_message();
goto um;
Qf:
update_option("mo_ldap_local_message", "Login using Local Wordpress Credentials for <b>All Users</b> is enabled");
$this->show_success_message();
um:
goto Pc;
lg:
update_option("mo_ldap_local_message", "Login using Local Wordpress Credentials for <b>Administrators</b> is enabled");
$this->show_success_message();
Pc:
NH:
goto QC;
pu:
$n3 = sanitize_text_field($_POST["query_email"]);
$LB = sanitize_text_field($_POST["query_phone"]);
$hG = sanitize_text_field($_POST["query"]);
$ad = sanitize_text_field($_POST["query_plugin"]) ? sanitize_text_field($_POST["query_plugin"]) : '';
update_option("query_selected_plan", $ad);
$Bl = new Mo_Ldap_Local_Customer();
$yN = $Bl->submit_contact_us($n3, $LB, $hG);
delete_option("query_selected_plan");
if (!empty($yN)) {
goto TM;
}
update_option("mo_ldap_local_message", "There was an error sending support query. Please us an email on <a href=mailto:[email protected]><b>[email protected]</b></a>.");
$this->show_error_message();
goto RU;
TM:
if ($yN === "1") {
goto zm;
}
update_option("mo_ldap_local_message", "Your query successfully sent.<br>In case we dont get back to you, there might be email delivery failures. You can send us email on <a href=mailto:[email protected]><b>[email protected]</b></a> in that case.");
$this->show_success_message();
goto Gj;
zm:
update_option("mo_ldap_local_message", "Please let us know the requirement, we will help you through out it.");
$this->show_error_message();
Gj:
RU:
QC:
goto yr;
O0:
$n3 = sanitize_text_field($_POST["inner_form_email_id"]);
$LB = sanitize_text_field($_POST["inner_form_phone_id"]);
$hG = sanitize_text_field($_POST["inner_form_query_id"]);
$Bl = new Mo_Ldap_Local_Customer();
$CX = $_POST["export_configuration_choice"];
if ($CX == "yes") {
goto A9;
}
if ($CX == "no") {
goto zj;
}
goto e5;
A9:
$Bm = $this->auto_email_ldap_export();
$Bm = implode(" <br>", $Bm);
$hG = $hG . " ,<br><br>Plugin Configuration:<br> " . $Bm;
goto e5;
zj:
$Bm = "Configuration was not uploaded by user";
$hG = $hG . " ,<br><br>Plugin Configuration:<br> " . $Bm;
e5:
$yN = $Bl->submit_contact_us($n3, $LB, $hG);
if ($yN) {
goto qs;
}
update_option("mo_ldap_local_message", "There was an error sending support query. Please send us an email on <a href=mailto:[email protected]><b>[email protected]</b></a>.");
$this->show_error_message();
goto QM;
qs:
update_option("mo_ldap_local_message", "Support query successfully sent.<br>In case we dont get back to you, there might be email delivery failures. You can send us email on <a href=mailto:[email protected]><b>[email protected]</b></a> in that case.");
$this->show_success_message();
QM:
yr:
goto fy;
hx:
$Qp = $_FILES["mo_ldap_import_file"]["name"];
$fG = $_FILES["mo_ldap_import_file"]["size"];
$kC = $_FILES["mo_ldap_import_file"]["tmp_name"];
$u3 = $_FILES["mo_ldap_import_file"]["type"];
$Aj = strtolower(pathinfo($Qp, PATHINFO_EXTENSION));
if ($Aj == "json") {
goto bj;
}
update_option("mo_ldap_local_message", "Incorrect file uploaded! Please upload the file that was exported from this plugin");
$this->show_error_message();
goto B8;
bj:
$Du = file_get_contents($kC);
$ZA = json_decode($Du, true);
if (array_key_exists("ldap_Login", $ZA) && array_key_exists("ldap_config", $ZA) && array_key_exists("Role_Mapping", $ZA) && array_key_exists("Attribute_Mapping", $ZA)) {
goto Ib;
}
update_option("mo_ldap_local_message", "Incorrect file uploaded! Please upload the file that was exported from this plugin");
$this->show_error_message();
goto Fo;
Ib:
$G2 = wp_load_alloptions();
foreach ($G2 as $Zh => $t0) {
if (strpos($Zh, "mo_ldap_local_custom_attribute_") !== false) {
goto ip;
}
if (strpos($Zh, "mo_ldap_local_mapping_key_") !== false || strpos($Zh, "mo_ldap_local_mapping_value_") !== false) {
goto zN;
}
goto kz;
ip:
delete_option($Zh);
goto kz;
zN:
delete_option($Zh);
kz:
PA:
}
hZ:
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_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");
$ZM = unserialize(Tab_ldap_Class_Names);
foreach ($ZA as $nn => $P5) {
$UA = call_user_func($ZM[$nn] . "::getConstants");
foreach ($UA as $fc => $Zh) {
if (!array_key_exists($fc, $P5)) {
goto TJ;
}
if (!($fc == "mapping_count")) {
goto Sx;
}
$Q8 = $P5[$fc];
Sx:
if ($fc == "Role_mapping_key") {
goto Nd;
}
if ($fc == "Role_mapped_value") {
goto wf;
}
if ($fc == "custom_attribute_name") {
goto wB;
}
$Kq = sanitize_text_field($P5[$fc]);
if (!($Zh == "mo_ldap_local_server_url" or $Zh == "mo_ldap_local_server_dn" or $Zh == "mo_ldap_local_search_base" or $Zh == "mo_ldap_local_search_filter" or $Zh == "mo_ldap_local_username_attribute")) {
goto Vn;
}
$Kq = Mo_Ldap_Local_Util::encrypt($Kq);
Vn:
update_option($Zh, $Kq);
goto uA;
wB:
$kF = sizeof($P5[$fc]);
$GG = 1;
Bt:
if (!($GG <= $kF)) {
goto AH;
}
$Kq = sanitize_text_field($P5[$fc][$GG]);
update_option("mo_ldap_local_custom_attribute_" . $Kq, $Kq);
va:
$GG++;
goto Bt;
AH:
uA:
goto px;
wf:
$GG = 1;
Ax:
if (!($GG <= $Q8)) {
goto lW;
}
$Kq = sanitize_text_field($P5[$fc][$GG]);
update_option($Zh . $GG, $Kq);
WR:
$GG++;
goto Ax;
lW:
px:
goto U6;
Nd:
$GG = 1;
i2:
if (!($GG <= $Q8)) {
goto tv;
}
$Kq = sanitize_text_field($P5[$fc][$GG]);
update_option($Zh . $GG, $Kq);
XN:
$GG++;
goto i2;
tv:
U6:
TJ:
Dx:
}
OI:
pm:
}
ke:
update_option("mo_ldap_local_message", "The file was imported successfully");
$this->show_success_message();
Fo:
B8:
fy:
goto gd;
P7:
$RW = get_option("mo_ldap_local_server_url");
if (!empty($RW)) {
goto dU;
}
update_option("mo_ldap_local_message", "LDAP Configuration not set. Please configure LDAP Connection settings.");
$this->show_error_message();
goto Yc;
dU:
$this->miniorange_ldap_export();
Yc:
gd:
goto QZ;
gh:
update_option("mo_ldap_export", isset($_POST["enable_ldap_login"]) ? 1 : 0);
if (get_option("mo_ldap_export")) {
goto Im;
}
update_option("mo_ldap_local_message", "Service account password will not be exported.");
$this->show_error_message();
goto X6;
Im:
update_option("mo_ldap_local_message", "Service account password will be exported in encrypted fashion");
$this->show_success_message();
X6:
QZ:
goto Su;
JN:
if (NddKoYsdasadJD()) {
goto rC;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto RX;
rC:
update_option("mo_ldap_local_authorized_users_only", isset($_POST["authorized_users_only"]) ? $_POST["authorized_users_only"] : 0);
if (get_option("mo_ldap_local_authorized_users_only") == 1) {
goto W3;
}
update_option("mo_ldap_local_message", "Protect Content by Login disabled.");
$this->show_error_message();
goto c9;
W3:
update_option("mo_ldap_local_message", "Protect Content by Login enabled.");
$this->show_success_message();
c9:
RX:
Su:
goto OX;
vs:
$LB = sanitize_text_field($_POST["phone_number"]);
$LB = str_replace(" ", '', $LB);
$Bh = "/[\+][0-9]{1,3}[0-9]{10}/";
if (preg_match($Bh, $LB, $d4, PREG_OFFSET_CAPTURE)) {
goto fH;
}
update_option("mo_ldap_local_message", "Please enter the phone number in the following format: <b>+##country code## ##phone number##");
$this->show_error_message();
goto pd;
fH:
$HO = "SMS";
$Bl = new Mo_Ldap_Local_Customer();
$Qr = json_decode($Bl->send_otp_token($HO, $LB));
if (!($Qr->status == "SUCCESS")) {
goto PG;
}
if (get_option("mo_ldap_local_sms_count") != null) {
goto no;
}
update_option("mo_ldap_local_sms_count", 1);
update_option("mo_ldap_local_message", "One Time Passcode has been sent ( <b>1</b> ) for verification to " . $LB);
goto LB;
no:
update_option("mo_ldap_local_sms_count", get_option("mo_ldap_local_sms_count") + 1);
$RZ = get_option("mo_ldap_local_sms_count");
update_option("mo_ldap_local_message", "Another One Time Passcode has been sent <b>(" . $RZ . ")</b> for verification to " . $LB);
LB:
update_option("mo_ldap_local_transactionId", $Qr->txId);
$this->show_success_message();
PG:
pd:
OX:
goto VE;
XR:
delete_option("mo_ldap_local_admin_email");
delete_option("mo_ldap_local_registration_status");
delete_option("mo_ldap_local_verify_customer");
delete_option("mo_ldap_local_email_count");
delete_option("mo_ldap_local_sms_count");
VE:
goto dw;
NB:
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();
dw:
goto VU;
P0:
$if = sanitize_text_field($_POST["custom_attribute_name"]);
$jU = "mo_ldap_local_custom_attribute_" . $if;
delete_option($jU);
do_action("mo_ldap_buddypress_update_attribute_mapping", $if);
update_option("mo_ldap_local_message", "Successfully delete custom attribute: <b>" . $if . "</b>");
$this->show_success_message();
VU:
goto Kf;
bN:
$K4 = sanitize_text_field($_POST["mo_ldap_new_user_location"]);
$OH = sanitize_text_field($_POST["mo_ldap_objectclass_attribute"]);
update_option("mo_ldap_local_new_user_location", $K4);
update_option("mo_ldap_local_objectclass_attribute", $OH);
update_option("mo_ldap_local_message", "Successfully saved User Management Configuration");
$this->show_success_message();
Kf:
goto U1;
sd:
$Mh = array();
foreach ($_POST as $fc => $Kq) {
if (strpos($fc, "mo_ldap_local_custom_attribute_") === false) {
goto cY;
}
array_push($Mh, $fc);
goto KI;
cY:
KI:
zg:
}
iT:
error_log("The custom Attributes are as Follows: " . print_r($Mh, true));
if (isset($_POST["mo_ldap_local_enable_attr_mapping"])) {
goto b8;
}
update_option("mo_ldap_local_enable_attr_mapping", 0);
update_option("mo_ldap_local_enable_update_ldap", 0);
goto kD;
b8:
update_option("mo_ldap_local_enable_attr_mapping", $_POST["mo_ldap_local_enable_attr_mapping"]);
update_option("mo_ldap_local_enable_update_ldap", isset($_POST["enable_update_ldap"]) ? $_POST["enable_update_ldap"] : 0);
kD:
$bN = sanitize_text_field($_POST["mo_ldap_email_attribute"]);
$eJ = sanitize_text_field($_POST["mo_ldap_phone_attribute"]);
$Ko = sanitize_text_field($_POST["mo_ldap_fname_attribute"]);
$KX = sanitize_text_field($_POST["mo_ldap_lname_attribute"]);
$La = sanitize_text_field($_POST["mo_ldap_nickname_attribute"]);
$WP = sanitize_text_field($_POST["mo_ldap_display_name_attribute"]);
$ZG = isset($_POST["mo_ldap_user_enabled_attribute"]) ? $_POST["mo_ldap_user_enabled_attribute"] : 0;
update_option("mo_ldap_local_email_attribute", $bN);
update_option("mo_ldap_local_phone_attribute", $eJ);
update_option("mo_ldap_local_fname_attribute", $Ko);
update_option("mo_ldap_local_lname_attribute", $KX);
update_option("mo_ldap_local_nickname_attribute", $La);
update_option("mo_ldap_local_display_name_attribute", $WP);
update_option("mo_ldap_local_user_enabled_attribute", $ZG);
foreach ($Mh as $ai) {
if (!(isset($_POST[$ai]) and $_POST[$ai] != '')) {
goto z2;
}
if (get_option($ai) == null) {
goto R0;
}
$r1 = strtolower(sanitize_text_field($_POST[$ai]));
goto kC;
R0:
$r1 = "mo_ldap_local_custom_attribute_" . strtolower(sanitize_text_field($_POST[$ai]));
kC:
update_option($r1, strtolower(sanitize_text_field($_POST[$ai])));
z2:
Ns:
}
Lk:
update_option("mo_ldap_local_message", "Successfully saved LDAP Attribute Configuration");
$this->show_success_message();
U1:
goto m_;
Mu:
error_log("Saving Role Mapping Configuration");
$li = 0;
$GG = 1;
$Q8 = get_option("mo_ldap_local_role_mapping_count");
error_log("Current Mapping Count is: " . $Q8);
yT:
if (!isset($_POST["mapping_key_" . $GG])) {
goto JK;
}
if (empty($_POST["mapping_key_" . $GG])) {
goto xb;
}
$li++;
update_option("mo_ldap_local_mapping_key_" . $li, trim($_POST["mapping_key_" . $GG]));
update_option("mo_ldap_local_mapping_value_" . $li, $_POST["mapping_value_" . $GG]);
xb:
$GG++;
goto yT;
JK:
error_log("Added Mapping count: " . $li . " Mapping Count: " . $Q8);
if (!($li < $Q8)) {
goto zb;
}
$GG = $li + 1;
Hr:
if (!($GG <= $Q8)) {
goto AJ;
}
delete_option("mo_ldap_local_mapping_key_" . $GG);
delete_option("mo_ldap_local_mapping_value_" . $GG);
$GG++;
goto Hr;
AJ:
zb:
update_option("mo_ldap_local_role_mapping_count", $li);
if (!isset($_POST["mapping_value_default"])) {
goto v5;
}
update_option("mo_ldap_local_mapping_value_default", $_POST["mapping_value_default"]);
v5:
if (!isset($_POST["mapping_memberof_attribute"])) {
goto ga;
}
update_option("mo_ldap_local_mapping_memberof_attribute", $_POST["mapping_memberof_attribute"]);
ga:
$T3 = '';
if (get_option("mo_ldap_local_enable_role_mapping")) {
goto q3;
}
$T3 = " Please check <b>"Enable Role Mapping"</b> to activate it.";
q3:
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been updated." . $T3);
$this->show_success_message();
m_:
goto DX;
jf:
update_option("mo_ldap_local_keep_existing_user_roles", isset($_POST["keep_existing_user_roles"]) ? $_POST["keep_existing_user_roles"] : 0);
if (get_option("mo_ldap_local_keep_existing_user_roles")) {
goto Ds;
}
update_option("mo_ldap_local_message", "WP Roles of Existing users will be updated.");
$this->show_error_message();
goto lh;
Ds:
update_option("mo_ldap_local_message", "WP Roles of Existing users will not be removed.");
$this->show_success_message();
lh:
DX:
goto uX;
Lm:
update_option("mo_ldap_local_enable_role_mapping", isset($_POST["enable_ldap_role_mapping"]) ? $_POST["enable_ldap_role_mapping"] : 0);
if (get_option("mo_ldap_local_enable_role_mapping")) {
goto HY;
}
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been disabled.");
$this->show_error_message();
goto LV;
HY:
update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been enabled.");
$this->show_success_message();
LV:
uX:
goto f5;
w3:
update_option("mo_ldap_local_anonymous_bind", isset($_POST["anonymous_bind"]) ? $_POST["anonymous_bind"] : 0);
delete_option("mo_ldap_local_message");
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["ldap_server"])) {
goto N2;
}
$Bt = sanitize_text_field($_POST["ldap_server"]);
update_option("mo_ldap_local_server_url", Mo_Ldap_Local_Util::encrypt($Bt));
N2:
$RW = sanitize_text_field($_POST["ldap_server"]);
$km = new Mo_Ldap_Local_Config();
$Z9 = $km->ping_ldap_server($RW);
if (strcasecmp($Z9, "SUCCESS") == 0) {
goto OQ;
}
if (strcasecmp($Z9, "LDAP_ERROR") == 0) {
goto io;
}
$C5 = str_replace("ldap://", '', $RW);
$C5 = str_replace("ldaps://", '', $C5);
$IU = explode(":", $C5);
if (!isset($IU[0])) {
goto fE;
}
$C5 = $IU[0];
fE:
$Yv = "Error connecting to LDAP Server. Please check your LDAP server URL <b>" . $RW . "</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 " . $C5 . "</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.";
$nj = "Error connecing server " . $RW;
add_option("mo_ldap_local_message", $Yv, '', "no");
$this->show_error_message();
goto ru;
io:
$Yv = "<a target='_blank' href='http://php.net/manual/en/ldap.installation.php'>PHP LDAP extension</a> is not installed or disabled. Please enable it.";
$nj = "LDAP extension not installed for server " . $RW;
add_option("mo_ldap_local_message", "LDAP Extension is disabled: " . $Yv, '', "no");
$this->show_error_message();
ru:
goto pk;
OQ:
$Yv = "Successfully contacted LDAP Server. Please configure your Service Account now.";
$nj = "Successfully contacted LDAP Server " . $RW;
add_option("mo_ldap_local_message", $Yv, '', "no");
$this->show_success_message();
pk:
f5:
goto og;
i4:
$sQ = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["otp_token"])) {
goto mh;
}
$sQ = sanitize_text_field($_POST["otp_token"]);
goto yY;
mh:
update_option("mo_ldap_local_message", "Please enter a value in otp field.");
update_option("mo_ldap_local_registration_status", "MO_OTP_VALIDATION_FAILURE");
$this->show_error_message();
return;
yY:
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->validate_otp_token(get_option("mo_ldap_local_transactionId"), $sQ), true);
if (strcasecmp($aK["status"], "SUCCESS") == 0) {
goto he;
}
if (strcasecmp($aK["status"], "CURL_ERROR") == 0) {
goto Xx;
}
update_option("mo_ldap_local_message", "Invalid one time passcode. Please enter a valid otp.");
update_option("mo_ldap_local_registration_status", "MO_OTP_VALIDATION_FAILURE");
$this->show_error_message();
goto cm;
Xx:
update_option("mo_ldap_local_message", $aK["statusMessage"]);
update_option("mo_ldap_local_registration_status", "MO_OTP_VALIDATION_FAILURE");
$this->show_error_message();
cm:
goto qI;
he:
$Bl = new Mo_Ldap_Local_Customer();
$oV = json_decode($Bl->create_customer(), true);
delete_option("mo_ldap_local_email_count");
delete_option("mo_ldap_local_sms_count");
if (strcasecmp($oV["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) {
goto Es;
}
if (!(strcasecmp($oV["status"], "SUCCESS") == 0)) {
goto Ip;
}
$this->save_success_customer_config($oV["id"], $oV["apiKey"], $oV["token"], "Registration complete!");
Ip:
goto w1;
Es:
$aK = $Bl->get_customer_key();
$oV = json_decode($aK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto jI;
}
update_option("mo_ldap_local_message", "You already have an account with miniOrange. Please enter a valid password.");
update_option("mo_ldap_local_verify_customer", "true");
delete_option("mo_ldap_local_new_registration");
$this->show_error_message();
goto G6;
jI:
$this->save_success_customer_config($oV["id"], $oV["apiKey"], $oV["token"], "Your account has been retrieved successfully.");
G6:
w1:
update_option("mo_ldap_local_password", '');
qI:
og:
goto gt;
k3:
$Bl = new Mo_Ldap_Local_Customer();
$HO = "EMAIL";
$aK = json_decode($Bl->send_otp_token($HO, null), true);
if (strcasecmp($aK["status"], "SUCCESS") == 0) {
goto to;
}
if (strcasecmp($aK["status"], "CURL_ERROR") == 0) {
goto fl;
}
update_option("mo_ldap_local_message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_FAILURE");
$this->show_error_message();
goto SZ;
fl:
update_option("mo_ldap_local_message", $aK["statusMessage"]);
update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_FAILURE");
$this->show_error_message();
SZ:
goto H6;
to:
if (get_option("mo_ldap_local_email_count")) {
goto aR;
}
update_option("mo_ldap_local_message", "An OTP has been sent to <b>" . get_option("mo_ldap_local_admin_email") . "</b>. Please enter the OTP below to verify your email. ");
update_option("mo_ldap_local_email_count", 1);
goto fc;
aR:
update_option("mo_ldap_local_email_count", get_option("mo_ldap_local_email_count") + 1);
update_option("mo_ldap_local_message", "Another One Time Passcode has been sent <b>( " . get_option("mo_ldap_local_email_count") . " )</b> to <b>" . get_option("mo_ldap_local_admin_email") . "</b>. Please enter the OTP below to verify your email. ");
fc:
update_option("mo_ldap_local_transactionId", $aK["txId"]);
update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_SUCCESS");
$this->show_success_message();
H6:
gt:
goto xa;
Ry:
$hG = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["query_email"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["query"])) {
goto lw;
}
$hG = sanitize_text_field($_POST["query"]);
$n3 = sanitize_text_field($_POST["query_email"]);
$LB = sanitize_text_field($_POST["query_phone"]);
$Lq = new Mo_Ldap_Local_Customer();
$lU = json_decode($Lq->submit_contact_us($n3, $LB, $hG), true);
if (strcasecmp($lU["status"], "CURL_ERROR") == 0) {
goto Lx;
}
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto Ku;
}
if ($lU == false) {
goto DA;
}
update_option("mo_ldap_local_message", "Thanks for getting in touch! We shall get back to you shortly.");
$this->show_success_message();
goto ie;
DA:
update_option("mo_ldap_local_message", "Your query could not be submitted. Please try again.");
$this->show_error_message();
ie:
Ku:
goto Ol;
Lx:
update_option("mo_ldap_local_message", $lU["statusMessage"]);
$this->show_error_message();
Ol:
goto eb;
lw:
update_option("mo_ldap_local_message", "Please submit your query along with email.");
$this->show_error_message();
return;
eb:
xa:
goto QA;
hT:
if (NddKoYsdasadJD()) {
goto ZI;
}
update_option("mo_ldap_local_message", "Settings can't be tested without verifying your license key.");
$this->show_error_message();
goto gs;
ZI:
$Bt = get_option("mo_ldap_local_server_url");
$V6 = get_option("mo_ldap_local_server_dn");
$mY = get_option("mo_ldap_local_server_password");
$iK = get_option("mo_ldap_local_search_base");
$u5 = get_option("mo_ldap_local_username_attribute");
$Io = get_option("mo_ldap_local_search_filter");
delete_option("mo_ldap_local_message");
$p1 = '';
$O_ = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_username"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_password"])) {
goto vw;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($Bt) || Mo_Ldap_Local_Util::check_empty_or_null($V6) || Mo_Ldap_Local_Util::check_empty_or_null($mY) || Mo_Ldap_Local_Util::check_empty_or_null($iK) || Mo_Ldap_Local_Util::check_empty_or_null($u5) || Mo_Ldap_Local_Util::check_empty_or_null($Io)) {
goto I0;
}
$p1 = sanitize_text_field($_POST["test_username"]);
$O_ = sanitize_text_field($_POST["test_password"]);
goto pi;
I0:
$this->mo_ldap_report_update("Test authentication", "ERROR", "<strong>Test Authentication Error</strong>: Please save LDAP Configuration to test authentication.");
add_option("mo_ldap_local_message", "Please save LDAP Configuration to test authentication.", '', "no");
$this->show_error_message();
return;
pi:
goto TT;
vw:
$this->mo_ldap_report_update("Test Authentication ", "ERROR", "<strong>ERROR</strong>: All the fields are required. Please enter valid entries.");
add_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.", '', "no");
$this->show_error_message();
return;
TT:
$km = new Mo_Ldap_Local_Config();
$aK = $km->test_authentication($p1, $O_, null);
$Z9 = json_decode($aK, true);
if (strcasecmp($Z9["statusCode"], "SUCCESS") == 0) {
goto HK;
}
if (strcasecmp($Z9["statusCode"], "ERROR") == 0) {
goto Qd;
}
if (strcasecmp($Z9["statusCode"], "USER_NOT_EXIST") == 0) {
goto bG;
}
if (strcasecmp($Z9["statusCode"], "LDAP_ERROR") == 0) {
goto Lv;
}
if (strcasecmp($Z9["statusCode"], "CURL_ERROR") == 0) {
goto Gc;
}
if (strcasecmp($Z9["statusCode"], "OPENSSL_ERROR") == 0) {
goto oO;
}
if (strcasecmp($Z9["statusCode"], "PING_ERROR") == 0) {
goto TI;
}
$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 Search filter. Your user should be present in the Search base defined.");
add_option("mo_ldap_local_message", "There was an error processing your request. Please verify the Search Base(s) and Search filter. Your user should be present in the Search base defined.", '', "no");
$this->show_error_message();
goto cv;
TI:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$this->show_error_message();
cv:
goto mH;
oO:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$this->show_error_message();
mH:
goto yQ;
Gc:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$this->show_error_message();
yQ:
goto dP;
Lv:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$this->show_error_message();
dP:
goto G7;
bG:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong> Cannot find user in the directory");
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$this->show_error_message();
G7:
goto Re;
Qd:
$this->mo_ldap_report_update($_POST["test_username"], "ERROR", "<strong>Test Authentication Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$this->show_error_message();
Re:
goto Km;
HK:
$Rf = add_query_arg(array("tab" => "rolemapping"), $_SERVER["REQUEST_URI"]);
$zc = "You have successfully configured your LDAP settings.<br>\xa \x9 \x9 \x9\x9You can now do either of two things.<br>\xa\x9\x9 \x9\x9 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>
\x9\x9 \x9\x9\x9 \x92. Do role mapping (<a href="" . $Rf . "">Click here</a>)";
add_option("mo_ldap_local_message", $zc, '', "no");
$this->show_success_message();
Km:
gs:
QA:
goto d2;
fd:
delete_option("mo_ldap_local_user_mapping_status");
update_option("mo_local_filter_check", isset($_POST["ldap_search_filters"]) ? 1 : 0);
$iU = '';
$iK = '';
$Io = '';
$u5 = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["search_base"])) {
goto Jt;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["username_attribute_text"]) && Mo_Ldap_Local_Util::check_empty_or_null($_POST["search_filter"])) {
goto Y_;
}
$iK = sanitize_text_field($_POST["search_base"]);
goto SC;
Y_:
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;
SC:
goto PF;
Jt:
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;
PF:
if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) {
goto ZX;
}
if (get_option("mo_local_filter_check") == 0) {
goto fU;
}
$Io = sanitize_text_field($_POST["search_filter"]);
update_option("mo_ldap_local_search_filter", Mo_Ldap_Local_Util::encrypt($Io));
update_option("mo_ldap_local_username_attribute", Mo_Ldap_Local_Util::encrypt(''));
goto z1;
fU:
$Io = sanitize_text_field($_POST["username_attribute_text"]);
update_option("mo_ldap_local_username_attribute", Mo_Ldap_Local_Util::encrypt($Io));
$jd = explode(";", $Io);
if (count($jd) > 1) {
goto uZ;
}
$rY = "(&(objectClass=*)(" . $Io . "=?))";
goto si;
uZ:
foreach ($jd as $fc => $i0) {
$Qm .= "(" . $jd[$fc] . "=?)";
Y4:
}
E3:
$rY = "(&(objectClass=*)(|" . $Qm . "))";
si:
update_option("mo_ldap_local_search_filter", Mo_Ldap_Local_Util::encrypt($rY));
z1:
update_option("mo_ldap_local_search_base", Mo_Ldap_Local_Util::encrypt($iK));
delete_option("mo_ldap_local_message");
$zc = "LDAP User Mapping Configuration has been saved. Please test authentication to verify LDAP User Mapping Configuration.";
add_option("mo_ldap_local_message", $zc, '', "no");
add_option("mo_ldap_local_user_mapping_status", "VALID", '', "no");
$this->show_success_message();
goto mE;
ZX:
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();
mE:
d2:
goto w9;
LH:
if (NddKoYsdasadJD()) {
goto xw;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto EI;
xw:
if (isset($_POST["anonymous_bind"])) {
goto Rp;
}
update_option("mo_ldap_local_anonymous_bind", 0);
goto CM;
Rp:
update_option("mo_ldap_local_anonymous_bind", 1);
CM:
$Bt = '';
$V6 = '';
$mY = '';
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"])) {
goto bM;
}
$Bt = sanitize_text_field($_POST["ldap_server"]);
$V6 = sanitize_text_field($_POST["dn"]);
$mY = sanitize_text_field($_POST["admin_password"]);
goto QP;
bM:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
$this->show_error_message();
return;
QP:
if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) {
goto Oh;
}
update_option("mo_ldap_local_server_url", Mo_Ldap_Local_Util::encrypt($Bt));
update_option("mo_ldap_local_server_dn", Mo_Ldap_Local_Util::encrypt($V6));
update_option("mo_ldap_local_server_password", Mo_Ldap_Local_Util::encrypt($mY));
delete_option("mo_ldap_local_message");
$km = new Mo_Ldap_Local_Config();
$zc = "Your configuration has been saved.";
$pd = "success";
$aK = $km->test_connection();
$Z9 = json_decode($aK, true);
if (strcasecmp($Z9["statusCode"], "SUCCESS") == 0) {
goto ix;
}
if (strcasecmp($Z9["statusCode"], "ERROR") == 0) {
goto rO;
}
if (strcasecmp($Z9["statusCode"], "LDAP_ERROR") == 0) {
goto FM;
}
if (strcasecmp($Z9["statusCode"], "OPENSSL_ERROR") == 0) {
goto TO;
}
if (strcasecmp($Z9["statusCode"], "PING_ERROR") == 0) {
goto BO;
}
add_option("mo_ldap_local_message", $zc . " There was an error in connecting with the current settings. Make sure you have entered server url in format ldap://domain.com:port. Test using Ping LDAP Server.", '', "no");
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "Error", "<strong>Test Connection Error: </strong>" . $Z9["statusMessage"]);
$nj = "Invalid configuration.";
$this->show_error_message();
goto Yy;
BO:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$nj = "Ping server failed " . $Bt;
$this->show_error_message();
Yy:
goto wL;
TO:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$nj = "OpenSSL extension not installed.";
$this->show_error_message();
wL:
goto PW;
FM:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$nj = "LDAP extension not installed.";
$this->show_error_message();
PW:
goto MD;
rO:
$this->mo_ldap_report_update("LDAP CONNECTION TEST", "ERROR", "<strong>Test Connection Error: </strong>" . $Z9["statusMessage"]);
add_option("mo_ldap_local_message", $Z9["statusMessage"], '', "no");
$nj = "Invalid search filter or search base.";
$this->show_error_message();
MD:
goto Jm;
ix:
add_option("mo_ldap_local_message", $zc . " Connection was established successfully. Please configure LDAP User Mapping now.", '', "no");
$nj = "Test was successful.";
$this->show_success_message();
Jm:
goto Nu;
Oh:
update_option("mo_ldap_local_message", "PHP OpenSSL extension is not installed or disabled. Please enable it first.");
$this->show_error_message();
Nu:
EI:
w9:
goto t4;
eJ:
if (NddKoYsdasadJD()) {
goto J2;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto hQ;
J2:
update_option("mo_ldap_local_register_user", isset($_POST["mo_ldap_local_register_user"]) ? $_POST["mo_ldap_local_register_user"] : 0);
if (get_option("mo_ldap_local_register_user")) {
goto tE;
}
update_option("mo_ldap_local_message", "Auto Registering users has been disabled.");
$this->show_error_message();
goto p5;
tE:
update_option("mo_ldap_local_message", "Auto Registering users has been enabled.");
$this->show_success_message();
p5:
hQ:
t4:
goto LA;
Z0:
update_option("mo_ldap_local_use_tls", isset($_POST["mo_ldap_local_tls_enable"]) ? $_POST["mo_ldap_local_tls_enable"] : 0);
if (get_option("mo_ldap_local_use_tls")) {
goto KV;
}
update_option("mo_ldap_local_message", "TLS has been disabled");
$this->show_error_message();
goto cV;
KV:
update_option("mo_ldap_local_message", "TLS has been enabled");
$this->show_success_message();
cV:
LA:
goto VN;
eh:
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);
VN:
goto eA;
eE:
update_option("mo_ldap_local_user_report_log", isset($_POST["mo_ldap_local_user_report_log"]) ? $_POST["mo_ldap_local_user_report_log"] : 0);
$w7 = get_option("user_logs_table_exists");
$Q0 = get_option("mo_ldap_local_user_report_log");
if (!($Q0 == 1 && $w7 != 1)) {
goto dg;
}
$this->prefix_update_table();
dg:
eA:
goto bn;
Jp:
update_option("mo_ldap_local_anonymous_bind", isset($_POST["anonymous_bind"]) ? $_POST["anonymous_bind"] : 0);
bn:
goto W_;
T6:
if (NddKoYsdasadJD()) {
goto YD;
}
update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key.");
$this->show_error_message();
goto u0;
YD:
update_option("mo_ldap_local_enable_login", isset($_POST["enable_ldap_login"]) ? $_POST["enable_ldap_login"] : 0);
if (get_option("mo_ldap_local_enable_login")) {
goto t9;
}
update_option("mo_ldap_local_message", "Login through your LDAP has been disabled.");
$this->show_error_message();
goto dK;
t9:
update_option("mo_ldap_local_message", "Login through your LDAP has been enabled.");
$this->show_success_message();
dK:
u0:
W_:
goto Z4;
r5:
$n3 = '';
$ah = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["email"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["password"])) {
goto Lf;
}
$n3 = sanitize_email($_POST["email"]);
$ah = sanitize_text_field($_POST["password"]);
goto Xb;
Lf:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
$this->show_error_message();
return;
Xb:
update_option("mo_ldap_local_admin_email", $n3);
update_option("mo_ldap_local_password", $ah);
$Bl = new Mo_Ldap_Local_Customer();
$aK = $Bl->get_customer_key();
$oV = json_decode($aK, true);
update_option("mo_ldap_local_verify_customer", "true");
if (strcasecmp($oV["apiKey"], "CURL_ERROR") == 0) {
goto Hm;
}
if (json_last_error() == JSON_ERROR_NONE) {
goto Iv;
}
update_option("mo_ldap_local_message", "Invalid username or password. Please try again.");
$this->show_error_message();
goto PL;
Iv:
update_option("mo_ldap_local_admin_phone", $oV["phone"]);
$this->save_success_customer_config($oV["id"], $oV["apiKey"], $oV["token"], "Your account has been retrieved successfully.");
update_option("mo_ldap_local_password", '');
PL:
goto Vy;
Hm:
update_option("mo_ldap_local_message", $oV["token"]);
$this->show_error_message();
Vy:
update_option("mo_ldap_local_password", '');
Z4:
goto sT;
Qz:
$n3 = '';
$LB = '';
$ah = '';
$Oc = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["email"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["password"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["confirmPassword"])) {
goto Gt;
}
if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) {
goto Zh;
}
$n3 = sanitize_email($_POST["email"]);
$LB = sanitize_text_field($_POST["phone"]);
$ah = sanitize_text_field($_POST["password"]);
$Oc = sanitize_text_field($_POST["confirmPassword"]);
goto Vz;
Zh:
update_option("mo_ldap_local_message", "Choose a password with minimum length 6.");
$this->show_error_message();
return;
Vz:
goto sa;
Gt:
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.");
$this->show_error_message();
return;
sa:
update_option("mo_ldap_local_admin_email", $n3);
if (!($LB != '')) {
goto bh;
}
update_option("mo_ldap_local_admin_phone", $LB);
bh:
if (strcmp($ah, $Oc) == 0) {
goto ez;
}
update_option("mo_ldap_local_message", "Password and Confirm password do not match.");
delete_option("mo_ldap_local_verify_customer");
$this->show_error_message();
goto rP;
ez:
update_option("mo_ldap_local_password", $ah);
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->check_customer(), true);
if (strcasecmp($aK["status"], "CUSTOMER_NOT_FOUND") == 0) {
goto SJ;
}
if (strcasecmp($aK["status"], "CURL_ERROR") == 0) {
goto ey;
}
$aK = $Bl->get_customer_key();
$oV = json_decode($aK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto eX;
}
update_option("mo_ldap_local_message", "You already have an account with miniOrange. Please enter a valid password.");
update_option("mo_ldap_local_verify_customer", "true");
delete_option("mo_ldap_local_new_registration");
$this->show_error_message();
goto Qu;
eX:
$this->save_success_customer_config($oV["id"], $oV["apiKey"], $oV["token"], "Your account has been retrieved successfully.");
update_option("mo_ldap_local_password", '');
Qu:
goto AN;
ey:
update_option("mo_ldap_local_message", $aK["statusMessage"]);
update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_FAILURE");
$this->show_error_message();
AN:
goto wU;
SJ:
$HO = "EMAIL";
$aK = json_decode($Bl->send_otp_token($HO, null), true);
if (strcasecmp($aK["status"], "SUCCESS") == 0) {
goto VY;
}
update_option("mo_ldap_local_message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_FAILURE");
$this->show_error_message();
goto wY;
VY:
update_option("mo_ldap_local_email_count", 1);
update_option("mo_ldap_local_message", "A One Time Passcode has been sent <b>( 1 )</b> to <b>" . get_option("mo_ldap_local_admin_email") . "</b>. Please enter the OTP below to verify your email. ");
update_option("mo_ldap_local_transactionId", $aK["txId"]);
update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_SUCCESS");
$this->show_success_message();
wY:
wU:
rP:
sT:
if (isset($_POST["option"]) && $_POST["option"] == "mo_ldap_local_verify_license") {
goto kY;
}
if (isset($_POST["option"]) && $_POST["option"] == "mo_ldap_local_free_trial") {
goto lK;
}
if (!(isset($_POST["option"]) && $_POST["option"] == "mo_ldap_local_check_license")) {
goto sQ;
}
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->check_customer_ln(), true);
if (strcasecmp($aK["status"], "SUCCESS") == 0) {
goto FI;
}
$P8 = add_query_arg(array("tab" => "pricing"), $_SERVER["REQUEST_URI"]);
update_option("mo_ldap_local_message", "You have not upgraded yet. <a href="" . $P8 . "">Click here</a> to upgrade to premium version.");
$this->show_error_message();
goto xn;
FI:
if (array_key_exists("licensePlan", $aK) && !Mo_Ldap_Local_Util::check_empty_or_null($aK["licensePlan"])) {
goto OJ;
}
update_option("site_ck_l", Mo_Ldap_Local_Util::encrypt("false"));
$P8 = add_query_arg(array("tab" => "pricing"), $_SERVER["REQUEST_URI"]);
update_option("mo_ldap_local_message", "You have not upgraded yet. <a href="" . $P8 . "">Click here</a> to upgrade to premium version.");
$this->show_error_message();
goto fV;
OJ:
update_option("mo_ldap_local_license_name", base64_encode($aK["licensePlan"]));
update_option("site_ck_l", Mo_Ldap_Local_Util::encrypt("true"));
$P8 = add_query_arg(array("tab" => "account"), $_SERVER["REQUEST_URI"]);
update_option("mo_ldap_local_message", "You have successfully upgraded to premium version. <a href="" . $P8 . "">Click here</a> to activate your license.");
$this->show_success_message();
fV:
xn:
sQ:
goto XF;
lK:
if (decryptLDAPElement()) {
goto Wc;
}
$KL = post_response();
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->XfskodsfhHJ($KL), true);
if (strcasecmp($aK["status"], "SUCCESS") == 0) {
goto MY;
}
if (strcasecmp($aK["status"], "FAILED") == 0) {
goto Td;
}
update_option("mo_ldap_local_message", "An error occured while processing your request. Please Try again.");
$this->show_error_message();
goto DF;
Td:
update_option("mo_ldap_local_message", "There was an error activating your TRIAL version. Please contact [email protected] for getting new license for trial version.");
$this->show_error_message();
DF:
goto L1;
MY:
update_option("mo_ldap_local_is_trial_key", Mo_Ldap_Local_Util::encrypt($KL));
update_option("t_site_status", Mo_Ldap_Local_Util::encrypt("true"));
update_option("mo_ldap_local_message", "Your 5 days TRIAL is activated. You can now setup the plugin.");
$this->show_success_message();
L1:
goto LZ;
Wc:
update_option("mo_ldap_local_message", "There was an error activating your TRIAL version. Either your trial period is expired or you are using wrong trial version. Please contact [email protected] for getting new license for trial version.");
$this->show_error_message();
LZ:
XF:
goto S2;
kY:
if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["mo_ldap_local_license_key"])) {
goto Q6;
}
update_option("mo_ldap_local_message", "All the fields are required. Please enter valid license key.");
$this->show_error_message();
return;
Q6:
$KL = trim($_POST["mo_ldap_local_license_key"]);
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->XfskodsfhHJ($KL), true);
if (strcasecmp($aK["status"], "SUCCESS") == 0) {
goto Kl;
}
if (strcasecmp($aK["status"], "FAILED") == 0) {
goto Lo;
}
update_option("mo_ldap_local_message", "An error occured while processing your request. Please Try again.");
$this->show_error_message();
goto cG;
Lo:
if (strcasecmp($aK["message"], "Code has Expired") == 0) {
goto qp;
}
update_option("mo_ldap_local_message", "You have entered an invalid license key. Please enter a valid license key.");
goto VB;
qp:
$P8 = 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="" . $P8 . "">Click here</a> to buy more.");
VB:
$this->show_error_message();
cG:
goto Eb;
Kl:
update_option("mo_ldap_local_license_key", Mo_Ldap_Local_Util::encrypt($KL));
update_option("mo_ldap_local_message", "Your license is verified. You can now setup the plugin.");
update_option("t_site_status", Mo_Ldap_Local_Util::encrypt("false"));
update_option("site_ck_l", Mo_Ldap_Local_Util::encrypt("true"));
$this->show_success_message();
Eb:
S2:
XM:
if (mo_ldap_local_ntlsl()) {
goto Wk;
}
if (ch_xdigit()) {
goto tp;
}
delete_option("mo_ldap_local_enable_login");
tp:
goto tB;
Wk:
if (!decryptLDAPElement()) {
goto qy;
}
update_option("t_site_status", Mo_Ldap_Local_Util::encrypt("false"));
qy:
tB:
}
function miniorange_ldap_export()
{
if (!(array_key_exists("option", $_POST) && $_POST["option"] == "mo_ldap_export")) {
goto fv;
}
$ZM = unserialize(Tab_ldap_Class_Names);
$ZA = array();
foreach ($ZM as $fc => $Kq) {
$ZA[$fc] = $this->mo_get_configuration_array($Kq);
U0:
}
u6:
header("Content-Disposition: attachment; filename=miniorange-ldap-config.json");
echo json_encode($ZA, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
die;
fv:
}
function mo_get_configuration_array($in)
{
$UA = call_user_func($in . "::getConstants");
$Q8 = get_option("mo_ldap_local_role_mapping_count");
$GE = array();
$TC = array();
$RP = array();
$YR = array();
foreach ($UA as $fc => $Kq) {
if ($Kq == "mo_ldap_local_server_url" or $Kq == "mo_ldap_local_server_password" or $Kq == "mo_ldap_local_server_dn" or $Kq == "mo_ldap_local_search_base" or $Kq == "mo_ldap_local_search_filter" or $Kq == "mo_ldap_local_username_attribute") {
goto dL;
}
$zI = 0;
goto l_;
dL:
$zI = 1;
l_:
if ($Kq == "mo_ldap_local_mapping_key_") {
goto dR;
}
if ($Kq == "mo_ldap_local_mapping_value_") {
goto pp;
}
if ($Kq == "mo_ldap_local_custom_attribute_") {
goto k4;
}
$Gq = get_option($Kq);
goto i7;
dR:
$GG = 1;
gw:
if (!($GG <= $Q8)) {
goto DH;
}
$TC[$GG] = get_option($Kq . $GG);
ta:
$GG++;
goto gw;
DH:
$Gq = $TC;
goto i7;
pp:
$GG = 1;
Ts:
if (!($GG <= $Q8)) {
goto KZ;
}
$RP[$GG] = get_option($Kq . $GG);
Z3:
$GG++;
goto Ts;
KZ:
$Gq = $RP;
goto i7;
k4:
$G2 = wp_load_alloptions();
$GG = 1;
foreach ($G2 as $Zh => $t0) {
if (strpos($Zh, "mo_ldap_local_custom_attribute_") === false) {
goto LT;
}
$YR[$GG++] = get_option($Zh);
goto P9;
LT:
P9:
nA:
}
kw:
$Gq = $YR;
i7:
if (!$Gq) {
goto gH;
}
if (!(@unserialize($Gq) !== false)) {
goto o1;
}
$Gq = unserialize($Gq);
o1:
if ($zI == 1) {
goto BX;
}
$GE[$fc] = $Gq;
goto iH;
BX:
if ($Kq == "mo_ldap_local_server_password" and get_option(mo_ldap_export) == "0") {
goto hH;
}
if ($Kq == "mo_ldap_local_server_password" and get_option(mo_ldap_export) == "1") {
goto jd;
}
$GE[$fc] = Mo_Ldap_Local_Util::decrypt($Gq);
goto a1;
jd:
$GE[$fc] = $Gq;
a1:
goto OE;
hH:
goto lt;
OE:
iH:
gH:
lt:
}
Ss:
return $GE;
}
function auto_email_ldap_export()
{
$Bt = get_option("mo_ldap_local_server_url") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_url")) : '';
$V6 = get_option("mo_ldap_local_server_dn") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_dn")) : '';
$iK = get_option("mo_ldap_local_search_base") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_base")) : '';
$Io = get_option("mo_ldap_local_search_filter") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_filter")) : '';
$Bm = array("LDAP Server" => "LDAP Server: " . $Bt, "Service Account DN" => "Service Account DN: " . $V6, "Search Base" => "Search Base: " . $iK, "LDAP Search Filter" => "LDAP Search Filter: " . $Io);
return $Bm;
}
function test_attribute_configuration()
{
if (!is_user_logged_in()) {
goto rU;
}
if (!(current_user_can("administrator") && isset($_REQUEST["option"]))) {
goto O2;
}
if ($_REQUEST["option"] == "testattrconfig") {
goto pC;
}
if (!(current_user_can("administrator") && $_REQUEST["option"] == "testrolemappingconfig")) {
goto bI;
}
$G6 = $_REQUEST["user"];
$Xv = new Mo_Ldap_Local_Role_Mapping();
$Xv->test_configuration($G6);
bI:
goto PZ;
pC:
$G6 = $_REQUEST["user"];
$km = new Mo_Ldap_Local_Config();
$km->test_attribute_configuration($G6);
PZ:
O2:
rU:
}
function save_success_customer_config($LC, $l0, $jL, $zc)
{
update_option("mo_ldap_local_admin_customer_key", $LC);
update_option("mo_ldap_local_admin_api_key", $l0);
update_option("mo_ldap_local_customer_token", $jL);
update_option("mo_ldap_local_password", '');
update_option("mo_ldap_local_message", $zc);
delete_option("mo_ldap_local_verify_customer");
delete_option("mo_ldap_local_new_registration");
delete_option("mo_ldap_local_registration_status");
$this->show_success_message();
}
function mo_ldap_local_settings_style()
{
wp_enqueue_style("mo_ldap_admin_settings_style", plugins_url("includes/css/style_settings.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.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()
{
$B7 = "error";
$zc = get_option("mo_ldap_local_message");
echo "<div id='error' class='" . $B7 . "'> <p>" . $zc . "</p></div>";
}
function success_message()
{
$B7 = "updated";
$zc = get_option("mo_ldap_local_message");
echo "<div id='success' class='" . $B7 . "'> <p>" . $zc . "</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 $ET;
global $wpdb;
$jf = $wpdb->get_charset_collate();
error_log("Custom User Report Table : " . $wpdb->base_prefix);
$BM = "CREATE TABLE if not exists`{$wpdb->base_prefix}user_report` (\xa \x9 id int NOT NULL AUTO_INCREMENT,\xa \x9 user_name varchar(50) NOT NULL,\xa\x9\x9\x9 time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\xa \x9\x9 Ldap_status varchar(250) NOT NULL,\xa Ldap_error varchar(250) ,
\x9 PRIMARY KEY (id)
\x9 ) {$jf};";
if (function_exists("dbDelta")) {
goto U4;
}
require_once ABSPATH . "wp-admin/includes/upgrade.php";
U4:
dbDelta($BM);
update_option("user_logs_table_exists", 1);
}
function mo_ldap_report_update($G6, $pd, $l6)
{
if (!(get_option("mo_ldap_local_user_report_log") == 1)) {
goto h1;
}
global $wpdb;
$vg = $wpdb->prefix . "user_report";
error_log("Activation: " . $wpdb->base_prefix);
$yO = $wpdb->get_row("SELECT id FROM {$vg} WHERE user_name ='" . $G6 . "'");
$wpdb->insert($vg, array("user_name" => $G6, "time" => current_time("mysql"), "Ldap_status" => $pd, "Ldap_error" => $l6));
h1:
}
function mo_ldap_activate()
{
update_option("mo_ldap_local_host_name", "https://login.xecurify.com");
update_option("mo_ldap_local_register_user", 1);
}
public static function mo_ldap_local_uninstall()
{
delete_option("mo_ldap_local_server_url");
delete_option("mo_ldap_local_server_dn");
delete_option("mo_ldap_local_server_password");
delete_option("mo_ldap_local_search_filter");
delete_option("mo_ldap_local_username_attribute");
delete_option("mo_ldap_local_search_base");
delete_option("mo_ldap_local_role_mapping_count");
}
function mo_ldap_local_deactivate()
{
do_action("flushcache");
if (Mo_Ldap_Local_Util::check_empty_or_null(get_option("mo_ldap_local_registration_status"))) {
goto v6;
}
delete_option("mo_ldap_local_admin_email");
v6:
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_new_registration");
delete_option("mo_ldap_local_admin_phone");
delete_option("mo_ldap_local_verify_customer");
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_transactionId");
delete_option("mo_ldap_local_registration_status");
delete_option("mo_ldap_local_license_key");
}
}
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: 22.2
Author URI: http://miniorange.com
*/
require_once "\x6d\157\137\154\144\141\160\137\x70\x61\x67\x65\163\56\160\150\160";
require "\155\157\137\x6c\x64\141\x70\x5f\163\x75\160\x70\x6f\x72\164\56\160\150\x70";
require "\x63\x6c\x61\163\163\55\x6d\157\55\154\x64\141\x70\x2d\x63\x75\163\164\x6f\155\145\x72\x2d\163\x65\164\165\160\56\160\150\x70";
require "\x63\x6c\141\163\163\x2d\155\x6f\x2d\x6c\x64\141\160\x2d\x75\164\x69\x6c\x69\x74\171\x2e\160\x68\x70";
require "\x63\x6c\x61\x73\x73\55\x6d\157\x2d\154\x64\x61\160\x2d\x63\x6f\156\x66\x69\147\56\x70\x68\160";
require "\143\x6c\x61\163\163\55\x6d\157\55\154\x64\141\x70\55\x72\x6f\x6c\145\x2d\x6d\141\160\x70\x69\x6e\147\56\160\150\160";
require "\155\157\x5f\x6c\x64\x61\x70\137\x6c\x69\x63\145\156\163\151\156\x67\137\x70\154\x61\156\x73\x2e\x70\x68\x70";
require_once dirname(__FILE__) . "\x2f\x69\x6e\x63\154\165\144\145\163\x2f\154\151\142\57\145\x78\x70\x6f\162\x74\x2e\x70\x68\160";
define("\x54\141\142\x5f\154\x64\141\160\x5f\x43\154\141\163\163\137\x4e\x61\155\x65\x73", serialize(array("\154\144\x61\160\x5f\x4c\x6f\147\151\156" => "\x6d\157\137\x6f\160\x74\x69\157\x6e\x73\x5f\x6c\x64\x61\x70\137\x61\143\x63\137\144\x65\164\x61\151\x6c\163", "\154\144\141\x70\x5f\x63\x6f\x6e\x66\151\x67" => "\x6d\157\137\x6f\160\164\151\x6f\x6e\163\137\154\144\x61\x70\x5f\x63\157\156\x66\151\147\x5f\x64\145\164\x61\151\154\163", "\122\157\154\x65\137\x4d\x61\x70\x70\x69\156\147" => "\155\157\x5f\157\160\164\151\157\156\x5f\154\144\x61\x70\137\162\157\x6c\x65\x5f\155\x61\160\x70\x69\x6e\147", "\x41\164\164\162\151\142\165\164\x65\137\115\141\160\x70\x69\x6e\x67" => "\x6d\157\137\x6f\x70\x74\x69\157\156\163\x5f\154\x64\x61\x70\137\145\156\x75\155\137\x61\x74\164\x72\x69\142\x75\164\x65\x5f\155\141\160\x70\151\156\x67")));
error_reporting(E_ERROR);
class Mo_Ldap_Local_Login
{
function __construct()
{
add_action("\x61\x64\x6d\x69\x6e\x5f\x6d\145\156\x75", array($this, "\155\157\137\154\144\x61\160\x5f\x6c\157\x63\x61\x6c\x5f\x6c\x6f\x67\151\x6e\x5f\x77\x69\144\x67\145\x74\x5f\x6d\x65\x6e\x75"));
add_action("\141\x64\x6d\x69\156\x5f\151\156\x69\164", array($this, "\x6c\157\x67\x69\x6e\137\x77\x69\x64\147\145\164\x5f\x73\141\166\x65\137\x6f\x70\x74\151\x6f\x6e\163"));
add_action("\151\156\x69\164", array($this, "\164\145\x73\164\137\x61\164\164\162\151\x62\x75\x74\x65\137\143\157\x6e\146\x69\147\165\x72\141\x74\x69\x6f\x6e"));
add_action("\141\x64\x6d\151\156\137\x65\156\x71\x75\145\165\145\137\163\143\x72\x69\x70\x74\163", array($this, "\155\157\137\154\x64\x61\160\x5f\154\x6f\x63\141\x6c\x5f\x73\145\x74\x74\x69\156\147\x73\137\163\x74\171\154\x65"));
add_action("\141\144\155\x69\156\137\x65\156\x71\x75\x65\x75\145\137\163\x63\162\151\x70\x74\163", array($this, "\x6d\157\137\x6c\x64\141\x70\x5f\154\157\143\141\x6c\137\163\x65\x74\x74\151\x6e\x67\163\137\x73\x63\162\151\160\164"));
if (!(get_option("\155\x6f\x5f\x6c\x64\141\160\x5f\x6c\x6f\143\141\154\137\145\x6e\x61\142\x6c\x65\x5f\x75\x70\x64\141\x74\x65\137\154\x64\x61\x70") == 1)) {
goto BY;
}
add_action("\x70\162\x6f\x66\151\x6c\145\x5f\x75\160\144\141\164\x65", array($this, "\x75\x70\x64\x61\x74\145\x5f\160\x72\157\146\151\154\145"), 10, 2);
BY:
remove_action("\x61\144\x6d\151\x6e\x5f\x6e\157\x74\151\143\x65\163", array($this, "\163\x75\143\143\x65\163\x73\137\155\145\x73\163\141\147\145"));
remove_action("\x61\x64\x6d\x69\x6e\x5f\156\157\x74\151\x63\145\163", array($this, "\145\x72\162\x6f\x72\137\x6d\145\x73\163\x61\147\145"));
register_deactivation_hook(__FILE__, array($this, "\155\157\x5f\x6c\x64\141\160\x5f\154\x6f\x63\x61\154\137\x64\x65\x61\143\x74\x69\166\x61\164\x65"));
register_uninstall_hook(__FILE__, "\155\x6f\x5f\154\x64\x61\160\137\154\157\x63\141\154\137\165\156\x69\x6e\x73\x74\141\154\154");
add_action("\154\x6f\147\151\x6e\x5f\x66\x6f\157\164\x65\x72", "\x6d\157\137\x6c\x64\x61\x70\x5f\154\x6f\143\x61\x6c\137\154\151\x6e\153");
add_action("\163\x68\157\x77\137\x75\163\145\162\137\x70\162\157\146\151\154\x65", array($this, "\163\x68\x6f\167\x5f\165\x73\x65\x72\137\x70\162\157\x66\151\154\x65"));
if (!(get_option("\x6d\157\137\154\x64\141\x70\137\154\x6f\143\141\x6c\137\x61\165\x74\x68\157\162\151\x7a\x65\144\x5f\x75\x73\145\162\x73\137\x6f\156\x6c\x79") == 1)) {
goto FX;
}
add_action("\167\x70", array($this, "\x6d\x6f\x5f\154\144\141\160\137\154\x6f\143\x61\154\137\x6c\157\x67\151\x6e\137\162\x65\x64\151\162\145\x63\x74"));
FX:
if (!(get_option("\x6d\157\137\x6c\x64\141\160\137\x6c\157\x63\141\x6c\137\145\x6e\141\142\154\x65\x5f\x6c\157\x67\151\x6e") == 1)) {
goto Os;
}
remove_filter("\141\165\x74\x68\x65\x6e\x74\151\x63\x61\x74\145", "\167\x70\137\x61\165\164\x68\145\x6e\164\151\143\x61\164\x65\x5f\x75\x73\145\162\156\x61\155\145\137\160\x61\x73\163\167\157\162\x64", 20, 3);
add_filter("\141\x75\164\x68\145\x6e\x74\x69\x63\141\x74\x65", array($this, "\154\144\141\x70\137\x6c\157\147\x69\156"), 7, 3);
add_filter("\x6c\157\147\x69\156\137\162\145\x64\151\x72\145\x63\x74", array($this, "\x6d\157\137\x6c\x64\141\x70\137\154\x6f\x63\x61\154\137\x63\165\163\x74\x6f\155\x5f\162\x65\x64\151\162\145\143\x74"), 10, 3);
Os:
register_activation_hook(__FILE__, array($this, "\x6d\157\137\x6c\144\x61\x70\137\141\x63\164\151\166\x61\x74\145"));
}
function mo_ldap_local_custom_redirect($gJ, $zd, $user)
{
$iT = get_option("\x6d\x6f\137\154\144\x61\x70\137\x6c\x6f\x63\x61\154\137\x73\x6b\x69\160\137\x72\145\x64\151\x72\145\143\164\164\x6f\137\x70\x61\162\x61\x6d\x65\164\x65\x72");
if (array_key_exists("\162\145\x61\165\x74\150", $_REQUEST) && $_REQUEST["\x72\145\x61\x75\x74\x68"] == 1) {
goto bk;
}
if (!($iT && $iT == "\164\x72\165\x65")) {
goto H2;
}
update_option("\155\157\137\x6c\144\141\x70\137\x6c\x6f\x63\141\154\x5f\x73\x6b\151\160\137\x72\145\x64\151\162\x65\x63\164\164\157\137\x70\x61\162\141\155\x65\164\x65\x72", "\x66\141\x6c\163\x65");
return $gJ;
H2:
goto hi;
bk:
update_option("\155\x6f\x5f\154\144\141\x70\x5f\x6c\x6f\143\x61\x6c\x5f\163\x6b\151\160\x5f\162\x65\144\x69\x72\x65\x63\x74\x74\157\x5f\160\x61\x72\x61\x6d\145\x74\145\x72", "\164\x72\x75\145");
return $gJ;
hi:
$uw = get_option("\x6d\x6f\x5f\154\x64\x61\160\137\154\x6f\143\141\154\x5f\x72\x65\144\x69\162\145\143\x74\137\164\x6f");
if (!(isset($user->roles) && is_array($user->roles) && $uw != "\156\x6f\156\145")) {
goto nW;
}
if (in_array("\x61\x64\155\151\x6e\x69\x73\164\x72\x61\x74\157\162", $user->roles)) {
goto VW;
}
if (!$uw) {
goto XH;
}
if ($uw == "\x68\x6f\x6d\145\160\141\147\x65") {
goto HO;
}
if ($uw == "\x70\162\157\x66\x69\154\x65") {
goto eF;
}
if (!($uw == "\143\x75\163\x74\x6f\x6d")) {
goto SX;
}
$TX = get_option("\x6d\x6f\x5f\x6c\x64\141\x70\x5f\154\157\143\x61\154\x5f\143\x75\x73\x74\x6f\x6d\137\x72\145\144\151\162\145\143\x74");
$gJ = $TX;
SX:
goto Bg;
eF:
$kQ = home_url() . "\57\x77\x70\x2d\141\144\x6d\151\x6e\57\x70\x72\157\146\x69\154\145\56\x70\x68\160";
$gJ = $kQ;
Bg:
goto UZ;
HO:
$gJ = home_url();
UZ:
XH:
goto zE;
VW:
return $gJ;
zE:
nW:
return $gJ;
}
function mo_ldap_local_login_redirect()
{
if (is_user_logged_in()) {
goto kK;
}
auth_redirect();
kK:
}
function show_user_profile($user)
{
$Mh = array();
$G2 = wp_load_alloptions();
?>
<h3>Extra profile information</h3>
<table class="form-table">
<tr>
<td><b><label for="user_dn">User DN</label></b></td>
<td>
<b><?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: 22.2
Author URI: http://miniorange.com
*/
echo esc_attr(get_the_author_meta("\x6d\x6f\137\154\x64\141\160\x5f\x75\x73\145\162\x5f\x64\x6e", $user->ID));
?>
</b></td>
</td>
</tr>
<?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: 22.2
Author URI: http://miniorange.com
*/
if (!get_the_author_meta("\155\157\137\x6c\144\x61\160\137\165\163\x65\x72\137\x70\x68\157\x6e\x65", $user->ID)) {
goto Gl;
}
?>
<tr>
<td><b><label for="user_phone">User Phone Number</label></b></td>
<td>
<b><?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: 22.2
Author URI: http://miniorange.com
*/
echo esc_attr(get_the_author_meta("\x6d\x6f\x5f\154\x64\141\x70\x5f\x75\163\x65\x72\x5f\x70\150\x6f\156\145", $user->ID));
?>
</b>
</td>
</tr>
<?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: 22.2
Author URI: http://miniorange.com
*/
Gl:
foreach ($G2 as $Zh => $Kq) {
if (strpos($Zh, "\155\x6f\137\x6c\x64\141\x70\x5f\x6c\157\143\141\x6c\x5f\x63\x75\x73\164\157\x6d\137\x61\x74\164\x72\151\x62\x75\x74\x65\137") === false) {
goto Ra;
}
$Zy = get_user_meta($user->ID, $Zh, true);
if (empty($Zy)) {
goto Cr;
}
?>
<tr>
<td><b><font color="#FF0000"></font><?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: 22.2
Author URI: http://miniorange.com
*/
echo $Kq;
?>
</b></td>
<?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: 22.2
Author URI: http://miniorange.com
*/
if (is_array($Zy)) {
goto Vs;
}
echo "\x3c\164\144\76";
echo "\x3c\x62\76" . $Zy . "\x3c\57\x62\x3e\x3c\142\162\x3e";
echo "\74\x2f\164\x64\76";
goto B2;
Vs:
echo "\x3c\x74\144\x3e";
foreach ($Zy as $EJ) {
echo "\x3c\x62\x3e" . $EJ . "\x3c\x2f\142\76\74\x62\x72\x3e";
Yd:
}
mR:
echo "\x3c\x2f\164\144\x3e";
B2:
?>
</tr><?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: 22.2
Author URI: http://miniorange.com
*/
Cr:
goto ro;
Ra:
ro:
gM:
}
SD:
?>
</table>
<?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: 22.2
Author URI: http://miniorange.com
*/
}
function update_profile($hV, $Na = null)
{
$G2 = wp_load_alloptions();
$Mh = array();
$rq = array();
foreach ($G2 as $Zh => $Kq) {
if (strpos($Zh, "\155\x6f\137\154\x64\x61\x70\x5f\x6c\x6f\143\141\x6c\137\143\x75\163\x74\x6f\155\x5f\141\164\x74\162\x69\142\x75\x74\x65\x5f") === false) {
goto rr;
}
array_push($Mh, $Kq);
goto wO;
rr:
wO:
LY:
}
OZ:
$GG = 0;
rp:
if (!($GG < sizeof($Mh))) {
goto hs;
}
if (!isset($_POST[$Mh[$GG]])) {
goto Oj;
}
$rq[$Mh[$GG]] = $_POST[$Mh[$GG]];
Oj:
Wv:
$GG++;
goto rp;
hs:
$user = get_userdata($hV);
$km = new Mo_Ldap_Local_Config();
$km->modify_user_info_in_ldap($user, $rq);
}
function ldap_login($user, $G6, $ah)
{
if (!(empty($G6) || empty($ah))) {
goto Dv;
}
$ml = new WP_Error();
if (!empty($G6)) {
goto Lw;
}
$ml->add("\x65\x6d\160\x74\171\x5f\x75\x73\145\162\x6e\141\x6d\145", __("\x3c\163\x74\162\157\156\147\x3e\105\x52\x52\117\122\74\57\163\164\162\x6f\156\147\x3e\72\40\x45\x6d\x61\151\154\x20\146\151\145\x6c\144\40\151\163\x20\x65\x6d\160\164\x79\x2e"));
Lw:
if (!empty($ah)) {
goto zI;
}
$ml->add("\145\155\x70\x74\171\137\160\141\163\163\167\157\162\x64", __("\74\x73\164\x72\x6f\156\x67\76\x45\x52\x52\117\122\x3c\x2f\x73\164\x72\x6f\156\x67\x3e\x3a\x20\120\x61\x73\163\167\157\162\144\40\146\151\145\154\144\x20\151\163\x20\x65\155\x70\164\x79\56"));
zI:
return $ml;
Dv:
$km = new Mo_Ldap_Local_Config();
$TF = $km->ldap_login($G6, $ah);
if ($TF->statusMessage == "\x53\x55\103\103\105\123\x53") {
goto Xf;
}
if ($TF->statusMessage == "\x4c\104\101\x50\137\x4e\117\x54\137\x52\x45\x53\x50\117\x4e\x44\x49\x4e\x47") {
goto tY;
}
if ($TF->statusMessage == "\114\104\101\x50\x5f\x45\x52\x52\117\122") {
goto U7;
}
if ($TF->statusMessage == "\103\x55\x52\x4c\x5f\105\122\122\117\122") {
goto Qn;
}
if ($TF->statusMessage == "\x4f\120\x45\x4e\123\x53\x4c\137\105\122\122\117\122") {
goto Ay;
}
$this->mo_ldap_report_update($G6, $TF->statusMessage, "\74\163\164\x72\x6f\x6e\x67\76\x4c\x6f\147\x69\x6e\40\105\x72\x72\x6f\x72\72\x3c\57\x73\164\x72\x6f\x6e\x67\x3e\40\x49\x6e\166\141\154\x69\x64\x20\165\x73\145\162\x6e\x61\155\145\x20\x6f\x72\x20\x69\x6e\x63\x6f\x72\162\x65\143\x74\x20\160\x61\163\x73\x77\x6f\x72\144");
$Z4 = get_option("\155\157\x5f\154\144\x61\160\x5f\154\157\143\x61\x6c\x5f\x65\156\x61\142\x6c\145\x5f\142\x6f\x74\x68\137\x6c\157\x67\x69\x6e");
if (!empty($Z4)) {
goto oA;
}
$ml = new WP_Error();
$ml->add("\x63\157\x6e\x6e\145\x63\x74\x69\157\x6e\137\145\x72\162\x6f\x72", __("\x3c\x73\x74\162\157\x6e\x67\76\105\122\x52\x4f\x52\x3c\x2f\163\164\162\157\156\147\x3e\x3a\40\111\156\x76\141\154\151\x64\x20\x75\x73\145\162\156\x61\x6d\x65\40\x6f\x72\x20\151\x6e\143\x6f\162\x72\x65\143\164\40\x70\x61\x73\163\167\157\162\x64"));
return $ml;
goto Pe;
oA:
$user = false;
if (username_exists($G6)) {
goto f3;
}
if (!email_exists($G6)) {
goto qU;
}
$user = get_user_by("\145\x6d\141\151\154", $G6);
qU:
goto Bq;
f3:
$user = get_user_by("\154\x6f\x67\x69\156", $G6);
Bq:
if ($user) {
goto MK;
}
$this->mo_ldap_report_update($G6, "\x45\122\x52\117\122", "\74\x73\164\x72\157\x6e\147\76\114\x6f\147\151\156\40\x45\x72\162\157\x72\x3a\74\57\163\x74\x72\x6f\156\147\x3e\x20\x55\x73\145\162\x20\104\x6f\145\x73\40\116\157\164\x20\x45\x78\151\x73\x74");
$ml = new WP_Error();
$ml->add("\151\x6e\x63\x6f\162\162\x65\x63\x74\x5f\143\x72\x65\144\x65\x6e\164\151\141\154\x73", __("\74\163\164\x72\157\x6e\147\76\105\122\x52\117\122\x3c\x2f\x73\164\162\x6f\x6e\147\x3e\x3a\40\x49\x6e\166\x61\x6c\151\x64\x20\x55\x73\145\162\156\x61\x6d\145"));
return $ml;
goto R4;
MK:
$Iy = false;
if ($Z4 == "\141\154\x6c") {
goto Tg;
}
if (!($Z4 == "\x61\x64\x6d\x69\156" && user_can($user->ID, "\155\x61\156\141\147\x65\x5f\157\x70\164\151\157\156\163"))) {
goto e0;
}
$Iy = true;
e0:
goto AV;
Tg:
$Iy = true;
AV:
if ($Iy && wp_check_password($ah, $user->data->user_pass, $user->ID)) {
goto O9;
}
$ml = new WP_Error();
$ml->add("\151\156\143\157\x72\162\x65\x63\164\137\x63\x72\x65\144\x65\156\164\x69\141\154\x73", __("\x3c\163\164\162\157\x6e\147\76\105\122\x52\x4f\x52\74\57\x73\x74\162\157\156\147\76\72\x20\x49\x6e\x76\141\x6c\x69\144\x20\x55\x73\145\x72\x6e\x61\x6d\145\x2f\x50\x61\x73\163\x77\x6f\x72\x64\40\x63\157\x6d\x62\x69\156\x61\x74\x69\157\x6e"));
return $ml;
goto UJ;
O9:
return $user;
UJ:
R4:
Pe:
goto Da;
Ay:
$this->mo_ldap_report_update($G6, $TF->statusMessage, "\x3c\x73\x74\x72\157\156\147\x3e\114\x6f\147\151\x6e\x20\105\x72\162\157\x72\x3a\74\x2f\163\164\162\157\156\x67\76\x20\x3c\x61\40\164\141\162\147\x65\x74\x3d\x22\x5f\x62\x6c\x61\156\153\x22\x20\x68\162\145\146\75\42\150\164\x74\x70\72\57\57\x70\x68\160\x2e\x6e\x65\164\57\x6d\141\156\165\141\x6c\57\145\x6e\57\157\x70\145\156\163\163\x6c\x2e\x69\156\x73\164\141\x6c\x6c\141\164\x69\x6f\x6e\x2e\160\150\160\42\76\x50\x48\x50\x20\x4f\x70\145\x6e\123\123\x4c\x20\145\170\x74\x65\x6e\x73\151\157\x6e\x3c\57\141\76\x20\151\163\x20\156\x6f\x74\40\x69\x6e\x73\164\x61\x6c\154\145\x64\x20\157\162\40\x64\x69\x73\x61\142\x6c\x65\x64\x2e");
$ml = new WP_Error();
$ml->add("\x4f\x50\x45\116\x53\x53\114\x5f\105\x52\x52\x4f\122", __("\74\163\x74\x72\157\156\147\76\105\122\x52\117\x52\x3c\x2f\163\x74\162\x6f\x6e\147\x3e\x3a\x20\74\x61\40\x74\x61\162\147\x65\164\x3d\42\137\x62\x6c\141\x6e\153\42\x20\x68\x72\x65\x66\75\x22\x68\164\x74\x70\x3a\57\57\x70\150\160\x2e\x6e\x65\164\x2f\x6d\x61\156\x75\141\x6c\x2f\145\156\x2f\x6f\160\x65\156\163\163\x6c\x2e\151\x6e\x73\x74\x61\x6c\154\x61\x74\151\157\156\x2e\x70\150\x70\42\x3e\x50\110\120\40\x4f\160\145\156\123\123\x4c\40\145\170\x74\145\x6e\x73\151\157\x6e\x3c\57\141\76\x20\151\163\40\x6e\x6f\164\x20\151\x6e\x73\164\x61\154\154\145\144\40\157\162\x20\144\151\163\141\142\x6c\145\144\x2e"));
return $ml;
Da:
goto Zi;
Qn:
$this->mo_ldap_report_update($G6, $TF->statusMessage, "\x3c\163\x74\162\x6f\156\x67\x3e\x4c\157\x67\151\x6e\x20\x45\x72\162\157\162\72\74\57\163\x74\x72\x6f\x6e\x67\76\x20\74\141\40\150\162\145\x66\x3d\x22\150\x74\164\160\x3a\x2f\57\x70\150\160\x2e\156\145\x74\x2f\x6d\141\x6e\165\x61\x6c\x2f\145\156\57\143\x75\x72\x6c\56\151\156\x73\164\141\154\x6c\x61\x74\x69\157\156\56\x70\150\x70\x22\76\120\x48\x50\40\x63\125\122\114\x20\x65\170\x74\145\156\163\x69\x6f\156\x3c\57\141\76\40\x69\163\x20\156\157\164\40\x69\156\163\x74\x61\154\154\145\144\x20\x6f\162\x20\144\x69\163\141\x62\154\145\144\x2e");
$ml = new WP_Error();
$ml->add("\143\165\162\154\137\x65\162\x72\157\x72", __("\x3c\x73\164\162\x6f\156\147\76\105\x52\122\117\122\x3c\x2f\163\164\x72\x6f\156\x67\x3e\72\40\x3c\141\40\x68\x72\x65\x66\x3d\42\150\x74\x74\160\x3a\57\x2f\160\x68\160\x2e\156\x65\x74\x2f\x6d\141\x6e\x75\x61\x6c\57\x65\x6e\57\x63\165\162\x6c\x2e\151\156\x73\x74\141\x6c\x6c\141\164\151\157\x6e\x2e\x70\150\x70\42\x3e\x50\x48\120\x20\143\x55\122\114\40\145\170\x74\145\156\x73\x69\x6f\x6e\74\57\x61\x3e\40\151\x73\40\156\157\x74\40\x69\156\163\x74\141\x6c\154\x65\144\x20\157\x72\x20\x64\151\163\141\x62\x6c\145\144\56"));
return $ml;
Zi:
goto FP;
U7:
$this->mo_ldap_report_update($G6, $TF->statusMessage, "\74\163\x74\162\x6f\x6e\147\76\114\x6f\147\x69\156\x20\x45\x72\162\x6f\162\x3a\74\57\x73\164\x72\157\x6e\x67\76\40\74\x61\40\164\141\162\x67\x65\164\x3d\42\137\142\154\x61\156\153\42\x20\150\x72\x65\146\x3d\42\x68\164\164\160\x3a\x2f\57\160\150\160\x2e\x6e\145\164\57\155\141\156\165\141\x6c\57\145\156\57\x6c\144\141\x70\x2e\x69\x6e\x73\164\141\x6c\154\x61\x74\x69\157\x6e\56\160\150\160\42\x3e\x50\110\x50\40\x4c\x44\x41\120\x20\x65\170\x74\145\156\x73\x69\157\x6e\x3c\x2f\x61\x3e\40\x69\x73\40\156\157\164\x20\151\156\163\164\x61\x6c\154\145\144\x20\157\x72\40\x64\151\163\x61\x62\154\145\x64\x2e\40\120\x6c\145\x61\x73\x65\40\x65\156\x61\x62\154\x65\40\x69\x74\x2e");
$ml = new WP_Error();
$ml->add("\143\x75\x72\154\x5f\145\162\162\157\x72", __("\74\163\x74\162\x6f\156\x67\x3e\105\x52\122\117\122\x3c\x2f\x73\164\162\157\x6e\x67\x3e\72\40\x3c\141\x20\164\x61\x72\147\x65\164\75\42\x5f\x62\x6c\141\x6e\153\x22\40\150\x72\145\x66\75\x22\150\164\164\x70\x3a\57\x2f\160\x68\x70\x2e\156\x65\164\57\155\141\x6e\165\141\154\57\145\156\57\154\144\x61\160\x2e\151\x6e\163\x74\x61\154\154\x61\164\151\x6f\x6e\56\160\x68\160\x22\76\120\110\x50\40\x4c\104\101\x50\40\x65\x78\164\x65\x6e\x73\151\x6f\156\x3c\x2f\x61\x3e\x20\151\163\40\x6e\157\x74\x20\x69\x6e\x73\164\141\154\x6c\x65\x64\x20\157\162\x20\144\x69\163\x61\x62\x6c\x65\x64\56\40\x50\154\145\141\x73\145\40\145\x6e\141\142\x6c\x65\40\151\164\56"));
return $ml;
FP:
goto Ea;
tY:
$this->mo_ldap_report_update($G6, $TF->statusMessage, "\x3c\x73\164\x72\x6f\x6e\x67\x3e\114\157\147\x69\156\x20\105\x72\x72\157\x72\72\x20\x3c\x2f\x73\x74\x72\x6f\156\x67\76\x20\114\104\101\x50\x20\163\145\162\x76\145\x72\40\151\163\40\156\x6f\164\40\x72\145\163\x70\157\x6e\144\151\x6e\x67\x20");
$Z4 = get_option("\155\157\x5f\154\x64\141\x70\137\x6c\157\x63\x61\x6c\137\145\156\141\142\154\x65\137\142\x6f\x74\150\137\x6c\x6f\147\151\x6e");
if (!empty($Z4)) {
goto Cz;
}
$ml = new WP_Error();
$ml->add("\143\157\156\156\x65\143\164\151\157\156\137\145\162\162\157\x72", __("\74\x73\164\162\x6f\x6e\147\76\105\x52\x52\x4f\x52\x3c\x2f\163\x74\x72\x6f\156\x67\76\72\x20\x43\157\156\x6e\x65\x63\x74\151\x6f\156\x20\x65\x72\x72\x6f\162\x20\157\x63\x63\x75\x72\x72\145\x64\40\144\165\162\151\x6e\x67\x20\141\x75\x74\150\145\164\x69\x63\141\164\x69\157\156\56\x20\120\x6c\145\141\x73\x65\40\x63\157\156\164\141\x63\x74\40\x79\x6f\165\162\40\141\144\155\x69\x6e\x69\163\x74\162\141\164\157\x72"));
return $ml;
goto Hq;
Cz:
$user = false;
if (username_exists($G6)) {
goto ZW;
}
if (!email_exists($G6)) {
goto o5;
}
$user = get_user_by("\145\x6d\141\x69\154", $G6);
o5:
goto JD;
ZW:
$user = get_user_by("\154\x6f\x67\x69\156", $G6);
JD:
if ($user) {
goto OG;
}
$this->mo_ldap_report_update($G6, "\x45\122\122\117\122", "\x3c\x73\164\x72\157\x6e\x67\76\x4c\x6f\147\151\x6e\x20\x45\x72\162\157\162\72\74\x2f\163\164\x72\157\156\x67\76\40\125\163\x65\162\x20\104\157\x65\163\40\116\x6f\164\x20\105\170\151\163\164");
$ml = new WP_Error();
$ml->add("\x69\x6e\x63\157\162\x72\x65\x63\164\137\x63\162\145\x64\x65\156\x74\151\x61\x6c\x73", __("\74\x73\164\x72\x6f\156\147\x3e\x45\122\x52\x4f\x52\74\x2f\x73\x74\162\157\x6e\x67\x3e\x3a\x20\x49\x6e\x76\141\154\x69\144\x20\x55\x73\x65\x72\x6e\x61\155\145"));
return $ml;
goto oX;
OG:
$Iy = false;
if ($Z4 == "\x61\x6c\x6c") {
goto FC;
}
if (!($Z4 == "\x61\144\x6d\151\156" && user_can($user->ID, "\x6d\141\156\x61\147\145\x5f\157\x70\x74\x69\157\x6e\x73"))) {
goto tk;
}
$Iy = true;
tk:
goto ox;
FC:
$Iy = true;
ox:
if ($Iy && wp_check_password($ah, $user->data->user_pass, $user->ID)) {
goto Rj;
}
$this->mo_ldap_report_update($G6, "\x45\122\122\117\x52", "\74\163\x74\162\x6f\x6e\x67\x3e\x4c\157\x67\x69\x6e\40\x45\162\x72\157\x72\72\74\57\x73\164\x72\157\x6e\147\76\x20\x49\156\x76\x61\x6c\151\x64\40\x55\163\x65\162\x6e\141\155\145\57\120\x61\163\163\x77\x6f\162\144\x20\143\157\x6d\x62\151\156\x61\164\151\x6f\156");
$ml = new WP_Error();
$ml->add("\151\156\143\x6f\x72\x72\x65\x63\164\x5f\143\x72\x65\144\145\x6e\x74\151\141\x6c\x73", __("\74\163\164\x72\x6f\x6e\147\x3e\105\x52\x52\117\122\74\x2f\x73\x74\162\x6f\x6e\x67\76\72\40\111\156\x76\141\x6c\151\144\x20\125\x73\145\x72\x6e\x61\155\x65\x2f\120\x61\x73\x73\x77\x6f\162\x64\x20\143\157\x6d\142\x69\156\x61\x74\151\x6f\x6e"));
return $ml;
goto aD;
Rj:
return $user;
aD:
oX:
Hq:
Ea:
goto Z9;
Xf:
$hF = $TF->profileAttributesList;
if (username_exists($G6) || email_exists($G6)) {
goto hM;
}
if (!get_option("\x6d\157\x5f\154\x64\141\x70\137\x6c\157\143\x61\x6c\137\162\x65\147\x69\x73\164\x65\162\137\x75\x73\145\162")) {
goto AP;
}
error_log("\116\145\167\x20\x55\163\x65\162\x20" . $G6);
$Q3 = $km->get_user_ldap_info($G6);
$Yz = get_option("\155\157\x5f\154\144\141\x70\x5f\154\x6f\x63\x61\x6c\137\145\156\x61\x62\x6c\145\137\x66\141\x6c\154\x62\x61\143\153\137\x6c\157\x67\x69\156");
$KI = wp_generate_password(10, false);
if (get_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\154\157\x63\141\x6c\x5f\145\156\x61\x62\x6c\145\x5f\141\x74\164\162\137\155\x61\x70\160\151\156\147") == 1) {
goto tQ;
}
$n3 = '';
$NR = '';
$rd = '';
$Gc = '';
$LB = '';
goto Fe;
tQ:
$hF = $TF->profileAttributesList;
error_log("\x70\x72\x6f\146\x69\x6c\x65\x20\x61\164\164\x72\151\142\x75\164\145\x73" . print_r($hF, true));
$n3 = $hF["\155\141\151\154"];
$NR = $hF["\x66\156\x61\x6d\x65"];
$rd = $hF["\154\x6e\141\155\145"];
$Gc = $hF["\x6e\151\143\x6b\x6e\141\155\145"];
$LB = $hF["\160\150\157\x6e\145"];
Fe:
$pM = array("\x75\163\145\162\137\x6c\x6f\x67\151\156" => $G6, "\165\x73\x65\x72\x5f\145\x6d\141\151\x6c" => $n3, "\x66\151\162\x73\164\x5f\x6e\141\x6d\x65" => $NR, "\x6c\x61\163\164\x5f\156\x61\x6d\145" => $rd, "\156\x69\143\x6b\x6e\141\155\x65" => $Gc, "\165\x73\x65\x72\x5f\160\x61\x73\x73" => $KI);
if (empty($Gc)) {
goto I3;
}
$pM["\x6e\x69\x63\153\156\x61\x6d\x65"] = $Gc;
I3:
$WP = get_option("\155\157\x5f\154\x64\x61\160\x5f\154\157\143\x61\154\137\x64\x69\x73\x70\154\x61\171\x5f\156\141\155\x65\137\x61\x74\164\x72\x69\142\x75\x74\145");
if (empty($WP)) {
goto jz;
}
if (get_option("\155\157\x5f\154\144\x61\160\x5f\x6c\157\x63\141\x6c\x5f\144\151\163\x70\154\x61\x79\137\156\141\x6d\145\x5f\x61\x74\164\162\x69\x62\x75\164\145") == "\x6e\151\x63\153\x6e\x61\155\x65" && !empty($Gc)) {
goto Fi;
}
if (get_option("\x6d\157\137\154\x64\141\x70\x5f\x6c\x6f\x63\141\154\x5f\144\x69\x73\160\154\x61\171\137\x6e\141\155\145\x5f\x61\164\164\x72\x69\x62\x75\x74\145") == "\145\x6d\x61\151\154") {
goto tF;
}
if (get_option("\155\157\x5f\154\144\141\160\x5f\x6c\157\143\x61\x6c\137\x64\151\163\x70\x6c\x61\171\137\x6e\141\x6d\145\137\141\164\x74\162\x69\142\165\164\x65") == "\146\151\x72\163\x74\156\141\155\x65") {
goto gT;
}
if (get_option("\155\x6f\137\154\x64\x61\x70\137\x6c\157\143\141\x6c\137\144\x69\163\x70\154\x61\171\137\156\141\x6d\145\137\x61\164\x74\x72\x69\x62\165\x74\145") == "\x66\x69\x72\x73\164\154\x61\x73\x74") {
goto aC;
}
if (!(get_option("\155\x6f\137\x6c\144\x61\x70\137\x6c\x6f\143\x61\154\137\144\151\163\x70\154\x61\171\137\156\141\155\x65\137\x61\x74\164\x72\x69\x62\165\164\145") == "\x6c\141\x73\164\x66\151\162\x73\164")) {
goto xF;
}
$pM["\144\x69\163\160\x6c\141\x79\x5f\156\x61\155\x65"] = $rd . "\x20" . $NR;
xF:
goto UT;
aC:
$pM["\144\151\163\160\x6c\141\171\137\156\141\155\145"] = $NR . "\40" . $rd;
UT:
goto Rx;
gT:
$pM["\x64\151\x73\x70\x6c\x61\171\137\x6e\x61\x6d\x65"] = $NR;
Rx:
goto mF;
tF:
$pM["\144\x69\163\x70\154\141\x79\137\x6e\141\155\145"] = $n3;
mF:
goto Iy;
Fi:
$pM["\144\151\x73\160\x6c\x61\x79\137\x6e\141\x6d\x65"] = $Gc;
Iy:
jz:
error_log("\x4e\x65\167\x20\125\x73\145\x72\x20\104\x61\164\141\x20" . print_r($pM, true));
$hV = wp_insert_user($pM);
if (!is_wp_error($hV)) {
goto T8;
}
$this->mo_ldap_report_update($G6, $TF->statusMessage, "\x3c\x73\164\x72\x6f\x6e\147\76\x4c\x6f\147\x69\x6e\40\x45\162\x72\x6f\162\x3a\74\x2f\163\x74\x72\157\x6e\x67\76\x20\124\x68\145\162\x65\x20\x77\141\163\40\x61\x6e\40\145\162\162\157\x72\x20\x72\x65\x67\x69\163\164\145\x72\151\x6e\x67\40\171\157\165\x72\x20\141\x63\x63\157\165\x6e\164\56\x20\120\154\145\141\163\x65\x20\164\162\171\x20\x61\147\141\151\156\56");
$ml = new WP_Error();
$ml->add("\x72\145\x67\151\163\164\x72\141\x74\x69\157\x6e\137\x65\162\x72\157\162", __("\x3c\x73\x74\x72\157\156\x67\x3e\105\x52\122\x4f\x52\x3c\x2f\163\x74\162\157\156\147\x3e\72\x20\x54\150\145\162\x65\x20\x77\x61\163\40\x61\x6e\x20\x65\162\162\x6f\162\40\x72\145\147\x69\x73\164\145\x72\151\156\x67\40\171\x6f\165\162\x20\x61\x63\x63\x6f\165\156\x74\56\x20\120\x6c\x65\x61\x73\145\x20\x74\x72\x79\40\x61\x67\141\x69\156\x2e"));
return $ml;
goto lL;
T8:
$user = get_user_by("\154\157\x67\x69\x6e", $G6);
update_user_meta($user->ID, "\155\157\x5f\x6c\x64\141\x70\x5f\x75\163\x65\x72\x5f\144\156", $TF->userDn, false);
update_user_meta($user->ID, "\x6d\x6f\137\x6c\144\x61\160\x5f\x75\163\x65\162\137\x70\150\x6f\156\x65", $LB);
if (get_option("\x6d\x6f\137\x6c\x64\141\160\137\x6c\157\x63\x61\154\137\145\156\x61\x62\154\x65\x5f\141\164\x74\x72\137\x6d\141\x70\x70\151\156\147") == 1) {
goto WE;
}
$Mh = array();
goto ML;
WE:
$Mh = $TF->attributeList;
error_log("\103\x75\x73\x74\157\x6d\x20\x41\x74\164\162\x69\142\165\164\x65\163\40" . print_r($Mh, true));
ML:
update_user_meta($user->ID, "\155\x6f\137\154\x64\x61\160\137\143\165\163\164\157\155\137\142\x75\x64\x64\171\160\162\x65\x73\x73\x5f\141\164\x74\x72\151\x62\165\x74\x65\163", $Mh);
update_user_meta($user->ID, "\155\x6f\137\154\144\x61\160\x5f\x62\165\x64\144\171\x70\162\x65\163\x73\x5f\141\164\164\162\x69\x62\x75\164\x65\x73", $hF);
foreach ($Mh as $ai => $Kq) {
update_user_meta($user->ID, $ai, $Kq);
iK:
}
F0:
do_action("\155\157\137\154\144\x61\160\137\x62\165\144\144\x79\x70\162\145\163\x73", $Mh, $user);
do_action("\x6d\157\137\x6c\x64\141\x70\137\160\162\x6f\x66\151\154\145\x5f\x70\151\143\x74\x75\162\145\x5f\x6d\x61\160\160\151\156\x67", $user);
$mX = get_option("\155\x6f\x5f\x6c\x64\x61\x70\137\154\x6f\x63\141\154\x5f\145\156\141\142\154\145\x5f\162\x6f\154\x65\x5f\x6d\141\160\x70\x69\x6e\147");
error_log("\x65\156\x61\x62\x6c\x65\137\x72\x6f\x6c\145\137\155\141\x70\x70\x69\156\x67\x20" . $mX);
if (!($mX == 1)) {
goto f0;
}
$Xv = new Mo_Ldap_Local_Role_Mapping();
$SO = $Xv->get_member_of_attribute($G6, $ah);
error_log("\x43\165\162\162\145\x6e\164\40\x75\163\x65\x72\40\151\163\x20\120\162\x65\163\x65\156\x74\x20\x69\x6e\x20\164\x68\145\x20\146\157\x6c\x6c\157\167\151\x6e\147" . print_r($SO, true));
$Xv->mo_ldap_local_update_role_mapping($user->ID, $SO);
f0:
return $user;
lL:
goto Wm;
AP:
$this->mo_ldap_report_update($G6, "\x45\x52\122\117\x52", "\74\x73\x74\x72\157\x6e\147\x3e\114\157\x67\x69\x6e\40\105\162\x72\x6f\162\72\x3c\x2f\x73\164\x72\157\x6e\147\76\x20\x59\157\x75\162\x20\101\x64\x6d\x69\156\151\163\x74\x72\x61\x74\157\162\x20\x68\141\x73\x20\x6e\157\x74\x20\145\156\141\142\154\x65\x64\x20\x41\x75\164\x6f\x20\122\x65\147\151\x73\x74\162\141\x74\x69\x6f\156\x2e\40\x50\154\145\141\x73\x65\40\143\x6f\156\164\x61\x63\164\x20\x79\157\x75\x72\x20\x41\144\x6d\151\x6e\151\163\164\x72\x61\x74\157\x72\56");
$ml = new WP_Error();
$ml->add("\162\x65\x67\151\x73\x74\162\141\x74\x69\157\x6e\x5f\144\151\x73\x61\x62\154\x65\x64\137\x65\162\x72\x6f\162", __("\74\163\164\x72\157\x6e\147\76\105\x52\x52\117\122\74\x2f\163\x74\162\157\x6e\x67\76\x3a\x20\x59\157\165\x72\40\101\144\155\x69\x6e\151\x73\164\162\x61\164\157\162\x20\x68\141\163\40\156\x6f\164\x20\145\156\x61\142\154\145\x64\x20\x41\x75\x74\157\x20\122\x65\x67\x69\163\x74\162\x61\x74\x69\157\156\x2e\x20\x50\x6c\145\x61\163\145\40\143\x6f\156\x74\x61\143\164\x20\171\x6f\165\162\x20\101\144\155\151\156\x69\x73\x74\162\x61\164\x6f\x72\56"));
return $ml;
Wm:
goto IJ;
hM:
$user = false;
if (username_exists($G6)) {
goto FJ;
}
if (email_exists($G6)) {
goto bA;
}
if (!(isset($hF["\x6d\141\151\154"]) && email_exists($hF["\155\141\x69\x6c"]))) {
goto G_;
}
$user = get_user_by("\145\155\141\x69\x6c", $hF["\x6d\x61\x69\x6c"]);
G_:
goto dc;
bA:
$user = get_user_by("\145\x6d\141\x69\x6c", $G6);
dc:
goto bD;
FJ:
$user = get_user_by("\x6c\157\x67\151\156", $G6);
bD:
do_action("\x6d\157\x5f\154\144\141\160\137\x70\x72\x6f\x66\x69\154\145\137\x70\151\143\x74\x75\162\145\x5f\x6d\x61\x70\160\x69\156\x67", $user);
if ($user) {
goto FE;
}
$this->mo_ldap_report_update($G6, "\x45\x52\122\x4f\x52", "\74\163\x74\162\x6f\156\x67\x3e\x4c\157\x67\x69\156\40\105\x72\x72\157\x72\72\74\57\163\164\x72\157\x6e\147\76\x20\111\x6e\166\x61\154\x69\144\x20\x55\x73\x65\x72\156\141\x6d\x65\57\x50\x61\x73\x73\x77\157\162\x64\x20\x63\157\x6d\142\x69\x6e\141\x74\x69\157\156");
goto XG;
FE:
error_log("\125\163\x65\x72\x20" . $G6 . "\40\x45\170\151\x73\x74\x73");
update_user_meta($user->ID, "\155\x6f\x5f\154\x64\141\x70\137\142\x75\x64\144\171\160\162\145\x73\x73\137\141\164\x74\162\x69\142\x75\164\145\163", $hF);
$mX = get_option("\155\x6f\x5f\154\144\141\x70\137\154\x6f\143\x61\x6c\137\145\x6e\141\x62\154\x65\x5f\162\157\x6c\x65\137\x6d\141\160\160\151\x6e\147");
error_log("\145\156\x61\142\154\145\x5f\162\x6f\154\145\137\155\x61\160\160\151\x6e\x67\40" . $mX);
if (!($mX == 1)) {
goto YX;
}
error_log("\122\x6f\x6c\x65\x20\x4d\141\160\x70\151\156\x67\40\x69\x73\40\145\156\x61\142\154\145\x64");
$Xv = new Mo_Ldap_Local_Role_Mapping();
$SO = $Xv->get_member_of_attribute($G6, $ah);
error_log("\103\165\162\162\145\156\164\40\165\163\x65\162\x20\x69\x73\x20\x50\x72\x65\163\145\x6e\x74\x20\x69\156\x20\164\150\145\x20\146\x6f\x6c\154\x6f\167\151\156\147\x20\x47\x72\x6f\165\x70\x73\x3a\40" . print_r($SO, true));
$Xv->mo_ldap_local_update_role_mapping($user->ID, $SO);
YX:
update_user_meta($user->ID, "\x6d\x6f\x5f\x6c\x64\141\160\137\165\x73\x65\162\x5f\144\x6e", $TF->userDn, false);
update_user_meta($user->ID, "\x6d\x6f\137\154\144\x61\x70\137\x75\x73\x65\162\x5f\x70\150\157\x6e\x65", $hF["\160\150\x6f\156\145"]);
if (!(get_option("\x6d\157\137\154\x64\141\x70\137\x6c\157\x63\141\x6c\x5f\x65\x6e\x61\x62\154\x65\137\141\164\164\162\137\x6d\x61\x70\160\x69\156\147") == 1)) {
goto tD;
}
error_log("\101\x74\164\162\151\x62\165\164\145\x20\115\141\x70\x70\x69\156\147\40\151\x73\40\x65\156\x61\142\154\x65\144");
error_log("\x70\162\157\146\x69\154\x65\x5f\141\164\164\162\151\142\165\x74\145\x73\40" . print_r($hF, true));
$n3 = $hF["\155\141\151\x6c"];
$NR = $hF["\146\x6e\141\x6d\145"];
$rd = $hF["\154\x6e\x61\155\145"];
$Gc = $hF["\x6e\151\143\153\x6e\x61\155\145"];
$IE = array("\111\104" => $user->ID, "\165\163\x65\162\x5f\145\155\x61\x69\154" => $n3, "\146\151\162\x73\x74\x5f\156\141\x6d\145" => $NR, "\x6c\141\163\x74\137\156\141\x6d\145" => $rd);
$WP = get_option("\155\x6f\137\x6c\144\x61\x70\137\x6c\157\x63\141\x6c\137\144\x69\163\x70\154\x61\x79\137\156\x61\x6d\x65\137\x61\x74\x74\x72\151\142\165\164\145");
if (empty($WP)) {
goto Zb;
}
if (get_option("\x6d\157\137\154\x64\141\160\137\x6c\157\x63\141\x6c\137\144\x69\x73\160\x6c\141\x79\x5f\x6e\x61\155\145\137\x61\x74\164\x72\151\142\x75\164\x65") == "\156\151\x63\x6b\x6e\141\155\145" && !empty($Gc)) {
goto e7;
}
if (get_option("\x6d\x6f\137\x6c\x64\141\160\137\x6c\x6f\x63\141\154\137\x64\151\x73\x70\154\x61\x79\137\156\141\x6d\145\137\x61\x74\164\162\x69\x62\165\164\x65") == "\145\x6d\x61\151\154") {
goto JM;
}
if (get_option("\x6d\x6f\x5f\154\x64\x61\160\137\x6c\x6f\143\x61\154\x5f\144\151\163\160\154\x61\x79\x5f\x6e\x61\x6d\145\x5f\141\164\x74\x72\151\142\165\164\x65") == "\146\151\162\x73\164\156\x61\155\145") {
goto Bj;
}
if (get_option("\155\157\137\x6c\x64\141\160\x5f\154\x6f\143\141\x6c\137\144\x69\163\160\154\141\171\137\156\141\x6d\x65\137\x61\164\x74\162\x69\142\165\164\145") == "\146\151\162\163\x74\x6c\141\163\164") {
goto Ai;
}
if (!(get_option("\155\157\137\x6c\x64\141\x70\137\x6c\x6f\x63\x61\154\x5f\x64\x69\x73\160\x6c\x61\x79\137\x6e\141\155\x65\x5f\141\x74\164\x72\151\x62\165\x74\145") == "\x6c\141\163\164\x66\x69\x72\163\164")) {
goto lB;
}
$IE["\x64\151\x73\160\154\141\x79\x5f\156\141\155\145"] = $rd . "\x20" . $NR;
lB:
goto Y0;
Ai:
$IE["\144\151\x73\x70\x6c\141\171\x5f\156\x61\155\145"] = $NR . "\x20" . $rd;
Y0:
goto Zf;
Bj:
$IE["\144\151\163\160\154\x61\171\x5f\x6e\141\155\145"] = $NR;
Zf:
goto Nr;
JM:
$IE["\144\151\163\x70\x6c\x61\171\x5f\x6e\141\x6d\145"] = $n3;
Nr:
goto cN;
e7:
$IE["\144\151\x73\x70\154\x61\x79\x5f\156\x61\x6d\x65"] = $Gc;
cN:
Zb:
error_log("\x55\163\x65\162\40\104\x61\164\141\40\164\x6f\40\x75\160\x64\141\x74\x65\x20" . print_r($IE, true));
wp_update_user($IE);
update_user_meta($user->ID, "\x6e\x69\143\x6b\x6e\x61\155\145", $Gc);
$Mh = $TF->attributeList;
foreach ($Mh as $ai => $Kq) {
update_user_meta($user->ID, $ai, $Kq);
Cg:
}
CE:
tD:
update_user_meta($user->ID, "\155\x6f\x5f\x6c\x64\x61\x70\x5f\143\165\163\164\157\x6d\x5f\142\x75\144\x64\171\160\162\x65\163\163\x5f\x61\164\x74\x72\x69\x62\x75\164\145\163", $Mh);
do_action("\x6d\157\137\154\144\x61\160\137\142\165\144\x64\171\160\x72\x65\x73\163", $Mh, $user);
return $user;
XG:
IJ:
wp_redirect(site_url());
die;
Z9:
}
function mo_ldap_add_user($hV)
{
$xU = get_userdata($hV);
$km = new Mo_Ldap_Local_Config();
$km->add_user($xU);
}
function mo_ldap_local_login_widget_menu()
{
add_menu_page("\x4c\104\101\120\x2f\101\104\40\x4c\157\x67\x69\x6e\40\146\157\162\x20\x49\156\x74\x72\x61\x6e\x65\164", "\x4c\104\101\120\57\x41\104\x20\x4c\157\x67\x69\x6e\40\x66\x6f\x72\40\x49\156\x74\162\x61\156\x65\x74", "\x61\143\164\x69\166\x61\164\x65\x5f\160\x6c\165\147\x69\x6e\x73", "\155\157\x5f\x6c\x64\141\160\137\x6c\x6f\x63\x61\154\x5f\154\x6f\147\x69\156", array($this, "\x6d\157\x5f\x6c\x64\x61\160\137\154\x6f\143\141\x6c\x5f\x6c\x6f\x67\151\156\137\x77\x69\x64\147\x65\x74\137\x6f\x70\x74\151\157\x6e\163"), plugin_dir_url(__FILE__) . "\x69\156\143\154\x75\144\x65\163\x2f\x69\x6d\x61\147\x65\163\57\x6d\151\156\x69\157\x72\x61\x6e\147\145\137\151\143\157\156\56\160\156\x67");
}
function mo_ldap_local_login_widget_options()
{
$Gv = array("\163\x65\162\166\x65\162\x5f\x75\162\x6c" => "\x6c\x64\141\160\72\x2f\57\x35\70\x2e\66\x34\x2e\61\63\62\56\x32\63\x35\72\63\70\x39", "\163\x65\162\166\x69\143\x65\x5f\x61\x63\143\x6f\165\156\x74\x5f\x64\156" => "\143\x6e\75\164\145\163\x74\165\x73\x65\162\x2c\x63\156\x3d\x55\x73\145\x72\x73\54\144\x63\75\x6d\151\156\151\157\162\141\x6e\147\145\54\x64\x63\x3d\x63\157\155", "\141\144\155\151\x6e\x5f\x70\141\163\163\x77\157\x72\x64" => "\130\x58\x58\x58\x58\130\x58\130", "\x64\x6e\137\141\164\164\x72\x69\142\165\x74\x65" => "\x64\x69\163\x74\151\x6e\147\165\x69\163\x68\x65\144\x4e\x61\x6d\145", "\x73\x65\x61\x72\143\x68\137\142\141\163\145" => "\x63\x6e\75\x55\x73\x65\x72\163\54\144\x63\x3d\155\x69\x6e\151\157\x72\141\156\147\x65\54\x64\143\x3d\143\157\155", "\165\x73\x65\x72\x6e\141\x6d\x65\x5f\x61\x74\x74\x72\151\x62\x75\x74\x65" => "\x73\x41\x4d\101\x63\x63\157\165\x6e\x74\116\141\155\x65", "\x73\145\141\x72\x63\150\137\146\x69\154\164\145\162" => "\50\x26\50\x6f\142\152\x65\x63\164\x43\x6c\141\163\x73\x3d\52\51\x28\x63\156\75\x3f\51\x29", "\x74\x65\163\x74\137\165\x73\145\x72\156\141\155\145" => "\x74\145\x73\164\165\163\145\162", "\x74\x65\x73\x74\x5f\x70\141\x73\163\x77\x6f\162\x64" => "\160\141\x73\163\167\x6f\162\x64");
update_option("\x6d\157\x5f\x6c\144\141\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\x64\x65\146\141\165\154\x74\x5f\x63\157\156\146\x69\x67", $Gv);
mo_ldap_local_settings();
}
function login_widget_save_options()
{
if (!isset($_POST["\157\160\x74\x69\x6f\x6e"])) {
goto XM;
}
if ($_POST["\x6f\x70\164\x69\157\x6e"] == "\x6d\157\137\154\x64\x61\160\x5f\x6c\157\x63\x61\x6c\x5f\x72\145\147\x69\x73\164\x65\162\x5f\x63\x75\x73\164\157\155\145\x72") {
goto Qz;
}
if ($_POST["\x6f\160\x74\x69\157\156"] == "\x6d\157\x5f\154\144\x61\x70\x5f\154\157\143\141\154\137\x76\145\x72\151\x66\x79\x5f\x63\x75\x73\x74\x6f\155\145\162") {
goto r5;
}
if ($_POST["\157\x70\x74\x69\157\x6e"] == "\x6d\x6f\137\154\x64\x61\160\x5f\x6c\157\143\141\x6c\x5f\x65\x6e\141\142\x6c\145") {
goto T6;
}
if ($_POST["\157\160\164\151\x6f\x6e"] == "\x61\156\157\x6e\171\x6d\x6f\x75\163\137\x62\x69\156\144") {
goto Jp;
}
if ($_POST["\157\x70\x74\x69\157\156"] == "\165\163\145\x72\x5f\162\x65\x70\x6f\x72\x74\x5f\x6c\157\x67\x73") {
goto eE;
}
if ($_POST["\157\160\x74\151\157\x6e"] == "\x6b\145\x65\160\137\x75\x73\x65\x72\137\x72\x65\x70\x6f\162\164\x5f\x6c\157\147\x73\x5f\x6f\x6e\x5f\165\x6e\151\x73\x74\x61\154\154") {
goto eh;
}
if ($_POST["\x6f\x70\x74\x69\157\x6e"] == "\155\x6f\x5f\x6c\144\x61\x70\x5f\x6c\x6f\x63\141\x6c\137\x74\x6c\163\137\x65\x6e\141\x62\x6c\x65") {
goto Z0;
}
if ($_POST["\157\x70\164\x69\x6f\x6e"] == "\155\x6f\x5f\154\144\141\160\x5f\x6c\157\143\141\154\137\162\145\147\151\x73\x74\145\x72\137\165\x73\145\x72") {
goto eJ;
}
if ($_POST["\157\x70\164\x69\x6f\156"] == "\155\x6f\x5f\x6c\144\141\x70\137\154\x6f\143\x61\x6c\x5f\163\x61\x76\x65\137\143\x6f\x6e\146\151\x67") {
goto LH;
}
if ($_POST["\157\x70\164\x69\x6f\x6e"] == "\155\157\137\x6c\x64\x61\160\137\154\157\x63\141\x6c\x5f\x73\141\166\x65\137\165\163\145\x72\137\x6d\x61\160\160\x69\x6e\x67") {
goto fd;
}
if ($_POST["\x6f\x70\164\x69\x6f\x6e"] == "\x6d\157\x5f\154\144\141\x70\x5f\154\157\143\x61\x6c\137\164\x65\x73\x74\137\141\x75\164\x68") {
goto hT;
}
if ($_POST["\157\x70\164\x69\157\156"] == "\155\157\137\x6c\144\x61\x70\x5f\x6c\x6f\x63\141\x6c\137\x6c\157\147\x69\x6e\137\163\x65\x6e\144\137\x71\165\x65\162\171") {
goto Ry;
}
if ($_POST["\157\x70\164\x69\157\x6e"] == "\x6d\x6f\x5f\154\x64\x61\x70\x5f\154\157\x63\141\x6c\137\x72\145\163\x65\156\144\137\x6f\x74\160") {
goto k3;
}
if ($_POST["\157\160\164\x69\157\x6e"] == "\155\x6f\137\x6c\144\141\160\x5f\154\157\x63\x61\x6c\x5f\x76\141\x6c\x69\x64\141\x74\x65\x5f\x6f\x74\x70") {
goto i4;
}
if ($_POST["\157\x70\164\151\x6f\156"] == "\155\157\137\x6c\x64\141\x70\137\154\x6f\x63\141\x6c\137\160\151\156\147\137\x73\x65\x72\x76\x65\162") {
goto w3;
}
if ($_POST["\x6f\x70\164\151\x6f\x6e"] == "\x6d\x6f\137\154\x64\x61\160\x5f\154\x6f\143\x61\154\137\x65\156\x61\142\x6c\145\x5f\x72\157\154\145\x5f\x6d\141\160\x70\x69\156\x67") {
goto Lm;
}
if ($_POST["\x6f\x70\164\x69\157\156"] == "\x6d\x6f\137\x6c\x64\x61\x70\137\x6c\157\x63\x61\x6c\137\153\145\x65\160\x5f\x65\x78\x69\x73\x74\151\x6e\x67\137\x75\163\x65\x72\x5f\162\x6f\154\145\x73") {
goto jf;
}
if ($_POST["\157\x70\x74\151\157\x6e"] == "\x6d\157\x5f\x6c\x64\141\160\137\x6c\x6f\x63\141\x6c\137\x73\141\166\x65\137\155\141\160\160\151\156\147") {
goto Mu;
}
if ($_POST["\157\x70\164\151\x6f\x6e"] == "\155\157\137\x6c\144\141\x70\137\x73\141\x76\145\x5f\x61\164\164\x72\x69\142\x75\164\145\x5f\x63\x6f\156\x66\151\147") {
goto sd;
}
if ($_POST["\x6f\x70\164\151\157\x6e"] == "\x6d\157\137\154\x64\x61\x70\137\165\163\x65\162\137\x6d\141\156\141\147\145\x6d\145\156\164\x5f\143\x6f\x6e\x66\x69\147") {
goto bN;
}
if ($_POST["\157\x70\164\x69\x6f\x6e"] == "\155\157\137\154\x64\141\160\137\x64\x65\154\x65\164\x65\x5f\143\165\163\x74\x6f\155\137\141\164\x74\x72\x69\142\165\x74\145") {
goto P0;
}
if ($_POST["\x6f\x70\164\x69\157\156"] == "\155\x6f\x5f\x6c\x64\x61\x70\137\154\x6f\143\141\154\x5f\146\x61\x6c\154\142\141\143\153\x5f\154\x6f\x67\151\x6e") {
goto NB;
}
if ($_POST["\157\x70\x74\x69\157\x6e"] == "\155\x6f\x5f\x6c\x64\x61\x70\137\154\157\x63\x61\x6c\137\x63\x61\x6e\x63\x65\154") {
goto XR;
}
if ($_POST["\x6f\160\164\151\157\156"] == "\155\157\x5f\154\144\x61\x70\137\154\157\143\141\x6c\137\x70\150\x6f\x6e\145\x5f\x76\145\x72\151\x66\151\143\141\x74\151\x6f\x6e") {
goto vs;
}
if ($_POST["\157\160\x74\151\157\x6e"] == "\155\157\x5f\x6c\x64\x61\x70\137\154\157\143\x61\154\137\141\165\x74\x68\x6f\162\x69\172\145\x64\137\x75\163\x65\162\163\137\x6f\x6e\x6c\x79") {
goto JN;
}
if ($_POST["\x6f\160\164\x69\157\x6e"] == "\x6d\x6f\x5f\154\144\x61\160\x5f\160\x61\163\163") {
goto gh;
}
if ($_POST["\157\160\x74\151\x6f\x6e"] == "\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\x65\170\160\x6f\x72\x74") {
goto P7;
}
if ($_POST["\x6f\160\164\151\x6f\156"] == "\155\x6f\x5f\x6c\x64\x61\160\137\151\155\x70\157\162\x74") {
goto hx;
}
if ($_POST["\x6f\x70\164\x69\x6f\156"] == "\x6d\157\137\x6c\144\x61\x70\137\x6c\157\x67\151\156\x5f\x73\145\156\144\x5f\161\x75\x65\x72\171") {
goto O0;
}
if ($_POST["\x6f\x70\164\x69\x6f\x6e"] == "\155\157\x5f\154\x64\141\x70\137\x6c\157\147\x69\156\x5f\163\145\156\x64\137\x66\x65\141\164\165\162\x65\137\x72\145\161\x75\145\163\x74\x5f\x71\165\x65\162\x79") {
goto pu;
}
if ($_POST["\x6f\160\164\151\x6f\x6e"] == "\155\157\x5f\154\144\x61\x70\x5f\x6c\157\x63\x61\154\x5f\145\x6e\141\x62\x6c\145\137\x62\157\164\x68\x5f\154\157\147\151\x6e") {
goto J1;
}
if ($_POST["\157\160\164\151\x6f\x6e"] == "\155\x6f\137\154\144\x61\160\x5f\154\157\x63\141\x6c\x5f\163\x61\166\x65\137\154\x6f\x67\x69\156\137\162\x65\144\x69\162\145\143\x74") {
goto XW;
}
if (!($_POST["\157\x70\x74\151\x6f\x6e"] == "\155\157\x5f\154\x64\x61\160\137\154\x6f\143\141\x6c\137\143\165\163\x74\x6f\155\x5f\162\x65\144\151\162\145\x63\164")) {
goto Bc;
}
$TX = $_POST["\155\157\137\154\x64\x61\160\x5f\154\x6f\143\141\154\137\143\165\x73\164\x6f\155\137\x75\162\154"];
update_option("\155\x6f\137\154\x64\x61\x70\x5f\x6c\157\x63\x61\x6c\x5f\x63\165\163\164\x6f\x6d\x5f\162\145\144\x69\162\x65\x63\x74", $TX);
update_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\154\x6f\x63\x61\x6c\137\x6d\145\163\x73\141\x67\145", "\x55\163\x65\x72\163\x20\167\x69\x6c\154\40\147\x65\x74\40\162\145\x64\x69\162\x65\143\164\145\144\40\x74\x6f\x20\143\x75\x73\164\157\x6d\x20\162\145\144\x69\162\145\143\164\x20\125\122\114\x20\141\146\x74\x65\x72\x20\x6c\157\x67\x69\156");
$this->show_success_message();
Bc:
goto FO;
XW:
update_option("\x6d\157\137\154\144\141\x70\x5f\x6c\157\143\141\x6c\137\x72\145\144\151\x72\145\x63\164\137\x74\x6f", $_POST["\x72\145\144\x69\x72\x65\143\x74\137\164\x6f"]);
if ($_POST["\162\x65\144\x69\x72\x65\143\164\137\164\x6f"] == "\x70\162\157\146\151\154\145") {
goto PT;
}
if (!($_POST["\162\145\144\x69\162\145\x63\x74\137\164\157"] == "\150\x6f\x6d\x65\x70\x61\147\145")) {
goto zd;
}
update_option("\155\x6f\137\154\x64\141\160\137\154\157\143\141\x6c\137\x6d\145\163\163\141\147\145", "\x55\x73\145\162\163\x20\x77\151\x6c\154\40\x67\x65\x74\x20\x72\x65\144\x69\x72\x65\x63\164\145\x64\40\x74\x6f\x20\x68\157\x6d\145\160\x61\x67\x65\x20\x61\x66\x74\145\162\40\x6c\157\147\x69\x6e");
zd:
goto Zw;
PT:
update_option("\155\157\137\x6c\x64\141\160\x5f\x6c\x6f\143\141\x6c\x5f\x6d\145\163\163\141\147\x65", "\125\163\145\162\163\40\x77\x69\x6c\154\40\x67\x65\164\40\x72\145\x64\151\162\145\x63\164\x65\x64\40\164\x6f\x20\160\162\157\146\151\154\x65\x20\x70\141\x67\x65\40\x61\x66\x74\x65\x72\40\x6c\x6f\x67\x69\x6e");
Zw:
if ($_POST["\x72\x65\144\x69\x72\145\x63\164\x5f\x74\x6f"] != "\143\165\163\164\157\x6d" && $_POST["\x72\145\144\x69\x72\145\x63\x74\137\164\157"] !== "\x6e\x6f\156\145") {
goto VK;
}
if (!($_POST["\x72\x65\x64\x69\x72\x65\x63\164\x5f\x74\x6f"] == "\x6e\157\156\145")) {
goto cr;
}
update_option("\x6d\157\137\x6c\144\141\160\x5f\x6c\x6f\143\141\154\137\155\145\x73\163\x61\147\145", "\122\145\x64\x69\162\x65\143\164\x69\x6f\156\x20\x61\x66\164\145\162\40\154\157\147\x69\156\x20\151\163\x20\144\x69\163\x61\142\154\x65\144");
$this->show_error_message();
cr:
goto QG;
VK:
$this->show_success_message();
QG:
FO:
goto NH;
J1:
update_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\157\143\141\154\137\x65\156\x61\142\154\x65\x5f\142\x6f\x74\x68\x5f\x6c\x6f\x67\151\x6e", isset($_POST["\155\157\x5f\x6c\x64\x61\160\137\x6c\x6f\143\x61\154\137\x65\x6e\141\142\154\145\x5f\x62\x6f\x74\x68\x5f\154\x6f\x67\151\156"]) ? $_POST["\x6d\157\137\154\x64\141\160\x5f\154\x6f\x63\x61\154\x5f\x65\156\141\x62\154\145\137\x62\157\x74\x68\137\x6c\x6f\147\151\156"] : '');
$Y5 = get_option("\155\157\137\154\144\141\160\x5f\x6c\157\x63\141\x6c\x5f\x65\x6e\141\142\x6c\x65\x5f\142\x6f\164\150\137\154\157\147\151\156");
if ($Y5 == "\x61\144\x6d\151\x6e") {
goto lg;
}
if ($Y5 == "\x61\x6c\154") {
goto Qf;
}
update_option("\155\x6f\137\x6c\144\141\160\x5f\x6c\157\143\x61\x6c\137\x6d\x65\x73\x73\141\x67\145", "\114\157\x67\x69\156\x20\x75\163\151\x6e\x67\40\x4c\157\143\141\154\x20\x57\157\162\144\x70\x72\145\x73\x73\x20\x43\x72\x65\144\145\x6e\164\x69\x61\154\x73\40\151\x73\40\x3c\x62\x3e\x64\x69\163\x61\142\154\x65\x64\x3c\x2f\142\x3e");
$this->show_error_message();
goto um;
Qf:
update_option("\x6d\x6f\137\x6c\144\141\160\x5f\154\x6f\143\141\x6c\x5f\155\x65\163\x73\x61\147\x65", "\114\x6f\x67\151\156\40\x75\x73\x69\x6e\x67\40\114\157\x63\x61\154\40\127\x6f\x72\x64\160\162\145\x73\163\40\x43\x72\145\x64\x65\156\x74\151\141\154\x73\40\x66\x6f\162\x20\x3c\x62\76\x41\x6c\x6c\40\x55\163\145\162\163\x3c\57\142\x3e\40\x69\163\40\x65\x6e\141\x62\x6c\x65\x64");
$this->show_success_message();
um:
goto Pc;
lg:
update_option("\x6d\157\137\x6c\x64\141\x70\x5f\154\157\x63\x61\x6c\x5f\x6d\145\163\x73\141\x67\x65", "\114\x6f\x67\151\x6e\40\165\163\x69\x6e\x67\x20\x4c\157\x63\x61\x6c\x20\x57\157\x72\144\x70\162\145\163\x73\40\103\x72\x65\144\145\x6e\x74\151\141\154\x73\40\x66\x6f\162\40\x3c\142\76\x41\144\x6d\x69\156\x69\163\x74\x72\141\164\x6f\x72\163\74\x2f\x62\x3e\40\x69\x73\40\x65\x6e\141\142\154\145\144");
$this->show_success_message();
Pc:
NH:
goto QC;
pu:
$n3 = sanitize_text_field($_POST["\161\x75\145\162\x79\x5f\x65\155\x61\151\x6c"]);
$LB = sanitize_text_field($_POST["\161\165\145\x72\171\x5f\160\x68\x6f\156\145"]);
$hG = sanitize_text_field($_POST["\161\x75\x65\x72\171"]);
$ad = sanitize_text_field($_POST["\161\x75\x65\x72\171\x5f\x70\x6c\x75\x67\x69\156"]) ? sanitize_text_field($_POST["\161\165\145\x72\x79\x5f\x70\154\165\147\x69\156"]) : '';
update_option("\x71\165\x65\x72\171\137\x73\145\x6c\145\143\164\x65\144\137\x70\154\141\156", $ad);
$Bl = new Mo_Ldap_Local_Customer();
$yN = $Bl->submit_contact_us($n3, $LB, $hG);
delete_option("\161\x75\x65\x72\x79\x5f\x73\x65\154\145\143\164\145\144\x5f\x70\154\x61\156");
if (!empty($yN)) {
goto TM;
}
update_option("\x6d\157\x5f\x6c\144\141\160\x5f\154\x6f\143\x61\154\137\x6d\x65\x73\163\141\x67\145", "\x54\x68\145\162\x65\40\167\x61\x73\40\141\156\x20\145\x72\x72\157\x72\x20\163\145\x6e\144\x69\x6e\x67\40\x73\165\x70\160\x6f\x72\x74\x20\x71\165\145\162\171\56\x20\x50\x6c\145\x61\x73\x65\x20\165\x73\x20\141\x6e\x20\145\x6d\x61\151\x6c\40\x6f\156\x20\74\141\40\x68\x72\145\146\x3d\x6d\x61\151\x6c\164\x6f\72\151\x6e\x66\x6f\100\170\145\x63\165\162\151\146\171\x2e\x63\x6f\x6d\x3e\74\142\x3e\151\x6e\146\157\100\x78\145\x63\x75\x72\151\146\171\x2e\143\x6f\x6d\74\57\142\76\x3c\57\141\76\x2e");
$this->show_error_message();
goto RU;
TM:
if ($yN === "\61") {
goto zm;
}
update_option("\x6d\x6f\137\x6c\x64\141\x70\137\154\157\x63\x61\154\x5f\155\x65\x73\x73\x61\147\145", "\x59\x6f\165\x72\40\161\165\x65\162\x79\x20\x73\x75\x63\x63\145\163\163\146\165\x6c\154\171\x20\163\145\x6e\x74\56\74\142\x72\x3e\x49\x6e\x20\x63\141\x73\x65\40\167\145\x20\144\157\156\164\40\x67\x65\164\x20\142\141\x63\x6b\40\x74\x6f\40\171\x6f\165\x2c\x20\x74\x68\x65\x72\145\40\155\x69\147\150\x74\40\x62\x65\x20\x65\155\141\151\154\40\x64\145\x6c\151\166\x65\x72\x79\x20\146\141\151\154\x75\162\145\163\56\x20\x59\x6f\x75\40\143\x61\156\x20\163\x65\156\x64\40\x75\x73\40\145\155\141\151\154\40\x6f\156\40\x3c\x61\x20\150\162\145\146\75\155\x61\x69\x6c\164\x6f\x3a\x69\x6e\146\157\x40\x78\145\143\165\x72\x69\x66\x79\x2e\x63\x6f\155\76\x3c\142\76\x69\156\146\157\x40\x78\145\x63\165\162\151\146\171\x2e\143\157\155\74\57\142\76\74\x2f\x61\76\40\x69\x6e\x20\x74\x68\x61\164\40\x63\x61\163\145\x2e");
$this->show_success_message();
goto Gj;
zm:
update_option("\x6d\157\137\154\144\141\x70\x5f\x6c\157\143\141\x6c\137\x6d\145\163\163\x61\x67\145", "\120\154\145\141\x73\x65\40\154\145\164\x20\x75\x73\x20\153\156\x6f\x77\40\164\150\145\x20\x72\145\161\x75\151\x72\145\155\x65\156\x74\54\40\167\145\40\x77\x69\x6c\154\40\x68\145\x6c\160\x20\171\157\165\x20\164\x68\162\157\x75\x67\x68\x20\157\165\x74\x20\x69\164\56");
$this->show_error_message();
Gj:
RU:
QC:
goto yr;
O0:
$n3 = sanitize_text_field($_POST["\151\156\156\145\162\x5f\146\x6f\162\155\x5f\x65\155\141\151\154\x5f\x69\x64"]);
$LB = sanitize_text_field($_POST["\x69\156\x6e\145\162\137\x66\x6f\162\155\137\x70\x68\157\x6e\145\137\x69\x64"]);
$hG = sanitize_text_field($_POST["\x69\x6e\156\145\162\137\x66\157\162\x6d\137\x71\x75\x65\x72\x79\137\x69\144"]);
$Bl = new Mo_Ldap_Local_Customer();
$CX = $_POST["\145\x78\160\157\x72\164\137\x63\157\x6e\146\x69\x67\x75\162\141\x74\x69\x6f\x6e\x5f\x63\x68\157\x69\143\x65"];
if ($CX == "\x79\145\163") {
goto A9;
}
if ($CX == "\x6e\157") {
goto zj;
}
goto e5;
A9:
$Bm = $this->auto_email_ldap_export();
$Bm = implode("\x20\74\142\x72\76", $Bm);
$hG = $hG . "\x20\x2c\74\142\x72\x3e\74\142\162\76\x50\x6c\x75\x67\x69\156\40\x43\x6f\156\x66\x69\x67\165\162\x61\164\151\x6f\156\72\74\x62\162\x3e\40" . $Bm;
goto e5;
zj:
$Bm = "\x43\157\x6e\x66\x69\x67\165\162\141\164\x69\157\x6e\x20\x77\x61\x73\x20\156\x6f\164\40\x75\x70\x6c\157\141\144\145\x64\x20\142\x79\40\x75\163\x65\x72";
$hG = $hG . "\x20\x2c\x3c\x62\x72\x3e\x3c\142\162\x3e\x50\154\x75\x67\151\156\40\103\x6f\x6e\x66\151\x67\165\x72\141\x74\151\x6f\x6e\x3a\74\142\162\x3e\40" . $Bm;
e5:
$yN = $Bl->submit_contact_us($n3, $LB, $hG);
if ($yN) {
goto qs;
}
update_option("\x6d\157\x5f\x6c\x64\x61\160\x5f\x6c\x6f\143\x61\154\137\155\x65\163\x73\141\147\145", "\124\x68\145\162\145\x20\167\141\163\x20\141\x6e\x20\145\162\x72\x6f\x72\40\x73\145\156\x64\x69\x6e\x67\40\163\165\x70\160\157\162\164\x20\x71\x75\145\162\x79\56\40\x50\x6c\x65\x61\163\145\x20\163\145\x6e\x64\x20\x75\163\40\x61\156\40\x65\155\x61\x69\x6c\x20\157\x6e\40\74\x61\40\x68\162\x65\146\75\x6d\x61\x69\x6c\x74\x6f\72\151\x6e\x66\157\x40\170\x65\x63\x75\x72\151\146\171\x2e\143\157\155\76\74\142\76\151\x6e\146\157\x40\x78\145\143\165\x72\151\x66\x79\x2e\x63\157\155\74\x2f\142\76\74\x2f\x61\x3e\56");
$this->show_error_message();
goto QM;
qs:
update_option("\155\x6f\x5f\x6c\144\x61\160\x5f\x6c\157\x63\141\x6c\x5f\155\145\163\163\141\147\145", "\x53\x75\160\x70\x6f\162\164\40\x71\x75\x65\x72\171\40\163\165\143\143\x65\163\x73\x66\165\x6c\x6c\171\x20\x73\145\x6e\x74\56\x3c\142\162\76\111\x6e\x20\x63\x61\163\x65\40\x77\x65\x20\144\157\x6e\x74\40\147\x65\x74\40\142\141\143\x6b\40\x74\x6f\x20\171\157\x75\54\x20\164\x68\145\162\145\x20\155\151\147\x68\164\40\x62\x65\x20\145\x6d\141\x69\x6c\40\144\x65\x6c\151\x76\x65\x72\x79\40\x66\141\151\154\x75\162\x65\x73\56\x20\x59\157\x75\x20\143\x61\156\x20\x73\145\156\x64\x20\x75\x73\x20\x65\x6d\x61\x69\154\x20\157\156\40\x3c\x61\x20\150\x72\x65\146\x3d\x6d\x61\151\154\164\x6f\x3a\x69\x6e\x66\x6f\100\170\145\143\165\162\x69\x66\171\56\143\157\x6d\x3e\x3c\x62\76\151\x6e\146\x6f\x40\x78\x65\143\x75\162\151\146\171\x2e\143\157\155\x3c\x2f\x62\x3e\x3c\57\x61\76\x20\151\x6e\40\164\150\141\x74\40\143\141\163\145\56");
$this->show_success_message();
QM:
yr:
goto fy;
hx:
$Qp = $_FILES["\155\157\x5f\x6c\x64\x61\x70\x5f\x69\155\x70\x6f\x72\164\137\146\151\x6c\x65"]["\156\141\155\x65"];
$fG = $_FILES["\x6d\157\137\154\144\x61\x70\x5f\x69\155\160\157\162\x74\137\146\x69\x6c\x65"]["\x73\x69\x7a\145"];
$kC = $_FILES["\155\157\x5f\x6c\x64\x61\160\137\x69\155\160\x6f\x72\164\x5f\x66\151\154\x65"]["\x74\155\160\x5f\156\x61\155\x65"];
$u3 = $_FILES["\155\x6f\x5f\x6c\x64\141\160\x5f\x69\x6d\160\157\162\x74\137\x66\x69\154\x65"]["\x74\171\160\145"];
$Aj = strtolower(pathinfo($Qp, PATHINFO_EXTENSION));
if ($Aj == "\x6a\x73\157\x6e") {
goto bj;
}
update_option("\x6d\x6f\137\x6c\x64\141\x70\137\x6c\157\x63\x61\154\x5f\x6d\x65\x73\163\x61\x67\x65", "\111\156\143\x6f\162\162\145\143\x74\40\146\151\154\x65\40\x75\160\x6c\157\x61\x64\145\x64\x21\40\120\154\145\x61\x73\x65\x20\165\160\154\157\141\x64\x20\164\x68\145\x20\146\151\x6c\145\40\x74\x68\x61\164\40\167\141\x73\40\x65\170\x70\x6f\162\x74\x65\x64\40\146\162\x6f\x6d\x20\164\150\151\x73\40\160\x6c\x75\x67\x69\x6e");
$this->show_error_message();
goto B8;
bj:
$Du = file_get_contents($kC);
$ZA = json_decode($Du, true);
if (array_key_exists("\x6c\x64\x61\160\137\114\x6f\x67\x69\x6e", $ZA) && array_key_exists("\154\x64\141\160\x5f\143\157\156\146\151\147", $ZA) && array_key_exists("\x52\x6f\x6c\x65\x5f\x4d\x61\x70\160\151\x6e\x67", $ZA) && array_key_exists("\101\164\x74\162\151\142\165\x74\145\x5f\115\x61\160\160\x69\156\147", $ZA)) {
goto Ib;
}
update_option("\155\157\x5f\154\144\x61\x70\137\x6c\x6f\143\141\154\137\x6d\x65\163\163\x61\x67\145", "\x49\156\143\157\x72\x72\x65\x63\164\x20\146\151\x6c\x65\40\165\160\154\x6f\x61\x64\145\144\41\40\120\154\145\x61\163\145\x20\x75\160\154\x6f\141\144\x20\x74\150\145\x20\146\x69\x6c\x65\x20\x74\150\x61\x74\x20\x77\x61\x73\x20\145\170\x70\157\x72\x74\x65\x64\40\146\x72\157\155\x20\164\x68\151\163\40\160\154\165\x67\151\x6e");
$this->show_error_message();
goto Fo;
Ib:
$G2 = wp_load_alloptions();
foreach ($G2 as $Zh => $t0) {
if (strpos($Zh, "\x6d\x6f\x5f\154\x64\x61\160\x5f\154\x6f\143\141\x6c\x5f\x63\x75\x73\x74\157\x6d\x5f\141\164\x74\x72\x69\142\x75\x74\145\137") !== false) {
goto ip;
}
if (strpos($Zh, "\155\157\137\154\144\x61\160\x5f\154\157\x63\x61\154\137\155\x61\x70\160\151\x6e\x67\137\x6b\x65\171\x5f") !== false || strpos($Zh, "\x6d\x6f\x5f\154\144\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\155\141\160\x70\x69\156\147\137\166\141\154\x75\145\x5f") !== false) {
goto zN;
}
goto kz;
ip:
delete_option($Zh);
goto kz;
zN:
delete_option($Zh);
kz:
PA:
}
hZ:
delete_option("\155\157\x5f\x6c\x64\141\x70\137\x6c\157\x63\x61\154\137\163\x65\162\x76\145\162\137\165\x72\x6c\137\x73\x74\x61\164\165\x73");
delete_option("\155\157\x5f\x6c\144\141\160\137\x6c\x6f\x63\x61\154\x5f\x73\x65\162\x76\x69\143\145\x5f\141\143\x63\157\x75\156\x74\x5f\x73\x74\141\164\165\x73");
delete_option("\x6d\157\137\154\144\x61\x70\x5f\x6c\x6f\143\141\154\137\x75\x73\145\x72\137\x6d\141\160\x70\x69\156\x67\137\x73\x74\141\164\x75\x73");
delete_option("\155\157\137\154\144\141\160\137\154\157\143\141\154\x5f\165\x73\145\162\156\x61\x6d\145\137\x73\164\x61\x74\165\163");
delete_option("\x6d\157\137\154\x64\141\160\x5f\154\x6f\x63\x61\x6c\137\163\x65\162\166\145\162\x5f\160\141\x73\x73\167\157\162\x64");
delete_option("\155\x6f\x5f\x6c\144\141\160\137\154\157\x63\x61\x6c\137\x72\157\x6c\145\x5f\x6d\141\160\x70\151\156\x67\x5f\143\157\165\x6e\x74");
update_option("\155\157\x5f\154\144\x61\x70\x5f\154\157\143\141\x6c\x5f\x65\156\x61\x62\154\145\x5f\x6c\157\x67\x69\156", 0);
update_option("\x6d\157\137\x6c\x64\x61\160\137\x6c\157\143\x61\154\x5f\145\x6e\x61\x62\154\x65\137\162\157\x6c\x65\x5f\x6d\141\x70\x70\x69\156\x67", 0);
update_option("\x6d\x6f\x5f\x6c\144\141\160\137\154\x6f\143\x61\154\x5f\145\156\141\142\x6c\145\x5f\141\164\164\162\137\155\x61\x70\160\x69\x6e\147", 0);
update_option("\155\x6f\x5f\154\x64\x61\160\x5f\154\x6f\143\141\154\x5f\x65\156\141\142\x6c\x65\137\165\x70\144\141\164\145\137\x6c\144\141\x70", 0);
delete_option("\x6d\x6f\x5f\154\144\141\160\137\x6c\157\x63\141\154\137\145\x6e\x61\142\x6c\x65\x5f\x62\x6f\x74\x68\x5f\x6c\157\x67\151\156");
update_option("\x6d\157\x5f\154\144\141\x70\x5f\x6c\157\143\141\154\137\162\145\x67\x69\163\164\145\162\x5f\165\x73\x65\162", 0);
delete_option("\155\x6f\x5f\x6c\x64\141\x70\137\154\x6f\143\141\154\x5f\x72\145\144\x69\x72\145\143\x74\x5f\x74\157");
delete_option("\155\x6f\137\154\144\141\x70\137\154\157\143\141\x6c\x5f\x63\165\x73\x74\x6f\155\x5f\162\145\144\x69\162\x65\x63\164");
update_option("\155\157\137\x6c\x6f\x63\x61\154\137\146\151\x6c\164\x65\162\x5f\143\x68\x65\x63\153", 0);
update_option("\x6d\157\x5f\154\144\141\160\x5f\x6c\157\x63\x61\x6c\137\141\165\x74\150\x6f\x72\151\x7a\145\x64\137\x75\x73\145\x72\x73\137\x6f\156\154\x79", 0);
update_option("\155\157\x5f\154\144\141\160\137\154\157\143\141\x6c\x5f\153\145\145\x70\137\145\170\x69\163\x74\151\156\x67\137\165\163\145\162\137\x72\157\x6c\145\x73", 0);
delete_option("\155\x6f\137\x6c\144\141\x70\x5f\154\x6f\x63\141\154\x5f\165\x73\x65\x72\156\141\x6d\145\137\141\164\164\x72\x69\142\x75\x74\x65");
$ZM = unserialize(Tab_ldap_Class_Names);
foreach ($ZA as $nn => $P5) {
$UA = call_user_func($ZM[$nn] . "\x3a\72\x67\145\x74\x43\157\x6e\163\164\141\x6e\164\x73");
foreach ($UA as $fc => $Zh) {
if (!array_key_exists($fc, $P5)) {
goto TJ;
}
if (!($fc == "\x6d\141\160\160\151\156\x67\x5f\143\157\165\156\x74")) {
goto Sx;
}
$Q8 = $P5[$fc];
Sx:
if ($fc == "\122\x6f\154\145\x5f\155\141\x70\160\x69\156\x67\x5f\x6b\145\x79") {
goto Nd;
}
if ($fc == "\x52\x6f\154\145\137\155\141\x70\160\x65\x64\x5f\166\141\x6c\x75\145") {
goto wf;
}
if ($fc == "\143\x75\x73\164\157\x6d\137\x61\164\164\162\x69\142\165\164\145\137\x6e\x61\155\x65") {
goto wB;
}
$Kq = sanitize_text_field($P5[$fc]);
if (!($Zh == "\x6d\x6f\137\x6c\144\141\160\137\x6c\157\x63\141\x6c\137\163\145\162\166\x65\162\137\165\162\154" or $Zh == "\155\157\x5f\154\x64\141\x70\137\154\157\x63\141\154\x5f\x73\x65\x72\166\145\162\137\144\156" or $Zh == "\x6d\157\137\154\x64\141\x70\137\x6c\157\x63\141\154\137\x73\x65\141\162\143\150\x5f\x62\141\163\x65" or $Zh == "\155\157\137\154\144\141\160\137\x6c\x6f\143\x61\154\x5f\x73\145\141\x72\x63\150\x5f\146\x69\x6c\164\145\x72" or $Zh == "\x6d\x6f\137\154\x64\x61\160\x5f\x6c\157\143\141\154\x5f\165\163\145\x72\x6e\x61\155\145\x5f\141\x74\164\x72\151\x62\x75\x74\145")) {
goto Vn;
}
$Kq = Mo_Ldap_Local_Util::encrypt($Kq);
Vn:
update_option($Zh, $Kq);
goto uA;
wB:
$kF = sizeof($P5[$fc]);
$GG = 1;
Bt:
if (!($GG <= $kF)) {
goto AH;
}
$Kq = sanitize_text_field($P5[$fc][$GG]);
update_option("\155\157\137\x6c\x64\141\160\x5f\x6c\x6f\x63\x61\x6c\x5f\x63\165\x73\164\x6f\x6d\x5f\x61\x74\164\x72\x69\x62\x75\164\x65\x5f" . $Kq, $Kq);
va:
$GG++;
goto Bt;
AH:
uA:
goto px;
wf:
$GG = 1;
Ax:
if (!($GG <= $Q8)) {
goto lW;
}
$Kq = sanitize_text_field($P5[$fc][$GG]);
update_option($Zh . $GG, $Kq);
WR:
$GG++;
goto Ax;
lW:
px:
goto U6;
Nd:
$GG = 1;
i2:
if (!($GG <= $Q8)) {
goto tv;
}
$Kq = sanitize_text_field($P5[$fc][$GG]);
update_option($Zh . $GG, $Kq);
XN:
$GG++;
goto i2;
tv:
U6:
TJ:
Dx:
}
OI:
pm:
}
ke:
update_option("\155\157\137\x6c\x64\x61\160\137\x6c\x6f\x63\x61\x6c\137\155\x65\163\163\x61\x67\145", "\x54\150\145\40\146\151\154\x65\40\167\141\163\x20\x69\155\x70\157\162\164\x65\x64\40\x73\x75\x63\x63\145\163\x73\146\165\x6c\154\x79");
$this->show_success_message();
Fo:
B8:
fy:
goto gd;
P7:
$RW = get_option("\155\x6f\137\154\144\141\160\x5f\x6c\x6f\143\x61\x6c\x5f\x73\x65\x72\166\x65\162\137\165\x72\154");
if (!empty($RW)) {
goto dU;
}
update_option("\155\157\x5f\x6c\x64\141\x70\137\x6c\x6f\x63\x61\x6c\x5f\x6d\x65\x73\163\x61\147\x65", "\x4c\x44\101\x50\40\x43\157\156\x66\151\147\165\x72\141\164\x69\x6f\156\x20\x6e\x6f\x74\40\163\145\x74\x2e\x20\x50\x6c\x65\141\163\x65\40\x63\157\156\x66\151\x67\165\x72\x65\x20\x4c\104\x41\x50\40\x43\157\x6e\x6e\145\x63\164\x69\157\x6e\x20\163\145\164\x74\x69\x6e\147\x73\56");
$this->show_error_message();
goto Yc;
dU:
$this->miniorange_ldap_export();
Yc:
gd:
goto QZ;
gh:
update_option("\155\157\137\154\x64\141\x70\137\x65\170\160\x6f\x72\x74", isset($_POST["\145\156\141\x62\x6c\145\137\154\144\141\160\137\154\x6f\147\x69\156"]) ? 1 : 0);
if (get_option("\155\157\x5f\154\144\141\160\137\145\170\x70\x6f\x72\x74")) {
goto Im;
}
update_option("\155\157\x5f\x6c\144\x61\x70\137\x6c\157\143\141\154\x5f\155\x65\x73\x73\141\x67\x65", "\123\x65\162\166\151\143\145\x20\x61\143\143\x6f\x75\x6e\164\x20\160\141\163\x73\x77\157\x72\144\x20\x77\151\x6c\x6c\40\x6e\157\164\40\142\x65\40\x65\x78\x70\x6f\x72\x74\x65\x64\x2e");
$this->show_error_message();
goto X6;
Im:
update_option("\155\157\x5f\x6c\144\141\160\x5f\x6c\x6f\x63\141\x6c\x5f\155\145\x73\163\x61\147\x65", "\x53\145\162\x76\x69\143\x65\x20\141\x63\143\x6f\x75\156\164\40\160\x61\x73\x73\x77\x6f\162\144\40\x77\151\154\154\x20\142\145\x20\145\x78\x70\x6f\x72\x74\x65\144\40\151\x6e\40\x65\x6e\143\162\171\x70\164\x65\x64\x20\x66\x61\163\150\151\157\156");
$this->show_success_message();
X6:
QZ:
goto Su;
JN:
if (NddKoYsdasadJD()) {
goto rC;
}
update_option("\155\x6f\x5f\x6c\x64\x61\x70\137\154\x6f\143\x61\154\137\x6d\x65\x73\x73\x61\x67\145", "\x53\145\x74\164\x69\156\147\x73\x20\x63\141\156\47\164\x20\x62\x65\x20\x73\141\166\145\144\40\167\151\164\x68\x6f\165\x74\40\x76\145\x72\151\146\x79\151\x6e\147\40\x79\157\x75\x72\40\x6c\151\143\145\156\163\x65\40\x6b\x65\x79\56");
$this->show_error_message();
goto RX;
rC:
update_option("\155\157\x5f\x6c\144\141\160\137\154\x6f\x63\x61\154\x5f\x61\x75\x74\150\x6f\x72\151\172\x65\144\137\x75\163\x65\162\x73\x5f\157\x6e\154\171", isset($_POST["\141\x75\164\x68\x6f\x72\151\172\145\x64\137\x75\163\x65\162\x73\137\157\x6e\154\171"]) ? $_POST["\141\x75\164\150\x6f\x72\x69\172\145\144\x5f\165\x73\x65\162\x73\137\x6f\156\x6c\x79"] : 0);
if (get_option("\155\x6f\137\x6c\x64\x61\x70\137\154\157\x63\x61\x6c\x5f\x61\x75\164\150\157\x72\x69\172\145\x64\137\165\163\x65\x72\163\x5f\x6f\156\154\x79") == 1) {
goto W3;
}
update_option("\155\157\x5f\x6c\x64\141\x70\x5f\x6c\x6f\x63\141\154\137\x6d\x65\x73\x73\141\x67\145", "\120\x72\157\x74\x65\143\164\x20\x43\157\156\164\x65\156\164\x20\x62\x79\x20\114\x6f\147\x69\156\40\144\151\163\141\x62\x6c\145\x64\56");
$this->show_error_message();
goto c9;
W3:
update_option("\155\x6f\x5f\154\x64\x61\160\x5f\154\x6f\143\x61\154\137\155\x65\163\163\141\x67\x65", "\x50\x72\157\164\145\143\x74\40\x43\x6f\156\x74\145\156\164\x20\142\x79\40\x4c\x6f\x67\151\x6e\x20\145\156\x61\142\x6c\x65\144\56");
$this->show_success_message();
c9:
RX:
Su:
goto OX;
vs:
$LB = sanitize_text_field($_POST["\x70\x68\x6f\156\x65\137\x6e\x75\x6d\142\145\162"]);
$LB = str_replace("\x20", '', $LB);
$Bh = "\x2f\133\x5c\x2b\135\x5b\60\55\x39\135\173\61\x2c\63\x7d\x5b\x30\x2d\71\135\173\61\x30\x7d\x2f";
if (preg_match($Bh, $LB, $d4, PREG_OFFSET_CAPTURE)) {
goto fH;
}
update_option("\155\157\137\x6c\x64\141\160\x5f\154\157\x63\x61\154\137\155\145\x73\163\x61\x67\x65", "\x50\154\145\141\163\145\40\x65\x6e\164\x65\x72\x20\164\150\x65\40\x70\x68\157\x6e\145\40\x6e\165\155\x62\145\162\x20\151\x6e\x20\164\x68\145\x20\146\x6f\154\154\157\167\151\x6e\x67\x20\x66\157\x72\x6d\141\164\72\x20\74\142\x3e\53\x23\x23\x63\x6f\x75\x6e\x74\x72\171\x20\x63\x6f\x64\145\43\43\40\x23\43\x70\x68\157\156\145\40\x6e\x75\155\x62\145\162\43\x23");
$this->show_error_message();
goto pd;
fH:
$HO = "\123\115\123";
$Bl = new Mo_Ldap_Local_Customer();
$Qr = json_decode($Bl->send_otp_token($HO, $LB));
if (!($Qr->status == "\x53\x55\x43\x43\x45\123\123")) {
goto PG;
}
if (get_option("\x6d\157\137\154\x64\x61\x70\137\x6c\157\143\x61\x6c\137\163\x6d\163\x5f\143\x6f\x75\156\164") != null) {
goto no;
}
update_option("\155\x6f\x5f\x6c\144\x61\160\x5f\154\157\143\x61\154\x5f\x73\x6d\163\x5f\x63\x6f\x75\x6e\x74", 1);
update_option("\155\x6f\137\154\144\141\x70\x5f\x6c\157\143\141\154\x5f\155\145\163\x73\x61\x67\145", "\x4f\x6e\x65\40\124\x69\x6d\145\x20\120\x61\163\x73\x63\x6f\x64\x65\x20\150\141\163\x20\x62\145\x65\156\x20\163\x65\156\x74\40\x28\40\x3c\142\x3e\x31\74\x2f\x62\76\40\x29\40\x66\x6f\162\40\x76\x65\162\151\146\x69\143\141\x74\x69\157\156\40\x74\x6f\x20" . $LB);
goto LB;
no:
update_option("\155\x6f\x5f\154\x64\x61\x70\x5f\x6c\157\x63\x61\154\x5f\x73\x6d\163\137\143\157\165\156\x74", get_option("\155\x6f\137\x6c\144\141\160\137\154\x6f\143\141\154\137\x73\x6d\163\x5f\x63\157\165\156\164") + 1);
$RZ = get_option("\x6d\x6f\x5f\154\144\141\x70\137\154\157\143\141\154\137\x73\x6d\x73\x5f\143\157\165\x6e\x74");
update_option("\155\x6f\137\154\x64\141\x70\137\154\x6f\x63\x61\154\137\155\145\163\x73\141\x67\x65", "\x41\156\x6f\x74\x68\x65\x72\x20\x4f\156\x65\40\124\151\155\145\x20\120\x61\163\x73\x63\157\x64\145\40\x68\x61\163\x20\142\x65\x65\156\x20\163\x65\x6e\164\40\x3c\x62\x3e\50" . $RZ . "\x29\74\57\x62\76\x20\146\x6f\x72\x20\x76\145\x72\x69\146\x69\x63\141\164\x69\x6f\x6e\40\x74\x6f\x20" . $LB);
LB:
update_option("\x6d\x6f\x5f\154\x64\x61\160\137\154\x6f\143\x61\x6c\x5f\x74\x72\x61\156\x73\x61\143\164\x69\157\x6e\x49\x64", $Qr->txId);
$this->show_success_message();
PG:
pd:
OX:
goto VE;
XR:
delete_option("\155\x6f\x5f\154\x64\141\160\137\154\x6f\x63\141\x6c\137\x61\x64\x6d\x69\x6e\x5f\x65\x6d\x61\x69\154");
delete_option("\155\x6f\x5f\154\x64\141\160\x5f\x6c\157\143\x61\x6c\137\162\x65\147\x69\163\164\162\x61\x74\151\157\156\137\163\164\x61\x74\x75\163");
delete_option("\155\157\x5f\154\144\x61\160\x5f\154\x6f\x63\x61\154\137\x76\x65\162\x69\x66\x79\x5f\x63\165\x73\164\157\155\145\x72");
delete_option("\155\157\137\154\x64\x61\x70\137\x6c\157\143\x61\154\x5f\145\155\141\x69\154\137\x63\x6f\x75\x6e\x74");
delete_option("\155\157\x5f\154\x64\x61\160\x5f\x6c\x6f\143\141\154\137\163\155\163\x5f\143\x6f\165\x6e\164");
VE:
goto dw;
NB:
update_option("\155\x6f\x5f\x6c\x64\x61\160\137\154\157\x63\141\x6c\137\x65\156\141\x62\154\x65\x5f\x66\x61\154\x6c\142\x61\x63\153\x5f\x6c\157\x67\x69\156", isset($_POST["\155\157\x5f\x6c\144\141\160\x5f\x6c\157\143\141\x6c\x5f\145\x6e\141\142\154\x65\137\x66\141\x6c\x6c\x62\141\143\153\137\154\x6f\x67\151\x6e"]) ? $_POST["\155\x6f\137\154\x64\x61\x70\x5f\x6c\157\x63\141\x6c\137\145\156\x61\142\154\145\137\146\141\154\x6c\x62\x61\143\x6b\x5f\154\157\147\x69\x6e"] : 0);
update_option("\x6d\x6f\137\154\x64\141\x70\137\x6c\x6f\x63\x61\154\137\x6d\x65\x73\x73\141\147\145", "\106\x61\x6c\x6c\142\x61\x63\153\40\x6c\157\x67\x69\156\40\165\x73\151\156\x67\x20\x57\157\x72\x64\160\162\145\x73\x73\40\160\141\x73\163\167\157\162\x64\x20\x65\x6e\x61\x62\x6c\x65\144");
$this->show_success_message();
dw:
goto VU;
P0:
$if = sanitize_text_field($_POST["\x63\165\x73\164\x6f\155\137\x61\164\x74\x72\151\142\165\x74\145\137\x6e\x61\x6d\145"]);
$jU = "\155\x6f\137\x6c\x64\141\160\x5f\x6c\157\x63\141\x6c\137\143\165\x73\164\x6f\155\137\141\164\164\162\x69\x62\x75\x74\x65\x5f" . $if;
delete_option($jU);
do_action("\x6d\157\x5f\x6c\144\141\x70\x5f\x62\x75\144\x64\171\160\162\145\163\x73\x5f\165\160\x64\141\164\145\137\x61\164\164\162\151\142\x75\164\x65\137\155\x61\160\x70\x69\x6e\147", $if);
update_option("\x6d\x6f\x5f\154\144\x61\160\x5f\x6c\157\x63\141\154\x5f\155\x65\x73\x73\x61\147\x65", "\x53\165\143\143\x65\x73\163\146\165\x6c\154\171\40\144\x65\x6c\x65\x74\145\40\x63\165\x73\164\x6f\155\40\x61\x74\x74\162\x69\142\x75\x74\x65\72\40\x3c\142\x3e" . $if . "\74\x2f\142\x3e");
$this->show_success_message();
VU:
goto Kf;
bN:
$K4 = sanitize_text_field($_POST["\x6d\157\x5f\x6c\144\141\x70\x5f\156\145\x77\x5f\165\163\x65\162\137\154\x6f\143\141\x74\151\157\x6e"]);
$OH = sanitize_text_field($_POST["\x6d\157\x5f\154\x64\141\x70\x5f\157\x62\x6a\x65\143\164\x63\154\x61\x73\x73\137\x61\x74\x74\x72\151\142\x75\x74\145"]);
update_option("\x6d\157\137\x6c\x64\x61\160\x5f\x6c\157\x63\x61\x6c\137\156\145\167\x5f\165\163\145\x72\137\x6c\157\x63\141\164\151\x6f\x6e", $K4);
update_option("\155\x6f\137\154\x64\141\x70\137\x6c\157\143\141\x6c\x5f\157\x62\x6a\145\143\x74\x63\154\141\163\x73\137\x61\x74\164\x72\x69\x62\x75\x74\x65", $OH);
update_option("\155\x6f\x5f\x6c\x64\x61\x70\x5f\154\157\143\x61\154\x5f\x6d\x65\x73\x73\x61\x67\145", "\x53\165\143\143\x65\x73\163\146\165\x6c\154\x79\40\163\141\x76\x65\144\40\125\163\145\162\40\115\x61\156\141\x67\145\155\x65\156\x74\40\103\157\x6e\146\x69\x67\x75\x72\x61\x74\151\x6f\156");
$this->show_success_message();
Kf:
goto U1;
sd:
$Mh = array();
foreach ($_POST as $fc => $Kq) {
if (strpos($fc, "\155\157\137\154\144\141\160\137\154\157\143\141\x6c\x5f\x63\165\163\164\x6f\155\x5f\x61\164\x74\x72\151\x62\165\164\x65\x5f") === false) {
goto cY;
}
array_push($Mh, $fc);
goto KI;
cY:
KI:
zg:
}
iT:
error_log("\x54\150\x65\40\x63\165\163\164\x6f\x6d\40\101\164\x74\x72\151\142\165\164\145\163\x20\141\x72\x65\40\141\163\40\x46\x6f\x6c\x6c\x6f\x77\x73\x3a\x20" . print_r($Mh, true));
if (isset($_POST["\155\157\137\x6c\144\x61\x70\137\x6c\x6f\x63\x61\x6c\x5f\145\x6e\141\142\x6c\145\137\141\x74\164\x72\137\x6d\x61\160\160\151\156\147"])) {
goto b8;
}
update_option("\x6d\157\x5f\x6c\144\x61\x70\137\x6c\157\x63\x61\x6c\137\x65\x6e\x61\x62\x6c\145\x5f\x61\x74\x74\x72\137\x6d\141\160\x70\151\156\147", 0);
update_option("\155\x6f\137\154\144\141\x70\x5f\154\157\x63\141\154\x5f\145\156\x61\x62\154\x65\137\x75\x70\x64\x61\x74\145\137\x6c\x64\x61\x70", 0);
goto kD;
b8:
update_option("\155\x6f\x5f\154\144\x61\160\137\x6c\157\143\141\x6c\137\x65\156\x61\x62\154\x65\x5f\x61\164\x74\x72\137\155\x61\x70\160\x69\x6e\147", $_POST["\155\x6f\x5f\154\144\x61\x70\137\154\157\x63\x61\154\x5f\x65\x6e\141\x62\x6c\145\137\141\x74\164\162\137\x6d\141\160\x70\x69\x6e\147"]);
update_option("\x6d\157\137\x6c\x64\x61\x70\x5f\154\x6f\143\141\x6c\x5f\145\156\x61\x62\x6c\145\137\165\160\x64\x61\164\145\x5f\x6c\144\x61\160", isset($_POST["\x65\x6e\x61\142\154\x65\137\x75\160\x64\141\x74\145\x5f\154\144\141\160"]) ? $_POST["\145\156\141\142\154\145\137\165\160\x64\x61\164\145\137\154\x64\141\x70"] : 0);
kD:
$bN = sanitize_text_field($_POST["\x6d\x6f\x5f\154\144\x61\160\x5f\x65\155\141\151\x6c\137\x61\164\164\162\x69\142\165\x74\x65"]);
$eJ = sanitize_text_field($_POST["\x6d\x6f\x5f\x6c\x64\141\x70\x5f\160\150\x6f\156\145\137\x61\x74\164\162\151\x62\165\x74\145"]);
$Ko = sanitize_text_field($_POST["\155\x6f\x5f\154\x64\x61\x70\x5f\x66\156\141\155\145\x5f\x61\x74\164\x72\151\x62\165\x74\145"]);
$KX = sanitize_text_field($_POST["\x6d\157\137\154\x64\x61\160\137\154\156\141\155\145\137\x61\164\164\162\151\142\x75\x74\145"]);
$La = sanitize_text_field($_POST["\155\157\x5f\x6c\144\x61\160\137\156\x69\x63\153\x6e\x61\155\145\137\141\x74\164\162\x69\142\x75\x74\145"]);
$WP = sanitize_text_field($_POST["\x6d\x6f\137\154\144\141\160\137\x64\151\x73\x70\154\141\x79\x5f\156\141\155\x65\137\141\164\164\162\x69\x62\x75\x74\x65"]);
$ZG = isset($_POST["\x6d\157\x5f\x6c\x64\x61\x70\x5f\x75\x73\x65\162\137\x65\156\141\142\154\x65\x64\137\x61\x74\164\162\x69\142\x75\x74\x65"]) ? $_POST["\155\x6f\137\x6c\144\x61\160\137\165\163\x65\162\137\x65\156\141\x62\x6c\145\144\137\141\164\x74\162\151\x62\x75\164\x65"] : 0;
update_option("\155\x6f\137\154\x64\141\160\137\x6c\x6f\143\141\154\x5f\x65\x6d\141\151\154\x5f\x61\164\x74\162\x69\142\165\164\x65", $bN);
update_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\154\157\143\141\x6c\x5f\160\150\157\x6e\145\137\x61\164\x74\162\151\x62\x75\x74\x65", $eJ);
update_option("\x6d\157\x5f\154\x64\x61\x70\137\x6c\x6f\x63\141\154\x5f\x66\x6e\141\155\x65\x5f\x61\x74\164\x72\151\142\x75\x74\x65", $Ko);
update_option("\155\157\x5f\x6c\144\x61\x70\137\x6c\157\x63\x61\154\137\154\x6e\x61\155\x65\137\141\x74\164\x72\x69\x62\x75\164\145", $KX);
update_option("\x6d\x6f\x5f\154\x64\x61\160\137\154\x6f\143\141\x6c\x5f\x6e\151\x63\x6b\156\x61\155\x65\137\141\164\164\x72\151\142\165\164\x65", $La);
update_option("\155\157\137\x6c\x64\141\160\137\154\x6f\x63\141\x6c\x5f\144\x69\x73\160\x6c\x61\171\x5f\156\x61\155\x65\137\x61\x74\x74\x72\x69\142\x75\164\145", $WP);
update_option("\155\x6f\137\x6c\144\141\160\x5f\154\157\x63\141\154\137\165\163\x65\162\137\x65\x6e\x61\142\154\145\144\x5f\x61\x74\164\x72\x69\142\165\x74\145", $ZG);
foreach ($Mh as $ai) {
if (!(isset($_POST[$ai]) and $_POST[$ai] != '')) {
goto z2;
}
if (get_option($ai) == null) {
goto R0;
}
$r1 = strtolower(sanitize_text_field($_POST[$ai]));
goto kC;
R0:
$r1 = "\155\x6f\x5f\154\144\141\x70\137\x6c\x6f\x63\141\154\x5f\x63\165\163\x74\157\x6d\x5f\141\164\164\162\151\142\x75\x74\145\x5f" . strtolower(sanitize_text_field($_POST[$ai]));
kC:
update_option($r1, strtolower(sanitize_text_field($_POST[$ai])));
z2:
Ns:
}
Lk:
update_option("\x6d\157\x5f\x6c\144\141\160\137\x6c\157\143\141\x6c\137\155\x65\163\x73\141\147\145", "\x53\165\x63\x63\x65\x73\x73\x66\165\154\x6c\171\x20\x73\x61\166\x65\x64\x20\114\x44\x41\120\x20\x41\164\164\x72\151\142\x75\x74\x65\x20\x43\x6f\x6e\146\x69\147\x75\x72\x61\x74\x69\157\156");
$this->show_success_message();
U1:
goto m_;
Mu:
error_log("\123\141\166\x69\x6e\x67\40\x52\157\x6c\145\x20\115\141\x70\160\151\156\147\40\103\157\156\x66\151\x67\x75\162\141\x74\151\157\156");
$li = 0;
$GG = 1;
$Q8 = get_option("\x6d\157\137\x6c\144\x61\160\x5f\154\157\x63\x61\x6c\x5f\x72\157\x6c\x65\x5f\155\141\160\x70\151\x6e\x67\137\143\157\165\156\x74");
error_log("\x43\165\162\162\x65\156\x74\40\x4d\141\160\x70\151\x6e\147\x20\103\157\x75\156\164\40\x69\163\72\40" . $Q8);
yT:
if (!isset($_POST["\155\141\160\160\x69\x6e\x67\137\153\x65\x79\137" . $GG])) {
goto JK;
}
if (empty($_POST["\155\x61\x70\160\151\x6e\x67\x5f\153\x65\171\137" . $GG])) {
goto xb;
}
$li++;
update_option("\155\x6f\137\154\144\x61\x70\137\154\157\143\141\x6c\x5f\x6d\x61\x70\160\151\156\147\137\x6b\x65\x79\x5f" . $li, trim($_POST["\155\x61\160\x70\151\x6e\x67\137\153\145\171\137" . $GG]));
update_option("\155\x6f\x5f\x6c\144\x61\x70\x5f\x6c\157\143\141\154\137\155\141\x70\160\x69\156\x67\137\166\x61\x6c\165\145\x5f" . $li, $_POST["\x6d\141\x70\x70\x69\156\x67\137\166\x61\x6c\x75\x65\x5f" . $GG]);
xb:
$GG++;
goto yT;
JK:
error_log("\x41\x64\144\145\x64\x20\x4d\x61\160\160\151\x6e\147\40\x63\157\165\x6e\164\72\40" . $li . "\x20\x4d\x61\160\160\x69\x6e\x67\x20\103\157\x75\x6e\164\72\x20" . $Q8);
if (!($li < $Q8)) {
goto zb;
}
$GG = $li + 1;
Hr:
if (!($GG <= $Q8)) {
goto AJ;
}
delete_option("\155\157\137\x6c\x64\141\x70\x5f\154\x6f\x63\x61\154\x5f\155\x61\x70\x70\x69\x6e\x67\x5f\x6b\145\171\x5f" . $GG);
delete_option("\155\x6f\x5f\154\144\x61\x70\137\154\157\x63\141\x6c\137\155\x61\160\160\151\x6e\x67\x5f\x76\x61\154\165\x65\137" . $GG);
$GG++;
goto Hr;
AJ:
zb:
update_option("\x6d\157\137\154\144\x61\160\137\x6c\157\x63\141\x6c\x5f\162\157\154\145\x5f\155\x61\x70\160\x69\x6e\147\x5f\x63\x6f\165\156\x74", $li);
if (!isset($_POST["\155\141\x70\x70\x69\x6e\x67\137\x76\x61\154\x75\x65\x5f\144\x65\146\x61\x75\154\x74"])) {
goto v5;
}
update_option("\155\x6f\137\x6c\144\x61\160\137\x6c\157\x63\x61\x6c\137\155\x61\x70\x70\151\x6e\147\x5f\x76\141\x6c\165\x65\x5f\x64\145\146\x61\165\154\164", $_POST["\155\x61\160\x70\151\156\x67\137\166\141\x6c\x75\145\137\144\x65\x66\x61\165\x6c\x74"]);
v5:
if (!isset($_POST["\x6d\x61\160\x70\151\156\147\137\155\x65\155\142\145\162\x6f\x66\x5f\x61\164\x74\x72\151\142\x75\x74\145"])) {
goto ga;
}
update_option("\155\157\137\x6c\x64\141\160\x5f\154\x6f\x63\141\154\137\x6d\x61\x70\x70\151\156\x67\x5f\x6d\145\155\142\x65\x72\x6f\x66\x5f\x61\164\x74\x72\x69\x62\165\x74\145", $_POST["\155\141\x70\x70\x69\156\x67\x5f\x6d\145\155\142\145\x72\157\x66\137\x61\164\164\x72\x69\x62\165\164\145"]);
ga:
$T3 = '';
if (get_option("\155\x6f\137\154\x64\x61\x70\137\154\x6f\143\141\154\137\145\156\141\142\154\145\x5f\162\x6f\x6c\x65\x5f\155\x61\160\160\151\x6e\x67")) {
goto q3;
}
$T3 = "\x20\x50\154\x65\141\163\x65\x20\x63\x68\145\x63\x6b\x20\x3c\x62\76\x22\x45\x6e\141\142\154\145\x20\122\x6f\x6c\145\x20\x4d\x61\160\x70\x69\156\147\42\x3c\x2f\142\76\40\164\x6f\x20\141\x63\x74\151\166\141\164\x65\40\151\x74\56";
q3:
update_option("\x6d\157\x5f\154\144\141\160\137\x6c\157\143\x61\x6c\137\155\145\x73\163\141\x67\145", "\x4c\104\x41\120\40\107\x72\x6f\165\160\40\x74\x6f\40\x57\120\40\162\x6f\x6c\x65\40\155\141\160\160\151\x6e\147\x20\x68\x61\163\x20\x62\145\145\156\x20\x75\x70\x64\x61\164\145\144\56" . $T3);
$this->show_success_message();
m_:
goto DX;
jf:
update_option("\155\x6f\x5f\x6c\x64\x61\160\137\x6c\157\x63\141\x6c\x5f\153\x65\x65\160\x5f\x65\x78\x69\163\x74\151\x6e\147\137\x75\x73\x65\162\137\162\157\154\145\163", isset($_POST["\x6b\145\x65\160\x5f\x65\x78\x69\x73\164\151\x6e\x67\137\x75\163\x65\162\137\x72\x6f\x6c\x65\163"]) ? $_POST["\153\x65\145\160\x5f\x65\x78\x69\163\164\x69\x6e\x67\137\165\163\x65\x72\137\x72\x6f\154\x65\x73"] : 0);
if (get_option("\155\x6f\137\154\144\x61\160\x5f\x6c\x6f\143\x61\x6c\x5f\153\x65\145\160\x5f\145\170\151\163\x74\151\156\x67\x5f\x75\163\x65\x72\137\162\157\154\145\x73")) {
goto Ds;
}
update_option("\155\157\137\154\144\x61\160\137\x6c\157\x63\141\x6c\x5f\x6d\145\163\x73\141\147\145", "\127\120\x20\122\157\x6c\x65\x73\x20\157\x66\40\x45\x78\x69\x73\x74\151\x6e\147\x20\165\x73\x65\x72\x73\40\x77\x69\154\x6c\x20\x62\145\40\165\160\x64\141\x74\145\x64\56");
$this->show_error_message();
goto lh;
Ds:
update_option("\155\x6f\137\154\144\x61\160\137\x6c\157\143\x61\154\137\155\145\x73\163\x61\147\145", "\127\120\x20\122\157\x6c\145\163\40\157\146\x20\x45\170\x69\163\164\151\x6e\x67\x20\165\163\145\x72\163\40\x77\x69\x6c\x6c\x20\x6e\157\164\x20\142\x65\x20\x72\x65\x6d\x6f\166\145\144\x2e");
$this->show_success_message();
lh:
DX:
goto uX;
Lm:
update_option("\155\157\137\154\x64\141\160\137\154\157\x63\141\154\137\145\156\141\x62\x6c\x65\137\162\157\x6c\145\x5f\x6d\141\x70\x70\151\x6e\147", isset($_POST["\x65\x6e\141\x62\154\145\137\154\x64\x61\x70\x5f\x72\157\x6c\145\137\x6d\141\160\x70\x69\156\x67"]) ? $_POST["\x65\x6e\141\142\x6c\145\137\x6c\x64\141\x70\x5f\162\157\154\145\x5f\x6d\141\x70\x70\x69\156\147"] : 0);
if (get_option("\155\x6f\x5f\154\x64\x61\160\x5f\154\x6f\143\141\154\137\x65\156\141\142\154\x65\137\162\157\x6c\x65\x5f\x6d\x61\160\x70\151\156\147")) {
goto HY;
}
update_option("\x6d\157\137\x6c\144\x61\x70\137\154\x6f\143\141\154\x5f\155\x65\163\x73\141\x67\x65", "\114\x44\101\x50\40\107\x72\157\165\x70\x20\164\157\40\127\120\40\x72\x6f\154\x65\x20\155\x61\160\x70\x69\156\x67\40\150\141\x73\40\142\145\145\x6e\x20\x64\151\x73\141\x62\x6c\145\144\56");
$this->show_error_message();
goto LV;
HY:
update_option("\155\157\137\154\144\x61\x70\137\154\x6f\143\x61\x6c\137\x6d\x65\x73\x73\x61\147\145", "\x4c\x44\x41\x50\x20\107\x72\157\x75\160\x20\x74\157\40\x57\x50\40\162\x6f\x6c\145\x20\x6d\x61\160\160\x69\156\x67\x20\x68\141\x73\x20\x62\145\145\156\40\x65\x6e\x61\x62\154\145\x64\56");
$this->show_success_message();
LV:
uX:
goto f5;
w3:
update_option("\x6d\x6f\137\154\144\141\x70\137\x6c\157\143\141\154\137\x61\156\x6f\156\x79\x6d\x6f\x75\163\x5f\142\151\156\144", isset($_POST["\141\156\157\156\x79\155\x6f\165\x73\x5f\142\x69\x6e\144"]) ? $_POST["\141\x6e\157\x6e\171\x6d\157\x75\163\137\x62\x69\156\144"] : 0);
delete_option("\x6d\x6f\x5f\154\x64\x61\x70\137\x6c\157\x63\141\154\x5f\x6d\145\x73\163\141\x67\145");
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\154\x64\x61\x70\x5f\x73\x65\162\166\145\162"])) {
goto N2;
}
$Bt = sanitize_text_field($_POST["\154\x64\141\160\137\163\145\162\x76\145\x72"]);
update_option("\x6d\x6f\137\154\144\141\x70\x5f\x6c\157\143\x61\x6c\137\163\145\162\x76\145\162\x5f\165\162\x6c", Mo_Ldap_Local_Util::encrypt($Bt));
N2:
$RW = sanitize_text_field($_POST["\154\144\141\160\x5f\163\145\x72\x76\x65\x72"]);
$km = new Mo_Ldap_Local_Config();
$Z9 = $km->ping_ldap_server($RW);
if (strcasecmp($Z9, "\x53\x55\103\103\105\123\x53") == 0) {
goto OQ;
}
if (strcasecmp($Z9, "\114\x44\101\120\137\x45\x52\x52\x4f\122") == 0) {
goto io;
}
$C5 = str_replace("\x6c\144\141\160\72\x2f\57", '', $RW);
$C5 = str_replace("\x6c\x64\141\x70\163\x3a\57\x2f", '', $C5);
$IU = explode("\x3a", $C5);
if (!isset($IU[0])) {
goto fE;
}
$C5 = $IU[0];
fE:
$Yv = "\x45\x72\162\157\x72\x20\143\x6f\156\x6e\145\x63\x74\x69\156\x67\x20\x74\x6f\x20\x4c\x44\x41\120\40\x53\145\x72\x76\x65\x72\56\x20\120\154\145\x61\x73\x65\40\143\x68\x65\x63\x6b\x20\x79\x6f\165\x72\x20\x4c\104\x41\x50\40\163\145\x72\x76\x65\162\x20\x55\122\114\x20\74\142\76" . $RW . "\x3c\57\142\x3e\56\74\142\162\76\120\x6f\163\x73\151\x62\x6c\x65\40\x72\x65\x61\x73\157\156\163\x20\55\74\x62\x72\76\x31\56\40\114\104\x41\120\x20\125\x52\114\x20\151\x73\x20\164\171\x70\x65\x64\x20\151\156\143\x6f\162\x72\145\143\x74\154\171\56\40\x54\171\160\145\40\x69\164\x20\160\x72\157\160\145\162\154\171\54\40\145\x69\164\150\x65\162\x20\x77\151\164\150\x20\x49\x50\40\141\144\144\x72\x65\163\x73\x20\157\162\40\x77\151\x74\x68\40\x66\165\154\x6c\171\40\161\165\x61\x6c\x69\146\x69\x65\144\40\144\157\x6d\x61\x69\156\x20\x6e\141\x6d\x65\x2e\x20\x42\x6f\x74\150\40\163\150\x6f\x75\x6c\x64\x20\x77\x6f\162\153\x2e\40\105\147\x2e\40\x3c\x62\76\x6c\144\x61\160\x3a\x2f\x2f\65\70\x2e\66\64\56\61\63\62\56\x32\63\x35\x3a\63\x38\x39\x3c\x2f\142\76\x20\x6f\162\x20\74\x62\76\x6c\x64\141\x70\x3a\57\x2f\x6c\144\141\x70\56\x6d\x69\156\x69\x6f\x72\x61\156\x67\x65\x2e\143\x6f\x6d\72\x33\x38\x39\x3c\57\142\x3e\x2e\74\x62\x72\76\62\x2e\x20\x4c\x44\x41\120\40\x73\145\x72\x76\145\x72\40\151\x73\x20\x75\156\162\x65\x61\x63\150\141\x62\x6c\x65\40\55\x20\x4f\160\x65\156\x20\141\x20\143\x6f\155\155\x61\x6e\x64\40\x70\x72\x6f\155\x70\x74\40\141\156\x64\x20\x73\x65\145\x20\151\x66\x20\171\157\x75\40\x61\x72\145\x20\141\x62\x6c\145\40\x74\x6f\40\x70\151\x6e\147\40\x74\x68\145\40\x79\157\x75\162\x20\x4c\104\101\120\x20\x73\x65\x72\166\145\x72\40\50\x65\56\147\x2e\x20\x74\171\x70\x65\x20\164\150\x69\163\x20\143\157\155\155\x61\x6e\x64\40\157\156\x20\141\40\143\x6f\155\x6d\x61\156\x64\x20\160\x72\x6f\x6d\x70\x74\x20\x3c\142\x3e\x70\x69\x6e\147\40" . $C5 . "\x3c\57\142\x3e\x2e\x20\x49\146\40\x70\x69\156\147\x20\151\x73\x20\163\165\x63\143\x65\x73\x73\x66\165\154\40\x74\x68\x65\156\40\157\156\x6c\171\40\47\x63\157\x6e\164\x61\x63\164\40\x6c\144\141\x70\x20\x73\x65\x72\166\x65\162\x27\40\x77\151\154\154\40\x77\x6f\x72\x6b\x2e\x3c\x62\x72\x3e\63\x2e\x20\124\150\145\162\x65\x20\151\x73\x20\x61\x20\x3c\x62\76\x66\151\162\x65\167\141\154\154\74\57\x62\76\x20\151\156\x20\x62\145\x74\167\x65\x65\x6e\x20\55\x20\x69\146\40\x74\150\x65\x72\x65\x20\151\163\40\141\40\146\151\x72\145\x77\141\x6c\x6c\x2c\x20\x70\x6c\145\x61\x73\145\40\x6f\160\x65\156\40\164\x68\145\x20\146\x69\x72\x65\167\141\x6c\154\x20\x74\x6f\40\141\x6c\154\157\x77\x20\151\x6e\143\157\x6d\151\x6e\147\40\162\x65\x71\x75\145\163\164\x73\40\164\x6f\x20\x79\x6f\165\162\x20\x4c\x44\101\x50\x20\146\x72\157\155\40\x79\x6f\x75\x72\x20\x77\157\x72\x64\160\162\x65\x73\x73\x20\111\x50\40\x61\156\144\x20\160\x6f\162\x74\x20\63\x38\71\x2e";
$nj = "\x45\x72\x72\x6f\162\x20\x63\157\x6e\x6e\x65\143\151\x6e\147\40\163\145\162\x76\145\162\x20" . $RW;
add_option("\155\x6f\137\154\144\x61\160\x5f\154\x6f\143\x61\x6c\x5f\x6d\x65\163\163\x61\x67\145", $Yv, '', "\x6e\157");
$this->show_error_message();
goto ru;
io:
$Yv = "\x3c\141\40\164\141\162\x67\x65\164\x3d\47\x5f\x62\x6c\x61\156\153\47\40\x68\162\x65\x66\x3d\47\x68\x74\x74\160\72\x2f\x2f\x70\x68\x70\56\x6e\145\x74\x2f\x6d\141\x6e\x75\141\x6c\x2f\x65\x6e\x2f\x6c\x64\x61\160\x2e\151\156\163\164\x61\x6c\x6c\141\x74\x69\157\156\56\160\150\x70\x27\x3e\120\110\120\40\x4c\104\101\x50\x20\x65\x78\x74\x65\156\163\151\x6f\x6e\74\57\x61\76\40\151\x73\x20\x6e\x6f\x74\40\x69\156\163\x74\x61\x6c\154\x65\144\40\157\162\x20\x64\x69\163\141\142\x6c\x65\x64\x2e\40\x50\x6c\145\x61\x73\x65\40\x65\x6e\x61\142\x6c\145\x20\x69\x74\x2e";
$nj = "\114\104\x41\120\x20\145\170\x74\145\x6e\163\151\157\156\40\x6e\157\164\40\x69\156\163\164\141\x6c\x6c\145\144\40\146\x6f\x72\x20\163\145\162\x76\x65\x72\x20" . $RW;
add_option("\x6d\157\x5f\154\x64\x61\160\137\x6c\157\143\141\x6c\x5f\155\x65\163\x73\x61\x67\x65", "\114\x44\101\120\40\105\x78\x74\x65\156\163\151\x6f\x6e\x20\151\x73\x20\x64\x69\163\141\x62\154\145\x64\x3a\40" . $Yv, '', "\156\157");
$this->show_error_message();
ru:
goto pk;
OQ:
$Yv = "\123\x75\143\143\145\163\163\146\x75\154\154\x79\40\143\157\156\x74\141\143\x74\145\144\x20\114\x44\x41\120\x20\123\145\162\166\145\162\x2e\x20\x50\x6c\x65\141\x73\145\x20\x63\157\x6e\x66\151\147\x75\x72\145\40\171\x6f\x75\x72\40\123\145\x72\x76\151\143\x65\x20\x41\143\x63\x6f\165\x6e\x74\40\156\x6f\x77\x2e";
$nj = "\x53\x75\x63\143\145\163\163\146\x75\154\x6c\171\x20\x63\x6f\156\164\141\143\x74\145\144\40\114\104\x41\120\40\123\145\x72\166\x65\x72\x20" . $RW;
add_option("\155\157\x5f\154\x64\x61\x70\x5f\x6c\x6f\x63\141\154\x5f\155\145\x73\x73\141\147\145", $Yv, '', "\x6e\157");
$this->show_success_message();
pk:
f5:
goto og;
i4:
$sQ = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x6f\164\x70\x5f\164\x6f\153\x65\156"])) {
goto mh;
}
$sQ = sanitize_text_field($_POST["\157\x74\160\137\164\157\x6b\x65\156"]);
goto yY;
mh:
update_option("\155\157\137\154\144\x61\x70\x5f\x6c\157\x63\141\x6c\x5f\155\x65\163\163\x61\147\145", "\x50\x6c\145\141\163\145\40\145\x6e\x74\x65\162\x20\141\40\166\141\154\x75\145\x20\x69\x6e\40\157\164\160\40\146\x69\x65\154\144\x2e");
update_option("\155\157\137\x6c\144\141\x70\137\154\157\143\x61\x6c\137\x72\x65\147\x69\163\164\x72\x61\x74\x69\x6f\x6e\137\163\x74\x61\x74\165\163", "\x4d\x4f\137\117\x54\120\x5f\x56\x41\114\111\104\101\124\x49\117\116\137\106\x41\111\114\x55\x52\x45");
$this->show_error_message();
return;
yY:
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->validate_otp_token(get_option("\x6d\157\137\154\x64\141\160\x5f\154\157\x63\x61\x6c\137\164\162\141\156\x73\x61\143\x74\151\x6f\156\x49\x64"), $sQ), true);
if (strcasecmp($aK["\163\164\x61\164\x75\163"], "\123\125\x43\103\x45\x53\123") == 0) {
goto he;
}
if (strcasecmp($aK["\163\x74\x61\164\165\x73"], "\103\x55\122\x4c\x5f\x45\122\x52\x4f\122") == 0) {
goto Xx;
}
update_option("\x6d\x6f\137\x6c\144\x61\x70\x5f\x6c\x6f\143\141\154\x5f\155\145\x73\x73\x61\147\145", "\111\x6e\166\x61\154\x69\x64\x20\x6f\x6e\145\x20\164\x69\x6d\145\40\x70\x61\163\163\x63\157\x64\x65\x2e\x20\120\x6c\145\x61\x73\x65\x20\145\156\x74\x65\x72\40\141\x20\166\x61\154\x69\x64\40\x6f\164\x70\56");
update_option("\x6d\157\x5f\x6c\144\141\x70\137\154\157\x63\x61\154\137\x72\145\x67\x69\x73\x74\162\141\x74\x69\157\156\137\x73\x74\141\x74\x75\163", "\x4d\x4f\137\117\124\x50\x5f\126\x41\x4c\111\x44\101\x54\111\x4f\116\137\106\x41\x49\114\x55\x52\105");
$this->show_error_message();
goto cm;
Xx:
update_option("\155\157\137\154\x64\141\x70\137\x6c\x6f\x63\x61\154\137\x6d\145\163\x73\x61\147\x65", $aK["\163\164\141\164\x75\163\x4d\x65\163\x73\x61\x67\145"]);
update_option("\155\x6f\137\154\x64\x61\160\x5f\x6c\x6f\143\141\154\137\162\145\147\x69\x73\x74\162\x61\x74\151\157\x6e\x5f\x73\164\x61\x74\x75\163", "\x4d\x4f\137\117\124\120\x5f\x56\101\114\x49\x44\x41\124\x49\117\116\x5f\106\101\111\x4c\x55\x52\105");
$this->show_error_message();
cm:
goto qI;
he:
$Bl = new Mo_Ldap_Local_Customer();
$oV = json_decode($Bl->create_customer(), true);
delete_option("\x6d\157\x5f\154\x64\141\160\x5f\154\157\143\x61\154\137\x65\x6d\x61\151\154\x5f\x63\x6f\165\156\164");
delete_option("\155\157\x5f\x6c\144\x61\x70\x5f\x6c\x6f\x63\141\x6c\137\x73\x6d\163\137\143\157\x75\x6e\x74");
if (strcasecmp($oV["\x73\x74\141\x74\x75\163"], "\x43\x55\123\x54\117\115\x45\x52\x5f\125\123\105\122\x4e\101\115\x45\137\101\x4c\122\105\101\104\x59\137\105\x58\111\x53\124\x53") == 0) {
goto Es;
}
if (!(strcasecmp($oV["\x73\x74\x61\x74\x75\x73"], "\x53\125\103\103\105\123\x53") == 0)) {
goto Ip;
}
$this->save_success_customer_config($oV["\151\144"], $oV["\x61\160\151\113\x65\171"], $oV["\x74\x6f\153\145\156"], "\x52\145\147\x69\x73\164\x72\141\164\x69\157\156\x20\143\x6f\x6d\160\x6c\x65\164\145\x21");
Ip:
goto w1;
Es:
$aK = $Bl->get_customer_key();
$oV = json_decode($aK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto jI;
}
update_option("\x6d\157\x5f\154\x64\x61\x70\x5f\x6c\x6f\x63\141\154\x5f\155\145\163\163\x61\147\145", "\131\157\x75\40\x61\x6c\162\145\141\x64\171\x20\x68\141\x76\x65\40\141\x6e\x20\141\x63\x63\157\x75\156\x74\40\167\x69\164\x68\x20\155\151\156\x69\x4f\162\141\x6e\x67\145\x2e\40\x50\x6c\145\x61\163\x65\40\145\156\164\145\162\40\x61\40\166\x61\154\151\144\x20\160\141\163\163\x77\157\x72\144\x2e");
update_option("\155\157\x5f\x6c\144\x61\160\137\x6c\x6f\143\141\x6c\x5f\x76\145\x72\x69\146\171\137\x63\x75\x73\164\157\155\x65\x72", "\164\162\165\x65");
delete_option("\155\x6f\137\154\x64\x61\x70\x5f\x6c\157\143\141\154\x5f\x6e\145\x77\x5f\162\145\147\x69\x73\164\162\141\164\x69\x6f\156");
$this->show_error_message();
goto G6;
jI:
$this->save_success_customer_config($oV["\151\144"], $oV["\x61\x70\x69\113\x65\171"], $oV["\x74\157\153\x65\x6e"], "\131\157\x75\162\40\x61\143\x63\157\165\x6e\x74\40\x68\x61\163\x20\142\x65\x65\156\40\162\x65\x74\162\151\145\166\x65\144\x20\x73\165\143\143\x65\163\163\146\x75\154\x6c\171\x2e");
G6:
w1:
update_option("\x6d\x6f\x5f\x6c\x64\141\x70\x5f\154\157\x63\x61\x6c\x5f\160\141\x73\x73\x77\x6f\x72\x64", '');
qI:
og:
goto gt;
k3:
$Bl = new Mo_Ldap_Local_Customer();
$HO = "\x45\x4d\x41\x49\114";
$aK = json_decode($Bl->send_otp_token($HO, null), true);
if (strcasecmp($aK["\x73\x74\x61\x74\165\x73"], "\123\125\x43\x43\105\x53\123") == 0) {
goto to;
}
if (strcasecmp($aK["\x73\x74\141\164\165\163"], "\103\125\x52\114\x5f\105\122\122\x4f\122") == 0) {
goto fl;
}
update_option("\x6d\157\137\x6c\144\141\160\x5f\x6c\157\143\141\x6c\137\155\x65\163\x73\141\147\145", "\x54\150\145\162\x65\x20\x77\141\x73\40\141\x6e\x20\145\x72\162\x6f\162\x20\151\156\40\x73\x65\156\x64\151\156\x67\x20\x65\x6d\141\x69\154\x2e\40\x50\x6c\x65\x61\163\145\x20\x63\154\151\x63\153\40\157\x6e\40\122\145\x73\x65\x6e\x64\x20\x4f\x54\120\40\164\x6f\x20\164\x72\x79\x20\x61\x67\x61\x69\x6e\x2e");
update_option("\x6d\157\x5f\x6c\144\x61\x70\137\154\157\143\141\154\137\162\x65\x67\x69\x73\x74\x72\141\x74\151\157\x6e\x5f\163\x74\141\164\x75\163", "\x4d\117\x5f\x4f\124\x50\137\104\105\114\111\x56\x45\x52\x45\x44\137\106\x41\x49\114\125\x52\105");
$this->show_error_message();
goto SZ;
fl:
update_option("\x6d\x6f\137\x6c\x64\141\160\x5f\x6c\x6f\x63\141\x6c\137\155\145\x73\x73\141\x67\145", $aK["\x73\x74\141\164\x75\x73\115\145\x73\163\141\x67\145"]);
update_option("\155\x6f\137\154\x64\x61\x70\137\154\x6f\143\141\x6c\x5f\x72\x65\x67\151\163\164\x72\x61\164\x69\157\x6e\x5f\163\x74\141\164\x75\x73", "\115\x4f\137\117\124\120\x5f\x44\x45\114\x49\x56\x45\x52\105\x44\137\x46\101\x49\x4c\125\122\105");
$this->show_error_message();
SZ:
goto H6;
to:
if (get_option("\155\x6f\137\154\x64\141\160\137\x6c\x6f\143\141\x6c\x5f\x65\155\x61\151\154\137\143\157\x75\x6e\164")) {
goto aR;
}
update_option("\155\x6f\137\154\144\141\x70\137\x6c\157\143\141\154\137\155\x65\x73\163\141\147\x65", "\x41\156\40\x4f\124\x50\40\150\x61\x73\40\x62\145\145\156\x20\163\x65\x6e\x74\x20\x74\157\x20\74\142\x3e" . get_option("\155\x6f\x5f\154\x64\x61\160\137\x6c\157\143\141\x6c\137\x61\x64\x6d\x69\156\137\x65\155\141\x69\154") . "\x3c\x2f\x62\x3e\x2e\x20\120\154\x65\x61\163\145\x20\145\156\x74\145\x72\x20\164\x68\145\40\117\x54\x50\40\142\x65\x6c\157\x77\x20\164\x6f\40\166\x65\x72\x69\146\171\x20\171\157\x75\x72\x20\145\155\x61\151\x6c\x2e\40");
update_option("\155\157\137\154\144\141\x70\137\154\x6f\x63\x61\x6c\x5f\145\155\x61\151\154\x5f\143\x6f\165\156\164", 1);
goto fc;
aR:
update_option("\155\x6f\137\x6c\144\141\x70\137\154\157\143\141\154\x5f\x65\x6d\141\x69\154\137\143\157\165\x6e\164", get_option("\x6d\x6f\137\154\x64\x61\x70\137\x6c\157\x63\141\154\x5f\145\155\141\x69\x6c\x5f\143\x6f\165\x6e\x74") + 1);
update_option("\155\157\137\x6c\144\141\x70\137\154\157\143\x61\154\x5f\155\145\x73\x73\141\x67\145", "\101\x6e\157\164\150\145\x72\40\x4f\156\145\40\124\x69\155\145\x20\x50\x61\x73\x73\x63\157\144\145\40\150\141\x73\x20\x62\145\145\x6e\40\x73\x65\x6e\164\40\x3c\142\76\50\40" . get_option("\x6d\157\137\154\144\141\x70\x5f\154\157\x63\x61\154\x5f\x65\155\x61\x69\154\137\143\x6f\165\156\164") . "\x20\x29\74\57\x62\x3e\40\x74\157\x20\74\142\x3e" . get_option("\155\157\137\x6c\x64\x61\160\x5f\154\157\143\141\154\x5f\x61\x64\155\x69\156\x5f\x65\x6d\x61\x69\154") . "\74\57\x62\76\x2e\40\120\x6c\145\x61\163\x65\40\x65\156\164\145\162\40\x74\x68\145\x20\x4f\x54\120\40\x62\x65\154\157\167\40\164\157\40\x76\x65\162\x69\x66\x79\40\171\x6f\x75\x72\x20\145\x6d\141\151\154\x2e\x20");
fc:
update_option("\x6d\x6f\x5f\154\x64\x61\x70\x5f\154\157\x63\141\x6c\x5f\x74\162\141\x6e\163\141\x63\x74\151\x6f\x6e\111\x64", $aK["\164\x78\x49\144"]);
update_option("\x6d\x6f\x5f\154\144\x61\x70\x5f\154\157\x63\x61\154\x5f\162\x65\x67\x69\163\x74\x72\141\x74\x69\x6f\x6e\137\163\164\141\164\165\163", "\x4d\117\137\x4f\124\x50\x5f\x44\105\114\111\126\105\x52\105\x44\137\123\x55\x43\x43\x45\123\x53");
$this->show_success_message();
H6:
gt:
goto xa;
Ry:
$hG = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\161\165\145\x72\x79\x5f\145\155\x61\x69\x6c"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x71\x75\145\162\171"])) {
goto lw;
}
$hG = sanitize_text_field($_POST["\x71\165\x65\x72\171"]);
$n3 = sanitize_text_field($_POST["\x71\x75\145\x72\x79\137\x65\155\141\151\154"]);
$LB = sanitize_text_field($_POST["\161\x75\x65\x72\171\137\160\x68\157\156\x65"]);
$Lq = new Mo_Ldap_Local_Customer();
$lU = json_decode($Lq->submit_contact_us($n3, $LB, $hG), true);
if (strcasecmp($lU["\x73\x74\141\164\x75\163"], "\x43\x55\x52\x4c\137\x45\122\122\x4f\122") == 0) {
goto Lx;
}
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto Ku;
}
if ($lU == false) {
goto DA;
}
update_option("\x6d\157\x5f\154\x64\141\x70\x5f\154\157\x63\141\x6c\x5f\x6d\x65\x73\163\x61\x67\x65", "\124\150\141\156\x6b\x73\x20\x66\x6f\162\x20\147\145\x74\x74\151\156\x67\x20\151\156\x20\x74\x6f\165\x63\x68\x21\x20\127\x65\40\x73\150\141\x6c\154\x20\147\x65\164\40\x62\x61\x63\153\40\x74\157\x20\x79\x6f\165\x20\163\150\x6f\x72\x74\x6c\x79\x2e");
$this->show_success_message();
goto ie;
DA:
update_option("\155\157\x5f\x6c\144\x61\160\x5f\x6c\157\x63\x61\154\137\x6d\x65\163\x73\141\147\145", "\131\x6f\x75\x72\x20\x71\165\x65\x72\171\40\143\x6f\x75\154\x64\x20\x6e\157\x74\x20\142\x65\40\163\165\x62\x6d\151\x74\164\145\144\x2e\x20\x50\154\x65\141\x73\x65\x20\x74\x72\171\40\x61\x67\141\151\156\56");
$this->show_error_message();
ie:
Ku:
goto Ol;
Lx:
update_option("\x6d\157\137\154\144\141\160\x5f\x6c\157\x63\x61\x6c\x5f\155\145\163\163\141\x67\145", $lU["\163\x74\141\x74\x75\163\115\x65\163\x73\x61\x67\x65"]);
$this->show_error_message();
Ol:
goto eb;
lw:
update_option("\155\157\x5f\x6c\144\x61\160\x5f\x6c\157\x63\x61\154\137\155\145\x73\163\141\147\145", "\120\154\x65\141\x73\x65\40\163\165\142\x6d\151\164\40\171\x6f\x75\162\40\x71\x75\145\162\171\40\x61\x6c\157\x6e\x67\40\x77\151\164\x68\x20\145\155\141\x69\x6c\x2e");
$this->show_error_message();
return;
eb:
xa:
goto QA;
hT:
if (NddKoYsdasadJD()) {
goto ZI;
}
update_option("\x6d\157\137\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\x6d\x65\x73\163\141\147\x65", "\x53\x65\x74\164\151\156\x67\163\x20\143\141\156\x27\164\x20\x62\x65\40\x74\x65\x73\x74\x65\144\x20\167\x69\x74\x68\157\165\164\x20\x76\145\x72\x69\146\x79\x69\x6e\147\40\171\x6f\165\x72\x20\154\x69\x63\x65\x6e\x73\x65\x20\153\x65\x79\x2e");
$this->show_error_message();
goto gs;
ZI:
$Bt = get_option("\155\157\x5f\x6c\x64\x61\x70\x5f\154\x6f\x63\141\154\137\x73\145\x72\x76\x65\162\x5f\165\x72\154");
$V6 = get_option("\155\157\x5f\154\x64\x61\x70\137\154\157\x63\x61\x6c\x5f\x73\x65\162\x76\x65\x72\137\144\156");
$mY = get_option("\x6d\157\137\x6c\x64\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\x73\x65\162\x76\145\162\x5f\160\x61\x73\x73\167\x6f\x72\x64");
$iK = get_option("\155\157\137\154\x64\x61\160\x5f\154\x6f\143\x61\154\137\163\145\x61\162\x63\x68\x5f\142\x61\163\x65");
$u5 = get_option("\155\x6f\137\154\144\141\160\x5f\154\x6f\x63\x61\154\137\x75\x73\x65\x72\156\141\155\145\137\x61\x74\x74\162\151\x62\x75\x74\x65");
$Io = get_option("\x6d\157\137\x6c\x64\141\x70\137\x6c\x6f\143\141\x6c\137\x73\x65\141\162\x63\x68\x5f\x66\x69\x6c\x74\x65\x72");
delete_option("\155\x6f\x5f\x6c\x64\141\x70\x5f\154\157\143\141\x6c\x5f\155\x65\163\163\141\x67\x65");
$p1 = '';
$O_ = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x74\x65\163\x74\x5f\165\x73\145\x72\156\141\155\x65"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x74\145\163\x74\x5f\x70\141\x73\163\x77\157\162\144"])) {
goto vw;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($Bt) || Mo_Ldap_Local_Util::check_empty_or_null($V6) || Mo_Ldap_Local_Util::check_empty_or_null($mY) || Mo_Ldap_Local_Util::check_empty_or_null($iK) || Mo_Ldap_Local_Util::check_empty_or_null($u5) || Mo_Ldap_Local_Util::check_empty_or_null($Io)) {
goto I0;
}
$p1 = sanitize_text_field($_POST["\x74\x65\x73\x74\x5f\165\x73\x65\x72\x6e\141\x6d\145"]);
$O_ = sanitize_text_field($_POST["\164\145\x73\x74\x5f\160\x61\x73\x73\x77\157\162\x64"]);
goto pi;
I0:
$this->mo_ldap_report_update("\124\145\x73\x74\x20\141\165\x74\150\x65\156\x74\x69\x63\141\164\x69\x6f\x6e", "\105\122\x52\x4f\122", "\74\163\164\x72\157\156\x67\76\124\145\x73\x74\x20\101\165\x74\150\145\156\164\x69\143\141\164\151\x6f\x6e\40\x45\x72\162\x6f\x72\74\x2f\x73\x74\162\157\156\x67\x3e\x3a\40\120\x6c\145\141\x73\x65\x20\163\x61\166\145\x20\114\104\101\120\x20\x43\x6f\x6e\146\151\x67\165\162\x61\164\x69\x6f\x6e\x20\164\157\x20\x74\145\x73\164\40\141\165\164\x68\x65\x6e\x74\151\143\141\x74\151\x6f\x6e\56");
add_option("\155\157\137\x6c\x64\x61\160\137\x6c\157\x63\141\x6c\137\x6d\145\x73\163\141\147\145", "\x50\154\x65\141\163\x65\x20\x73\141\166\145\40\x4c\104\x41\x50\40\103\157\x6e\x66\x69\x67\x75\162\x61\164\x69\x6f\x6e\40\x74\x6f\x20\164\145\163\x74\x20\141\165\x74\x68\145\156\164\x69\143\x61\164\x69\157\x6e\x2e", '', "\156\157");
$this->show_error_message();
return;
pi:
goto TT;
vw:
$this->mo_ldap_report_update("\x54\x65\x73\x74\x20\101\x75\x74\x68\x65\156\164\151\143\x61\x74\x69\157\x6e\40", "\105\x52\x52\117\122", "\74\x73\x74\x72\x6f\156\147\x3e\x45\x52\x52\x4f\122\x3c\57\x73\164\162\x6f\156\x67\76\x3a\40\x41\x6c\154\x20\x74\x68\145\x20\x66\x69\145\154\144\x73\x20\x61\162\145\40\x72\x65\161\x75\151\x72\x65\144\56\40\x50\x6c\145\141\x73\x65\40\x65\x6e\x74\145\x72\x20\x76\141\x6c\151\144\40\x65\156\164\162\x69\145\x73\56");
add_option("\x6d\x6f\137\154\x64\x61\160\x5f\154\x6f\x63\x61\154\137\x6d\145\x73\x73\x61\x67\145", "\x41\x6c\x6c\x20\x74\x68\x65\x20\x66\x69\145\x6c\144\x73\x20\141\162\x65\x20\162\145\161\x75\x69\x72\145\144\56\40\x50\x6c\x65\141\163\x65\40\x65\x6e\x74\145\x72\40\x76\141\154\151\144\40\145\x6e\x74\x72\x69\x65\x73\x2e", '', "\x6e\x6f");
$this->show_error_message();
return;
TT:
$km = new Mo_Ldap_Local_Config();
$aK = $km->test_authentication($p1, $O_, null);
$Z9 = json_decode($aK, true);
if (strcasecmp($Z9["\x73\164\141\164\x75\x73\103\157\x64\145"], "\123\125\103\x43\105\x53\x53") == 0) {
goto HK;
}
if (strcasecmp($Z9["\163\164\x61\x74\x75\x73\103\x6f\x64\x65"], "\105\122\122\117\122") == 0) {
goto Qd;
}
if (strcasecmp($Z9["\163\x74\x61\x74\165\x73\103\157\144\x65"], "\x55\x53\105\x52\137\x4e\x4f\x54\137\105\x58\111\123\x54") == 0) {
goto bG;
}
if (strcasecmp($Z9["\x73\x74\x61\x74\165\x73\x43\x6f\x64\145"], "\114\x44\101\x50\x5f\105\122\122\x4f\x52") == 0) {
goto Lv;
}
if (strcasecmp($Z9["\x73\164\x61\164\165\163\x43\157\144\145"], "\x43\x55\x52\114\137\x45\122\122\x4f\122") == 0) {
goto Gc;
}
if (strcasecmp($Z9["\163\x74\x61\x74\165\x73\103\157\x64\x65"], "\x4f\x50\105\116\x53\x53\114\137\105\122\122\117\x52") == 0) {
goto oO;
}
if (strcasecmp($Z9["\x73\x74\141\x74\x75\x73\103\x6f\x64\145"], "\120\111\x4e\x47\x5f\x45\x52\122\117\122") == 0) {
goto TI;
}
$this->mo_ldap_report_update($_POST["\164\x65\x73\164\137\165\163\145\x72\x6e\x61\x6d\x65"], "\105\x52\122\117\x52", "\x3c\x73\164\x72\157\156\x67\x3e\x54\145\x73\164\40\101\x75\164\150\145\x6e\x74\151\143\141\164\151\x6f\156\40\x45\x72\x72\x6f\x72\x3a\40\74\57\x73\164\x72\x6f\156\147\76\40\124\x68\145\162\x65\x20\167\x61\x73\x20\141\156\40\145\x72\x72\157\162\40\160\162\x6f\143\145\x73\163\x69\x6e\x67\x20\171\x6f\x75\162\x20\x72\x65\161\165\145\163\164\x2e\40\x50\154\x65\141\163\145\x20\166\145\x72\151\146\171\x20\x74\x68\x65\x20\123\x65\x61\x72\143\x68\x20\x42\141\x73\x65\50\x73\51\x20\141\156\x64\40\x53\x65\x61\x72\143\x68\40\x66\x69\154\164\x65\162\x2e\40\131\x6f\x75\162\x20\165\163\x65\x72\40\x73\150\x6f\x75\154\x64\40\142\x65\x20\x70\x72\145\163\x65\156\164\x20\151\x6e\x20\x74\150\x65\40\123\145\x61\x72\x63\x68\x20\142\x61\163\145\40\x64\x65\x66\x69\x6e\x65\x64\x2e");
add_option("\x6d\157\x5f\x6c\144\141\160\137\x6c\157\x63\x61\154\x5f\x6d\145\x73\163\x61\147\x65", "\x54\150\145\162\145\x20\167\x61\163\x20\141\x6e\x20\145\162\x72\x6f\x72\x20\160\x72\x6f\143\145\x73\163\x69\156\x67\40\171\x6f\x75\162\x20\x72\145\x71\x75\x65\x73\x74\56\x20\120\x6c\x65\141\x73\145\40\x76\x65\x72\x69\x66\x79\40\x74\150\x65\40\x53\x65\141\162\x63\150\x20\102\141\163\x65\50\x73\51\40\x61\x6e\144\x20\x53\x65\141\x72\143\150\40\x66\151\x6c\164\x65\162\56\x20\131\157\x75\x72\40\x75\163\x65\162\40\x73\x68\x6f\x75\154\144\x20\142\145\40\160\x72\x65\163\145\x6e\x74\40\151\x6e\x20\x74\150\145\40\123\x65\141\162\143\x68\x20\142\x61\163\145\x20\144\x65\x66\151\156\145\x64\x2e", '', "\x6e\x6f");
$this->show_error_message();
goto cv;
TI:
$this->mo_ldap_report_update($_POST["\x74\145\x73\x74\x5f\x75\x73\x65\x72\x6e\141\x6d\145"], "\x45\x52\122\x4f\x52", "\x3c\163\x74\162\x6f\156\x67\x3e\x54\x65\163\164\40\x41\165\164\150\145\x6e\x74\x69\143\x61\x74\x69\x6f\x6e\x20\105\162\x72\157\162\x3a\x20\x3c\57\163\164\162\157\x6e\147\76" . $Z9["\x73\x74\x61\164\x75\163\115\145\163\163\x61\x67\x65"]);
add_option("\155\x6f\137\x6c\144\141\x70\x5f\154\157\x63\x61\x6c\x5f\155\x65\x73\x73\141\147\x65", $Z9["\163\x74\x61\x74\x75\163\115\x65\163\x73\x61\x67\145"], '', "\x6e\157");
$this->show_error_message();
cv:
goto mH;
oO:
$this->mo_ldap_report_update($_POST["\x74\x65\163\164\x5f\165\x73\145\162\156\x61\155\x65"], "\x45\x52\x52\117\x52", "\74\163\164\x72\157\x6e\x67\76\x54\145\163\x74\x20\101\x75\164\150\x65\156\164\151\143\141\164\x69\x6f\156\x20\105\x72\x72\157\162\72\x20\x3c\57\x73\x74\x72\157\x6e\147\76" . $Z9["\163\x74\141\x74\x75\163\115\145\x73\163\x61\147\x65"]);
add_option("\x6d\157\x5f\x6c\144\141\160\137\154\157\x63\141\154\x5f\155\x65\x73\163\x61\x67\145", $Z9["\163\164\141\164\165\163\x4d\145\x73\x73\x61\147\x65"], '', "\x6e\x6f");
$this->show_error_message();
mH:
goto yQ;
Gc:
$this->mo_ldap_report_update($_POST["\x74\145\163\x74\137\x75\163\x65\162\156\141\155\x65"], "\x45\x52\x52\117\122", "\74\x73\164\162\157\x6e\x67\76\x54\x65\163\164\40\101\165\164\x68\x65\x6e\x74\151\143\x61\164\151\x6f\x6e\40\105\x72\x72\157\162\72\40\x3c\57\163\x74\x72\157\156\147\76" . $Z9["\163\164\x61\x74\165\x73\115\145\x73\x73\x61\147\145"]);
add_option("\x6d\x6f\x5f\x6c\144\x61\160\137\154\157\x63\x61\x6c\137\x6d\145\x73\x73\x61\x67\x65", $Z9["\163\x74\141\164\x75\163\115\145\163\x73\141\x67\145"], '', "\x6e\x6f");
$this->show_error_message();
yQ:
goto dP;
Lv:
$this->mo_ldap_report_update($_POST["\164\x65\163\x74\137\x75\163\145\x72\156\141\155\145"], "\105\x52\122\x4f\122", "\x3c\x73\164\x72\x6f\x6e\147\76\x54\145\163\164\40\101\x75\164\x68\x65\156\x74\x69\143\x61\x74\x69\157\156\x20\105\x72\x72\x6f\162\x3a\40\74\57\x73\x74\x72\157\156\x67\x3e" . $Z9["\163\164\141\164\165\x73\x4d\145\x73\x73\141\x67\145"]);
add_option("\x6d\157\x5f\154\144\141\160\137\x6c\x6f\x63\x61\x6c\137\155\145\x73\163\x61\x67\145", $Z9["\163\x74\141\x74\x75\x73\115\145\163\163\x61\x67\145"], '', "\x6e\157");
$this->show_error_message();
dP:
goto G7;
bG:
$this->mo_ldap_report_update($_POST["\x74\x65\163\x74\137\165\x73\x65\162\x6e\x61\155\145"], "\105\122\x52\117\x52", "\74\x73\164\x72\x6f\x6e\147\76\x54\145\x73\x74\40\101\x75\x74\150\145\156\164\151\143\x61\x74\151\157\x6e\40\x45\162\162\157\x72\x3a\40\x3c\x2f\x73\164\x72\x6f\x6e\147\x3e\40\103\141\x6e\x6e\157\164\40\x66\x69\156\x64\40\x75\x73\x65\162\x20\151\156\x20\x74\150\x65\40\144\x69\162\145\143\x74\x6f\162\x79");
add_option("\155\157\137\x6c\144\141\160\137\x6c\x6f\x63\141\154\137\155\145\163\163\141\x67\145", $Z9["\163\164\x61\164\165\x73\x4d\145\x73\163\x61\x67\x65"], '', "\x6e\157");
$this->show_error_message();
G7:
goto Re;
Qd:
$this->mo_ldap_report_update($_POST["\164\145\163\164\137\x75\x73\x65\x72\x6e\141\x6d\145"], "\x45\122\122\117\x52", "\74\163\164\x72\x6f\x6e\x67\x3e\124\x65\x73\164\40\x41\x75\x74\150\145\x6e\164\x69\x63\x61\x74\151\157\x6e\x20\x45\162\x72\x6f\162\72\x20\x3c\x2f\163\x74\162\x6f\156\147\x3e" . $Z9["\x73\x74\141\164\165\163\115\145\x73\x73\141\x67\145"]);
add_option("\155\157\137\154\x64\x61\x70\x5f\154\x6f\143\141\x6c\137\x6d\145\x73\x73\141\147\145", $Z9["\x73\164\x61\x74\x75\163\115\145\x73\163\x61\x67\x65"], '', "\156\x6f");
$this->show_error_message();
Re:
goto Km;
HK:
$Rf = add_query_arg(array("\x74\x61\142" => "\x72\157\154\x65\x6d\141\x70\160\x69\156\x67"), $_SERVER["\122\105\121\125\105\123\x54\x5f\125\122\111"]);
$zc = "\131\x6f\x75\x20\x68\x61\x76\x65\40\x73\165\143\x63\x65\x73\163\146\x75\x6c\154\x79\x20\x63\x6f\x6e\x66\151\147\165\162\145\144\x20\x79\157\x75\x72\40\x4c\x44\x41\x50\40\x73\x65\164\164\151\x6e\x67\163\56\x3c\142\162\76\xa\11\11\x9\11\x9\11\11\x9\x9\131\x6f\x75\40\x63\141\156\x20\x6e\157\167\x20\144\157\40\145\151\164\150\x65\162\x20\x6f\x66\x20\x74\x77\157\40\164\150\x69\x6e\147\x73\56\x3c\x62\x72\x3e\xa\x9\x9\11\11\11\11\x9\x9\11\x31\x2e\x20\x45\x6e\141\142\x6c\145\40\114\104\x41\120\x20\x4c\x6f\147\151\x6e\40\x61\164\x20\x74\x68\x65\40\x74\x6f\160\x20\x61\156\144\x20\x74\150\145\156\x20\x3c\141\40\150\162\145\146\75\x22" . wp_logout_url(get_permalink()) . "\x22\76\x4c\157\x67\157\165\164\x3c\57\x61\76\40\x66\162\157\155\40\167\x6f\x72\x64\160\x72\145\x73\x73\x20\x61\x6e\144\x20\154\x6f\x67\x69\x6e\40\x61\147\x61\151\156\x20\167\151\x74\x68\40\x79\x6f\x75\x72\40\114\x44\101\x50\x20\x63\x72\145\x64\145\156\164\x69\x61\x6c\x73\56\74\142\162\x3e\40\12\x9\x9\11\11\x9\x9\x9\11\x9\62\56\40\x44\x6f\x20\162\x6f\x6c\145\40\x6d\x61\160\160\151\156\x67\x20\x28\74\141\x20\150\x72\145\x66\75\x22" . $Rf . "\42\x3e\x43\154\x69\x63\153\x20\150\145\162\x65\74\57\x61\76\51";
add_option("\155\x6f\x5f\154\144\141\x70\137\154\157\143\x61\154\x5f\155\145\163\x73\141\x67\x65", $zc, '', "\x6e\x6f");
$this->show_success_message();
Km:
gs:
QA:
goto d2;
fd:
delete_option("\x6d\x6f\137\154\144\141\160\x5f\154\157\x63\141\x6c\x5f\x75\163\145\162\137\155\x61\160\160\x69\156\147\x5f\x73\164\141\x74\165\x73");
update_option("\x6d\157\x5f\x6c\157\x63\x61\x6c\137\x66\151\x6c\x74\x65\162\137\143\x68\145\x63\153", isset($_POST["\x6c\x64\x61\160\x5f\163\x65\141\162\143\x68\137\146\x69\x6c\x74\x65\x72\163"]) ? 1 : 0);
$iU = '';
$iK = '';
$Io = '';
$u5 = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\163\145\x61\x72\x63\150\x5f\142\x61\x73\x65"])) {
goto Jt;
}
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x75\163\145\162\156\x61\155\145\x5f\x61\164\x74\x72\151\142\165\x74\145\137\164\x65\170\164"]) && Mo_Ldap_Local_Util::check_empty_or_null($_POST["\163\x65\141\162\x63\x68\137\146\151\x6c\x74\x65\162"])) {
goto Y_;
}
$iK = sanitize_text_field($_POST["\x73\x65\x61\162\x63\150\137\142\x61\x73\x65"]);
goto SC;
Y_:
update_option("\x6d\x6f\137\154\x64\x61\x70\x5f\154\157\x63\141\154\137\x6d\x65\x73\x73\x61\147\145", "\101\154\154\40\x74\150\x65\40\146\151\x65\154\x64\163\40\x61\x72\145\40\x72\145\x71\x75\x69\162\145\x64\x2e\40\x50\154\145\141\x73\145\40\145\156\164\x65\x72\x20\x76\141\x6c\151\x64\40\x65\156\x74\162\151\x65\163\56");
add_option("\x6d\x6f\137\154\144\141\160\x5f\154\x6f\x63\x61\154\137\x75\163\145\x72\137\155\141\x70\160\151\x6e\147\137\x73\164\x61\164\x75\163", "\x49\116\126\101\x4c\x49\x44", '', "\156\x6f");
$this->show_error_message();
return;
SC:
goto PF;
Jt:
update_option("\x6d\157\x5f\x6c\x64\x61\160\x5f\154\x6f\x63\141\154\x5f\155\145\x73\163\x61\x67\x65", "\x41\154\x6c\x20\x74\150\x65\40\x66\151\x65\x6c\144\x73\x20\x61\x72\x65\x20\162\145\x71\165\151\x72\x65\x64\56\x20\120\154\145\x61\163\145\x20\x65\x6e\164\145\x72\40\166\x61\x6c\x69\x64\40\145\x6e\164\x72\151\145\163\x2e");
add_option("\x6d\157\137\x6c\144\x61\x70\137\154\157\143\x61\x6c\x5f\x75\163\x65\162\x5f\x6d\141\160\x70\x69\156\147\137\x73\164\x61\164\x75\163", "\x49\116\x56\101\114\x49\x44", '', "\x6e\157");
$this->show_error_message();
return;
PF:
if (!Mo_Ldap_Local_Util::is_extension_installed("\x6f\160\x65\156\163\163\x6c")) {
goto ZX;
}
if (get_option("\155\x6f\137\x6c\157\143\x61\x6c\137\x66\x69\x6c\164\x65\162\x5f\x63\150\145\x63\x6b") == 0) {
goto fU;
}
$Io = sanitize_text_field($_POST["\x73\x65\141\162\x63\150\137\146\151\154\x74\x65\x72"]);
update_option("\x6d\x6f\x5f\154\x64\141\160\137\x6c\157\x63\141\154\x5f\163\145\141\x72\143\150\x5f\x66\151\x6c\x74\x65\162", Mo_Ldap_Local_Util::encrypt($Io));
update_option("\155\157\x5f\x6c\x64\x61\160\x5f\x6c\x6f\143\141\154\x5f\x75\x73\145\x72\156\141\155\x65\x5f\141\164\x74\162\x69\x62\x75\164\x65", Mo_Ldap_Local_Util::encrypt(''));
goto z1;
fU:
$Io = sanitize_text_field($_POST["\165\x73\x65\162\156\x61\155\x65\137\141\164\164\x72\151\142\x75\x74\145\x5f\x74\x65\170\164"]);
update_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\x6c\157\143\141\154\x5f\x75\163\x65\x72\x6e\x61\155\x65\137\x61\x74\x74\162\x69\142\165\164\x65", Mo_Ldap_Local_Util::encrypt($Io));
$jd = explode("\73", $Io);
if (count($jd) > 1) {
goto uZ;
}
$rY = "\x28\x26\x28\157\142\x6a\x65\143\164\103\154\141\163\163\75\x2a\51\50" . $Io . "\x3d\77\x29\x29";
goto si;
uZ:
foreach ($jd as $fc => $i0) {
$Qm .= "\x28" . $jd[$fc] . "\x3d\x3f\51";
Y4:
}
E3:
$rY = "\x28\x26\x28\x6f\142\x6a\x65\143\164\103\x6c\x61\x73\x73\x3d\52\x29\x28\x7c" . $Qm . "\x29\51";
si:
update_option("\x6d\x6f\137\154\144\x61\x70\137\x6c\x6f\x63\141\x6c\x5f\163\145\x61\162\143\x68\137\146\x69\x6c\164\x65\162", Mo_Ldap_Local_Util::encrypt($rY));
z1:
update_option("\155\157\137\x6c\x64\x61\160\x5f\154\157\143\141\154\x5f\x73\145\141\162\143\150\137\142\141\x73\145", Mo_Ldap_Local_Util::encrypt($iK));
delete_option("\x6d\x6f\x5f\x6c\x64\141\x70\x5f\154\157\x63\x61\x6c\137\155\145\x73\163\x61\147\x65");
$zc = "\x4c\104\x41\x50\x20\x55\163\x65\162\x20\x4d\x61\x70\160\151\156\x67\40\103\157\x6e\146\151\147\165\x72\141\164\x69\x6f\x6e\40\150\x61\163\x20\142\x65\x65\156\40\163\x61\166\145\x64\56\40\x50\x6c\x65\x61\x73\145\x20\x74\145\x73\x74\40\141\x75\x74\x68\145\156\x74\x69\143\x61\x74\x69\x6f\156\40\x74\x6f\40\x76\145\x72\x69\146\x79\40\x4c\104\101\x50\40\x55\x73\x65\x72\40\115\141\x70\x70\151\x6e\x67\40\103\157\x6e\x66\x69\147\x75\x72\141\164\x69\157\156\56";
add_option("\x6d\157\137\x6c\144\x61\160\x5f\x6c\157\143\x61\x6c\x5f\155\145\163\163\x61\x67\145", $zc, '', "\x6e\x6f");
add_option("\155\x6f\137\x6c\x64\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\165\163\x65\162\137\x6d\141\x70\160\151\x6e\147\137\163\x74\141\x74\x75\x73", "\x56\101\x4c\x49\104", '', "\156\x6f");
$this->show_success_message();
goto mE;
ZX:
update_option("\x6d\157\137\154\144\x61\x70\x5f\154\157\143\141\x6c\137\x6d\x65\x73\163\x61\147\x65", "\x50\110\x50\x20\x4f\160\x65\156\x53\123\114\40\x65\x78\x74\x65\156\163\151\157\156\x20\151\163\40\156\x6f\x74\40\x69\156\163\164\x61\x6c\x6c\x65\x64\x20\157\x72\40\x64\x69\x73\141\142\154\x65\144\56\40\x50\154\x65\x61\163\x65\40\x65\x6e\x61\x62\154\x65\40\151\164\40\x66\151\162\x73\x74\56");
add_option("\155\x6f\137\x6c\144\x61\x70\137\154\x6f\143\x61\154\137\165\x73\x65\x72\x5f\155\x61\160\160\151\x6e\147\x5f\x73\x74\141\x74\x75\x73", "\x49\116\x56\x41\114\111\x44", '', "\156\x6f");
$this->show_error_message();
mE:
d2:
goto w9;
LH:
if (NddKoYsdasadJD()) {
goto xw;
}
update_option("\x6d\157\x5f\x6c\x64\141\x70\137\154\157\x63\x61\154\137\x6d\x65\x73\163\x61\147\x65", "\123\x65\x74\x74\151\x6e\x67\x73\x20\x63\x61\156\47\164\x20\142\145\x20\163\141\x76\145\144\40\x77\x69\164\150\157\165\x74\40\166\x65\x72\x69\146\x79\x69\156\147\40\x79\x6f\x75\162\40\x6c\x69\x63\x65\x6e\x73\x65\x20\153\x65\x79\56");
$this->show_error_message();
goto EI;
xw:
if (isset($_POST["\x61\156\x6f\x6e\171\x6d\x6f\x75\163\137\142\151\156\144"])) {
goto Rp;
}
update_option("\155\157\137\154\x64\x61\160\137\154\157\x63\141\154\x5f\x61\156\157\156\x79\155\x6f\x75\x73\x5f\x62\151\156\x64", 0);
goto CM;
Rp:
update_option("\x6d\157\x5f\154\x64\141\x70\137\x6c\x6f\x63\141\x6c\x5f\x61\156\x6f\156\171\155\157\x75\163\x5f\142\151\x6e\x64", 1);
CM:
$Bt = '';
$V6 = '';
$mY = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x6c\x64\x61\160\x5f\163\145\x72\x76\x65\162"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x64\x6e"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\141\144\x6d\x69\156\137\x70\141\163\163\x77\x6f\162\144"])) {
goto bM;
}
$Bt = sanitize_text_field($_POST["\154\144\141\x70\x5f\x73\145\162\x76\x65\162"]);
$V6 = sanitize_text_field($_POST["\144\x6e"]);
$mY = sanitize_text_field($_POST["\141\144\155\151\x6e\137\160\141\163\x73\167\x6f\162\144"]);
goto QP;
bM:
update_option("\155\x6f\137\x6c\144\141\160\x5f\x6c\157\143\141\154\x5f\155\x65\163\x73\141\147\x65", "\x41\x6c\154\x20\x74\x68\x65\40\146\151\145\154\x64\x73\x20\x61\x72\145\x20\162\145\161\x75\x69\162\x65\144\56\x20\120\154\145\x61\x73\145\x20\145\156\164\145\x72\40\166\x61\154\151\x64\40\145\x6e\x74\162\151\145\x73\56");
$this->show_error_message();
return;
QP:
if (!Mo_Ldap_Local_Util::is_extension_installed("\157\x70\145\x6e\163\163\154")) {
goto Oh;
}
update_option("\155\157\x5f\x6c\x64\141\160\137\x6c\157\x63\x61\x6c\137\163\145\162\x76\145\162\x5f\165\x72\154", Mo_Ldap_Local_Util::encrypt($Bt));
update_option("\x6d\157\137\154\144\141\160\137\x6c\x6f\143\x61\154\x5f\x73\x65\162\x76\145\x72\137\144\156", Mo_Ldap_Local_Util::encrypt($V6));
update_option("\x6d\157\x5f\154\x64\x61\160\137\x6c\x6f\143\x61\154\x5f\163\145\x72\x76\x65\x72\137\x70\141\x73\x73\x77\x6f\x72\x64", Mo_Ldap_Local_Util::encrypt($mY));
delete_option("\x6d\x6f\x5f\x6c\x64\x61\x70\137\154\x6f\143\x61\154\137\x6d\x65\163\163\x61\147\145");
$km = new Mo_Ldap_Local_Config();
$zc = "\x59\157\x75\x72\40\x63\157\x6e\x66\151\147\165\x72\x61\x74\x69\x6f\156\x20\x68\141\x73\40\142\145\145\156\40\x73\141\166\145\x64\56";
$pd = "\x73\x75\x63\143\x65\x73\163";
$aK = $km->test_connection();
$Z9 = json_decode($aK, true);
if (strcasecmp($Z9["\x73\x74\x61\164\165\x73\x43\x6f\x64\145"], "\x53\x55\x43\x43\x45\123\123") == 0) {
goto ix;
}
if (strcasecmp($Z9["\163\164\141\164\x75\x73\x43\157\144\145"], "\x45\x52\122\117\x52") == 0) {
goto rO;
}
if (strcasecmp($Z9["\x73\x74\141\x74\165\163\103\157\x64\x65"], "\x4c\104\101\x50\x5f\x45\122\x52\x4f\122") == 0) {
goto FM;
}
if (strcasecmp($Z9["\163\164\141\164\165\163\x43\x6f\x64\x65"], "\x4f\x50\x45\116\x53\x53\114\x5f\105\122\122\117\x52") == 0) {
goto TO;
}
if (strcasecmp($Z9["\x73\164\x61\164\x75\163\103\x6f\144\145"], "\120\x49\x4e\x47\x5f\105\x52\x52\117\x52") == 0) {
goto BO;
}
add_option("\155\x6f\137\154\144\x61\160\137\154\x6f\x63\141\x6c\x5f\155\145\163\x73\141\147\x65", $zc . "\x20\x54\x68\145\162\145\40\x77\x61\x73\x20\x61\156\40\x65\x72\162\x6f\x72\40\151\x6e\40\x63\x6f\156\x6e\145\x63\164\151\156\x67\40\x77\151\164\150\x20\164\x68\145\x20\143\165\x72\x72\145\x6e\x74\x20\x73\x65\x74\164\151\156\x67\163\56\x20\x4d\141\153\145\40\x73\165\x72\x65\x20\171\157\x75\40\x68\x61\x76\x65\x20\x65\x6e\164\145\162\x65\144\x20\x73\x65\x72\166\145\x72\40\x75\x72\x6c\40\x69\x6e\x20\x66\157\x72\x6d\x61\x74\40\x6c\x64\x61\160\72\x2f\x2f\144\157\155\141\151\x6e\56\143\157\x6d\72\160\157\162\164\56\40\x54\x65\163\x74\40\165\x73\x69\156\147\x20\120\151\x6e\147\x20\114\104\101\120\x20\123\x65\x72\166\145\162\56", '', "\156\157");
$this->mo_ldap_report_update("\114\x44\x41\120\x20\x43\x4f\x4e\116\105\103\124\111\117\x4e\x20\x54\x45\123\124", "\105\162\162\157\162", "\x3c\x73\164\162\157\156\x67\x3e\124\x65\x73\164\40\x43\157\156\x6e\x65\143\x74\x69\157\x6e\40\x45\x72\162\x6f\162\72\x20\x3c\57\x73\x74\162\157\x6e\147\76" . $Z9["\x73\164\141\164\x75\163\x4d\x65\163\163\x61\x67\145"]);
$nj = "\111\156\x76\141\x6c\x69\144\40\143\x6f\x6e\x66\151\147\165\162\141\x74\x69\x6f\156\56";
$this->show_error_message();
goto Yy;
BO:
$this->mo_ldap_report_update("\x4c\104\x41\120\40\x43\x4f\116\x4e\105\103\x54\111\117\116\40\x54\105\123\x54", "\x45\122\x52\x4f\122", "\74\163\164\x72\157\156\147\x3e\x54\145\x73\164\x20\103\x6f\156\x6e\145\143\x74\x69\157\x6e\x20\105\162\x72\157\x72\72\x20\x3c\57\163\x74\x72\x6f\x6e\147\x3e" . $Z9["\163\164\141\164\165\x73\x4d\x65\x73\x73\x61\x67\x65"]);
add_option("\155\157\137\x6c\x64\141\x70\x5f\154\x6f\143\x61\154\x5f\x6d\145\x73\x73\x61\147\145", $Z9["\x73\x74\x61\x74\165\x73\x4d\145\163\x73\141\x67\x65"], '', "\156\157");
$nj = "\120\x69\x6e\147\40\163\x65\162\x76\x65\162\40\146\141\x69\154\x65\144\x20" . $Bt;
$this->show_error_message();
Yy:
goto wL;
TO:
$this->mo_ldap_report_update("\114\x44\101\x50\x20\x43\117\116\x4e\x45\x43\124\x49\x4f\x4e\x20\124\x45\123\x54", "\105\122\x52\x4f\x52", "\74\163\x74\162\157\156\147\76\124\x65\163\x74\40\x43\157\156\156\145\x63\164\151\157\x6e\x20\105\162\162\x6f\162\x3a\40\x3c\57\x73\x74\x72\x6f\x6e\x67\76" . $Z9["\x73\164\x61\164\x75\x73\115\145\x73\x73\141\147\x65"]);
add_option("\x6d\157\137\154\x64\141\x70\x5f\x6c\x6f\143\x61\x6c\x5f\x6d\145\x73\163\x61\x67\x65", $Z9["\163\x74\x61\164\165\x73\x4d\x65\x73\163\141\147\145"], '', "\156\157");
$nj = "\x4f\160\145\156\x53\x53\x4c\x20\x65\x78\164\145\156\x73\151\x6f\x6e\40\x6e\157\x74\x20\151\x6e\x73\x74\x61\154\154\145\x64\x2e";
$this->show_error_message();
wL:
goto PW;
FM:
$this->mo_ldap_report_update("\114\104\x41\x50\40\x43\117\x4e\x4e\105\x43\x54\111\117\116\x20\x54\x45\x53\x54", "\x45\122\x52\x4f\x52", "\x3c\x73\164\162\x6f\x6e\x67\76\124\x65\163\x74\x20\x43\x6f\156\156\x65\x63\x74\x69\x6f\x6e\40\105\162\162\157\162\72\40\74\x2f\163\x74\x72\157\156\147\x3e" . $Z9["\163\164\x61\164\165\163\115\145\163\x73\141\x67\145"]);
add_option("\x6d\157\137\154\x64\141\x70\x5f\x6c\157\143\141\x6c\137\x6d\x65\x73\163\141\147\x65", $Z9["\163\164\141\x74\x75\x73\x4d\145\x73\x73\x61\147\145"], '', "\156\x6f");
$nj = "\114\104\x41\x50\40\x65\x78\x74\x65\156\163\151\157\x6e\40\x6e\x6f\164\40\151\x6e\x73\x74\141\x6c\x6c\145\x64\56";
$this->show_error_message();
PW:
goto MD;
rO:
$this->mo_ldap_report_update("\114\x44\101\120\40\103\117\116\x4e\x45\103\124\111\x4f\x4e\x20\124\105\123\x54", "\105\x52\x52\x4f\122", "\x3c\x73\x74\162\157\156\x67\76\124\145\163\164\x20\x43\x6f\x6e\156\x65\143\x74\151\157\x6e\40\x45\x72\x72\x6f\162\72\x20\74\57\163\x74\x72\157\x6e\x67\x3e" . $Z9["\x73\164\x61\164\x75\x73\x4d\145\x73\x73\x61\147\x65"]);
add_option("\x6d\x6f\x5f\x6c\x64\141\x70\x5f\x6c\x6f\143\141\x6c\137\155\145\x73\163\141\x67\x65", $Z9["\x73\164\x61\164\165\x73\115\x65\x73\x73\141\147\x65"], '', "\156\157");
$nj = "\111\x6e\166\x61\x6c\151\144\40\x73\x65\x61\162\x63\150\40\x66\x69\x6c\x74\145\x72\x20\x6f\x72\40\163\x65\x61\x72\143\x68\x20\142\141\x73\145\56";
$this->show_error_message();
MD:
goto Jm;
ix:
add_option("\155\x6f\137\154\x64\141\160\137\154\157\x63\141\154\x5f\155\145\x73\163\141\147\145", $zc . "\40\103\157\156\156\145\143\x74\151\x6f\x6e\x20\x77\141\x73\x20\145\x73\164\x61\142\154\x69\x73\x68\x65\144\x20\x73\x75\143\143\145\x73\163\146\165\x6c\154\x79\x2e\40\x50\x6c\x65\141\163\x65\40\143\x6f\156\146\x69\x67\165\x72\x65\40\x4c\104\x41\x50\40\125\163\145\162\40\x4d\141\x70\160\x69\x6e\147\40\x6e\157\x77\x2e", '', "\x6e\x6f");
$nj = "\x54\145\163\x74\x20\x77\x61\x73\x20\x73\165\143\x63\x65\x73\x73\x66\165\154\56";
$this->show_success_message();
Jm:
goto Nu;
Oh:
update_option("\155\x6f\x5f\x6c\x64\x61\x70\137\154\x6f\143\x61\154\x5f\155\145\163\x73\141\x67\x65", "\x50\x48\120\40\x4f\x70\x65\156\x53\123\x4c\x20\145\170\x74\145\156\163\x69\157\156\x20\x69\163\40\156\x6f\x74\x20\x69\156\x73\x74\x61\154\x6c\x65\x64\x20\x6f\162\x20\144\x69\x73\x61\142\x6c\145\x64\56\x20\120\x6c\145\141\x73\145\40\x65\156\x61\x62\x6c\145\x20\x69\164\x20\146\151\162\163\x74\x2e");
$this->show_error_message();
Nu:
EI:
w9:
goto t4;
eJ:
if (NddKoYsdasadJD()) {
goto J2;
}
update_option("\155\x6f\137\154\144\141\160\x5f\154\157\x63\141\x6c\137\x6d\x65\163\163\x61\x67\x65", "\x53\x65\x74\164\x69\156\x67\x73\40\x63\141\x6e\x27\164\x20\142\x65\40\163\x61\x76\145\x64\40\167\x69\x74\x68\x6f\165\x74\x20\x76\145\x72\151\146\x79\x69\156\x67\40\x79\x6f\165\x72\40\154\151\143\145\156\x73\x65\40\153\x65\171\x2e");
$this->show_error_message();
goto hQ;
J2:
update_option("\x6d\157\x5f\x6c\144\141\x70\x5f\x6c\157\x63\x61\x6c\x5f\x72\x65\x67\151\163\164\145\x72\137\x75\163\145\162", isset($_POST["\x6d\x6f\137\x6c\144\141\160\137\x6c\x6f\x63\141\x6c\137\x72\x65\147\151\163\x74\145\162\x5f\165\163\145\x72"]) ? $_POST["\155\157\x5f\x6c\x64\x61\160\x5f\154\x6f\x63\141\x6c\137\162\x65\x67\x69\163\x74\x65\x72\137\x75\163\x65\162"] : 0);
if (get_option("\155\157\x5f\154\144\x61\160\x5f\x6c\x6f\143\141\154\x5f\162\145\x67\x69\x73\x74\145\x72\137\165\x73\x65\162")) {
goto tE;
}
update_option("\x6d\x6f\x5f\154\x64\141\x70\137\154\157\x63\x61\154\x5f\155\x65\x73\x73\x61\x67\x65", "\x41\x75\x74\x6f\40\122\x65\147\151\x73\x74\145\162\151\x6e\x67\40\x75\163\145\162\163\40\x68\x61\x73\40\142\x65\145\x6e\x20\144\x69\x73\x61\x62\x6c\x65\144\x2e");
$this->show_error_message();
goto p5;
tE:
update_option("\x6d\x6f\x5f\154\x64\141\160\x5f\154\157\x63\x61\154\137\x6d\x65\163\x73\x61\x67\x65", "\101\x75\164\x6f\x20\x52\145\147\x69\163\x74\145\x72\x69\x6e\x67\x20\x75\x73\x65\x72\163\40\150\141\163\40\x62\145\x65\x6e\40\x65\x6e\x61\x62\154\145\x64\x2e");
$this->show_success_message();
p5:
hQ:
t4:
goto LA;
Z0:
update_option("\155\157\137\154\x64\141\x70\x5f\x6c\x6f\x63\141\154\x5f\165\x73\145\x5f\x74\x6c\163", isset($_POST["\x6d\x6f\x5f\154\x64\x61\160\137\154\157\143\x61\x6c\137\164\154\x73\x5f\x65\x6e\x61\142\x6c\x65"]) ? $_POST["\155\157\x5f\x6c\x64\x61\x70\x5f\x6c\157\x63\141\x6c\137\x74\154\163\137\145\156\x61\142\154\145"] : 0);
if (get_option("\155\x6f\137\x6c\x64\x61\x70\x5f\x6c\157\143\141\154\137\x75\163\145\137\164\x6c\x73")) {
goto KV;
}
update_option("\155\x6f\137\154\144\x61\160\x5f\x6c\157\x63\x61\154\x5f\x6d\145\x73\x73\x61\147\145", "\124\114\x53\x20\x68\x61\163\40\x62\x65\x65\x6e\x20\144\151\x73\x61\x62\x6c\x65\x64");
$this->show_error_message();
goto cV;
KV:
update_option("\x6d\x6f\x5f\x6c\x64\x61\x70\137\154\157\143\141\154\x5f\x6d\145\163\163\141\147\x65", "\x54\114\x53\40\150\x61\163\x20\x62\x65\145\156\40\x65\x6e\141\x62\154\145\x64");
$this->show_success_message();
cV:
LA:
goto VN;
eh:
update_option("\x6d\x6f\x5f\x6c\144\141\160\x5f\x6c\x6f\143\141\x6c\137\153\145\145\160\137\x75\x73\x65\x72\x5f\x72\x65\160\157\x72\x74\137\154\157\x67\137\x6f\x6e\137\x75\x6e\151\156\163\164\141\154\154", isset($_POST["\x6d\157\x5f\154\x64\141\160\137\154\157\143\x61\154\x5f\153\x65\x65\160\137\x75\163\145\162\x5f\162\145\x70\x6f\162\x74\137\x6c\x6f\x67"]) ? $_POST["\155\157\x5f\154\x64\141\x70\137\154\157\143\x61\154\x5f\x6b\145\x65\160\137\x75\x73\145\162\137\x72\145\x70\157\x72\x74\x5f\154\157\x67"] : 0);
VN:
goto eA;
eE:
update_option("\x6d\x6f\137\x6c\x64\141\x70\137\x6c\157\x63\x61\154\137\x75\x73\145\x72\137\x72\x65\160\x6f\162\x74\137\154\x6f\x67", isset($_POST["\155\157\x5f\x6c\x64\141\x70\137\x6c\157\x63\x61\x6c\x5f\x75\163\145\x72\137\x72\x65\160\x6f\x72\x74\137\x6c\x6f\x67"]) ? $_POST["\x6d\157\x5f\x6c\x64\x61\160\x5f\154\157\143\x61\x6c\137\165\x73\x65\162\137\162\x65\x70\x6f\x72\164\x5f\x6c\157\147"] : 0);
$w7 = get_option("\x75\x73\x65\x72\137\154\157\147\x73\137\x74\x61\142\x6c\145\137\x65\170\x69\163\164\x73");
$Q0 = get_option("\155\x6f\137\154\x64\141\160\137\154\x6f\x63\x61\x6c\x5f\165\163\145\x72\137\162\145\x70\x6f\162\x74\137\154\157\x67");
if (!($Q0 == 1 && $w7 != 1)) {
goto dg;
}
$this->prefix_update_table();
dg:
eA:
goto bn;
Jp:
update_option("\155\157\x5f\154\144\141\160\x5f\154\157\x63\x61\x6c\137\x61\x6e\x6f\x6e\x79\x6d\157\x75\x73\x5f\142\x69\x6e\144", isset($_POST["\141\156\x6f\x6e\171\x6d\x6f\165\x73\137\142\x69\156\x64"]) ? $_POST["\x61\x6e\x6f\x6e\171\155\157\165\x73\137\x62\151\x6e\x64"] : 0);
bn:
goto W_;
T6:
if (NddKoYsdasadJD()) {
goto YD;
}
update_option("\155\x6f\137\154\x64\141\160\x5f\x6c\157\x63\x61\x6c\x5f\155\x65\x73\163\x61\x67\145", "\123\145\x74\x74\x69\x6e\147\163\40\143\x61\x6e\x27\x74\40\142\145\x20\163\141\166\145\144\40\x77\x69\164\150\157\165\164\x20\166\145\x72\x69\x66\x79\151\156\147\40\171\157\165\162\x20\154\x69\x63\x65\x6e\163\145\40\153\x65\x79\x2e");
$this->show_error_message();
goto u0;
YD:
update_option("\155\x6f\x5f\x6c\144\x61\160\x5f\154\157\x63\141\154\x5f\x65\x6e\141\x62\154\145\137\154\x6f\147\151\x6e", isset($_POST["\x65\156\x61\x62\154\145\x5f\x6c\144\141\160\x5f\x6c\x6f\147\x69\x6e"]) ? $_POST["\145\156\141\142\154\x65\137\154\144\x61\160\137\x6c\157\147\151\x6e"] : 0);
if (get_option("\155\157\137\154\144\x61\160\x5f\154\x6f\x63\x61\154\137\145\156\x61\x62\x6c\x65\x5f\x6c\x6f\147\151\x6e")) {
goto t9;
}
update_option("\x6d\x6f\x5f\x6c\x64\x61\160\137\x6c\157\143\x61\154\x5f\155\x65\x73\163\x61\147\145", "\114\157\x67\151\156\40\164\x68\x72\157\165\147\x68\x20\171\157\x75\162\x20\114\104\x41\x50\x20\150\x61\x73\x20\142\145\145\156\x20\x64\151\163\x61\x62\154\x65\x64\x2e");
$this->show_error_message();
goto dK;
t9:
update_option("\x6d\157\137\154\144\x61\160\x5f\154\x6f\143\141\x6c\137\155\145\x73\x73\x61\x67\x65", "\x4c\x6f\147\151\x6e\40\x74\x68\x72\x6f\x75\147\x68\x20\171\x6f\165\162\x20\x4c\x44\x41\120\40\150\141\x73\40\x62\x65\145\x6e\x20\145\x6e\141\x62\154\x65\144\56");
$this->show_success_message();
dK:
u0:
W_:
goto Z4;
r5:
$n3 = '';
$ah = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\145\155\x61\x69\154"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x70\x61\163\163\x77\157\x72\x64"])) {
goto Lf;
}
$n3 = sanitize_email($_POST["\x65\x6d\141\x69\x6c"]);
$ah = sanitize_text_field($_POST["\160\141\x73\x73\167\157\x72\x64"]);
goto Xb;
Lf:
update_option("\x6d\157\137\154\x64\x61\x70\x5f\154\157\x63\141\154\x5f\155\x65\x73\163\x61\x67\145", "\101\154\154\x20\x74\x68\145\x20\x66\151\x65\154\x64\163\40\x61\x72\145\x20\x72\145\161\x75\151\162\145\x64\56\x20\120\x6c\145\x61\163\x65\40\x65\156\164\145\x72\x20\166\x61\154\x69\144\x20\145\156\164\x72\151\x65\163\x2e");
$this->show_error_message();
return;
Xb:
update_option("\155\157\137\154\x64\141\x70\137\x6c\157\x63\141\x6c\x5f\x61\144\155\x69\x6e\137\x65\x6d\141\x69\154", $n3);
update_option("\155\x6f\x5f\x6c\x64\141\x70\137\154\x6f\x63\x61\154\x5f\160\x61\163\163\x77\157\x72\144", $ah);
$Bl = new Mo_Ldap_Local_Customer();
$aK = $Bl->get_customer_key();
$oV = json_decode($aK, true);
update_option("\x6d\157\x5f\154\144\x61\x70\x5f\x6c\157\143\141\x6c\x5f\166\x65\162\x69\x66\171\x5f\x63\x75\163\x74\x6f\155\x65\162", "\164\x72\x75\x65");
if (strcasecmp($oV["\x61\160\151\x4b\145\171"], "\x43\125\x52\x4c\x5f\x45\x52\x52\117\x52") == 0) {
goto Hm;
}
if (json_last_error() == JSON_ERROR_NONE) {
goto Iv;
}
update_option("\x6d\157\x5f\x6c\144\x61\160\x5f\x6c\157\143\141\x6c\x5f\155\145\163\x73\x61\147\145", "\x49\x6e\166\x61\154\x69\144\40\x75\163\145\x72\x6e\x61\155\145\x20\x6f\x72\40\x70\141\163\163\167\x6f\162\x64\x2e\40\120\x6c\x65\141\x73\x65\x20\164\x72\171\x20\x61\147\x61\151\156\56");
$this->show_error_message();
goto PL;
Iv:
update_option("\x6d\157\137\154\x64\x61\x70\x5f\x6c\x6f\x63\141\154\x5f\141\144\155\151\156\x5f\160\x68\157\156\145", $oV["\160\150\x6f\x6e\145"]);
$this->save_success_customer_config($oV["\151\x64"], $oV["\141\x70\151\113\145\x79"], $oV["\x74\x6f\153\x65\156"], "\x59\x6f\x75\x72\x20\x61\x63\143\157\165\x6e\x74\x20\150\141\163\40\x62\x65\x65\x6e\x20\162\x65\164\x72\x69\145\166\145\144\x20\x73\165\143\143\x65\163\163\146\165\154\x6c\171\x2e");
update_option("\x6d\x6f\137\x6c\144\141\160\x5f\x6c\x6f\x63\x61\x6c\137\160\x61\x73\163\167\157\x72\x64", '');
PL:
goto Vy;
Hm:
update_option("\155\x6f\x5f\154\x64\x61\160\137\x6c\157\143\x61\154\137\155\x65\x73\163\x61\x67\x65", $oV["\164\x6f\153\145\x6e"]);
$this->show_error_message();
Vy:
update_option("\155\x6f\137\154\x64\x61\x70\x5f\x6c\x6f\143\x61\154\137\x70\x61\x73\x73\x77\x6f\162\x64", '');
Z4:
goto sT;
Qz:
$n3 = '';
$LB = '';
$ah = '';
$Oc = '';
if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\145\x6d\x61\151\154"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\160\141\163\x73\167\x6f\x72\x64"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x63\157\x6e\146\x69\x72\155\120\x61\163\x73\167\x6f\162\144"])) {
goto Gt;
}
if (strlen($_POST["\x70\x61\x73\x73\167\157\162\144"]) < 6 || strlen($_POST["\143\157\156\146\151\162\x6d\120\141\163\x73\x77\157\x72\x64"]) < 6) {
goto Zh;
}
$n3 = sanitize_email($_POST["\145\155\141\151\x6c"]);
$LB = sanitize_text_field($_POST["\160\x68\x6f\156\x65"]);
$ah = sanitize_text_field($_POST["\x70\x61\163\x73\167\157\162\x64"]);
$Oc = sanitize_text_field($_POST["\143\157\156\146\151\x72\x6d\120\x61\163\163\x77\x6f\162\x64"]);
goto Vz;
Zh:
update_option("\x6d\x6f\x5f\x6c\x64\x61\x70\137\154\x6f\x63\x61\x6c\x5f\x6d\145\163\163\x61\x67\145", "\x43\x68\157\x6f\163\145\40\x61\40\x70\141\x73\163\x77\x6f\162\144\40\167\x69\x74\150\x20\155\x69\x6e\x69\155\165\x6d\40\x6c\145\x6e\147\164\150\x20\66\x2e");
$this->show_error_message();
return;
Vz:
goto sa;
Gt:
update_option("\155\x6f\137\x6c\144\x61\160\x5f\x6c\157\143\141\154\x5f\x6d\x65\163\x73\141\147\145", "\101\x6c\154\x20\x74\x68\x65\x20\x66\x69\x65\x6c\144\x73\x20\x61\x72\x65\40\162\x65\161\x75\x69\162\x65\x64\56\40\120\154\145\141\163\x65\x20\145\156\164\x65\x72\40\166\141\154\x69\144\x20\x65\x6e\164\162\x69\145\x73\56");
$this->show_error_message();
return;
sa:
update_option("\x6d\x6f\x5f\x6c\144\x61\x70\x5f\154\x6f\x63\x61\154\x5f\141\x64\x6d\x69\x6e\137\x65\x6d\141\x69\154", $n3);
if (!($LB != '')) {
goto bh;
}
update_option("\x6d\157\x5f\154\144\141\x70\137\x6c\157\143\x61\x6c\137\x61\144\x6d\x69\156\137\160\150\157\156\x65", $LB);
bh:
if (strcmp($ah, $Oc) == 0) {
goto ez;
}
update_option("\x6d\157\x5f\154\144\141\160\x5f\154\157\143\x61\x6c\x5f\x6d\145\163\x73\x61\x67\145", "\120\x61\163\x73\167\157\162\144\40\141\x6e\x64\40\103\x6f\x6e\x66\151\x72\155\x20\160\141\x73\163\167\157\162\x64\40\144\157\40\156\x6f\164\40\155\141\x74\x63\x68\56");
delete_option("\155\157\137\154\x64\141\x70\x5f\154\157\x63\x61\154\137\x76\145\162\151\146\x79\137\143\165\x73\164\x6f\155\x65\162");
$this->show_error_message();
goto rP;
ez:
update_option("\155\157\137\154\x64\x61\x70\x5f\154\x6f\143\x61\154\137\160\x61\163\x73\x77\157\162\x64", $ah);
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->check_customer(), true);
if (strcasecmp($aK["\x73\x74\x61\x74\165\163"], "\x43\x55\123\x54\117\x4d\x45\x52\137\x4e\117\124\137\106\117\x55\x4e\x44") == 0) {
goto SJ;
}
if (strcasecmp($aK["\x73\164\141\164\165\x73"], "\x43\125\x52\114\x5f\105\x52\x52\x4f\122") == 0) {
goto ey;
}
$aK = $Bl->get_customer_key();
$oV = json_decode($aK, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto eX;
}
update_option("\155\x6f\137\x6c\x64\141\160\137\x6c\157\x63\x61\x6c\137\155\x65\163\x73\x61\147\x65", "\131\x6f\165\x20\x61\x6c\x72\x65\x61\144\x79\40\150\141\x76\145\x20\141\156\x20\141\143\143\x6f\x75\x6e\x74\40\x77\151\164\150\40\x6d\x69\x6e\x69\x4f\x72\141\x6e\147\x65\x2e\x20\x50\x6c\145\141\x73\x65\x20\x65\156\164\145\x72\40\x61\x20\x76\x61\154\x69\x64\40\160\141\163\x73\x77\157\x72\144\x2e");
update_option("\x6d\157\x5f\154\x64\x61\x70\137\154\157\x63\141\x6c\x5f\166\145\162\151\146\171\x5f\143\165\x73\164\x6f\x6d\145\x72", "\x74\x72\x75\145");
delete_option("\155\157\137\x6c\144\x61\160\x5f\154\157\143\x61\154\x5f\x6e\x65\x77\x5f\x72\145\147\151\163\164\162\141\164\x69\x6f\156");
$this->show_error_message();
goto Qu;
eX:
$this->save_success_customer_config($oV["\151\x64"], $oV["\x61\x70\x69\113\145\x79"], $oV["\164\x6f\153\x65\156"], "\x59\157\165\x72\40\x61\x63\143\x6f\165\x6e\x74\x20\150\x61\x73\x20\x62\145\x65\156\40\162\145\164\162\151\x65\166\145\x64\x20\163\165\143\143\x65\163\163\146\x75\154\154\x79\x2e");
update_option("\155\157\137\154\x64\x61\160\137\154\157\x63\141\154\x5f\x70\141\x73\163\x77\x6f\x72\144", '');
Qu:
goto AN;
ey:
update_option("\155\157\137\154\144\x61\160\x5f\154\x6f\x63\141\154\x5f\155\145\x73\163\141\147\145", $aK["\x73\x74\141\164\165\163\x4d\145\163\x73\x61\x67\x65"]);
update_option("\x6d\x6f\x5f\x6c\x64\141\160\x5f\x6c\157\x63\141\x6c\x5f\162\145\x67\x69\x73\x74\162\141\164\x69\x6f\156\137\163\x74\141\164\165\163", "\115\x4f\x5f\117\x54\120\x5f\x44\105\x4c\111\x56\x45\x52\x45\104\137\106\101\x49\114\x55\x52\x45");
$this->show_error_message();
AN:
goto wU;
SJ:
$HO = "\x45\x4d\101\111\x4c";
$aK = json_decode($Bl->send_otp_token($HO, null), true);
if (strcasecmp($aK["\x73\164\x61\164\x75\163"], "\x53\x55\103\x43\105\x53\x53") == 0) {
goto VY;
}
update_option("\x6d\x6f\137\154\144\141\160\137\x6c\x6f\143\141\x6c\137\155\145\x73\x73\141\x67\x65", "\124\150\145\162\x65\40\x77\x61\x73\40\141\156\x20\x65\x72\x72\x6f\162\x20\151\x6e\40\x73\145\x6e\144\x69\156\147\x20\145\x6d\x61\151\x6c\56\40\120\154\x65\141\163\145\x20\143\x6c\x69\x63\153\40\157\x6e\x20\122\145\163\145\156\x64\40\117\124\120\40\x74\x6f\x20\164\x72\x79\40\x61\x67\x61\x69\156\56");
update_option("\x6d\157\x5f\x6c\144\x61\x70\137\154\157\x63\x61\154\137\x72\x65\147\x69\163\164\162\141\164\x69\157\x6e\137\x73\x74\141\x74\x75\163", "\x4d\117\137\x4f\124\x50\x5f\x44\105\114\111\126\105\122\105\104\137\x46\101\x49\114\x55\x52\x45");
$this->show_error_message();
goto wY;
VY:
update_option("\155\x6f\137\x6c\144\x61\160\x5f\x6c\157\x63\141\154\x5f\x65\x6d\141\151\x6c\x5f\143\x6f\165\156\164", 1);
update_option("\155\x6f\x5f\x6c\x64\x61\160\x5f\x6c\x6f\x63\x61\154\137\x6d\x65\x73\163\x61\x67\x65", "\x41\40\117\x6e\x65\x20\x54\x69\x6d\x65\40\120\141\x73\x73\x63\157\144\145\40\x68\x61\163\40\x62\145\x65\156\x20\x73\x65\x6e\164\40\x3c\x62\76\50\40\61\40\x29\74\x2f\142\76\40\x74\157\40\x3c\x62\76" . get_option("\155\157\137\x6c\144\141\x70\137\x6c\157\143\x61\154\137\x61\x64\155\x69\x6e\137\x65\155\141\x69\154") . "\x3c\x2f\x62\x3e\56\40\120\x6c\145\x61\163\x65\40\145\156\x74\145\x72\x20\x74\x68\x65\40\117\124\120\40\x62\145\x6c\x6f\167\40\164\157\x20\166\145\x72\151\x66\x79\x20\x79\x6f\x75\162\x20\145\x6d\x61\151\x6c\56\40");
update_option("\x6d\157\137\154\x64\141\160\137\x6c\x6f\143\141\154\x5f\164\162\x61\x6e\163\x61\x63\x74\x69\x6f\x6e\x49\x64", $aK["\164\x78\111\x64"]);
update_option("\155\x6f\x5f\x6c\144\x61\x70\x5f\154\157\143\x61\154\137\162\x65\x67\x69\163\x74\162\x61\x74\151\x6f\x6e\x5f\x73\164\141\164\x75\x73", "\115\x4f\137\117\124\x50\137\x44\105\114\x49\126\x45\122\x45\104\137\x53\125\x43\103\x45\x53\123");
$this->show_success_message();
wY:
wU:
rP:
sT:
if (isset($_POST["\x6f\160\x74\x69\157\x6e"]) && $_POST["\157\x70\x74\151\157\x6e"] == "\155\x6f\137\154\144\141\160\137\154\x6f\x63\x61\x6c\137\x76\x65\x72\x69\146\x79\x5f\154\x69\x63\145\x6e\x73\x65") {
goto kY;
}
if (isset($_POST["\157\160\164\x69\x6f\x6e"]) && $_POST["\157\160\x74\151\157\156"] == "\155\157\x5f\154\144\x61\x70\137\154\x6f\143\x61\154\x5f\146\162\x65\145\137\164\162\x69\x61\154") {
goto lK;
}
if (!(isset($_POST["\157\x70\164\151\157\x6e"]) && $_POST["\157\160\164\151\x6f\x6e"] == "\x6d\x6f\x5f\x6c\144\x61\x70\137\154\x6f\x63\x61\x6c\137\x63\x68\145\x63\153\137\154\x69\143\145\156\x73\145")) {
goto sQ;
}
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->check_customer_ln(), true);
if (strcasecmp($aK["\x73\164\x61\x74\165\163"], "\x53\125\x43\103\105\x53\123") == 0) {
goto FI;
}
$P8 = add_query_arg(array("\x74\x61\x62" => "\x70\x72\x69\143\151\x6e\147"), $_SERVER["\122\x45\121\x55\x45\x53\124\x5f\125\x52\111"]);
update_option("\155\157\x5f\154\144\x61\x70\137\154\157\143\141\x6c\137\155\x65\163\163\x61\147\x65", "\x59\157\165\x20\x68\x61\x76\x65\40\x6e\x6f\164\x20\x75\160\x67\x72\x61\x64\145\x64\40\x79\x65\164\x2e\40\74\141\x20\x68\162\x65\146\x3d\42" . $P8 . "\42\76\103\x6c\x69\x63\x6b\x20\150\145\162\145\74\57\141\76\x20\x74\x6f\40\165\x70\147\162\x61\x64\145\x20\x74\157\40\160\162\x65\x6d\x69\165\155\40\166\x65\x72\163\151\x6f\156\56");
$this->show_error_message();
goto xn;
FI:
if (array_key_exists("\x6c\151\x63\145\x6e\x73\145\x50\x6c\x61\x6e", $aK) && !Mo_Ldap_Local_Util::check_empty_or_null($aK["\x6c\x69\x63\145\x6e\x73\145\120\154\141\x6e"])) {
goto OJ;
}
update_option("\x73\151\164\x65\137\143\x6b\x5f\x6c", Mo_Ldap_Local_Util::encrypt("\146\141\154\x73\145"));
$P8 = add_query_arg(array("\164\x61\x62" => "\160\x72\x69\x63\151\x6e\x67"), $_SERVER["\122\x45\x51\125\105\x53\x54\137\125\122\x49"]);
update_option("\x6d\x6f\x5f\x6c\144\x61\x70\x5f\154\x6f\x63\141\x6c\x5f\x6d\145\x73\163\141\x67\145", "\x59\157\x75\x20\150\141\x76\x65\x20\x6e\x6f\164\40\165\x70\x67\x72\x61\144\x65\144\x20\171\145\164\x2e\x20\x3c\x61\x20\x68\162\145\x66\x3d\x22" . $P8 . "\42\76\103\x6c\x69\x63\x6b\40\x68\145\162\x65\x3c\57\141\x3e\x20\164\157\x20\x75\x70\x67\x72\x61\x64\x65\x20\164\x6f\x20\160\162\x65\x6d\x69\165\x6d\x20\166\145\162\x73\151\x6f\x6e\56");
$this->show_error_message();
goto fV;
OJ:
update_option("\x6d\x6f\x5f\x6c\144\x61\x70\137\x6c\157\x63\141\154\137\154\x69\x63\x65\156\163\x65\x5f\x6e\x61\x6d\145", base64_encode($aK["\154\151\x63\145\x6e\x73\x65\x50\x6c\x61\x6e"]));
update_option("\163\151\x74\x65\x5f\143\x6b\137\x6c", Mo_Ldap_Local_Util::encrypt("\164\162\x75\145"));
$P8 = add_query_arg(array("\164\x61\x62" => "\141\x63\143\157\165\x6e\x74"), $_SERVER["\122\105\121\125\105\x53\x54\137\x55\122\111"]);
update_option("\155\157\137\154\144\141\x70\137\154\157\143\x61\x6c\137\x6d\x65\163\x73\x61\147\x65", "\131\157\x75\x20\150\141\166\x65\x20\x73\165\143\143\x65\163\163\146\165\x6c\154\171\40\x75\160\x67\x72\141\x64\145\144\x20\164\x6f\40\x70\162\145\155\x69\165\x6d\40\166\145\x72\x73\151\x6f\156\56\40\x3c\x61\x20\150\162\145\x66\x3d\42" . $P8 . "\x22\x3e\103\x6c\x69\x63\x6b\40\150\x65\162\x65\74\x2f\x61\76\x20\164\157\x20\141\x63\x74\151\x76\x61\x74\x65\x20\171\157\x75\162\40\x6c\x69\143\x65\x6e\163\x65\x2e");
$this->show_success_message();
fV:
xn:
sQ:
goto XF;
lK:
if (decryptLDAPElement()) {
goto Wc;
}
$KL = post_response();
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->XfskodsfhHJ($KL), true);
if (strcasecmp($aK["\163\x74\141\164\165\163"], "\x53\x55\103\x43\x45\x53\123") == 0) {
goto MY;
}
if (strcasecmp($aK["\x73\164\x61\x74\x75\x73"], "\106\101\x49\x4c\105\x44") == 0) {
goto Td;
}
update_option("\155\x6f\x5f\x6c\x64\x61\160\137\x6c\157\143\141\154\x5f\x6d\x65\x73\163\141\147\145", "\x41\x6e\x20\x65\x72\x72\157\x72\x20\157\x63\x63\165\x72\145\x64\40\x77\x68\x69\x6c\x65\x20\160\x72\x6f\143\x65\163\163\x69\x6e\x67\x20\x79\x6f\x75\x72\x20\x72\x65\161\x75\145\x73\164\56\40\120\x6c\145\141\163\145\40\x54\x72\171\40\x61\x67\x61\151\x6e\x2e");
$this->show_error_message();
goto DF;
Td:
update_option("\x6d\157\x5f\x6c\144\141\x70\137\154\157\143\x61\154\137\x6d\145\x73\163\x61\x67\145", "\124\x68\x65\x72\x65\x20\167\141\163\x20\141\x6e\40\145\x72\162\157\162\40\141\x63\164\x69\166\x61\164\x69\x6e\x67\x20\171\x6f\165\x72\40\124\122\111\101\x4c\x20\166\x65\162\x73\x69\x6f\x6e\56\40\x50\x6c\145\x61\x73\145\x20\143\x6f\x6e\x74\x61\143\164\x20\x69\x6e\x66\157\x40\170\145\143\165\162\x69\146\x79\x2e\143\x6f\x6d\x20\x66\157\162\x20\x67\145\164\164\151\156\x67\40\156\145\167\x20\x6c\151\x63\145\156\x73\x65\x20\x66\x6f\162\40\x74\x72\x69\x61\x6c\40\x76\x65\162\163\x69\x6f\156\56");
$this->show_error_message();
DF:
goto L1;
MY:
update_option("\x6d\x6f\137\154\144\141\160\x5f\154\157\x63\x61\154\137\151\163\x5f\x74\162\151\141\x6c\x5f\153\x65\x79", Mo_Ldap_Local_Util::encrypt($KL));
update_option("\164\137\163\151\x74\x65\137\x73\x74\141\x74\165\163", Mo_Ldap_Local_Util::encrypt("\164\162\x75\145"));
update_option("\x6d\157\137\154\144\141\160\137\154\x6f\143\x61\154\x5f\x6d\145\163\x73\141\x67\145", "\131\x6f\x75\162\x20\x35\x20\x64\x61\x79\163\40\124\122\x49\x41\114\40\151\163\40\x61\143\x74\151\166\x61\x74\x65\x64\56\x20\131\x6f\x75\x20\143\x61\156\40\x6e\157\x77\40\163\x65\164\x75\x70\x20\x74\150\x65\x20\x70\x6c\165\x67\151\156\x2e");
$this->show_success_message();
L1:
goto LZ;
Wc:
update_option("\155\157\x5f\x6c\x64\141\160\137\154\x6f\x63\x61\154\137\155\145\163\163\141\147\x65", "\124\x68\145\162\x65\40\167\141\163\x20\x61\x6e\x20\145\162\162\157\x72\x20\x61\x63\164\151\x76\141\x74\x69\156\x67\40\171\x6f\x75\x72\40\124\122\111\x41\114\x20\x76\145\162\163\x69\157\156\x2e\40\x45\x69\x74\150\145\x72\x20\x79\x6f\x75\x72\40\x74\162\151\141\154\x20\x70\145\x72\151\x6f\x64\x20\x69\x73\x20\145\170\160\x69\162\x65\x64\x20\x6f\162\40\x79\x6f\x75\x20\x61\162\145\x20\165\163\151\x6e\x67\40\167\x72\x6f\156\x67\x20\x74\162\151\x61\x6c\40\x76\145\162\163\x69\x6f\x6e\x2e\40\x50\154\145\141\163\145\40\x63\157\x6e\x74\x61\143\164\40\151\156\x66\x6f\100\170\x65\x63\x75\x72\x69\146\x79\56\143\157\x6d\x20\x66\157\x72\x20\x67\145\x74\x74\151\x6e\147\x20\x6e\x65\167\x20\154\151\x63\x65\x6e\163\x65\40\146\x6f\162\x20\x74\x72\151\x61\x6c\40\x76\x65\x72\x73\151\x6f\156\x2e");
$this->show_error_message();
LZ:
XF:
goto S2;
kY:
if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x6d\x6f\x5f\154\144\x61\160\137\154\x6f\x63\141\x6c\137\154\x69\143\145\156\163\145\137\153\x65\x79"])) {
goto Q6;
}
update_option("\x6d\157\x5f\x6c\x64\x61\x70\x5f\x6c\x6f\143\x61\154\x5f\x6d\145\163\163\141\x67\x65", "\x41\x6c\154\x20\x74\x68\145\x20\x66\x69\145\x6c\x64\x73\x20\x61\x72\145\x20\162\x65\161\165\151\162\145\x64\56\40\x50\x6c\145\141\163\x65\x20\145\156\x74\x65\x72\40\166\x61\154\151\x64\x20\x6c\x69\x63\x65\x6e\163\145\x20\153\x65\171\56");
$this->show_error_message();
return;
Q6:
$KL = trim($_POST["\155\x6f\137\x6c\x64\x61\160\137\154\x6f\143\141\x6c\x5f\x6c\x69\143\145\156\163\x65\x5f\153\x65\171"]);
$Bl = new Mo_Ldap_Local_Customer();
$aK = json_decode($Bl->XfskodsfhHJ($KL), true);
if (strcasecmp($aK["\x73\164\x61\x74\x75\x73"], "\x53\x55\103\103\x45\123\x53") == 0) {
goto Kl;
}
if (strcasecmp($aK["\163\164\x61\x74\165\x73"], "\106\101\x49\114\105\x44") == 0) {
goto Lo;
}
update_option("\x6d\157\x5f\x6c\144\141\160\x5f\154\157\x63\141\154\x5f\x6d\145\x73\x73\x61\147\x65", "\101\x6e\40\x65\162\162\157\x72\40\x6f\x63\143\165\162\x65\x64\x20\167\150\x69\154\145\40\160\162\x6f\143\x65\x73\x73\151\x6e\x67\x20\x79\x6f\x75\x72\40\x72\x65\x71\165\x65\163\164\56\40\120\154\145\x61\163\145\40\x54\x72\x79\40\x61\x67\x61\x69\156\x2e");
$this->show_error_message();
goto cG;
Lo:
if (strcasecmp($aK["\x6d\145\x73\163\x61\147\145"], "\103\157\x64\145\x20\150\x61\163\40\x45\170\x70\x69\162\x65\144") == 0) {
goto qp;
}
update_option("\x6d\x6f\x5f\x6c\144\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\155\145\163\163\141\147\145", "\x59\x6f\165\x20\x68\141\x76\145\40\x65\156\164\x65\162\x65\144\40\x61\156\x20\x69\x6e\x76\x61\x6c\151\144\x20\154\x69\x63\x65\x6e\x73\x65\40\x6b\x65\x79\56\40\120\154\x65\x61\163\145\40\145\156\164\x65\x72\x20\x61\40\x76\x61\x6c\151\144\x20\154\151\143\145\x6e\163\x65\x20\x6b\x65\x79\x2e");
goto VB;
qp:
$P8 = add_query_arg(array("\x74\x61\x62" => "\x70\162\x69\143\151\156\x67"), $_SERVER["\x52\105\121\x55\105\x53\x54\x5f\125\122\111"]);
update_option("\x6d\x6f\137\154\144\x61\160\x5f\x6c\x6f\x63\x61\154\x5f\x6d\145\x73\163\141\x67\x65", "\x4c\151\x63\145\x6e\163\x65\40\x6b\145\171\x20\x79\157\x75\x20\150\141\x76\x65\40\145\x6e\x74\145\162\x65\144\40\x68\141\x73\40\x61\x6c\x72\145\141\x64\171\x20\x62\145\145\x6e\x20\x75\163\x65\144\x2e\x20\x50\154\x65\141\163\145\40\x65\x6e\x74\x65\162\40\x61\40\x6b\x65\x79\40\x77\x68\151\x63\x68\x20\x68\x61\x73\40\x6e\x6f\164\x20\x62\x65\145\x6e\40\x75\163\x65\x64\40\142\x65\146\157\162\x65\x20\157\x6e\x20\x61\156\171\x20\x6f\x74\150\145\162\40\151\x6e\163\x74\x61\x6e\143\x65\40\x6f\162\x20\151\x66\x20\171\157\x75\40\150\141\x76\145\x20\145\x78\141\165\163\164\x65\144\x20\141\154\x6c\x20\171\157\x75\x72\x20\x6b\x65\x79\163\40\x74\150\145\x6e\x20\74\141\40\x68\162\145\146\75\x22" . $P8 . "\42\x3e\103\154\151\143\153\40\150\145\x72\x65\74\57\x61\x3e\40\x74\157\x20\x62\165\x79\x20\155\x6f\x72\145\x2e");
VB:
$this->show_error_message();
cG:
goto Eb;
Kl:
update_option("\x6d\157\137\x6c\x64\x61\160\137\154\x6f\143\141\x6c\137\154\151\x63\x65\156\163\x65\137\153\x65\x79", Mo_Ldap_Local_Util::encrypt($KL));
update_option("\155\x6f\137\x6c\x64\141\160\x5f\154\157\143\x61\x6c\x5f\155\145\x73\163\x61\x67\x65", "\131\157\165\162\40\x6c\x69\x63\x65\156\x73\x65\40\151\x73\x20\x76\x65\x72\x69\146\x69\145\144\56\40\x59\157\165\40\143\141\156\x20\156\157\x77\x20\163\x65\164\x75\160\40\x74\150\x65\x20\x70\x6c\x75\147\x69\x6e\56");
update_option("\x74\137\x73\x69\164\x65\x5f\163\x74\141\164\x75\x73", Mo_Ldap_Local_Util::encrypt("\x66\141\x6c\x73\x65"));
update_option("\x73\x69\x74\x65\x5f\143\153\x5f\x6c", Mo_Ldap_Local_Util::encrypt("\x74\x72\x75\x65"));
$this->show_success_message();
Eb:
S2:
XM:
if (mo_ldap_local_ntlsl()) {
goto Wk;
}
if (ch_xdigit()) {
goto tp;
}
delete_option("\155\x6f\137\x6c\x64\141\x70\137\154\157\x63\141\x6c\x5f\145\156\141\x62\x6c\145\x5f\154\x6f\147\x69\x6e");
tp:
goto tB;
Wk:
if (!decryptLDAPElement()) {
goto qy;
}
update_option("\x74\x5f\x73\x69\x74\x65\x5f\163\164\141\x74\165\x73", Mo_Ldap_Local_Util::encrypt("\x66\141\154\x73\x65"));
qy:
tB:
}
function miniorange_ldap_export()
{
if (!(array_key_exists("\x6f\160\164\151\157\156", $_POST) && $_POST["\157\160\x74\151\157\156"] == "\155\157\x5f\154\x64\x61\160\137\x65\170\160\x6f\162\164")) {
goto fv;
}
$ZM = unserialize(Tab_ldap_Class_Names);
$ZA = array();
foreach ($ZM as $fc => $Kq) {
$ZA[$fc] = $this->mo_get_configuration_array($Kq);
U0:
}
u6:
header("\103\x6f\x6e\164\x65\156\164\x2d\x44\151\x73\x70\157\x73\x69\164\151\157\x6e\x3a\x20\x61\164\x74\x61\143\x68\x6d\x65\x6e\x74\73\40\x66\x69\x6c\145\x6e\141\155\x65\x3d\x6d\151\x6e\x69\x6f\162\141\x6e\x67\145\55\154\144\141\x70\x2d\143\157\x6e\146\x69\147\56\152\163\x6f\156");
echo json_encode($ZA, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
die;
fv:
}
function mo_get_configuration_array($in)
{
$UA = call_user_func($in . "\x3a\72\x67\x65\164\x43\157\156\163\x74\141\x6e\164\163");
$Q8 = get_option("\155\157\x5f\x6c\x64\x61\160\x5f\154\x6f\143\141\x6c\x5f\x72\157\x6c\x65\137\155\x61\160\160\x69\156\x67\x5f\x63\157\165\x6e\x74");
$GE = array();
$TC = array();
$RP = array();
$YR = array();
foreach ($UA as $fc => $Kq) {
if ($Kq == "\x6d\x6f\x5f\154\x64\141\160\x5f\154\157\143\x61\x6c\x5f\x73\x65\162\166\x65\162\x5f\x75\x72\154" or $Kq == "\155\157\137\x6c\144\141\x70\137\154\157\143\141\x6c\137\163\145\162\166\145\x72\x5f\x70\x61\163\163\167\157\x72\144" or $Kq == "\x6d\x6f\x5f\x6c\144\x61\160\x5f\154\x6f\x63\x61\154\137\163\145\x72\166\145\x72\137\x64\156" or $Kq == "\x6d\157\x5f\x6c\x64\141\160\x5f\x6c\x6f\x63\141\154\x5f\x73\x65\141\x72\143\x68\137\142\141\x73\145" or $Kq == "\155\157\x5f\x6c\x64\141\160\x5f\154\x6f\143\141\154\x5f\x73\x65\x61\x72\x63\150\x5f\x66\x69\154\x74\145\162" or $Kq == "\x6d\157\137\154\x64\141\160\x5f\x6c\157\x63\x61\154\x5f\x75\x73\x65\x72\x6e\x61\155\x65\137\x61\164\x74\x72\x69\x62\x75\164\145") {
goto dL;
}
$zI = 0;
goto l_;
dL:
$zI = 1;
l_:
if ($Kq == "\155\x6f\137\x6c\x64\141\160\x5f\154\x6f\143\x61\x6c\x5f\155\141\160\x70\151\x6e\x67\137\x6b\x65\171\137") {
goto dR;
}
if ($Kq == "\x6d\x6f\x5f\154\x64\141\x70\x5f\x6c\x6f\x63\141\x6c\137\x6d\141\160\160\151\156\147\137\x76\x61\x6c\165\145\137") {
goto pp;
}
if ($Kq == "\x6d\x6f\x5f\x6c\x64\141\x70\x5f\154\x6f\143\x61\154\137\x63\165\163\x74\x6f\x6d\x5f\x61\x74\164\x72\x69\x62\165\x74\x65\137") {
goto k4;
}
$Gq = get_option($Kq);
goto i7;
dR:
$GG = 1;
gw:
if (!($GG <= $Q8)) {
goto DH;
}
$TC[$GG] = get_option($Kq . $GG);
ta:
$GG++;
goto gw;
DH:
$Gq = $TC;
goto i7;
pp:
$GG = 1;
Ts:
if (!($GG <= $Q8)) {
goto KZ;
}
$RP[$GG] = get_option($Kq . $GG);
Z3:
$GG++;
goto Ts;
KZ:
$Gq = $RP;
goto i7;
k4:
$G2 = wp_load_alloptions();
$GG = 1;
foreach ($G2 as $Zh => $t0) {
if (strpos($Zh, "\x6d\157\137\x6c\x64\141\160\137\154\x6f\x63\141\x6c\x5f\x63\165\163\164\157\155\x5f\141\x74\164\162\151\x62\x75\164\145\x5f") === false) {
goto LT;
}
$YR[$GG++] = get_option($Zh);
goto P9;
LT:
P9:
nA:
}
kw:
$Gq = $YR;
i7:
if (!$Gq) {
goto gH;
}
if (!(@unserialize($Gq) !== false)) {
goto o1;
}
$Gq = unserialize($Gq);
o1:
if ($zI == 1) {
goto BX;
}
$GE[$fc] = $Gq;
goto iH;
BX:
if ($Kq == "\155\157\x5f\154\144\x61\160\x5f\x6c\157\143\141\x6c\137\x73\x65\162\x76\x65\x72\137\160\x61\163\163\167\157\162\144" and get_option(mo_ldap_export) == "\x30") {
goto hH;
}
if ($Kq == "\x6d\x6f\x5f\154\144\x61\160\x5f\154\157\143\141\154\x5f\x73\x65\162\x76\x65\x72\137\x70\x61\163\163\167\157\x72\144" and get_option(mo_ldap_export) == "\61") {
goto jd;
}
$GE[$fc] = Mo_Ldap_Local_Util::decrypt($Gq);
goto a1;
jd:
$GE[$fc] = $Gq;
a1:
goto OE;
hH:
goto lt;
OE:
iH:
gH:
lt:
}
Ss:
return $GE;
}
function auto_email_ldap_export()
{
$Bt = get_option("\155\157\137\x6c\x64\141\x70\x5f\154\157\x63\141\154\x5f\x73\145\x72\x76\x65\x72\x5f\165\x72\x6c") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\137\154\144\x61\x70\x5f\154\157\143\x61\x6c\137\x73\145\162\166\145\x72\137\165\x72\x6c")) : '';
$V6 = get_option("\x6d\157\x5f\x6c\x64\141\x70\137\154\x6f\143\x61\x6c\x5f\163\145\x72\166\145\x72\137\144\156") ? Mo_Ldap_Local_Util::decrypt(get_option("\155\x6f\137\x6c\144\141\160\x5f\154\x6f\x63\x61\154\137\x73\145\x72\166\145\x72\x5f\144\156")) : '';
$iK = get_option("\x6d\157\x5f\x6c\x64\141\x70\137\154\157\x63\x61\154\x5f\163\145\x61\x72\143\x68\137\x62\141\163\145") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\157\x5f\x6c\144\141\x70\137\154\157\x63\x61\154\x5f\x73\145\141\162\143\150\137\142\141\x73\x65")) : '';
$Io = get_option("\x6d\157\x5f\154\144\141\x70\x5f\154\157\143\141\154\137\x73\x65\x61\x72\x63\x68\137\x66\151\154\x74\x65\x72") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\x5f\154\x64\x61\160\137\154\x6f\x63\x61\154\137\x73\x65\141\x72\143\x68\137\146\151\154\164\145\162")) : '';
$Bm = array("\114\x44\101\120\x20\x53\x65\162\x76\x65\162" => "\x4c\x44\101\x50\40\x53\145\x72\166\x65\162\x3a\40\x20" . $Bt, "\x53\145\162\166\151\x63\145\x20\101\x63\x63\x6f\x75\x6e\x74\40\104\x4e" => "\x53\x65\162\x76\151\x63\145\40\x41\143\x63\157\x75\x6e\x74\40\x44\x4e\x3a\x20\40" . $V6, "\x53\145\x61\x72\x63\x68\x20\x42\141\x73\145" => "\123\x65\141\x72\x63\x68\40\102\141\163\x65\x3a\x20\40" . $iK, "\114\x44\101\120\x20\x53\x65\x61\162\143\150\40\106\x69\154\164\145\x72" => "\x4c\104\x41\x50\40\123\145\141\162\143\150\40\x46\x69\x6c\x74\x65\x72\x3a\x20\x20" . $Io);
return $Bm;
}
function test_attribute_configuration()
{
if (!is_user_logged_in()) {
goto rU;
}
if (!(current_user_can("\x61\x64\x6d\151\x6e\151\x73\x74\162\x61\164\157\x72") && isset($_REQUEST["\x6f\x70\x74\151\x6f\156"]))) {
goto O2;
}
if ($_REQUEST["\x6f\160\x74\x69\157\x6e"] == "\164\145\163\164\141\164\x74\162\x63\x6f\156\x66\151\x67") {
goto pC;
}
if (!(current_user_can("\141\x64\155\x69\x6e\151\x73\164\162\141\164\157\x72") && $_REQUEST["\157\160\164\x69\157\156"] == "\x74\145\163\x74\x72\x6f\x6c\145\x6d\x61\160\x70\x69\x6e\x67\x63\x6f\156\146\151\x67")) {
goto bI;
}
$G6 = $_REQUEST["\x75\163\145\x72"];
$Xv = new Mo_Ldap_Local_Role_Mapping();
$Xv->test_configuration($G6);
bI:
goto PZ;
pC:
$G6 = $_REQUEST["\165\x73\x65\162"];
$km = new Mo_Ldap_Local_Config();
$km->test_attribute_configuration($G6);
PZ:
O2:
rU:
}
function save_success_customer_config($LC, $l0, $jL, $zc)
{
update_option("\x6d\157\x5f\154\144\x61\160\137\154\157\143\141\154\137\141\144\x6d\151\x6e\x5f\143\x75\x73\164\x6f\x6d\x65\x72\137\153\145\x79", $LC);
update_option("\x6d\x6f\x5f\x6c\144\x61\x70\137\x6c\157\x63\x61\154\x5f\141\144\155\151\156\x5f\x61\x70\x69\137\153\x65\171", $l0);
update_option("\155\x6f\x5f\154\x64\x61\160\x5f\154\x6f\143\141\154\x5f\143\165\163\164\x6f\155\x65\x72\137\x74\x6f\153\x65\x6e", $jL);
update_option("\x6d\x6f\x5f\154\144\141\160\137\154\x6f\143\x61\x6c\x5f\x70\141\x73\163\x77\x6f\x72\144", '');
update_option("\x6d\x6f\137\x6c\x64\141\160\x5f\154\157\143\141\x6c\137\155\145\x73\163\141\147\x65", $zc);
delete_option("\155\157\x5f\154\144\x61\160\x5f\x6c\157\x63\141\x6c\x5f\166\145\162\151\146\171\x5f\143\x75\163\164\x6f\155\145\x72");
delete_option("\x6d\157\137\x6c\144\141\x70\137\x6c\157\143\141\x6c\137\156\x65\167\x5f\x72\x65\147\x69\x73\164\x72\x61\x74\151\157\x6e");
delete_option("\x6d\157\137\154\144\x61\x70\137\154\x6f\143\x61\x6c\x5f\x72\x65\147\151\x73\164\x72\x61\x74\x69\157\156\137\163\x74\x61\164\165\163");
$this->show_success_message();
}
function mo_ldap_local_settings_style()
{
wp_enqueue_style("\x6d\157\x5f\x6c\x64\141\160\x5f\141\x64\x6d\x69\x6e\x5f\163\x65\164\164\151\x6e\x67\163\137\163\164\x79\154\145", plugins_url("\151\156\143\x6c\165\x64\145\x73\x2f\x63\x73\163\57\163\x74\171\154\145\x5f\x73\x65\x74\164\x69\x6e\147\163\x2e\x63\x73\163", __FILE__));
wp_enqueue_style("\x6d\157\x5f\x6c\144\x61\160\137\x61\x64\x6d\151\x6e\137\163\145\164\164\151\156\x67\163\137\160\x68\x6f\156\x65\x5f\x73\x74\171\x6c\145", plugins_url("\x69\x6e\143\154\165\x64\x65\163\57\143\163\x73\57\x70\150\157\x6e\145\x2e\x63\x73\x73", __FILE__));
wp_enqueue_style("\x6d\157\137\x6c\x64\x61\160\x5f\x61\x64\155\151\x6e\137\x6c\144\x61\160\x5f\160\x6c\x75\147\151\x6e\x5f\x73\164\171\x6c\145", plugins_url("\151\156\143\154\165\x64\145\x73\x2f\143\163\x73\57\155\157\x5f\x6c\x64\x61\160\x5f\160\154\x75\x67\x69\156\x73\137\160\x61\147\x65\56\143\x73\163", __FILE__));
}
function mo_ldap_local_settings_script()
{
wp_enqueue_script("\x6d\x6f\137\154\144\141\160\x5f\x61\x64\155\151\156\137\x73\145\x74\164\151\156\x67\x73\x5f\160\150\x6f\x6e\x65\x5f\x73\143\x72\x69\x70\164", plugins_url("\151\156\143\154\x75\x64\x65\163\x2f\x6a\163\x2f\160\150\x6f\156\145\56\x6a\x73", __FILE__));
wp_enqueue_script("\155\x6f\137\154\144\x61\x70\x5f\x61\144\155\151\156\137\x73\x65\x74\164\x69\x6e\147\x73\137\x73\143\x72\x69\x70\x74", plugins_url("\x69\156\x63\x6c\x75\x64\145\163\57\152\x73\x2f\x73\145\x74\164\151\156\x67\x73\x5f\x70\141\x67\145\x2e\152\163", __FILE__), array("\x6a\161\165\145\x72\x79"));
}
function error_message()
{
$B7 = "\145\x72\162\157\x72";
$zc = get_option("\155\157\x5f\154\144\x61\160\x5f\x6c\157\x63\x61\154\137\155\145\163\163\x61\x67\145");
echo "\74\x64\x69\x76\x20\x69\144\x3d\47\145\162\162\x6f\x72\x27\40\143\154\x61\x73\163\75\47" . $B7 . "\47\x3e\40\x3c\x70\76" . $zc . "\x3c\57\x70\x3e\74\57\144\x69\166\76";
}
function success_message()
{
$B7 = "\x75\x70\x64\141\x74\145\144";
$zc = get_option("\155\157\x5f\154\144\x61\160\x5f\x6c\157\143\141\x6c\x5f\x6d\145\x73\163\x61\x67\145");
echo "\74\x64\151\166\x20\151\x64\75\x27\163\165\x63\143\145\163\163\47\40\x63\x6c\141\x73\163\75\47" . $B7 . "\47\76\x20\x3c\x70\x3e" . $zc . "\x3c\x2f\x70\76\x3c\x2f\x64\151\x76\x3e";
}
function show_success_message()
{
remove_action("\x61\144\x6d\151\x6e\x5f\x6e\x6f\164\x69\143\x65\x73", array($this, "\x65\162\162\x6f\x72\x5f\x6d\x65\x73\x73\x61\147\x65"));
add_action("\141\144\155\151\x6e\x5f\x6e\157\164\151\143\x65\x73", array($this, "\x73\165\143\143\145\x73\x73\137\x6d\145\163\163\x61\x67\145"));
}
function show_error_message()
{
remove_action("\141\144\x6d\x69\x6e\x5f\156\157\x74\x69\143\145\163", array($this, "\x73\165\143\x63\145\163\x73\x5f\155\145\163\163\141\147\x65"));
add_action("\x61\144\x6d\151\x6e\x5f\156\157\x74\x69\x63\x65\x73", array($this, "\145\162\x72\157\162\137\155\145\x73\163\x61\147\145"));
}
function prefix_update_table()
{
global $ET;
global $wpdb;
$jf = $wpdb->get_charset_collate();
error_log("\x43\165\x73\164\x6f\155\40\x55\163\145\162\40\122\x65\x70\x6f\x72\164\x20\x54\x61\142\x6c\145\40\40\x3a\x20" . $wpdb->base_prefix);
$BM = "\103\x52\105\x41\124\x45\x20\124\101\102\x4c\105\40\x69\146\40\156\x6f\x74\x20\145\x78\151\163\164\x73\140{$wpdb->base_prefix}\165\163\x65\x72\137\162\x65\160\x6f\x72\164\140\40\x28\xa\11\x9\11\40\x20\x69\x64\x20\151\x6e\x74\x20\116\x4f\x54\40\x4e\x55\114\x4c\x20\101\x55\x54\117\x5f\x49\116\x43\122\x45\115\105\x4e\124\54\xa\11\11\x9\40\40\x75\x73\x65\x72\x5f\x6e\x61\155\145\40\x76\x61\162\143\150\141\162\50\x35\x30\51\x20\x4e\117\124\x20\x4e\x55\x4c\114\x2c\xa\x9\x9\x9\40\x20\x74\151\155\x65\40\144\x61\x74\145\164\151\155\145\40\104\x45\x46\101\125\114\124\40\x27\x30\60\60\60\x2d\60\60\55\60\x30\x20\60\60\72\x30\x30\x3a\x30\x30\47\40\116\117\124\40\x4e\x55\114\114\x2c\xa\11\x9\x9\x20\40\114\x64\x61\160\137\x73\x74\x61\164\165\163\x20\x76\x61\x72\x63\x68\141\162\50\x32\x35\60\x29\40\116\117\124\40\x4e\x55\x4c\114\x2c\xa\11\11\11\40\x20\114\144\x61\160\x5f\x65\162\x72\157\x72\40\166\141\162\x63\150\141\x72\50\x32\65\60\51\40\x2c\12\x9\11\11\40\x20\120\x52\111\x4d\101\122\131\x20\113\x45\x59\x20\40\50\x69\x64\x29\12\x9\11\11\x29\x20{$jf}\73";
if (function_exists("\x64\142\104\x65\154\164\141")) {
goto U4;
}
require_once ABSPATH . "\x77\x70\55\141\x64\155\151\x6e\x2f\151\x6e\x63\x6c\x75\x64\x65\163\57\x75\160\x67\162\141\144\x65\56\160\x68\160";
U4:
dbDelta($BM);
update_option("\165\163\x65\x72\x5f\154\157\x67\163\137\164\141\x62\154\x65\x5f\x65\170\x69\163\164\x73", 1);
}
function mo_ldap_report_update($G6, $pd, $l6)
{
if (!(get_option("\155\x6f\x5f\154\144\141\x70\x5f\154\157\143\141\x6c\137\165\163\x65\x72\137\162\145\x70\157\162\164\x5f\x6c\157\x67") == 1)) {
goto h1;
}
global $wpdb;
$vg = $wpdb->prefix . "\165\x73\145\162\x5f\162\x65\160\157\x72\164";
error_log("\101\x63\164\151\x76\x61\164\151\157\x6e\72\40" . $wpdb->base_prefix);
$yO = $wpdb->get_row("\x53\105\x4c\105\103\x54\x20\x69\x64\x20\106\x52\x4f\115\x20{$vg}\x20\127\110\x45\122\105\x20\x75\163\x65\162\137\x6e\141\155\145\40\x3d\47" . $G6 . "\47");
$wpdb->insert($vg, array("\x75\x73\x65\162\x5f\x6e\141\x6d\145" => $G6, "\164\151\x6d\x65" => current_time("\155\x79\163\161\x6c"), "\114\x64\141\160\x5f\x73\164\141\164\165\163" => $pd, "\114\144\x61\160\x5f\145\x72\x72\157\162" => $l6));
h1:
}
function mo_ldap_activate()
{
update_option("\155\157\137\x6c\x64\141\x70\x5f\154\157\143\141\154\137\150\157\x73\x74\x5f\156\141\155\x65", "\x68\164\x74\x70\163\72\x2f\57\x6c\x6f\x67\x69\x6e\56\170\145\x63\165\162\x69\146\171\56\143\x6f\x6d");
update_option("\155\157\x5f\154\x64\x61\x70\137\x6c\157\x63\141\154\x5f\x72\145\147\x69\163\x74\x65\162\x5f\165\163\145\162", 1);
}
public static function mo_ldap_local_uninstall()
{
delete_option("\155\157\x5f\x6c\144\141\x70\x5f\154\x6f\x63\x61\x6c\137\163\x65\x72\166\x65\x72\137\165\x72\x6c");
delete_option("\x6d\x6f\x5f\154\x64\x61\x70\x5f\x6c\157\143\x61\x6c\x5f\x73\145\162\x76\x65\162\x5f\x64\x6e");
delete_option("\155\x6f\137\x6c\x64\x61\x70\x5f\154\x6f\143\141\154\137\x73\x65\x72\166\x65\x72\137\160\141\163\x73\167\x6f\162\144");
delete_option("\x6d\157\x5f\x6c\144\x61\160\x5f\x6c\157\143\141\154\137\x73\145\x61\x72\x63\x68\x5f\x66\x69\154\164\145\162");
delete_option("\x6d\157\x5f\x6c\144\x61\x70\137\x6c\157\143\141\x6c\x5f\165\163\x65\x72\x6e\x61\x6d\x65\137\141\164\x74\162\151\x62\165\164\145");
delete_option("\155\157\x5f\154\x64\141\x70\137\x6c\157\143\x61\154\x5f\163\x65\x61\162\x63\150\137\142\141\x73\145");
delete_option("\155\157\x5f\154\x64\x61\x70\137\x6c\x6f\143\141\x6c\x5f\162\157\x6c\x65\137\155\x61\x70\160\151\x6e\x67\x5f\x63\x6f\165\156\x74");
}
function mo_ldap_local_deactivate()
{
do_action("\146\x6c\x75\x73\x68\143\x61\x63\x68\145");
if (Mo_Ldap_Local_Util::check_empty_or_null(get_option("\x6d\x6f\x5f\154\x64\x61\160\137\154\x6f\x63\x61\x6c\x5f\162\x65\147\x69\163\x74\162\x61\x74\x69\x6f\156\137\163\164\141\164\165\x73"))) {
goto v6;
}
delete_option("\x6d\x6f\137\x6c\144\141\x70\x5f\x6c\157\143\x61\x6c\137\141\x64\155\151\x6e\x5f\x65\x6d\141\x69\x6c");
v6:
delete_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\157\143\141\154\137\x68\x6f\x73\164\x5f\x6e\141\x6d\x65");
delete_option("\x6d\157\x5f\154\144\141\x70\137\x6c\157\x63\x61\154\137\x64\145\146\x61\x75\154\164\137\143\x6f\156\146\x69\147");
delete_option("\155\157\x5f\154\x64\x61\x70\x5f\x6c\157\143\x61\154\137\x70\141\x73\163\167\x6f\x72\144");
delete_option("\x6d\157\137\154\x64\x61\160\137\154\157\x63\x61\x6c\x5f\x6e\145\x77\137\162\x65\x67\151\163\x74\162\141\164\151\157\156");
delete_option("\x6d\157\137\154\144\x61\x70\137\x6c\157\x63\141\x6c\137\141\x64\x6d\x69\156\137\x70\150\x6f\156\145");
delete_option("\x6d\157\137\x6c\x64\141\160\x5f\x6c\x6f\x63\x61\x6c\x5f\x76\145\162\151\146\x79\137\143\165\x73\x74\157\x6d\145\x72");
delete_option("\x6d\157\137\154\x64\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\141\x64\x6d\151\x6e\x5f\x63\165\163\164\x6f\x6d\x65\162\137\x6b\x65\x79");
delete_option("\x6d\x6f\x5f\154\144\141\x70\x5f\154\157\x63\141\x6c\137\141\144\x6d\x69\156\x5f\x61\160\x69\137\x6b\145\x79");
delete_option("\x6d\x6f\x5f\154\144\141\x70\x5f\154\157\x63\141\x6c\x5f\x63\165\163\x74\x6f\x6d\145\162\x5f\x74\157\153\x65\x6e");
delete_option("\155\157\137\154\x64\141\160\137\x6c\157\x63\141\x6c\137\x6d\x65\x73\x73\141\x67\x65");
delete_option("\155\x6f\137\154\144\x61\x70\x5f\x6c\157\x63\141\154\137\145\156\141\x62\x6c\x65\137\154\x6f\147\151\x6e");
delete_option("\155\x6f\x5f\154\144\141\x70\137\x6c\x6f\x63\x61\154\x5f\164\162\141\156\163\141\x63\x74\151\157\156\111\x64");
delete_option("\x6d\x6f\137\x6c\144\141\x70\x5f\154\157\x63\141\154\x5f\162\145\147\151\x73\164\x72\141\164\x69\x6f\156\x5f\x73\164\x61\164\165\163");
delete_option("\155\157\137\x6c\144\141\160\137\x6c\x6f\x63\141\154\137\x6c\151\x63\x65\156\163\145\x5f\x6b\x65\x79");
}
}
new Mo_Ldap_Local_Login();
?>
Function Calls
None |
Stats
MD5 | 358165f25065ac3c6c8c24afb30ba055 |
Eval Count | 0 |
Decode Time | 133 ms |