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: 21.2.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"; 
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")); 
        add_action("parse_request", array($this, "parse_sso_request")); 
        if (!(get_option("mo_ldap_local_enable_update_ldap") == 1)) { 
            goto QG; 
        } 
        add_action("profile_update", array($this, "update_profile"), 10, 2); 
        QG: 
        remove_action("admin_notices", array($this, "success_message")); 
        remove_action("admin_notices", array($this, "error_message")); 
        add_filter("query_vars", array($this, "plugin_query_vars")); 
        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")); 
        add_action("wp_login", array($this, "fetch_user_info_post_login")); 
        if (!(get_option("mo_ldap_local_authorized_users_only") == 1)) { 
            goto Ic; 
        } 
        add_action("wp", array($this, "mo_ldap_local_login_redirect")); 
        Ic: 
        if (!(get_option("mo_ldap_local_enable_login") == 1)) { 
            goto dI; 
        } 
        remove_filter("authenticate", "wp_authenticate_username_password", 20, 3); 
        add_filter("authenticate", array($this, "ldap_login"), 20, 3); 
        $A6 = get_option("mo_ldap_local_redirect_to"); 
        if (!$A6) { 
            goto UB; 
        } 
        if ($A6 == "homepage") { 
            goto WD; 
        } 
        if (!($A6 == "custom")) { 
            goto qB; 
        } 
        $y2 = get_option("mo_ldap_local_custom_redirect"); 
        add_filter("login_redirect", create_function("$url,$query,$user", "return get_option("mo_ldap_local_custom_redirect");exit();"), 10, 3); 
        qB: 
        goto xT; 
        WD: 
        add_filter("login_redirect", create_function("$url,$query,$user", "return home_url();"), 10, 3); 
        xT: 
        UB: 
        dI: 
        register_activation_hook(__FILE__, array($this, "mo_ldap_activate")); 
    } 
    function fetch_user_info_post_login($mh, $user) 
    { 
        $user = get_user_by("login", $mh); 
        $Ch = new Mo_Ldap_Local_Config(); 
        $Ch->fetch_user_attributes($user); 
        if (!(get_option("mo_ldap_local_enable_role_mapping") && !get_option("mo_ldap_local_keep_existing_user_roles"))) { 
            goto vS; 
        } 
        $GG = new Mo_Ldap_Local_Role_Mapping(); 
        $ut = $GG->get_member_of_attribute($mh, null); 
        $GG->mo_ldap_local_update_role_mapping($user->ID, $ut); 
        vS: 
    } 
    function mo_ldap_local_login_redirect() 
    { 
        if (is_user_logged_in()) { 
            goto gs; 
        } 
        auth_redirect(); 
        gs: 
    } 
    function show_user_profile($user) 
    { 
        $Qg = array(); 
        $aD = 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: 21.2.2 
    Author URI: http://miniorange.com 
    */  
        echo esc_attr(get_the_author_meta("mo_ldap_user_dn", $user->ID)); 
        ?> 
</b></td> 
						</td> 
						</tr> 
						<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: 21.2.2 
    Author URI: http://miniorange.com 
    */  
        echo esc_attr(get_the_author_meta("mo_ldap_user_phone", $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: 21.2.2 
    Author URI: http://miniorange.com 
    */  
        foreach ($aD as $Ia => $iH) { 
            if (strpos($Ia, "mo_ldap_local_custom_attribute") === false) { 
                goto Vi; 
            } 
            ?> 
								<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: 21.2.2 
    Author URI: http://miniorange.com 
    */  
            echo $iH; 
            ?> 
</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: 21.2.2 
    Author URI: http://miniorange.com 
    */  
            if (is_array(get_user_meta($user->ID, $Ia, true))) { 
                goto D1; 
            } 
            echo "<td>"; 
            echo get_user_meta($user->ID, $Ia, true) . "<br>"; 
            echo "</td>"; 
            goto fp; 
            D1: 
            echo "<td>"; 
            foreach (get_user_meta($user->ID, $Ia, true) as $T5) { 
                echo $T5 . "<br>"; 
                WF: 
            } 
            oH: 
            echo "</td>"; 
            fp: 
            ?> 
								</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: 21.2.2 
    Author URI: http://miniorange.com 
    */  
            goto ej; 
            Vi: 
            ej: 
            mo: 
        } 
        co: 
        ?> 
				</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: 21.2.2 
    Author URI: http://miniorange.com 
    */  
    } 
    function update_profile($DR, $Ai) 
    { 
        $aD = wp_load_alloptions(); 
        $Qg = array(); 
        $vK = array(); 
        foreach ($aD as $Ia => $iH) { 
            if (strpos($Ia, "mo_ldap_local_custom_attribute") === false) { 
                goto Sn; 
            } 
            array_push($Qg, $iH); 
            goto o8; 
            Sn: 
            o8: 
            ZO: 
        } 
        x0: 
        $Gb = 0; 
        MG: 
        if (!($Gb < sizeof($Qg))) { 
            goto Be; 
        } 
        if (!isset($_POST[$Qg[$Gb]])) { 
            goto nA; 
        } 
        $vK[$Qg[$Gb]] = $_POST[$Qg[$Gb]]; 
        nA: 
        Ud: 
        $Gb++; 
        goto MG; 
        Be: 
        $user = get_userdata($DR); 
        $Ch = new Mo_Ldap_Local_Config(); 
        $Ch->modify_user_info_in_ldap($user, $vK); 
        foreach ($Qg as $QC => $iH) { 
            update_user_meta($DR, "mo_ldap_local_custom_attribute_" . $QC, $iH); 
            gN: 
        } 
        d0: 
    } 
    function ldap_login($user, $eV, $bP) 
    { 
        if (!(empty($eV) || empty($bP))) { 
            goto Yd; 
        } 
        $p3 = new WP_Error(); 
        if (!empty($eV)) { 
            goto XW; 
        } 
        $p3->add("empty_username", __("<strong>ERROR</strong>: Email field is empty.")); 
        XW: 
        if (!empty($bP)) { 
            goto ga; 
        } 
        $p3->add("empty_password", __("<strong>ERROR</strong>: Password field is empty.")); 
        ga: 
        return $p3; 
        Yd: 
        $Qv = get_option("mo_ldap_local_enable_both_login"); 
        if (!empty($Qv)) { 
            goto tE; 
        } 
        $user = false; 
        if (username_exists($eV)) { 
            goto kM; 
        } 
        if (!email_exists($eV)) { 
            goto yk; 
        } 
        $user = get_user_by("email", $eV); 
        yk: 
        goto Bt; 
        kM: 
        $user = get_user_by("login", $eV); 
        Bt: 
        if (!$user) { 
            goto c_; 
        } 
        $HL = false; 
        if (get_option("mo_ldap_local_enable_both_login") == "all") { 
            goto lz; 
        } 
        if (!(get_option("mo_ldap_local_enable_both_login") == "admin" && user_can($user->ID, "manage_options"))) { 
            goto zd; 
        } 
        $HL = true; 
        zd: 
        goto uD; 
        lz: 
        $HL = true; 
        uD: 
        if (!($HL && wp_check_password($bP, $user->data->user_pass, $user->ID))) { 
            goto DI; 
        } 
        return $user; 
        DI: 
        c_: 
        tE: 
        $Ch = new Mo_Ldap_Local_Config(); 
        $zE = $Ch->ldap_login($eV, $bP); 
        if ($zE->statusMessage == "SUCCESS") { 
            goto In; 
        } 
        if ($zE->statusMessage == "LDAP_NOT_RESPONDING") { 
            goto w8; 
        } 
        if ($zE->statusMessage == "LDAP_ERROR") { 
            goto vA; 
        } 
        if ($zE->statusMessage == "CURL_ERROR") { 
            goto St; 
        } 
        if ($zE->statusMessage == "OPENSSL_ERROR") { 
            goto mX; 
        } 
        $p3 = new WP_Error(); 
        $p3->add("incorrect_credentials", __("<strong>ERROR</strong>: Invalid username or incorrect password. Please try again.")); 
        return $p3; 
        goto X1; 
        mX: 
        $p3 = new WP_Error(); 
        $p3->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 $p3; 
        X1: 
        goto Sj; 
        St: 
        $p3 = new WP_Error(); 
        $p3->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 $p3; 
        Sj: 
        goto C7; 
        vA: 
        $p3 = new WP_Error(); 
        $p3->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 $p3; 
        C7: 
        goto Lq; 
        w8: 
        $TH = get_option("mo_ldap_local_enable_fallback_login"); 
        if (!$TH) { 
            goto ck; 
        } 
        remove_filter("authenticate", array($this, "ldap_login"), 20, 3); 
        add_filter("authenticate", "wp_authenticate_username_password", 20, 3); 
        $user = wp_authenticate($eV, $bP); 
        return $user; 
        ck: 
        Lq: 
        goto X0; 
        In: 
        $NX = $zE->profileAttributesList; 
        $user = false; 
        if (username_exists($eV)) { 
            goto e0; 
        } 
        if (email_exists($eV)) { 
            goto vx; 
        } 
        if (!(isset($NX["mail"]) && email_exists($NX["mail"]))) { 
            goto py; 
        } 
        $user = get_user_by("email", $NX["mail"]); 
        py: 
        goto el; 
        vx: 
        $user = get_user_by("email", $eV); 
        el: 
        goto CJ; 
        e0: 
        $user = get_user_by("login", $eV); 
        CJ: 
        if ($user) { 
            goto BE; 
        } 
        if (!get_option("mo_ldap_local_register_user")) { 
            goto MO; 
        } 
        $Kc = $Ch->get_user_ldap_info($eV); 
        $TH = get_option("mo_ldap_local_enable_fallback_login"); 
        if ($TH) { 
            goto H1; 
        } 
        $Dc = wp_generate_password(10, false); 
        goto A2; 
        H1: 
        $Dc = $bP; 
        A2: 
        $NX = $zE->profileAttributesList; 
        $RA = $NX["mail"]; 
        $wG = $NX["fname"]; 
        $oQ = $NX["lname"]; 
        $bV = $NX["nickname"]; 
        $vh = $NX["phone"]; 
        $B_ = array("user_login" => $eV, "user_email" => $RA, "first_name" => $wG, "last_name" => $oQ, "user_pass" => $Dc); 
        if (empty($bV)) { 
            goto Wg; 
        } 
        $B_["nickname"] = $bV; 
        Wg: 
        $H8 = get_option("mo_ldap_local_display_name_attribute"); 
        if (empty($H8)) { 
            goto W7; 
        } 
        if (get_option("mo_ldap_local_display_name_attribute") == "nickname" && !empty($bV)) { 
            goto dF; 
        } 
        if (get_option("mo_ldap_local_display_name_attribute") == "email") { 
            goto Z0; 
        } 
        if (get_option("mo_ldap_local_display_name_attribute") == "firstname") { 
            goto kg; 
        } 
        if (get_option("mo_ldap_local_display_name_attribute") == "firstlast") { 
            goto u1; 
        } 
        if (!(get_option("mo_ldap_local_display_name_attribute") == "lastfirst")) { 
            goto y0; 
        } 
        $B_["display_name"] = $oQ . " " . $wG; 
        y0: 
        goto zZ; 
        u1: 
        $B_["display_name"] = $wG . " " . $oQ; 
        zZ: 
        goto HH; 
        kg: 
        $B_["display_name"] = $wG; 
        HH: 
        goto t1; 
        Z0: 
        $B_["display_name"] = $RA; 
        t1: 
        goto X7; 
        dF: 
        $B_["display_name"] = $bV; 
        X7: 
        W7: 
        $DR = wp_insert_user($B_); 
        if (!is_wp_error($DR)) { 
            goto j_; 
        } 
        $p3 = new WP_Error(); 
        $p3->add("registration_error", __("<strong>ERROR</strong>: There was an error registering your account. Please try again.")); 
        return $p3; 
        goto aj; 
        j_: 
        $user = get_user_by("login", $eV); 
        update_user_meta($user->ID, "mo_ldap_user_dn", $zE->userDn, false); 
        update_user_meta($user->ID, "mo_ldap_user_phone", $vh); 
        $Qg = $zE->attributeList; 
        foreach ($Qg as $QC => $iH) { 
            update_user_meta($user->ID, $QC, $iH); 
            YL: 
        } 
        Kt: 
        do_action("mo_ldap_buddypress", $Qg, $user); 
        if (!get_option("mo_ldap_local_enable_role_mapping")) { 
            goto oD; 
        } 
        $GG = new Mo_Ldap_Local_Role_Mapping(); 
        $ut = $GG->get_member_of_attribute($eV, $bP); 
        $GG->mo_ldap_local_update_role_mapping($user->ID, $ut); 
        oD: 
        $LI = $_REQUEST["redirect_to"]; 
        $A6 = get_option("mo_ldap_local_redirect_to"); 
        if (!($A6 == "homepage")) { 
            goto dK; 
        } 
        if (!($LI == admin_url())) { 
            goto lX; 
        } 
        add_filter("login_redirect", create_function("$url,$query,$user", "return home_url();"), 10, 3); 
        lX: 
        dK: 
        return $user; 
        aj: 
        goto HI; 
        MO: 
        $p3 = new WP_Error(); 
        $p3->add("registration_disabled_error", __("<strong>ERROR</strong>: Your Administrator has not enabled Auto Registration. Please contact your Administrator.")); 
        return $p3; 
        HI: 
        goto ki; 
        BE: 
        if (!(get_option("mo_ldap_local_enable_role_mapping") && !get_option("mo_ldap_local_keep_existing_user_roles"))) { 
            goto RV; 
        } 
        $GG = new Mo_Ldap_Local_Role_Mapping(); 
        $ut = $GG->get_member_of_attribute($eV, $bP); 
        $GG->mo_ldap_local_update_role_mapping($user->ID, $ut); 
        RV: 
        $TH = get_option("mo_ldap_local_enable_fallback_login"); 
        if (!$TH) { 
            goto Rr; 
        } 
        wp_set_password($bP, $user->ID); 
        Rr: 
        update_user_meta($user->ID, "mo_ldap_user_dn", $zE->userDn, false); 
        update_user_meta($user->ID, "mo_ldap_user_phone", $NX["phone"]); 
        if (!get_option("mo_ldap_local_enable_attr_mapping")) { 
            goto wx; 
        } 
        $yc["ID"] = $user->ID; 
        if (empty($NX["mail"])) { 
            goto cr; 
        } 
        $yc["user_email"] = $NX["mail"]; 
        cr: 
        if (empty($NX["fname"])) { 
            goto PJ; 
        } 
        $yc["first_name"] = $NX["fname"]; 
        PJ: 
        if (empty($NX["lname"])) { 
            goto Xw; 
        } 
        $yc["last_name"] = $NX["lname"]; 
        Xw: 
        wp_update_user($yc); 
        $Qg = $zE->attributeList; 
        foreach ($Qg as $QC => $iH) { 
            update_user_meta($user->ID, $QC, $iH); 
            aW: 
        } 
        TX: 
        wx: 
        do_action("mo_ldap_buddypress", $Qg, $user); 
        $LI = $_REQUEST["redirect_to"]; 
        $A6 = get_option("mo_ldap_local_redirect_to"); 
        if (!($A6 == "homepage")) { 
            goto hb; 
        } 
        if (!($LI == admin_url())) { 
            goto bs; 
        } 
        add_filter("login_redirect", create_function("$url,$query,$user", "return home_url();"), 10, 3); 
        bs: 
        hb: 
        return $user; 
        ki: 
        wp_redirect(site_url()); 
        die; 
        X0: 
    } 
    function mo_ldap_add_user($DR) 
    { 
        $HX = get_userdata($DR); 
        $Ch = new Mo_Ldap_Local_Config(); 
        $Ch->add_user($HX); 
    } 
    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() 
    { 
        update_option("mo_ldap_local_host_name", "https://auth.miniorange.com"); 
        $Jf = 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", "search_filter" => "(&(objectClass=*)(cn=?))", "test_username" => "testuser", "test_password" => "password"); 
        update_option("mo_ldap_local_default_config", $Jf); 
        mo_ldap_local_settings(); 
    } 
    function login_widget_save_options() 
    { 
        if (!isset($_POST["option"])) { 
            goto iw; 
        } 
        if ($_POST["option"] == "mo_ldap_local_register_customer") { 
            goto to; 
        } 
        if ($_POST["option"] == "mo_ldap_local_verify_customer") { 
            goto s2; 
        } 
        if ($_POST["option"] == "mo_ldap_local_enable") { 
            goto c9; 
        } 
        if ($_POST["option"] == "mo_ldap_local_tls_enable") { 
            goto yo; 
        } 
        if ($_POST["option"] == "mo_ldap_local_register_user") { 
            goto oL; 
        } 
        if ($_POST["option"] == "mo_ldap_local_save_config") { 
            goto QH; 
        } 
        if ($_POST["option"] == "mo_ldap_local_save_user_mapping") { 
            goto SI; 
        } 
        if ($_POST["option"] == "mo_ldap_local_test_auth") { 
            goto Bd; 
        } 
        if ($_POST["option"] == "mo_ldap_local_login_send_query") { 
            goto sa; 
        } 
        if ($_POST["option"] == "mo_ldap_local_resend_otp") { 
            goto jZ; 
        } 
        if ($_POST["option"] == "mo_ldap_local_validate_otp") { 
            goto ym; 
        } 
        if ($_POST["option"] == "mo_ldap_local_ping_server") { 
            goto PC; 
        } 
        if ($_POST["option"] == "mo_ldap_local_enable_role_mapping") { 
            goto d_; 
        } 
        if ($_POST["option"] == "mo_ldap_local_keep_existing_user_roles") { 
            goto TJ; 
        } 
        if ($_POST["option"] == "mo_ldap_local_save_mapping") { 
            goto A5; 
        } 
        if ($_POST["option"] == "mo_ldap_save_attribute_config") { 
            goto v7; 
        } 
        if ($_POST["option"] == "mo_ldap_user_management_config") { 
            goto pf; 
        } 
        if ($_POST["option"] == "mo_ldap_delete_custom_attribute") { 
            goto Hb; 
        } 
        if ($_POST["option"] == "user_forgot_password") { 
            goto Sx; 
        } 
        if ($_POST["option"] == "mo_ldap_local_fallback_login") { 
            goto br; 
        } 
        if ($_POST["option"] == "mo_ldap_local_cancel") { 
            goto qY; 
        } 
        if ($_POST["option"] == "mo_ldap_local_phone_verification") { 
            goto Bu; 
        } 
        if ($_POST["option"] == "mo_ldap_local_authorized_users_only") { 
            goto Jn; 
        } 
        if ($_POST["option"] == "mo_ldap_login_send_query") { 
            goto nl; 
        } 
        if ($_POST["option"] == "mo_ldap_local_enable_both_login") { 
            goto Zz; 
        } 
        if (!($_POST["option"] == "mo_ldap_local_save_login_redirect")) { 
            goto ql; 
        } 
        update_option("mo_ldap_local_redirect_to", $_POST["redirect_to"]); 
        if ($_POST["redirect_to"] == "profile") { 
            goto ww; 
        } 
        if ($_POST["redirect_to"] == "homepage") { 
            goto lB; 
        } 
        if (!($_POST["redirect_to"] == "custom")) { 
            goto l4; 
        } 
        $y2 = $_POST["custom_redirect"]; 
        update_option("mo_ldap_local_custom_redirect", $y2); 
        update_option("mo_ldap_local_message", "Users will get redirected to custom redirect URL after login"); 
        l4: 
        goto gF; 
        lB: 
        update_option("mo_ldap_local_message", "Users will get redirected to homepage after login"); 
        gF: 
        goto r4; 
        ww: 
        update_option("mo_ldap_local_message", "Users will get redirected to profile page after login"); 
        r4: 
        $this->show_success_message(); 
        ql: 
        goto Bi; 
        Zz: 
        update_option("mo_ldap_local_enable_both_login", isset($_POST["mo_ldap_local_enable_both_login"]) ? $_POST["mo_ldap_local_enable_both_login"] : ''); 
        if (get_option("mo_ldap_local_enable_both_login")) { 
            goto Ua; 
        } 
        update_option("mo_ldap_local_message", "Login with both LDAP and WordPress has been disabled."); 
        $this->show_success_message(); 
        goto Gt; 
        Ua: 
        update_option("mo_ldap_local_message", "Login with both LDAP and WordPress has been enabled."); 
        $this->show_success_message(); 
        Gt: 
        Bi: 
        goto WJ; 
        nl: 
        $RA = sanitize_text_field($_POST["query_email"]); 
        $vh = sanitize_text_field($_POST["query_phone"]); 
        $Ux = sanitize_text_field($_POST["query"]); 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $NW = $s5->submit_contact_us($RA, $vh, $Ux); 
        if ($NW) { 
            goto yl; 
        } 
        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 VR; 
        yl: 
        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(); 
        VR: 
        WJ: 
        goto HX; 
        Jn: 
        if (NddKoYsdasadJD()) { 
            goto oh; 
        } 
        update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key."); 
        $this->show_error_message(); 
        goto nc; 
        oh: 
        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 qJ; 
        } 
        update_option("mo_ldap_local_message", "Protect Content by Login disabled."); 
        $this->show_success_message(); 
        goto ni; 
        qJ: 
        update_option("mo_ldap_local_message", "Protect Content by Login enabled."); 
        $this->show_success_message(); 
        ni: 
        nc: 
        HX: 
        goto Bq; 
        Bu: 
        $vh = sanitize_text_field($_POST["phone_number"]); 
        $vh = str_replace(" ", '', $vh); 
        $QK = "/[\+][0-9]{1,3}[0-9]{10}/"; 
        if (preg_match($QK, $vh, $MD, PREG_OFFSET_CAPTURE)) { 
            goto Ee; 
        } 
        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 jq; 
        Ee: 
        $MF = "SMS"; 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $ao = json_decode($s5->send_otp_token($MF, $vh)); 
        if (!($ao->status == "SUCCESS")) { 
            goto PT; 
        } 
        if (get_option("mo_ldap_local_sms_count") != null) { 
            goto yJ; 
        } 
        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 " . $vh); 
        goto yi; 
        yJ: 
        update_option("mo_ldap_local_sms_count", get_option("mo_ldap_local_sms_count") + 1); 
        $ky = get_option("mo_ldap_local_sms_count"); 
        update_option("mo_ldap_local_message", "Another One Time Passcode has been sent <b>(" . $ky . ")</b> for verification to " . $vh); 
        yi: 
        update_option("mo_ldap_local_transactionId", $ao->txId); 
        $this->show_success_message(); 
        PT: 
        jq: 
        Bq: 
        goto HO; 
        qY: 
        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"); 
        HO: 
        goto uJ; 
        br: 
        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(); 
        uJ: 
        goto MT; 
        Sx: 
        $ok = get_option("mo_ldap_local_admin_email"); 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $qb = json_decode($s5->mo_ldap_local_forgot_password($ok)); 
        if (!($qb->status == "SUCCESS")) { 
            goto Uk; 
        } 
        $aG = "You password has been reset successfully. Please enter the new password sent to your registered mail here."; 
        update_option("mo_ldap_local_message", $aG); 
        $this->show_success_message(); 
        Uk: 
        MT: 
        goto TN; 
        Hb: 
        $qn = sanitize_text_field($_POST["custom_attribute_name"]); 
        $g7 = "mo_ldap_local_custom_attribute_" . $qn; 
        delete_option($g7); 
        update_option("mo_ldap_local_message", "Successfully delete custom attribute: <b>" . $qn . "</b>"); 
        $this->show_success_message(); 
        TN: 
        goto lr; 
        pf: 
        $Ek = sanitize_text_field($_POST["mo_ldap_new_user_location"]); 
        $MI = sanitize_text_field($_POST["mo_ldap_objectclass_attribute"]); 
        update_option("mo_ldap_local_new_user_location", $Ek); 
        update_option("mo_ldap_local_objectclass_attribute", $MI); 
        update_option("mo_ldap_local_message", "Successfully saved User Management Configuration"); 
        $this->show_success_message(); 
        lr: 
        goto wP; 
        v7: 
        $Qg = array(); 
        foreach ($_POST as $wZ => $iH) { 
            if (strpos($wZ, "mo_ldap_local_custom_attribute") === false) { 
                goto mj; 
            } 
            array_push($Qg, $wZ); 
            goto ow; 
            mj: 
            ow: 
            FE: 
        } 
        fP: 
        update_option("mo_ldap_local_enable_attr_mapping", isset($_POST["mo_ldap_local_enable_attr_mapping"]) ? $_POST["mo_ldap_local_enable_attr_mapping"] : 0); 
        update_option("mo_ldap_local_enable_update_ldap", isset($_POST["enable_update_ldap"]) ? $_POST["enable_update_ldap"] : 0); 
        $jR = sanitize_text_field($_POST["mo_ldap_email_attribute"]); 
        $xg = sanitize_text_field($_POST["mo_ldap_phone_attribute"]); 
        $U3 = sanitize_text_field($_POST["mo_ldap_fname_attribute"]); 
        $ri = sanitize_text_field($_POST["mo_ldap_lname_attribute"]); 
        $Ic = sanitize_text_field($_POST["mo_ldap_nickname_attribute"]); 
        $H8 = sanitize_text_field($_POST["mo_ldap_display_name_attribute"]); 
        $xV = isset($_POST["mo_ldap_user_enabled_attribute"]) ? $_POST["mo_ldap_user_enabled_attribute"] : 0; 
        update_option("mo_ldap_local_email_attribute", $jR); 
        update_option("mo_ldap_local_phone_attribute", $xg); 
        update_option("mo_ldap_local_fname_attribute", $U3); 
        update_option("mo_ldap_local_lname_attribute", $ri); 
        update_option("mo_ldap_local_nickname_attribute", $Ic); 
        update_option("mo_ldap_local_display_name_attribute", $H8); 
        update_option("mo_ldap_local_user_enabled_attribute", $xV); 
        foreach ($Qg as $QC) { 
            if (!(isset($_POST[$QC]) and $_POST[$QC] != '')) { 
                goto D0; 
            } 
            if (get_option($QC) == null) { 
                goto vF; 
            } 
            $yj = strtolower(sanitize_text_field($_POST[$QC])); 
            goto mD; 
            vF: 
            $yj = "mo_ldap_local_custom_attribute_" . strtolower(sanitize_text_field($_POST[$QC])); 
            mD: 
            update_option($yj, strtolower(sanitize_text_field($_POST[$QC]))); 
            D0: 
            yS: 
        } 
        z0: 
        update_option("mo_ldap_local_message", "Successfully saved LDAP Attribute Configuration"); 
        $this->show_success_message(); 
        wP: 
        goto hl; 
        A5: 
        $P9 = 100; 
        $Ja = 0; 
        $Gb = 1; 
        Rt: 
        if (!($Gb <= $P9)) { 
            goto aN; 
        } 
        if (isset($_POST["mapping_key_" . $Gb]) && isset($_POST["mapping_key_" . $Gb])) { 
            goto up; 
        } 
        goto aN; 
        goto HD; 
        up: 
        if (!($_POST["mapping_key_" . $Gb] == '')) { 
            goto hW; 
        } 
        goto VG; 
        hW: 
        update_option("mo_ldap_local_mapping_key_" . $Gb, $_POST["mapping_key_" . $Gb]); 
        update_option("mo_ldap_local_mapping_value_" . $Gb, $_POST["mapping_value_" . $Gb]); 
        $Ja++; 
        HD: 
        VG: 
        $Gb++; 
        goto Rt; 
        aN: 
        update_option("mo_ldap_local_role_mapping_count", $Ja); 
        if (!isset($_POST["mapping_value_default"])) { 
            goto Ny; 
        } 
        update_option("mo_ldap_local_mapping_value_default", $_POST["mapping_value_default"]); 
        Ny: 
        if (!isset($_POST["mapping_memberof_attribute"])) { 
            goto NT; 
        } 
        update_option("mo_ldap_local_mapping_memberof_attribute", $_POST["mapping_memberof_attribute"]); 
        NT: 
        $xb = ''; 
        if (get_option("mo_ldap_local_enable_role_mapping")) { 
            goto AI; 
        } 
        $xb = " Please check <b>"Enable Role Mapping"</b> to activate it."; 
        AI: 
        update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been updated." . $xb); 
        $this->show_success_message(); 
        hl: 
        goto xG; 
        TJ: 
        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 Qa; 
        } 
        update_option("mo_ldap_local_message", "WP Roles of Existing users will be updated."); 
        $this->show_success_message(); 
        goto qf; 
        Qa: 
        update_option("mo_ldap_local_message", "WP Roles of Existing users will not be updated."); 
        $this->show_success_message(); 
        qf: 
        xG: 
        goto Dd; 
        d_: 
        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 kB; 
        } 
        update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been disabled."); 
        $this->show_success_message(); 
        goto Qf; 
        kB: 
        update_option("mo_ldap_local_message", "LDAP Group to WP role mapping has been enabled."); 
        $this->show_success_message(); 
        Qf: 
        Dd: 
        goto Lw; 
        PC: 
        delete_option("mo_ldap_local_message"); 
        $Xp = sanitize_text_field($_POST["ldap_server"]); 
        $Ch = new Mo_Ldap_Local_Config(); 
        $ns = $Ch->ping_ldap_server($Xp); 
        if (strcasecmp($ns, "SUCCESS") == 0) { 
            goto zn; 
        } 
        if (strcasecmp($ns, "LDAP_ERROR") == 0) { 
            goto tV; 
        } 
        $nz = str_replace("ldap://", '', $Xp); 
        $nz = str_replace("ldaps://", '', $nz); 
        $eu = explode(":", $nz); 
        if (!isset($eu[0])) { 
            goto zA; 
        } 
        $nz = $eu[0]; 
        zA: 
        $jK = "Error connecting to LDAP Server. Please check your LDAP server URL <b>" . $Xp . "</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 " . $nz . "</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."; 
        $Bj = "Error connecing server " . $Xp; 
        add_option("mo_ldap_local_message", $jK, '', "no"); 
        $this->show_error_message(); 
        goto aa; 
        tV: 
        $jK = "<a target='_blank' href='http://php.net/manual/en/ldap.installation.php'>PHP LDAP extension</a> is not installed or disabled. Please enable it."; 
        $Bj = "LDAP extension not installed for server " . $Xp; 
        add_option("mo_ldap_local_message", "LDAP Extension is disabled: " . $jK, '', "no"); 
        $this->show_error_message(); 
        aa: 
        goto bm; 
        zn: 
        $jK = "Successfully contacted LDAP Server. Please configure your Service Account now."; 
        $Bj = "Successfully contacted LDAP Server " . $Xp; 
        add_option("mo_ldap_local_message", $jK, '', "no"); 
        $this->show_success_message(); 
        bm: 
        Lw: 
        goto vN; 
        ym: 
        $Tu = ''; 
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["otp_token"])) { 
            goto VJ; 
        } 
        $Tu = sanitize_text_field($_POST["otp_token"]); 
        goto Fo; 
        VJ: 
        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; 
        Fo: 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $tJ = json_decode($s5->validate_otp_token(get_option("mo_ldap_local_transactionId"), $Tu), true); 
        if (strcasecmp($tJ["status"], "SUCCESS") == 0) { 
            goto nu; 
        } 
        if (strcasecmp($tJ["status"], "CURL_ERROR") == 0) { 
            goto H7; 
        } 
        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 KP; 
        H7: 
        update_option("mo_ldap_local_message", $tJ["statusMessage"]); 
        update_option("mo_ldap_local_registration_status", "MO_OTP_VALIDATION_FAILURE"); 
        $this->show_error_message(); 
        KP: 
        goto V9; 
        nu: 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $Nc = json_decode($s5->create_customer(), true); 
        delete_option("mo_ldap_local_email_count"); 
        delete_option("mo_ldap_local_sms_count"); 
        if (strcasecmp($Nc["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) { 
            goto w6; 
        } 
        if (!(strcasecmp($Nc["status"], "SUCCESS") == 0)) { 
            goto V8; 
        } 
        $this->save_success_customer_config($Nc["id"], $Nc["apiKey"], $Nc["token"], "Registration complete!"); 
        V8: 
        goto AU; 
        w6: 
        $tJ = $s5->get_customer_key(); 
        $Nc = json_decode($tJ, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto MY; 
        } 
        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 Dv; 
        MY: 
        $this->save_success_customer_config($Nc["id"], $Nc["apiKey"], $Nc["token"], "Your account has been retrieved successfully."); 
        Dv: 
        AU: 
        update_option("mo_ldap_local_password", ''); 
        V9: 
        vN: 
        goto jG; 
        jZ: 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $MF = "EMAIL"; 
        $tJ = json_decode($s5->send_otp_token($MF, null), true); 
        if (strcasecmp($tJ["status"], "SUCCESS") == 0) { 
            goto Ed; 
        } 
        if (strcasecmp($tJ["status"], "CURL_ERROR") == 0) { 
            goto WW; 
        } 
        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 ya; 
        WW: 
        update_option("mo_ldap_local_message", $tJ["statusMessage"]); 
        update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_FAILURE"); 
        $this->show_error_message(); 
        ya: 
        goto sX; 
        Ed: 
        if (get_option("mo_ldap_local_email_count")) { 
            goto Nq; 
        } 
        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 pE; 
        Nq: 
        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. "); 
        pE: 
        update_option("mo_ldap_local_transactionId", $tJ["txId"]); 
        update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_SUCCESS"); 
        $this->show_success_message(); 
        sX: 
        jG: 
        goto SO; 
        sa: 
        $Ux = ''; 
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["query_email"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["query"])) { 
            goto zp; 
        } 
        $Ux = sanitize_text_field($_POST["query"]); 
        $RA = sanitize_text_field($_POST["query_email"]); 
        $vh = sanitize_text_field($_POST["query_phone"]); 
        $H2 = new Mo_Ldap_Local_Customer(); 
        $aJ = json_decode($H2->submit_contact_us($RA, $vh, $Ux), true); 
        if (strcasecmp($aJ["status"], "CURL_ERROR") == 0) { 
            goto ph; 
        } 
        if (!(json_last_error() == JSON_ERROR_NONE)) { 
            goto oB; 
        } 
        if ($aJ == false) { 
            goto zq; 
        } 
        update_option("mo_ldap_local_message", "Thanks for getting in touch! We shall get back to you shortly."); 
        $this->show_success_message(); 
        goto SX; 
        zq: 
        update_option("mo_ldap_local_message", "Your query could not be submitted. Please try again."); 
        $this->show_error_message(); 
        SX: 
        oB: 
        goto Pe; 
        ph: 
        update_option("mo_ldap_local_message", $aJ["statusMessage"]); 
        $this->show_error_message(); 
        Pe: 
        goto Ml; 
        zp: 
        update_option("mo_ldap_local_message", "Please submit your query along with email."); 
        $this->show_error_message(); 
        return; 
        Ml: 
        SO: 
        goto Zr; 
        Bd: 
        if (NddKoYsdasadJD()) { 
            goto LT; 
        } 
        update_option("mo_ldap_local_message", "Settings can't be tested without verifying your license key."); 
        $this->show_error_message(); 
        goto f5; 
        LT: 
        $V0 = get_option("mo_ldap_local_server_url"); 
        $WD = get_option("mo_ldap_local_server_dn"); 
        $e3 = get_option("mo_ldap_local_server_password"); 
        $m1 = get_option("mo_ldap_local_search_base"); 
        $mt = get_option("mo_ldap_local_search_filter"); 
        delete_option("mo_ldap_local_message"); 
        $YO = ''; 
        $ZY = ''; 
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_username"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["test_password"])) { 
            goto gl; 
        } 
        if (Mo_Ldap_Local_Util::check_empty_or_null($V0) || Mo_Ldap_Local_Util::check_empty_or_null($WD) || Mo_Ldap_Local_Util::check_empty_or_null($e3) || Mo_Ldap_Local_Util::check_empty_or_null($m1) || Mo_Ldap_Local_Util::check_empty_or_null($mt)) { 
            goto rF; 
        } 
        $YO = sanitize_text_field($_POST["test_username"]); 
        $ZY = sanitize_text_field($_POST["test_password"]); 
        goto uH; 
        rF: 
        add_option("mo_ldap_local_message", "Please save LDAP Configuration to test authentication.", '', "no"); 
        $this->show_error_message(); 
        return; 
        uH: 
        goto ue; 
        gl: 
        add_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries.", '', "no"); 
        $this->show_error_message(); 
        return; 
        ue: 
        $Ch = new Mo_Ldap_Local_Config(); 
        $tJ = $Ch->test_authentication($YO, $ZY, null); 
        $ns = json_decode($tJ, true); 
        if (strcasecmp($ns["statusCode"], "SUCCESS") == 0) { 
            goto jm; 
        } 
        if (strcasecmp($ns["statusCode"], "ERROR") == 0) { 
            goto Q7; 
        } 
        if (strcasecmp($ns["statusCode"], "LDAP_ERROR") == 0) { 
            goto Fw; 
        } 
        if (strcasecmp($ns["statusCode"], "CURL_ERROR") == 0) { 
            goto MQ; 
        } 
        if (strcasecmp($ns["statusCode"], "OPENSSL_ERROR") == 0) { 
            goto bX; 
        } 
        if (strcasecmp($ns["statusCode"], "PING_ERROR") == 0) { 
            goto wG; 
        } 
        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 bu; 
        wG: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $this->show_error_message(); 
        bu: 
        goto GJ; 
        bX: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $this->show_error_message(); 
        GJ: 
        goto tG; 
        MQ: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $this->show_error_message(); 
        tG: 
        goto Hh; 
        Fw: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $this->show_error_message(); 
        Hh: 
        goto dk; 
        Q7: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $this->show_error_message(); 
        dk: 
        goto iH; 
        jm: 
        $ss = add_query_arg(array("tab" => "rolemapping"), $_SERVER["REQUEST_URI"]); 
        $aG = "You have successfully configured your LDAP settings.<br>
	\x9							You can now do either of two things.<br>\xa\x9\x9\x9		\x9\x9\x9\x91. Enable LDAP Login at the top and then <a href="" . wp_logout_url(get_permalink()) . "">Logout</a> from wordpress and login again with your LDAP credentials.<br> \xa\x9	\x9					\x92. Do role mapping (<a href="" . $ss . "">Click here</a>)"; 
        add_option("mo_ldap_local_message", $aG, '', "no"); 
        $this->show_success_message(); 
        iH: 
        f5: 
        Zr: 
        goto U3; 
        SI: 
        delete_option("mo_ldap_local_user_mapping_status"); 
        $oJ = ''; 
        $m1 = ''; 
        $mt = ''; 
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["search_base"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["search_filter"])) { 
            goto xg; 
        } 
        $m1 = sanitize_text_field($_POST["search_base"]); 
        $mt = sanitize_text_field($_POST["search_filter"]); 
        goto VN; 
        xg: 
        update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries."); 
        $this->show_error_message(); 
        return; 
        VN: 
        if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto Y2; 
        } 
        update_option("mo_ldap_local_search_base", Mo_Ldap_Local_Util::encrypt($m1)); 
        update_option("mo_ldap_local_search_filter", Mo_Ldap_Local_Util::encrypt($mt)); 
        delete_option("mo_ldap_local_message"); 
        $Ch = new Mo_Ldap_Local_Config(); 
        $iL = $Ch->save_ldap_user_mapping_config(); 
        $aG = "LDAP User Mapping Configuration has been saved. Please test authentication to verify LDAP User Mapping Configuration."; 
        add_option("mo_ldap_local_message", $aG, '', "no"); 
        $this->show_success_message(); 
        goto ix; 
        Y2: 
        update_option("mo_ldap_local_message", "PHP OpenSSL extension is not installed or disabled. Please enable it first."); 
        $this->show_error_message(); 
        ix: 
        U3: 
        goto c8; 
        QH: 
        if (NddKoYsdasadJD()) { 
            goto Pr; 
        } 
        update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key."); 
        $this->show_error_message(); 
        goto bo; 
        Pr: 
        $V0 = ''; 
        $WD = ''; 
        $e3 = ''; 
        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 dA; 
        } 
        $V0 = sanitize_text_field($_POST["ldap_server"]); 
        $WD = sanitize_text_field($_POST["dn"]); 
        $e3 = sanitize_text_field($_POST["admin_password"]); 
        goto CL; 
        dA: 
        update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries."); 
        $this->show_error_message(); 
        return; 
        CL: 
        if (!Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto wf; 
        } 
        update_option("mo_ldap_local_server_url", Mo_Ldap_Local_Util::encrypt($V0)); 
        update_option("mo_ldap_local_server_dn", Mo_Ldap_Local_Util::encrypt($WD)); 
        update_option("mo_ldap_local_server_password", Mo_Ldap_Local_Util::encrypt($e3)); 
        delete_option("mo_ldap_local_message"); 
        $Ch = new Mo_Ldap_Local_Config(); 
        $iL = $Ch->save_ldap_config(); 
        $aG = "Your configuration has been saved."; 
        $kD = "success"; 
        $tJ = $Ch->test_connection(); 
        $ns = json_decode($tJ, true); 
        if (strcasecmp($ns["statusCode"], "SUCCESS") == 0) { 
            goto Tk; 
        } 
        if (strcasecmp($ns["statusCode"], "ERROR") == 0) { 
            goto i3; 
        } 
        if (strcasecmp($ns["statusCode"], "LDAP_ERROR") == 0) { 
            goto uB; 
        } 
        if (strcasecmp($ns["statusCode"], "OPENSSL_ERROR") == 0) { 
            goto OC; 
        } 
        if (strcasecmp($ns["statusCode"], "PING_ERROR") == 0) { 
            goto sU; 
        } 
        add_option("mo_ldap_local_message", $aG . " 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"); 
        $Bj = "Invalid configuration."; 
        $this->show_error_message(); 
        goto w9; 
        sU: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $Bj = "Ping server failed " . $V0; 
        $this->show_error_message(); 
        w9: 
        goto pR; 
        OC: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $Bj = "OpenSSL extension not installed."; 
        $this->show_error_message(); 
        pR: 
        goto QN; 
        uB: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $Bj = "LDAP extension not installed."; 
        $this->show_error_message(); 
        QN: 
        goto mY; 
        i3: 
        add_option("mo_ldap_local_message", $ns["statusMessage"], '', "no"); 
        $Bj = "Invalid search filter or search base."; 
        $this->show_error_message(); 
        mY: 
        goto wg; 
        Tk: 
        add_option("mo_ldap_local_message", $aG . " Connection was established successfully. Please configure LDAP User Mapping now.", '', "no"); 
        $Bj = "Test was successful."; 
        $this->show_success_message(); 
        wg: 
        goto tT; 
        wf: 
        update_option("mo_ldap_local_message", "PHP OpenSSL extension is not installed or disabled. Please enable it first."); 
        $this->show_error_message(); 
        tT: 
        bo: 
        c8: 
        goto xA; 
        oL: 
        if (NddKoYsdasadJD()) { 
            goto JF; 
        } 
        update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key."); 
        $this->show_error_message(); 
        goto uL; 
        JF: 
        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 re; 
        } 
        update_option("mo_ldap_local_message", "Auto Registering users has been disabled."); 
        $this->show_success_message(); 
        goto gz; 
        re: 
        update_option("mo_ldap_local_message", "Auto Registering users has been enabled."); 
        $this->show_success_message(); 
        gz: 
        uL: 
        xA: 
        goto xf; 
        yo: 
        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 IU; 
        } 
        update_option("mo_ldap_local_message", "Login through your LDAP has been disabled."); 
        $this->show_error_message(); 
        goto Xb; 
        IU: 
        update_option("mo_ldap_local_message", "Login through your LDAP has been enabled."); 
        $this->show_success_message(); 
        Xb: 
        xf: 
        goto m7; 
        c9: 
        if (NddKoYsdasadJD()) { 
            goto pi; 
        } 
        update_option("mo_ldap_local_message", "Settings can't be saved without verifying your license key."); 
        $this->show_error_message(); 
        goto qc; 
        pi: 
        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 Fe; 
        } 
        update_option("mo_ldap_local_message", "Login through your LDAP has been disabled."); 
        $this->show_success_message(); 
        goto Ah; 
        Fe: 
        update_option("mo_ldap_local_message", "Login through your LDAP has been enabled."); 
        $this->show_success_message(); 
        Ah: 
        qc: 
        m7: 
        goto dw; 
        s2: 
        $RA = ''; 
        $bP = ''; 
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["email"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["password"])) { 
            goto Av; 
        } 
        $RA = sanitize_email($_POST["email"]); 
        $bP = sanitize_text_field($_POST["password"]); 
        goto W5; 
        Av: 
        update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries."); 
        $this->show_error_message(); 
        return; 
        W5: 
        update_option("mo_ldap_local_admin_email", $RA); 
        update_option("mo_ldap_local_password", $bP); 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $tJ = $s5->get_customer_key(); 
        $Nc = json_decode($tJ, true); 
        delete_option("mo_ldap_local_verify_customer"); 
        if (get_option("mo_ldap_local_license_key")) { 
            goto H9; 
        } 
        $this->show_success_message(); 
        goto HY; 
        H9: 
        $ls = Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_license_key")); 
        $tJ = json_decode($s5->XfskodsfhHJ($ls), true); 
        if (strcasecmp($tJ["status"], "SUCCESS") == 0) { 
            goto wO; 
        } 
        update_option("mo_ldap_local_message", "License key for this instance is incorrect. Make sure you have not tampered with it at all. Please enter a valid license key."); 
        delete_option("mo_ldap_local_license_key"); 
        $this->show_error_message(); 
        goto gn; 
        wO: 
        $this->show_success_message(); 
        gn: 
        HY: 
        if (strcasecmp($Nc["apiKey"], "CURL_ERROR") == 0) { 
            goto rw; 
        } 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto CD; 
        } 
        update_option("mo_ldap_local_message", "Invalid username or password. Please try again."); 
        $this->show_error_message(); 
        goto SW; 
        CD: 
        update_option("mo_ldap_local_admin_phone", $Nc["phone"]); 
        $this->save_success_customer_config($Nc["id"], $Nc["apiKey"], $Nc["token"], "Your account has been retrieved successfully."); 
        update_option("mo_ldap_local_password", ''); 
        SW: 
        goto s6; 
        rw: 
        update_option("mo_ldap_local_message", $Nc["token"]); 
        $this->show_error_message(); 
        s6: 
        update_option("mo_ldap_local_password", ''); 
        dw: 
        goto O0; 
        to: 
        $RA = ''; 
        $vh = ''; 
        $bP = ''; 
        $JR = ''; 
        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 TW; 
        } 
        if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) { 
            goto e8; 
        } 
        $RA = sanitize_email($_POST["email"]); 
        $vh = sanitize_text_field($_POST["phone"]); 
        $bP = sanitize_text_field($_POST["password"]); 
        $JR = sanitize_text_field($_POST["confirmPassword"]); 
        goto GT; 
        e8: 
        update_option("mo_ldap_local_message", "Choose a password with minimum length 6."); 
        $this->show_error_message(); 
        return; 
        GT: 
        goto L2; 
        TW: 
        update_option("mo_ldap_local_message", "All the fields are required. Please enter valid entries."); 
        $this->show_error_message(); 
        return; 
        L2: 
        update_option("mo_ldap_local_admin_email", $RA); 
        if (!($vh != '')) { 
            goto Bl; 
        } 
        update_option("mo_ldap_local_admin_phone", $vh); 
        Bl: 
        if (strcmp($bP, $JR) == 0) { 
            goto nq; 
        } 
        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 ij; 
        nq: 
        update_option("mo_ldap_local_password", $bP); 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $tJ = json_decode($s5->check_customer(), true); 
        if (strcasecmp($tJ["status"], "CUSTOMER_NOT_FOUND") == 0) { 
            goto mv; 
        } 
        if (strcasecmp($tJ["status"], "CURL_ERROR") == 0) { 
            goto rD; 
        } 
        $tJ = $s5->get_customer_key(); 
        $Nc = json_decode($tJ, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto cx; 
        } 
        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 dx; 
        cx: 
        $this->save_success_customer_config($Nc["id"], $Nc["apiKey"], $Nc["token"], "Your account has been retrieved successfully."); 
        update_option("mo_ldap_local_password", ''); 
        dx: 
        goto VK; 
        rD: 
        update_option("mo_ldap_local_message", $tJ["statusMessage"]); 
        update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_FAILURE"); 
        $this->show_error_message(); 
        VK: 
        goto ol; 
        mv: 
        $MF = "EMAIL"; 
        $tJ = json_decode($s5->send_otp_token($MF, null), true); 
        if (strcasecmp($tJ["status"], "SUCCESS") == 0) { 
            goto bi; 
        } 
        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 v5; 
        bi: 
        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", $tJ["txId"]); 
        update_option("mo_ldap_local_registration_status", "MO_OTP_DELIVERED_SUCCESS"); 
        $this->show_success_message(); 
        v5: 
        ol: 
        ij: 
        O0: 
        if (isset($_POST["option"]) && $_POST["option"] == "mo_ldap_local_verify_license") { 
            goto PG; 
        } 
        if (isset($_POST["option"]) && $_POST["option"] == "mo_ldap_local_free_trial") { 
            goto lF; 
        } 
        if (!(isset($_POST["option"]) && $_POST["option"] == "mo_ldap_local_check_license")) { 
            goto aK; 
        } 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $tJ = json_decode($s5->check_customer_ln(), true); 
        if (strcasecmp($tJ["status"], "SUCCESS") == 0) { 
            goto Pz; 
        } 
        $ei = add_query_arg(array("tab" => "pricing"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_ldap_local_message", "You have not upgraded yet. <a href="" . $ei . "">Click here</a> to upgrade to premium version."); 
        $this->show_error_message(); 
        goto Rn; 
        Pz: 
        if (array_key_exists("licensePlan", $tJ) && !Mo_Ldap_Local_Util::check_empty_or_null($tJ["licensePlan"])) { 
            goto T1; 
        } 
        update_option("site_ck_l", Mo_Ldap_Local_Util::encrypt("false")); 
        $ei = add_query_arg(array("tab" => "pricing"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_ldap_local_message", "You have not upgraded yet. <a href="" . $ei . "">Click here</a> to upgrade to premium version."); 
        $this->show_error_message(); 
        goto ly; 
        T1: 
        update_option("mo_ldap_local_license_name", base64_encode($tJ["licensePlan"])); 
        update_option("site_ck_l", Mo_Ldap_Local_Util::encrypt("true")); 
        $ei = add_query_arg(array("tab" => "account"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_ldap_local_message", "You have successfully upgraded to premium version. <a href="" . $ei . "">Click here</a> to activate your license."); 
        $this->show_success_message(); 
        ly: 
        Rn: 
        aK: 
        goto S_; 
        lF: 
        if (decryptLDAPElement()) { 
            goto qG; 
        } 
        $ls = post_response(); 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $tJ = json_decode($s5->XfskodsfhHJ($ls), true); 
        if (strcasecmp($tJ["status"], "SUCCESS") == 0) { 
            goto on; 
        } 
        if (strcasecmp($tJ["status"], "FAILED") == 0) { 
            goto ZK; 
        } 
        update_option("mo_ldap_local_message", "An error occured while processing your request. Please Try again."); 
        $this->show_error_message(); 
        goto HM; 
        ZK: 
        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(); 
        HM: 
        goto Ub; 
        on: 
        update_option("mo_ldap_local_is_trial_key", Mo_Ldap_Local_Util::encrypt($ls)); 
        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(); 
        Ub: 
        goto L4; 
        qG: 
        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(); 
        L4: 
        S_: 
        goto Wr; 
        PG: 
        if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["mo_ldap_local_license_key"])) { 
            goto Ab; 
        } 
        update_option("mo_ldap_local_message", "All the fields are required. Please enter valid license key."); 
        $this->show_error_message(); 
        return; 
        Ab: 
        $ls = trim($_POST["mo_ldap_local_license_key"]); 
        $s5 = new Mo_Ldap_Local_Customer(); 
        $tJ = json_decode($s5->XfskodsfhHJ($ls), true); 
        if (strcasecmp($tJ["status"], "SUCCESS") == 0) { 
            goto ar; 
        } 
        if (strcasecmp($tJ["status"], "FAILED") == 0) { 
            goto Ro; 
        } 
        update_option("mo_ldap_local_message", "An error occured while processing your request. Please Try again."); 
        $this->show_error_message(); 
        goto zc; 
        Ro: 
        if (strcasecmp($tJ["message"], "Code has Expired") == 0) { 
            goto ih; 
        } 
        update_option("mo_ldap_local_message", "You have entered an invalid license key. Please enter a valid license key."); 
        goto la; 
        ih: 
        $ei = 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="" . $ei . "">Click here</a> to buy more."); 
        la: 
        $this->show_error_message(); 
        zc: 
        goto me; 
        ar: 
        update_option("mo_ldap_local_license_key", Mo_Ldap_Local_Util::encrypt($ls)); 
        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(); 
        me: 
        Wr: 
        iw: 
        if (mo_ldap_local_ntlsl()) { 
            goto oW; 
        } 
        if (ch_xdigit()) { 
            goto NK; 
        } 
        delete_option("mo_ldap_local_enable_login"); 
        NK: 
        goto Lt; 
        oW: 
        if (!decryptLDAPElement()) { 
            goto ib; 
        } 
        update_option("t_site_status", Mo_Ldap_Local_Util::encrypt("false")); 
        ib: 
        Lt: 
    } 
    function test_attribute_configuration() 
    { 
        if (is_user_logged_in()) { 
            goto xo; 
        } 
        error_log("User is not logged in. Do nothing"); 
        goto R3; 
        xo: 
        if (!(current_user_can("administrator") && isset($_REQUEST["option"]))) { 
            goto wA; 
        } 
        if ($_REQUEST["option"] == "testattrconfig") { 
            goto ll; 
        } 
        if (!(current_user_can("administrator") && $_REQUEST["option"] == "testrolemappingconfig")) { 
            goto EP; 
        } 
        $eV = $_REQUEST["user"]; 
        $GG = new Mo_Ldap_Local_Role_Mapping(); 
        $GG->test_configuration($eV); 
        EP: 
        goto eA; 
        ll: 
        $eV = $_REQUEST["user"]; 
        $Ch = new Mo_Ldap_Local_Config(); 
        $Ch->test_attribute_configuration($eV); 
        eA: 
        wA: 
        R3: 
    } 
    function save_success_customer_config($Sm, $my, $vi, $aG) 
    { 
        update_option("mo_ldap_local_admin_customer_key", $Sm); 
        update_option("mo_ldap_local_admin_api_key", $my); 
        update_option("mo_ldap_local_customer_token", $vi); 
        update_option("mo_ldap_local_password", ''); 
        update_option("mo_ldap_local_message", $aG); 
        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__)); 
    } 
    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() 
    { 
        $OH = "error"; 
        $aG = get_option("mo_ldap_local_message"); 
        echo "<div class='" . $OH . "'> <p>" . $aG . "</p></div>"; 
    } 
    function success_message() 
    { 
        $OH = "updated"; 
        $aG = get_option("mo_ldap_local_message"); 
        echo "<div class='" . $OH . "'> <p>" . $aG . "</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 plugin_query_vars($dk) 
    { 
        $dk[] = "app_name"; 
        return $dk; 
    } 
    function parse_sso_request($PK) 
    { 
        if (!array_key_exists("app_name", $PK->query_vars)) { 
            goto d3; 
        } 
        $Yo = mo_ldap_saml_login($PK->query_vars["app_name"]); 
        wp_redirect($Yo, 302); 
        die; 
        d3: 
    } 
    function mo_ldap_activate() 
    { 
        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_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 Sr; 
        } 
        delete_option("mo_ldap_local_admin_email"); 
        Sr: 
        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_enable_role_mapping"); 
        delete_option("mo_ldap_local_keep_existing_user_roles"); 
    } 
} 
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: 21.2.2
    Author URI: http://miniorange.com
    */


require_once "\x6d\157\x5f\154\144\141\x70\137\x70\141\147\145\x73\56\x70\150\160";
require "\x6d\x6f\137\154\x64\141\160\137\x73\165\160\160\157\162\164\x2e\160\150\x70";
require "\143\154\x61\x73\x73\55\x6d\157\x2d\x6c\144\141\160\55\x63\x75\x73\x74\157\x6d\x65\162\x2d\163\x65\164\165\160\56\160\150\x70";
require "\x63\154\x61\x73\163\55\x6d\x6f\x2d\154\144\141\160\x2d\x75\164\151\x6c\151\164\x79\56\160\x68\160";
require "\x63\x6c\x61\163\x73\x2d\x6d\157\x2d\154\x64\141\x70\55\x63\x6f\x6e\146\x69\x67\x2e\160\150\160";
require "\x63\154\141\x73\163\x2d\x6d\x6f\x2d\154\144\x61\160\x2d\x72\x6f\x6c\145\55\x6d\141\x70\160\151\x6e\x67\56\160\x68\160";
error_reporting(E_ERROR);
class Mo_Ldap_Local_Login
{
    function __construct()
    {
        add_action("\141\x64\x6d\x69\156\137\x6d\x65\156\x75", array($this, "\x6d\x6f\137\154\x64\x61\x70\x5f\154\157\x63\x61\154\137\x6c\157\147\x69\156\x5f\x77\x69\x64\x67\145\x74\x5f\x6d\145\156\x75"));
        add_action("\141\144\x6d\x69\156\x5f\151\156\x69\x74", array($this, "\154\x6f\147\x69\156\137\x77\x69\x64\147\x65\164\137\x73\141\x76\x65\137\x6f\160\164\151\x6f\156\163"));
        add_action("\151\x6e\151\164", array($this, "\x74\x65\x73\164\x5f\x61\164\x74\162\151\x62\x75\x74\145\x5f\143\157\156\146\151\x67\165\x72\x61\164\x69\157\x6e"));
        add_action("\x61\x64\155\151\156\x5f\145\156\x71\x75\145\x75\145\x5f\x73\x63\x72\151\160\164\163", array($this, "\155\x6f\x5f\x6c\x64\141\x70\137\154\157\x63\x61\154\x5f\x73\145\164\164\151\156\x67\x73\137\x73\164\x79\154\145"));
        add_action("\141\x64\x6d\x69\156\137\145\156\x71\x75\x65\x75\x65\137\163\143\x72\x69\x70\x74\x73", array($this, "\x6d\157\x5f\x6c\144\141\160\x5f\x6c\x6f\x63\x61\x6c\137\163\x65\x74\x74\151\156\147\x73\x5f\163\x63\x72\x69\x70\x74"));
        add_action("\160\x61\x72\x73\145\137\162\145\x71\165\145\163\x74", array($this, "\x70\141\x72\163\145\137\x73\163\157\x5f\162\x65\x71\165\x65\x73\x74"));
        if (!(get_option("\155\157\137\154\144\141\x70\137\154\157\143\141\x6c\x5f\145\x6e\x61\142\x6c\x65\x5f\165\x70\x64\x61\x74\x65\x5f\154\144\141\160") == 1)) {
            goto QG;
        }
        add_action("\160\x72\x6f\x66\x69\x6c\x65\x5f\165\160\144\141\164\145", array($this, "\x75\160\144\141\164\x65\137\x70\162\x6f\146\x69\x6c\x65"), 10, 2);
        QG:
        remove_action("\141\x64\155\151\156\137\x6e\157\164\151\x63\x65\163", array($this, "\x73\x75\x63\143\x65\163\x73\x5f\x6d\x65\x73\163\141\x67\x65"));
        remove_action("\141\144\x6d\151\156\x5f\156\157\x74\151\x63\x65\163", array($this, "\x65\x72\162\x6f\162\x5f\x6d\145\163\163\141\x67\145"));
        add_filter("\161\x75\145\x72\171\x5f\166\141\162\x73", array($this, "\160\154\x75\147\151\x6e\x5f\x71\x75\x65\x72\x79\137\x76\141\162\x73"));
        register_deactivation_hook(__FILE__, array($this, "\x6d\x6f\x5f\x6c\144\141\160\137\x6c\x6f\x63\x61\x6c\x5f\x64\145\141\143\x74\151\166\x61\164\x65"));
        register_uninstall_hook(__FILE__, "\155\x6f\137\x6c\144\x61\160\137\154\x6f\x63\x61\154\x5f\165\156\151\156\163\x74\141\x6c\154");
        add_action("\154\x6f\147\151\156\137\x66\157\157\164\145\162", "\155\157\137\x6c\144\141\x70\137\154\x6f\143\x61\x6c\x5f\154\x69\x6e\x6b");
        add_action("\x73\x68\x6f\167\137\165\x73\145\x72\137\x70\162\x6f\146\x69\x6c\145", array($this, "\163\x68\x6f\167\x5f\x75\x73\145\162\137\160\x72\x6f\146\151\154\145"));
        add_action("\x77\160\x5f\154\x6f\x67\151\156", array($this, "\146\145\164\143\150\x5f\165\x73\145\162\137\x69\156\x66\157\137\160\157\163\x74\137\x6c\x6f\147\x69\x6e"));
        if (!(get_option("\x6d\x6f\x5f\x6c\x64\x61\x70\137\x6c\157\143\x61\154\x5f\x61\165\x74\150\x6f\x72\151\172\145\x64\x5f\x75\x73\145\162\x73\x5f\x6f\x6e\154\x79") == 1)) {
            goto Ic;
        }
        add_action("\167\160", array($this, "\x6d\x6f\137\x6c\x64\x61\x70\137\154\157\x63\x61\x6c\137\x6c\157\147\x69\x6e\137\162\145\144\x69\x72\145\143\164"));
        Ic:
        if (!(get_option("\x6d\157\137\x6c\x64\x61\160\x5f\x6c\157\x63\141\154\x5f\x65\x6e\x61\142\x6c\x65\x5f\x6c\157\x67\151\x6e") == 1)) {
            goto dI;
        }
        remove_filter("\141\x75\164\150\145\x6e\x74\151\x63\141\x74\145", "\x77\160\137\141\165\164\x68\x65\156\x74\x69\x63\x61\x74\x65\x5f\x75\x73\145\x72\156\141\155\145\x5f\x70\x61\x73\x73\x77\157\x72\x64", 20, 3);
        add_filter("\x61\165\x74\150\x65\156\164\151\143\141\164\145", array($this, "\x6c\x64\141\x70\x5f\x6c\157\x67\151\x6e"), 20, 3);
        $A6 = get_option("\155\157\137\154\144\141\160\137\x6c\x6f\143\141\154\137\162\145\x64\x69\162\145\x63\164\x5f\164\x6f");
        if (!$A6) {
            goto UB;
        }
        if ($A6 == "\x68\157\x6d\x65\x70\141\x67\x65") {
            goto WD;
        }
        if (!($A6 == "\143\x75\x73\164\x6f\155")) {
            goto qB;
        }
        $y2 = get_option("\155\x6f\137\x6c\x64\x61\x70\137\154\157\143\141\154\x5f\x63\165\163\x74\x6f\x6d\137\162\145\144\x69\x72\x65\143\x74");
        add_filter("\x6c\157\x67\151\x6e\x5f\x72\x65\144\x69\162\x65\143\164", create_function("\44\165\162\154\54\44\x71\x75\145\x72\x79\x2c\44\x75\163\x65\162", "\162\x65\164\x75\162\x6e\40\x67\145\164\x5f\157\160\x74\x69\x6f\x6e\x28\x22\155\x6f\137\x6c\144\141\x70\137\154\157\x63\141\x6c\137\143\165\163\164\x6f\155\137\162\x65\x64\x69\162\x65\x63\x74\x22\x29\73\x65\x78\x69\x74\50\51\x3b"), 10, 3);
        qB:
        goto xT;
        WD:
        add_filter("\154\157\x67\151\156\x5f\x72\x65\x64\x69\162\x65\x63\x74", create_function("\x24\165\162\x6c\54\x24\161\165\x65\162\171\x2c\44\165\x73\x65\162", "\162\x65\x74\165\162\156\40\x68\157\155\x65\x5f\x75\x72\154\50\51\x3b"), 10, 3);
        xT:
        UB:
        dI:
        register_activation_hook(__FILE__, array($this, "\x6d\x6f\137\x6c\x64\141\x70\x5f\x61\x63\x74\151\x76\x61\x74\x65"));
    }
    function fetch_user_info_post_login($mh, $user)
    {
        $user = get_user_by("\154\157\147\151\x6e", $mh);
        $Ch = new Mo_Ldap_Local_Config();
        $Ch->fetch_user_attributes($user);
        if (!(get_option("\x6d\157\x5f\x6c\144\x61\x70\137\154\157\143\141\x6c\137\145\156\x61\x62\x6c\145\137\162\x6f\x6c\145\x5f\155\x61\x70\x70\x69\156\147") && !get_option("\155\x6f\x5f\x6c\x64\141\160\x5f\154\157\143\x61\x6c\137\153\145\145\x70\137\145\170\x69\x73\164\x69\x6e\x67\x5f\x75\x73\145\162\x5f\x72\x6f\x6c\145\x73"))) {
            goto vS;
        }
        $GG = new Mo_Ldap_Local_Role_Mapping();
        $ut = $GG->get_member_of_attribute($mh, null);
        $GG->mo_ldap_local_update_role_mapping($user->ID, $ut);
        vS:
    }
    function mo_ldap_local_login_redirect()
    {
        if (is_user_logged_in()) {
            goto gs;
        }
        auth_redirect();
        gs:
    }
    function show_user_profile($user)
    {
        $Qg = array();
        $aD = 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: 21.2.2
    Author URI: http://miniorange.com
    */ 
        echo esc_attr(get_the_author_meta("\155\x6f\x5f\154\144\x61\x70\x5f\165\163\145\162\137\x64\156", $user->ID));
        ?>
</b></td>
						</td>
						</tr>
						<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: 21.2.2
    Author URI: http://miniorange.com
    */ 
        echo esc_attr(get_the_author_meta("\155\x6f\137\x6c\x64\141\x70\137\x75\x73\145\162\x5f\160\x68\157\x6e\x65", $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: 21.2.2
    Author URI: http://miniorange.com
    */ 
        foreach ($aD as $Ia => $iH) {
            if (strpos($Ia, "\x6d\157\x5f\x6c\x64\141\x70\137\154\x6f\143\141\154\137\x63\x75\x73\164\x6f\155\x5f\141\x74\x74\x72\151\142\165\164\x65") === false) {
                goto Vi;
            }
            ?>
								<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: 21.2.2
    Author URI: http://miniorange.com
    */ 
            echo $iH;
            ?>
</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: 21.2.2
    Author URI: http://miniorange.com
    */ 
            if (is_array(get_user_meta($user->ID, $Ia, true))) {
                goto D1;
            }
            echo "\74\x74\x64\x3e";
            echo get_user_meta($user->ID, $Ia, true) . "\74\x62\162\76";
            echo "\x3c\x2f\x74\x64\x3e";
            goto fp;
            D1:
            echo "\74\164\x64\76";
            foreach (get_user_meta($user->ID, $Ia, true) as $T5) {
                echo $T5 . "\x3c\142\162\x3e";
                WF:
            }
            oH:
            echo "\x3c\x2f\164\x64\76";
            fp:
            ?>
								</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: 21.2.2
    Author URI: http://miniorange.com
    */ 
            goto ej;
            Vi:
            ej:
            mo:
        }
        co:
        ?>
				</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: 21.2.2
    Author URI: http://miniorange.com
    */ 
    }
    function update_profile($DR, $Ai)
    {
        $aD = wp_load_alloptions();
        $Qg = array();
        $vK = array();
        foreach ($aD as $Ia => $iH) {
            if (strpos($Ia, "\155\157\x5f\x6c\x64\x61\160\137\154\157\143\x61\154\x5f\143\165\x73\164\157\x6d\137\x61\164\164\x72\151\x62\165\164\145") === false) {
                goto Sn;
            }
            array_push($Qg, $iH);
            goto o8;
            Sn:
            o8:
            ZO:
        }
        x0:
        $Gb = 0;
        MG:
        if (!($Gb < sizeof($Qg))) {
            goto Be;
        }
        if (!isset($_POST[$Qg[$Gb]])) {
            goto nA;
        }
        $vK[$Qg[$Gb]] = $_POST[$Qg[$Gb]];
        nA:
        Ud:
        $Gb++;
        goto MG;
        Be:
        $user = get_userdata($DR);
        $Ch = new Mo_Ldap_Local_Config();
        $Ch->modify_user_info_in_ldap($user, $vK);
        foreach ($Qg as $QC => $iH) {
            update_user_meta($DR, "\x6d\157\x5f\x6c\144\141\160\137\x6c\x6f\143\x61\154\x5f\143\165\x73\x74\157\155\137\141\x74\164\x72\151\x62\x75\164\x65\x5f" . $QC, $iH);
            gN:
        }
        d0:
    }
    function ldap_login($user, $eV, $bP)
    {
        if (!(empty($eV) || empty($bP))) {
            goto Yd;
        }
        $p3 = new WP_Error();
        if (!empty($eV)) {
            goto XW;
        }
        $p3->add("\145\155\x70\x74\x79\x5f\165\163\x65\162\156\x61\155\x65", __("\74\x73\x74\x72\x6f\156\x67\76\x45\x52\x52\117\122\x3c\57\x73\164\x72\157\x6e\x67\x3e\x3a\40\x45\x6d\x61\x69\154\40\x66\151\145\154\144\x20\x69\163\40\145\155\160\x74\x79\56"));
        XW:
        if (!empty($bP)) {
            goto ga;
        }
        $p3->add("\145\x6d\160\164\171\x5f\x70\141\163\x73\167\x6f\162\x64", __("\74\163\164\162\x6f\156\147\x3e\105\122\x52\x4f\122\x3c\57\163\164\x72\x6f\156\147\76\72\x20\x50\x61\x73\x73\167\157\162\x64\40\146\151\145\154\144\x20\x69\163\40\145\155\160\164\171\56"));
        ga:
        return $p3;
        Yd:
        $Qv = get_option("\x6d\157\137\x6c\x64\141\160\x5f\x6c\157\143\x61\154\137\x65\x6e\141\142\154\x65\137\142\157\x74\150\x5f\154\x6f\x67\151\156");
        if (!empty($Qv)) {
            goto tE;
        }
        $user = false;
        if (username_exists($eV)) {
            goto kM;
        }
        if (!email_exists($eV)) {
            goto yk;
        }
        $user = get_user_by("\x65\x6d\x61\151\154", $eV);
        yk:
        goto Bt;
        kM:
        $user = get_user_by("\x6c\157\x67\151\156", $eV);
        Bt:
        if (!$user) {
            goto c_;
        }
        $HL = false;
        if (get_option("\155\157\x5f\x6c\x64\x61\x70\137\x6c\x6f\x63\x61\x6c\x5f\x65\x6e\141\142\154\145\137\142\157\164\x68\x5f\154\x6f\x67\151\156") == "\x61\x6c\154") {
            goto lz;
        }
        if (!(get_option("\155\157\137\154\x64\141\160\x5f\x6c\x6f\x63\141\x6c\x5f\145\x6e\x61\142\x6c\x65\x5f\142\x6f\x74\150\137\154\x6f\x67\151\156") == "\141\144\x6d\x69\156" && user_can($user->ID, "\x6d\x61\x6e\141\147\x65\x5f\157\x70\164\151\x6f\156\x73"))) {
            goto zd;
        }
        $HL = true;
        zd:
        goto uD;
        lz:
        $HL = true;
        uD:
        if (!($HL && wp_check_password($bP, $user->data->user_pass, $user->ID))) {
            goto DI;
        }
        return $user;
        DI:
        c_:
        tE:
        $Ch = new Mo_Ldap_Local_Config();
        $zE = $Ch->ldap_login($eV, $bP);
        if ($zE->statusMessage == "\x53\125\x43\103\x45\123\x53") {
            goto In;
        }
        if ($zE->statusMessage == "\114\x44\x41\x50\x5f\116\x4f\124\x5f\122\105\x53\x50\x4f\116\104\x49\116\x47") {
            goto w8;
        }
        if ($zE->statusMessage == "\x4c\x44\x41\120\137\105\122\122\117\x52") {
            goto vA;
        }
        if ($zE->statusMessage == "\x43\x55\x52\x4c\x5f\x45\x52\x52\117\122") {
            goto St;
        }
        if ($zE->statusMessage == "\x4f\x50\105\x4e\x53\123\x4c\x5f\x45\x52\x52\117\x52") {
            goto mX;
        }
        $p3 = new WP_Error();
        $p3->add("\x69\156\x63\157\x72\162\x65\x63\x74\137\x63\x72\145\x64\145\x6e\x74\x69\x61\x6c\163", __("\x3c\163\164\x72\157\x6e\x67\76\x45\122\122\117\x52\74\57\163\x74\162\157\x6e\x67\x3e\x3a\x20\111\156\x76\x61\154\151\144\40\x75\163\145\x72\156\x61\155\145\40\157\x72\x20\x69\156\143\x6f\x72\162\145\x63\164\x20\160\141\163\x73\167\x6f\x72\144\x2e\40\x50\x6c\145\141\x73\x65\40\164\x72\171\40\141\147\141\x69\x6e\x2e"));
        return $p3;
        goto X1;
        mX:
        $p3 = new WP_Error();
        $p3->add("\117\120\x45\116\123\x53\114\x5f\105\x52\x52\117\122", __("\x3c\163\164\162\x6f\x6e\x67\76\x45\122\x52\117\122\74\x2f\163\164\x72\x6f\156\x67\x3e\x3a\x20\74\x61\x20\164\x61\x72\147\x65\x74\75\x22\137\142\x6c\141\156\x6b\x22\x20\150\x72\145\146\75\42\x68\164\x74\160\x3a\57\57\160\150\160\56\156\x65\x74\57\155\x61\x6e\165\141\154\57\x65\156\57\157\x70\x65\x6e\x73\163\x6c\56\x69\x6e\x73\x74\141\154\154\x61\164\151\x6f\156\56\160\x68\x70\x22\x3e\x50\x48\x50\40\117\160\145\156\123\x53\114\40\x65\x78\164\x65\156\163\x69\157\x6e\x3c\57\x61\x3e\x20\151\x73\x20\156\157\164\40\151\156\x73\164\141\154\x6c\x65\144\40\x6f\x72\40\x64\151\163\x61\142\x6c\145\x64\x2e"));
        return $p3;
        X1:
        goto Sj;
        St:
        $p3 = new WP_Error();
        $p3->add("\x63\x75\162\x6c\x5f\x65\162\x72\157\162", __("\x3c\x73\164\x72\157\x6e\x67\x3e\105\122\122\117\x52\x3c\57\163\x74\162\x6f\156\147\x3e\72\40\x3c\x61\x20\x68\162\145\x66\75\x22\150\164\x74\160\72\57\57\160\x68\x70\x2e\x6e\145\164\57\155\141\156\165\x61\x6c\x2f\145\x6e\x2f\x63\165\162\x6c\56\151\156\163\164\x61\x6c\154\141\164\x69\157\x6e\x2e\160\x68\x70\42\76\120\x48\x50\40\143\x55\122\x4c\40\145\170\x74\x65\x6e\x73\151\x6f\x6e\74\x2f\x61\x3e\x20\x69\163\40\156\x6f\164\x20\x69\x6e\163\x74\x61\154\154\145\144\x20\x6f\162\40\x64\x69\x73\x61\x62\154\145\x64\56"));
        return $p3;
        Sj:
        goto C7;
        vA:
        $p3 = new WP_Error();
        $p3->add("\x63\165\x72\x6c\137\145\162\162\157\162", __("\x3c\163\x74\x72\157\x6e\147\76\x45\x52\x52\117\122\x3c\57\163\164\162\157\156\147\x3e\x3a\40\74\141\40\164\x61\162\x67\x65\164\x3d\x22\137\142\x6c\x61\156\x6b\42\40\150\x72\x65\146\x3d\x22\150\164\164\x70\72\x2f\x2f\160\x68\160\x2e\x6e\145\x74\x2f\155\141\x6e\x75\141\154\57\145\156\57\x6c\144\x61\x70\56\x69\156\x73\x74\x61\154\154\141\x74\151\x6f\x6e\x2e\x70\150\160\x22\x3e\120\x48\120\x20\114\104\x41\120\40\x65\x78\164\x65\x6e\x73\x69\x6f\156\x3c\x2f\141\76\40\x69\163\x20\156\157\164\40\x69\x6e\x73\164\141\x6c\x6c\145\144\x20\157\x72\x20\144\151\x73\141\x62\x6c\145\144\56\x20\120\154\x65\x61\x73\x65\x20\145\156\141\x62\x6c\x65\x20\x69\164\x2e"));
        return $p3;
        C7:
        goto Lq;
        w8:
        $TH = get_option("\x6d\x6f\x5f\154\144\141\x70\137\154\x6f\x63\x61\x6c\x5f\145\x6e\141\142\154\145\x5f\x66\141\154\x6c\x62\x61\x63\153\x5f\x6c\x6f\x67\x69\x6e");
        if (!$TH) {
            goto ck;
        }
        remove_filter("\x61\x75\x74\x68\x65\156\164\151\143\141\x74\x65", array($this, "\x6c\x64\x61\160\x5f\x6c\x6f\x67\x69\x6e"), 20, 3);
        add_filter("\141\x75\164\150\x65\x6e\x74\151\143\x61\x74\145", "\x77\160\x5f\x61\x75\164\x68\x65\x6e\164\151\x63\x61\164\145\137\x75\x73\145\162\156\141\x6d\145\137\160\x61\x73\x73\x77\157\x72\x64", 20, 3);
        $user = wp_authenticate($eV, $bP);
        return $user;
        ck:
        Lq:
        goto X0;
        In:
        $NX = $zE->profileAttributesList;
        $user = false;
        if (username_exists($eV)) {
            goto e0;
        }
        if (email_exists($eV)) {
            goto vx;
        }
        if (!(isset($NX["\x6d\141\151\154"]) && email_exists($NX["\x6d\x61\151\x6c"]))) {
            goto py;
        }
        $user = get_user_by("\x65\155\x61\x69\154", $NX["\155\141\151\x6c"]);
        py:
        goto el;
        vx:
        $user = get_user_by("\145\x6d\x61\x69\154", $eV);
        el:
        goto CJ;
        e0:
        $user = get_user_by("\x6c\157\x67\151\x6e", $eV);
        CJ:
        if ($user) {
            goto BE;
        }
        if (!get_option("\155\157\x5f\154\144\x61\160\137\x6c\157\x63\x61\154\137\162\x65\x67\151\x73\x74\x65\x72\x5f\x75\163\145\162")) {
            goto MO;
        }
        $Kc = $Ch->get_user_ldap_info($eV);
        $TH = get_option("\155\157\x5f\154\144\141\160\x5f\154\157\143\141\154\x5f\x65\156\141\x62\x6c\145\137\x66\141\154\x6c\x62\x61\x63\x6b\x5f\154\157\147\x69\156");
        if ($TH) {
            goto H1;
        }
        $Dc = wp_generate_password(10, false);
        goto A2;
        H1:
        $Dc = $bP;
        A2:
        $NX = $zE->profileAttributesList;
        $RA = $NX["\x6d\x61\x69\154"];
        $wG = $NX["\146\x6e\x61\x6d\x65"];
        $oQ = $NX["\154\156\x61\155\145"];
        $bV = $NX["\156\x69\143\x6b\156\x61\x6d\145"];
        $vh = $NX["\x70\x68\157\156\x65"];
        $B_ = array("\165\163\145\x72\x5f\154\157\x67\151\156" => $eV, "\x75\163\x65\x72\137\145\155\x61\x69\x6c" => $RA, "\x66\x69\x72\x73\x74\137\x6e\141\155\x65" => $wG, "\x6c\x61\x73\x74\x5f\156\141\155\145" => $oQ, "\165\x73\x65\x72\137\160\x61\x73\x73" => $Dc);
        if (empty($bV)) {
            goto Wg;
        }
        $B_["\156\151\x63\x6b\x6e\x61\x6d\145"] = $bV;
        Wg:
        $H8 = get_option("\155\157\x5f\x6c\x64\141\160\137\x6c\x6f\x63\x61\x6c\x5f\144\x69\x73\x70\x6c\x61\171\137\x6e\x61\155\145\x5f\141\x74\164\x72\151\x62\x75\x74\145");
        if (empty($H8)) {
            goto W7;
        }
        if (get_option("\155\x6f\137\154\x64\x61\x70\x5f\x6c\157\143\141\154\x5f\x64\x69\x73\x70\154\x61\x79\x5f\156\141\x6d\x65\137\141\x74\x74\x72\x69\x62\165\164\145") == "\x6e\x69\143\153\156\141\x6d\x65" && !empty($bV)) {
            goto dF;
        }
        if (get_option("\155\x6f\137\x6c\x64\x61\x70\x5f\x6c\x6f\x63\x61\154\x5f\144\x69\163\x70\154\x61\171\x5f\156\141\155\x65\x5f\x61\x74\164\162\x69\x62\165\164\x65") == "\145\155\141\x69\x6c") {
            goto Z0;
        }
        if (get_option("\155\x6f\137\x6c\144\x61\160\137\x6c\x6f\143\141\154\137\x64\151\163\160\154\141\x79\137\x6e\x61\155\145\137\x61\x74\164\x72\151\x62\165\164\145") == "\x66\151\162\x73\x74\x6e\x61\155\145") {
            goto kg;
        }
        if (get_option("\155\157\x5f\154\x64\x61\x70\137\x6c\x6f\143\x61\x6c\x5f\144\x69\x73\x70\154\141\x79\x5f\156\x61\x6d\145\137\x61\x74\x74\x72\151\142\165\x74\145") == "\146\x69\x72\x73\164\x6c\x61\163\164") {
            goto u1;
        }
        if (!(get_option("\x6d\x6f\137\154\144\x61\x70\137\x6c\x6f\x63\x61\x6c\137\x64\151\x73\x70\x6c\141\171\x5f\x6e\x61\x6d\x65\137\x61\164\164\x72\x69\142\x75\x74\x65") == "\x6c\x61\x73\x74\x66\151\162\163\164")) {
            goto y0;
        }
        $B_["\144\151\x73\160\154\x61\x79\x5f\156\141\155\145"] = $oQ . "\x20" . $wG;
        y0:
        goto zZ;
        u1:
        $B_["\x64\x69\163\x70\x6c\141\x79\x5f\156\141\155\145"] = $wG . "\40" . $oQ;
        zZ:
        goto HH;
        kg:
        $B_["\144\x69\163\160\154\141\171\137\x6e\x61\155\145"] = $wG;
        HH:
        goto t1;
        Z0:
        $B_["\144\x69\x73\160\x6c\141\171\x5f\x6e\x61\x6d\x65"] = $RA;
        t1:
        goto X7;
        dF:
        $B_["\144\151\x73\x70\154\x61\x79\x5f\x6e\x61\155\145"] = $bV;
        X7:
        W7:
        $DR = wp_insert_user($B_);
        if (!is_wp_error($DR)) {
            goto j_;
        }
        $p3 = new WP_Error();
        $p3->add("\162\x65\x67\x69\163\164\x72\141\x74\x69\x6f\156\x5f\x65\162\162\x6f\x72", __("\74\163\164\x72\x6f\156\x67\x3e\105\122\x52\117\122\x3c\57\163\x74\x72\x6f\156\147\x3e\x3a\40\124\150\145\162\x65\40\167\x61\163\x20\141\156\x20\145\162\x72\157\162\40\162\145\147\x69\x73\164\x65\x72\x69\156\147\40\171\157\165\x72\40\141\143\x63\157\165\x6e\164\56\40\x50\x6c\145\x61\x73\x65\40\164\x72\171\x20\x61\x67\x61\x69\x6e\x2e"));
        return $p3;
        goto aj;
        j_:
        $user = get_user_by("\154\157\x67\x69\156", $eV);
        update_user_meta($user->ID, "\155\157\137\154\144\x61\160\137\x75\163\145\x72\137\x64\156", $zE->userDn, false);
        update_user_meta($user->ID, "\155\157\x5f\154\x64\141\x70\137\165\x73\x65\162\137\x70\x68\x6f\x6e\x65", $vh);
        $Qg = $zE->attributeList;
        foreach ($Qg as $QC => $iH) {
            update_user_meta($user->ID, $QC, $iH);
            YL:
        }
        Kt:
        do_action("\155\157\137\x6c\x64\x61\160\137\x62\165\144\144\x79\160\162\x65\x73\163", $Qg, $user);
        if (!get_option("\x6d\x6f\x5f\154\x64\141\x70\137\x6c\157\143\x61\154\137\x65\x6e\x61\142\x6c\x65\137\x72\x6f\x6c\x65\x5f\x6d\x61\160\160\x69\x6e\147")) {
            goto oD;
        }
        $GG = new Mo_Ldap_Local_Role_Mapping();
        $ut = $GG->get_member_of_attribute($eV, $bP);
        $GG->mo_ldap_local_update_role_mapping($user->ID, $ut);
        oD:
        $LI = $_REQUEST["\162\145\144\151\162\145\143\164\137\164\x6f"];
        $A6 = get_option("\x6d\157\x5f\x6c\144\141\160\x5f\x6c\157\x63\141\x6c\x5f\x72\x65\144\x69\x72\145\x63\164\137\x74\157");
        if (!($A6 == "\x68\x6f\155\x65\160\141\147\x65")) {
            goto dK;
        }
        if (!($LI == admin_url())) {
            goto lX;
        }
        add_filter("\x6c\x6f\147\x69\x6e\137\162\x65\x64\151\x72\x65\x63\164", create_function("\x24\x75\162\x6c\54\44\x71\165\145\162\x79\x2c\44\165\x73\145\x72", "\x72\145\164\165\162\156\40\150\157\x6d\145\x5f\x75\162\x6c\x28\x29\73"), 10, 3);
        lX:
        dK:
        return $user;
        aj:
        goto HI;
        MO:
        $p3 = new WP_Error();
        $p3->add("\162\145\x67\x69\163\164\162\x61\164\x69\157\x6e\x5f\144\x69\163\141\142\x6c\145\144\137\x65\x72\162\x6f\162", __("\74\x73\x74\162\x6f\156\x67\76\x45\122\x52\117\x52\74\x2f\163\x74\162\157\x6e\x67\x3e\x3a\x20\x59\157\165\x72\40\101\x64\155\x69\x6e\151\x73\164\162\x61\164\x6f\162\40\150\x61\163\40\x6e\x6f\164\40\145\156\x61\142\154\145\144\x20\101\165\164\157\40\122\145\147\151\163\164\162\x61\x74\x69\157\156\x2e\40\x50\x6c\145\x61\x73\x65\x20\x63\x6f\156\x74\x61\x63\164\40\171\157\165\162\40\x41\144\x6d\x69\x6e\x69\x73\164\x72\x61\164\157\162\56"));
        return $p3;
        HI:
        goto ki;
        BE:
        if (!(get_option("\x6d\x6f\x5f\154\144\141\x70\x5f\154\157\x63\x61\154\x5f\145\156\x61\142\154\x65\137\162\157\x6c\x65\x5f\x6d\x61\x70\x70\151\156\x67") && !get_option("\155\x6f\137\154\x64\x61\x70\137\x6c\157\143\141\x6c\x5f\x6b\145\x65\160\x5f\x65\170\151\163\164\x69\x6e\147\137\x75\163\x65\x72\137\162\x6f\154\x65\163"))) {
            goto RV;
        }
        $GG = new Mo_Ldap_Local_Role_Mapping();
        $ut = $GG->get_member_of_attribute($eV, $bP);
        $GG->mo_ldap_local_update_role_mapping($user->ID, $ut);
        RV:
        $TH = get_option("\155\x6f\x5f\154\x64\x61\x70\137\154\x6f\x63\x61\x6c\137\145\156\141\x62\x6c\x65\x5f\x66\141\154\154\142\141\x63\x6b\137\x6c\x6f\x67\151\156");
        if (!$TH) {
            goto Rr;
        }
        wp_set_password($bP, $user->ID);
        Rr:
        update_user_meta($user->ID, "\155\157\x5f\154\x64\x61\160\137\165\163\145\x72\x5f\x64\x6e", $zE->userDn, false);
        update_user_meta($user->ID, "\x6d\x6f\x5f\x6c\x64\141\160\x5f\165\x73\x65\162\137\160\x68\157\x6e\145", $NX["\160\x68\157\156\145"]);
        if (!get_option("\155\x6f\137\154\x64\141\160\137\154\157\143\141\154\137\x65\x6e\141\x62\154\x65\x5f\141\x74\x74\x72\x5f\x6d\141\x70\x70\151\156\x67")) {
            goto wx;
        }
        $yc["\111\x44"] = $user->ID;
        if (empty($NX["\x6d\x61\151\154"])) {
            goto cr;
        }
        $yc["\165\163\145\x72\x5f\x65\155\141\x69\x6c"] = $NX["\x6d\x61\x69\x6c"];
        cr:
        if (empty($NX["\146\x6e\141\155\145"])) {
            goto PJ;
        }
        $yc["\x66\151\x72\x73\x74\137\156\141\155\x65"] = $NX["\x66\156\x61\155\x65"];
        PJ:
        if (empty($NX["\x6c\156\141\x6d\145"])) {
            goto Xw;
        }
        $yc["\x6c\141\x73\x74\137\156\141\x6d\x65"] = $NX["\x6c\x6e\141\x6d\x65"];
        Xw:
        wp_update_user($yc);
        $Qg = $zE->attributeList;
        foreach ($Qg as $QC => $iH) {
            update_user_meta($user->ID, $QC, $iH);
            aW:
        }
        TX:
        wx:
        do_action("\155\x6f\137\x6c\x64\141\x70\x5f\x62\165\144\x64\171\x70\x72\145\163\163", $Qg, $user);
        $LI = $_REQUEST["\x72\x65\144\x69\162\145\x63\164\x5f\x74\157"];
        $A6 = get_option("\x6d\157\x5f\x6c\x64\141\160\137\154\x6f\143\141\154\x5f\x72\x65\144\151\x72\x65\143\x74\x5f\x74\x6f");
        if (!($A6 == "\150\157\x6d\x65\160\x61\x67\145")) {
            goto hb;
        }
        if (!($LI == admin_url())) {
            goto bs;
        }
        add_filter("\x6c\x6f\147\151\x6e\x5f\x72\145\x64\x69\162\145\x63\x74", create_function("\44\165\x72\x6c\54\x24\x71\165\145\162\x79\x2c\x24\165\x73\x65\162", "\x72\145\x74\x75\x72\x6e\40\150\x6f\155\x65\x5f\x75\x72\x6c\x28\51\73"), 10, 3);
        bs:
        hb:
        return $user;
        ki:
        wp_redirect(site_url());
        die;
        X0:
    }
    function mo_ldap_add_user($DR)
    {
        $HX = get_userdata($DR);
        $Ch = new Mo_Ldap_Local_Config();
        $Ch->add_user($HX);
    }
    function mo_ldap_local_login_widget_menu()
    {
        add_menu_page("\114\104\101\120\57\101\x44\x20\114\157\147\x69\156\x20\146\x6f\x72\x20\111\x6e\x74\162\141\156\x65\x74", "\114\x44\x41\x50\x2f\101\104\x20\114\157\x67\x69\x6e\x20\x66\157\x72\x20\111\x6e\x74\162\141\x6e\145\164", "\141\x63\x74\151\166\141\x74\145\137\x70\x6c\165\147\151\156\x73", "\155\157\x5f\154\144\141\160\x5f\x6c\157\143\x61\x6c\137\154\x6f\147\151\x6e", array($this, "\155\x6f\x5f\x6c\x64\141\160\x5f\x6c\x6f\x63\x61\x6c\x5f\154\x6f\147\x69\x6e\x5f\x77\151\144\x67\x65\x74\137\x6f\160\164\x69\157\156\x73"), plugin_dir_url(__FILE__) . "\x69\x6e\x63\x6c\165\144\145\163\57\151\155\141\x67\145\x73\x2f\155\151\156\151\x6f\162\141\x6e\147\145\x5f\x69\143\157\156\56\160\x6e\x67");
    }
    function mo_ldap_local_login_widget_options()
    {
        update_option("\x6d\157\x5f\x6c\144\x61\160\x5f\x6c\x6f\x63\x61\x6c\x5f\x68\x6f\x73\164\137\x6e\x61\155\x65", "\x68\164\x74\160\x73\72\x2f\57\141\165\x74\150\x2e\155\151\x6e\x69\x6f\162\x61\156\147\x65\56\143\157\155");
        $Jf = array("\163\145\162\x76\x65\x72\137\x75\162\154" => "\x6c\x64\x61\x70\x3a\57\57\x35\x38\56\x36\64\x2e\61\x33\x32\x2e\x32\63\x35\x3a\x33\x38\x39", "\x73\145\x72\166\151\x63\145\x5f\x61\x63\x63\x6f\165\x6e\164\x5f\x64\156" => "\x63\x6e\x3d\164\145\163\x74\x75\163\x65\162\x2c\143\156\x3d\125\x73\x65\x72\163\x2c\144\143\75\x6d\x69\156\x69\x6f\x72\141\156\147\x65\54\144\143\75\x63\157\155", "\x61\x64\x6d\151\x6e\x5f\x70\141\x73\x73\x77\157\162\x64" => "\130\x58\130\130\130\x58\130\x58", "\x64\x6e\x5f\x61\x74\164\162\x69\x62\165\164\x65" => "\144\151\163\x74\x69\x6e\147\x75\x69\163\x68\x65\144\x4e\141\x6d\x65", "\163\145\141\162\x63\x68\137\x62\141\x73\x65" => "\x63\x6e\75\125\x73\x65\162\x73\54\144\143\75\x6d\x69\x6e\x69\157\162\141\x6e\x67\x65\x2c\x64\x63\x3d\x63\157\x6d", "\163\145\141\x72\143\x68\137\x66\x69\x6c\164\x65\x72" => "\x28\46\50\157\x62\x6a\x65\143\x74\103\154\x61\163\x73\x3d\x2a\x29\50\x63\156\75\77\x29\51", "\x74\145\163\164\x5f\x75\x73\145\162\156\141\155\x65" => "\x74\145\163\164\x75\163\145\x72", "\x74\145\163\164\x5f\160\141\x73\x73\x77\x6f\x72\144" => "\x70\141\163\x73\x77\x6f\x72\x64");
        update_option("\x6d\x6f\137\154\144\141\x70\x5f\x6c\157\143\x61\x6c\x5f\144\x65\x66\141\x75\x6c\x74\x5f\143\x6f\x6e\146\151\x67", $Jf);
        mo_ldap_local_settings();
    }
    function login_widget_save_options()
    {
        if (!isset($_POST["\x6f\160\164\151\x6f\x6e"])) {
            goto iw;
        }
        if ($_POST["\157\x70\x74\x69\157\x6e"] == "\155\x6f\x5f\x6c\x64\141\x70\x5f\154\x6f\x63\141\x6c\x5f\162\145\x67\x69\x73\x74\x65\x72\137\143\165\163\164\157\x6d\145\162") {
            goto to;
        }
        if ($_POST["\157\160\x74\x69\157\x6e"] == "\155\x6f\137\154\144\141\x70\137\154\x6f\143\141\154\137\x76\145\x72\x69\x66\x79\137\x63\x75\163\164\x6f\155\145\162") {
            goto s2;
        }
        if ($_POST["\x6f\160\x74\x69\x6f\156"] == "\155\x6f\137\x6c\x64\x61\160\137\154\157\x63\x61\x6c\x5f\x65\156\x61\x62\x6c\x65") {
            goto c9;
        }
        if ($_POST["\x6f\x70\164\151\x6f\156"] == "\x6d\157\x5f\x6c\144\141\160\137\154\157\x63\141\154\x5f\x74\154\x73\x5f\145\x6e\x61\x62\154\145") {
            goto yo;
        }
        if ($_POST["\157\x70\164\151\x6f\x6e"] == "\x6d\157\137\154\144\x61\x70\137\154\157\x63\x61\x6c\x5f\x72\x65\x67\x69\163\x74\x65\162\x5f\165\163\145\x72") {
            goto oL;
        }
        if ($_POST["\x6f\160\x74\x69\157\x6e"] == "\155\157\137\154\144\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\163\x61\x76\145\x5f\x63\157\x6e\146\151\147") {
            goto QH;
        }
        if ($_POST["\x6f\x70\x74\151\x6f\x6e"] == "\155\x6f\x5f\x6c\144\x61\160\x5f\x6c\157\143\141\x6c\137\163\141\x76\x65\x5f\x75\x73\x65\162\x5f\x6d\141\160\160\151\x6e\x67") {
            goto SI;
        }
        if ($_POST["\157\x70\164\151\157\x6e"] == "\x6d\x6f\137\x6c\144\141\160\x5f\x6c\157\x63\x61\x6c\137\x74\x65\163\x74\x5f\141\165\x74\150") {
            goto Bd;
        }
        if ($_POST["\x6f\160\164\151\x6f\156"] == "\155\x6f\137\154\144\x61\x70\137\x6c\157\143\141\x6c\x5f\154\157\x67\x69\x6e\x5f\x73\145\156\144\x5f\x71\x75\x65\162\171") {
            goto sa;
        }
        if ($_POST["\157\x70\164\151\157\x6e"] == "\155\x6f\137\x6c\144\141\x70\x5f\x6c\x6f\143\141\154\x5f\x72\145\163\x65\156\144\x5f\x6f\164\160") {
            goto jZ;
        }
        if ($_POST["\x6f\160\164\x69\157\x6e"] == "\155\x6f\137\x6c\144\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\x76\141\154\151\x64\x61\x74\145\137\x6f\164\160") {
            goto ym;
        }
        if ($_POST["\x6f\160\x74\151\x6f\x6e"] == "\155\x6f\x5f\154\144\x61\x70\x5f\154\157\143\x61\x6c\x5f\x70\151\156\x67\137\x73\145\x72\166\145\162") {
            goto PC;
        }
        if ($_POST["\157\160\164\x69\157\156"] == "\155\x6f\x5f\x6c\144\x61\160\x5f\154\157\143\141\154\x5f\145\x6e\141\142\154\145\x5f\162\x6f\154\145\137\x6d\141\x70\160\151\156\147") {
            goto d_;
        }
        if ($_POST["\157\x70\164\151\157\156"] == "\x6d\x6f\x5f\x6c\144\141\160\x5f\154\x6f\x63\x61\154\137\x6b\x65\145\x70\x5f\x65\170\151\x73\164\151\156\x67\137\x75\x73\x65\x72\x5f\x72\157\x6c\x65\163") {
            goto TJ;
        }
        if ($_POST["\157\x70\x74\x69\x6f\156"] == "\x6d\x6f\137\154\x64\141\x70\x5f\x6c\157\143\x61\154\x5f\163\141\x76\x65\x5f\x6d\x61\160\160\151\156\147") {
            goto A5;
        }
        if ($_POST["\157\x70\164\151\157\x6e"] == "\x6d\x6f\x5f\154\144\141\x70\x5f\163\141\x76\145\137\x61\x74\x74\x72\x69\x62\x75\x74\x65\x5f\x63\157\x6e\146\151\x67") {
            goto v7;
        }
        if ($_POST["\157\160\164\x69\157\156"] == "\x6d\157\x5f\x6c\144\141\x70\x5f\165\x73\145\162\137\155\141\156\x61\x67\x65\155\x65\156\x74\137\x63\157\156\x66\151\x67") {
            goto pf;
        }
        if ($_POST["\157\160\164\151\x6f\x6e"] == "\155\157\137\154\x64\x61\x70\x5f\144\145\x6c\145\x74\x65\x5f\x63\165\x73\164\x6f\x6d\137\141\164\x74\x72\x69\142\165\164\x65") {
            goto Hb;
        }
        if ($_POST["\157\x70\x74\151\157\156"] == "\x75\x73\145\x72\137\146\157\162\x67\157\x74\137\160\x61\x73\163\x77\x6f\162\144") {
            goto Sx;
        }
        if ($_POST["\157\160\164\151\x6f\156"] == "\155\157\x5f\x6c\144\141\160\x5f\x6c\x6f\143\141\154\137\146\141\x6c\154\x62\x61\x63\153\137\154\x6f\147\151\x6e") {
            goto br;
        }
        if ($_POST["\x6f\160\164\151\x6f\156"] == "\155\157\137\x6c\x64\141\x70\137\154\x6f\143\141\154\x5f\143\x61\156\x63\x65\x6c") {
            goto qY;
        }
        if ($_POST["\157\160\164\151\x6f\156"] == "\155\157\137\154\x64\141\x70\137\154\157\143\141\154\x5f\x70\x68\157\x6e\x65\x5f\166\x65\x72\x69\146\x69\143\141\x74\x69\157\156") {
            goto Bu;
        }
        if ($_POST["\157\160\x74\151\157\156"] == "\155\157\137\154\144\141\x70\x5f\x6c\157\x63\141\x6c\137\141\x75\164\150\157\x72\151\x7a\x65\144\137\165\163\x65\162\163\x5f\157\156\x6c\x79") {
            goto Jn;
        }
        if ($_POST["\x6f\x70\x74\151\157\x6e"] == "\x6d\x6f\x5f\154\x64\141\160\137\x6c\x6f\147\x69\x6e\137\x73\x65\156\144\137\161\165\145\162\171") {
            goto nl;
        }
        if ($_POST["\157\x70\164\151\157\x6e"] == "\x6d\x6f\137\x6c\144\141\x70\x5f\x6c\157\x63\x61\154\x5f\145\x6e\x61\x62\154\x65\x5f\142\157\164\150\x5f\x6c\157\x67\151\x6e") {
            goto Zz;
        }
        if (!($_POST["\x6f\160\x74\x69\157\x6e"] == "\x6d\157\137\x6c\144\x61\x70\x5f\154\157\143\x61\x6c\x5f\163\x61\x76\145\137\154\x6f\x67\151\156\137\162\x65\x64\x69\162\145\143\164")) {
            goto ql;
        }
        update_option("\155\157\x5f\154\144\141\x70\x5f\154\x6f\x63\x61\x6c\137\x72\x65\144\151\162\x65\x63\164\137\164\157", $_POST["\x72\x65\144\x69\x72\x65\x63\164\x5f\x74\157"]);
        if ($_POST["\162\145\144\151\x72\x65\x63\164\137\164\x6f"] == "\160\162\x6f\x66\x69\x6c\145") {
            goto ww;
        }
        if ($_POST["\162\145\144\151\x72\x65\143\x74\x5f\164\x6f"] == "\150\157\x6d\145\160\141\147\145") {
            goto lB;
        }
        if (!($_POST["\x72\145\x64\151\x72\x65\143\164\x5f\164\x6f"] == "\x63\x75\x73\x74\157\x6d")) {
            goto l4;
        }
        $y2 = $_POST["\x63\x75\163\x74\x6f\155\x5f\x72\x65\144\151\x72\x65\x63\164"];
        update_option("\155\x6f\137\154\x64\141\x70\x5f\x6c\x6f\143\x61\x6c\137\x63\x75\x73\x74\x6f\155\x5f\162\145\144\x69\x72\145\143\164", $y2);
        update_option("\x6d\x6f\137\x6c\144\x61\x70\x5f\x6c\157\143\x61\x6c\x5f\155\x65\x73\x73\141\x67\x65", "\125\x73\145\162\x73\40\x77\151\154\154\40\147\x65\x74\x20\162\145\144\x69\x72\145\143\x74\x65\x64\x20\x74\157\40\x63\x75\163\x74\157\x6d\40\x72\145\144\x69\162\145\x63\x74\40\125\x52\x4c\40\x61\x66\x74\x65\x72\x20\x6c\157\x67\151\156");
        l4:
        goto gF;
        lB:
        update_option("\155\157\137\154\144\141\x70\137\x6c\x6f\143\x61\154\x5f\155\x65\x73\163\x61\147\x65", "\125\163\145\x72\163\40\167\x69\x6c\154\x20\147\145\x74\x20\162\x65\x64\151\162\145\x63\164\x65\144\40\164\x6f\x20\150\x6f\x6d\x65\x70\x61\147\145\x20\141\x66\164\145\162\x20\x6c\x6f\x67\x69\x6e");
        gF:
        goto r4;
        ww:
        update_option("\x6d\157\x5f\x6c\144\x61\160\137\x6c\x6f\143\141\154\137\155\145\163\163\141\147\145", "\x55\163\145\162\x73\40\167\x69\154\154\x20\147\145\164\x20\x72\145\144\x69\x72\145\143\x74\x65\x64\x20\x74\x6f\40\x70\x72\x6f\146\151\x6c\145\x20\x70\141\147\145\x20\141\x66\164\145\162\40\154\x6f\x67\151\156");
        r4:
        $this->show_success_message();
        ql:
        goto Bi;
        Zz:
        update_option("\155\157\137\154\x64\141\160\x5f\154\x6f\143\141\x6c\137\145\156\141\142\x6c\x65\137\x62\x6f\x74\x68\x5f\154\157\x67\151\x6e", isset($_POST["\x6d\157\x5f\x6c\144\141\160\137\154\x6f\143\x61\154\x5f\x65\156\141\142\x6c\x65\137\142\157\164\150\x5f\x6c\157\x67\151\x6e"]) ? $_POST["\x6d\x6f\x5f\154\144\141\160\137\x6c\157\143\141\154\x5f\x65\x6e\x61\142\154\x65\137\x62\157\x74\x68\x5f\x6c\157\x67\151\156"] : '');
        if (get_option("\155\157\x5f\154\x64\x61\x70\137\154\x6f\143\x61\154\x5f\x65\156\x61\x62\154\145\x5f\x62\x6f\x74\x68\x5f\154\x6f\147\151\156")) {
            goto Ua;
        }
        update_option("\155\x6f\x5f\x6c\x64\x61\x70\137\154\157\x63\x61\154\x5f\155\x65\x73\163\x61\147\x65", "\114\x6f\x67\x69\x6e\x20\x77\151\164\150\x20\142\x6f\x74\150\x20\114\x44\x41\120\x20\141\x6e\x64\x20\127\x6f\162\x64\120\162\145\x73\163\40\150\x61\163\40\142\145\145\x6e\x20\x64\151\163\x61\x62\x6c\145\x64\56");
        $this->show_success_message();
        goto Gt;
        Ua:
        update_option("\155\157\137\154\144\x61\x70\x5f\154\x6f\143\141\x6c\137\x6d\x65\163\163\141\147\145", "\x4c\157\147\151\x6e\x20\x77\x69\164\150\40\x62\157\164\x68\x20\114\104\x41\x50\40\141\156\144\x20\x57\x6f\x72\x64\x50\162\145\x73\x73\x20\x68\x61\x73\x20\x62\145\145\156\40\145\x6e\141\142\x6c\x65\144\x2e");
        $this->show_success_message();
        Gt:
        Bi:
        goto WJ;
        nl:
        $RA = sanitize_text_field($_POST["\x71\165\x65\162\x79\x5f\x65\155\141\151\154"]);
        $vh = sanitize_text_field($_POST["\161\165\x65\162\171\137\x70\x68\157\156\145"]);
        $Ux = sanitize_text_field($_POST["\161\165\x65\x72\171"]);
        $s5 = new Mo_Ldap_Local_Customer();
        $NW = $s5->submit_contact_us($RA, $vh, $Ux);
        if ($NW) {
            goto yl;
        }
        update_option("\x6d\157\137\154\x64\141\160\137\154\157\143\x61\154\x5f\155\x65\163\x73\x61\x67\145", "\124\150\x65\x72\145\40\x77\141\163\40\141\156\x20\x65\x72\x72\157\x72\x20\x73\145\156\x64\x69\x6e\x67\x20\163\x75\x70\x70\x6f\162\164\40\x71\x75\x65\162\x79\56\40\120\154\x65\x61\x73\145\40\165\163\x20\x61\156\40\145\x6d\141\151\x6c\40\x6f\156\40\x3c\x61\40\x68\x72\x65\x66\x3d\x6d\x61\x69\154\164\x6f\72\x69\156\x66\x6f\100\155\151\156\x69\157\162\x61\156\x67\x65\x2e\x63\157\x6d\x3e\74\142\x3e\x69\156\146\x6f\x40\x6d\x69\156\x69\157\162\x61\156\x67\x65\56\x63\x6f\x6d\74\57\x62\x3e\74\57\141\x3e\x2e");
        $this->show_error_message();
        goto VR;
        yl:
        update_option("\x6d\157\137\x6c\x64\x61\x70\137\154\157\x63\x61\x6c\137\155\145\163\163\x61\x67\145", "\x53\x75\x70\x70\157\x72\164\x20\161\165\x65\162\x79\x20\163\x75\143\x63\145\163\163\146\165\x6c\154\171\x20\163\145\156\164\x2e\74\x62\x72\76\x49\x6e\x20\143\x61\x73\145\40\x77\145\40\x64\x6f\x6e\164\40\x67\145\x74\x20\142\x61\143\153\x20\x74\x6f\x20\171\x6f\x75\54\x20\x74\x68\x65\x72\x65\x20\155\x69\x67\150\x74\40\x62\x65\x20\145\x6d\141\x69\x6c\x20\144\145\x6c\151\166\145\x72\x79\x20\146\141\x69\x6c\x75\x72\145\163\x2e\x20\131\x6f\165\x20\143\141\x6e\x20\163\145\156\144\40\x75\x73\40\x65\155\141\151\x6c\40\x6f\x6e\40\x3c\x61\40\x68\x72\x65\x66\75\155\x61\x69\x6c\164\157\x3a\x69\156\146\x6f\100\x6d\x69\x6e\x69\x6f\162\x61\x6e\147\x65\56\143\157\x6d\76\x3c\x62\x3e\x69\x6e\146\x6f\x40\155\151\156\x69\x6f\162\x61\156\x67\145\56\143\157\x6d\x3c\57\142\76\x3c\x2f\141\x3e\x20\x69\x6e\x20\164\150\141\164\40\143\141\163\145\x2e");
        $this->show_success_message();
        VR:
        WJ:
        goto HX;
        Jn:
        if (NddKoYsdasadJD()) {
            goto oh;
        }
        update_option("\x6d\x6f\x5f\154\144\x61\160\137\x6c\x6f\x63\x61\x6c\x5f\155\145\163\x73\x61\147\x65", "\x53\145\x74\164\151\156\x67\x73\x20\x63\141\x6e\47\164\40\x62\145\40\x73\141\x76\x65\x64\x20\x77\x69\164\150\x6f\x75\164\x20\x76\145\162\x69\146\171\x69\156\147\x20\x79\157\165\x72\x20\154\151\143\145\x6e\163\x65\40\x6b\x65\x79\x2e");
        $this->show_error_message();
        goto nc;
        oh:
        update_option("\x6d\157\137\154\x64\141\x70\137\x6c\x6f\x63\141\154\137\141\x75\164\150\157\x72\151\172\145\144\x5f\x75\163\x65\162\x73\x5f\x6f\156\x6c\171", isset($_POST["\x61\x75\164\150\157\162\151\x7a\145\144\x5f\x75\163\x65\x72\163\x5f\x6f\x6e\x6c\x79"]) ? $_POST["\141\x75\164\150\x6f\x72\151\x7a\x65\144\x5f\165\163\145\x72\x73\137\x6f\x6e\154\x79"] : 0);
        if (get_option("\x6d\157\137\x6c\144\x61\160\x5f\154\157\x63\x61\154\137\141\x75\x74\x68\x6f\162\x69\x7a\145\x64\x5f\165\163\145\162\x73\137\157\156\x6c\171") == 1) {
            goto qJ;
        }
        update_option("\155\x6f\137\x6c\x64\x61\x70\x5f\x6c\157\143\141\x6c\137\x6d\x65\x73\x73\141\147\x65", "\x50\x72\x6f\164\145\143\164\x20\x43\157\x6e\164\x65\156\164\40\142\171\40\114\157\x67\x69\x6e\40\x64\x69\163\x61\x62\x6c\145\144\56");
        $this->show_success_message();
        goto ni;
        qJ:
        update_option("\155\x6f\137\154\144\x61\x70\x5f\x6c\x6f\x63\141\x6c\x5f\155\x65\163\x73\x61\147\145", "\x50\162\x6f\164\145\x63\164\40\x43\x6f\156\x74\145\156\164\x20\x62\x79\x20\114\157\x67\x69\x6e\x20\145\x6e\141\142\154\x65\144\x2e");
        $this->show_success_message();
        ni:
        nc:
        HX:
        goto Bq;
        Bu:
        $vh = sanitize_text_field($_POST["\160\150\157\x6e\145\x5f\156\165\155\x62\x65\162"]);
        $vh = str_replace("\40", '', $vh);
        $QK = "\x2f\x5b\134\53\135\x5b\x30\x2d\71\x5d\x7b\x31\54\63\175\x5b\60\55\71\135\x7b\61\60\175\x2f";
        if (preg_match($QK, $vh, $MD, PREG_OFFSET_CAPTURE)) {
            goto Ee;
        }
        update_option("\x6d\x6f\137\154\x64\x61\x70\x5f\x6c\x6f\x63\x61\x6c\137\155\x65\x73\x73\141\147\x65", "\x50\154\145\141\163\145\40\x65\156\164\145\162\40\x74\150\145\40\x70\x68\157\156\145\40\x6e\165\x6d\x62\x65\162\40\x69\156\x20\x74\x68\145\x20\146\157\154\154\x6f\167\151\x6e\x67\x20\x66\157\162\x6d\x61\164\72\40\x3c\142\x3e\x2b\43\43\x63\157\x75\x6e\x74\x72\x79\x20\x63\x6f\144\x65\43\43\40\43\x23\x70\150\x6f\x6e\x65\x20\156\x75\x6d\142\145\162\43\43");
        $this->show_error_message();
        goto jq;
        Ee:
        $MF = "\123\x4d\123";
        $s5 = new Mo_Ldap_Local_Customer();
        $ao = json_decode($s5->send_otp_token($MF, $vh));
        if (!($ao->status == "\x53\x55\x43\103\105\123\x53")) {
            goto PT;
        }
        if (get_option("\155\x6f\137\x6c\144\x61\160\137\x6c\157\x63\x61\154\137\163\155\x73\137\x63\157\x75\156\164") != null) {
            goto yJ;
        }
        update_option("\155\157\x5f\x6c\144\x61\160\137\x6c\157\143\141\154\137\163\x6d\x73\x5f\143\157\165\156\x74", 1);
        update_option("\x6d\x6f\x5f\154\x64\141\x70\137\154\157\x63\x61\x6c\137\155\145\x73\163\141\147\x65", "\x4f\x6e\145\40\x54\151\x6d\x65\40\120\x61\163\163\143\157\x64\x65\40\150\141\x73\40\x62\145\x65\156\40\163\145\156\x74\40\50\x20\x3c\142\76\61\x3c\57\x62\x3e\x20\51\40\146\157\162\x20\x76\145\162\x69\146\151\143\141\164\x69\157\x6e\x20\x74\157\40" . $vh);
        goto yi;
        yJ:
        update_option("\x6d\x6f\137\154\144\141\160\137\154\x6f\x63\x61\154\x5f\x73\x6d\x73\x5f\x63\157\165\x6e\x74", get_option("\155\x6f\x5f\x6c\x64\141\x70\137\154\157\143\141\154\137\163\x6d\163\x5f\143\x6f\165\x6e\x74") + 1);
        $ky = get_option("\x6d\157\137\154\144\x61\x70\137\x6c\157\x63\x61\x6c\x5f\x73\155\163\x5f\x63\x6f\165\156\164");
        update_option("\x6d\157\137\x6c\144\141\x70\137\x6c\157\x63\x61\x6c\137\155\145\x73\163\141\x67\145", "\101\156\x6f\x74\150\x65\162\40\117\156\x65\x20\x54\x69\155\x65\40\120\141\x73\x73\x63\x6f\144\x65\x20\x68\x61\x73\40\x62\x65\145\x6e\40\163\x65\156\164\x20\74\142\x3e\x28" . $ky . "\x29\x3c\x2f\x62\x3e\40\146\x6f\162\40\166\145\x72\x69\x66\151\143\x61\164\151\x6f\x6e\40\164\157\x20" . $vh);
        yi:
        update_option("\155\x6f\x5f\x6c\x64\141\x70\137\x6c\x6f\143\141\x6c\x5f\164\x72\141\156\x73\141\143\x74\151\157\156\x49\144", $ao->txId);
        $this->show_success_message();
        PT:
        jq:
        Bq:
        goto HO;
        qY:
        delete_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\x6f\143\x61\x6c\137\141\x64\155\x69\156\x5f\x65\x6d\x61\x69\154");
        delete_option("\x6d\157\137\x6c\144\x61\160\x5f\x6c\x6f\143\x61\x6c\x5f\162\145\x67\151\163\x74\162\141\164\x69\x6f\x6e\x5f\x73\x74\141\x74\165\x73");
        delete_option("\x6d\x6f\x5f\x6c\x64\141\x70\137\154\157\143\141\154\x5f\166\145\162\x69\146\x79\x5f\143\165\163\x74\157\x6d\x65\x72");
        delete_option("\x6d\x6f\x5f\x6c\x64\x61\160\x5f\x6c\x6f\143\141\154\137\x65\x6d\x61\151\154\137\143\157\x75\x6e\x74");
        delete_option("\x6d\x6f\x5f\x6c\x64\141\160\137\154\x6f\x63\141\x6c\137\163\x6d\163\x5f\x63\x6f\165\156\164");
        HO:
        goto uJ;
        br:
        update_option("\x6d\x6f\x5f\x6c\144\141\160\137\154\x6f\143\x61\x6c\x5f\145\x6e\141\142\154\145\137\x66\x61\x6c\154\x62\141\x63\153\x5f\x6c\157\x67\x69\156", isset($_POST["\x6d\157\x5f\x6c\144\x61\x70\x5f\154\157\143\x61\154\137\145\x6e\141\142\x6c\145\137\146\141\154\x6c\142\141\143\153\137\x6c\157\x67\151\156"]) ? $_POST["\155\157\x5f\x6c\x64\141\x70\x5f\154\x6f\143\141\x6c\137\145\156\x61\142\154\x65\137\x66\x61\154\154\142\x61\x63\153\x5f\154\x6f\147\151\x6e"] : 0);
        update_option("\155\157\137\x6c\144\141\160\x5f\154\157\x63\x61\x6c\x5f\x6d\x65\x73\163\141\x67\x65", "\106\x61\x6c\154\142\141\x63\153\40\154\x6f\x67\x69\x6e\40\x75\x73\x69\x6e\147\x20\x57\x6f\162\x64\x70\x72\x65\x73\163\x20\x70\141\x73\163\167\x6f\162\144\40\x65\156\141\x62\x6c\145\144");
        $this->show_success_message();
        uJ:
        goto MT;
        Sx:
        $ok = get_option("\x6d\157\137\154\144\141\160\x5f\154\x6f\x63\141\x6c\x5f\x61\x64\155\x69\x6e\137\x65\x6d\x61\151\x6c");
        $s5 = new Mo_Ldap_Local_Customer();
        $qb = json_decode($s5->mo_ldap_local_forgot_password($ok));
        if (!($qb->status == "\123\x55\103\x43\x45\123\x53")) {
            goto Uk;
        }
        $aG = "\131\157\x75\x20\160\141\163\163\x77\x6f\162\x64\x20\x68\x61\x73\40\142\x65\145\x6e\x20\x72\145\163\145\164\40\x73\165\143\143\145\163\163\146\x75\x6c\154\x79\x2e\40\x50\154\145\141\163\145\x20\145\156\x74\x65\162\40\164\150\x65\x20\x6e\x65\167\40\x70\x61\x73\x73\x77\157\162\x64\40\163\145\x6e\x74\x20\x74\x6f\40\171\x6f\x75\x72\x20\162\x65\x67\x69\163\164\x65\x72\x65\144\x20\x6d\x61\151\154\40\x68\x65\x72\x65\x2e";
        update_option("\155\x6f\x5f\x6c\144\x61\x70\x5f\x6c\157\143\141\154\137\x6d\145\163\x73\141\147\x65", $aG);
        $this->show_success_message();
        Uk:
        MT:
        goto TN;
        Hb:
        $qn = sanitize_text_field($_POST["\143\165\163\x74\x6f\x6d\137\x61\x74\164\162\151\x62\165\164\x65\137\x6e\141\155\145"]);
        $g7 = "\x6d\157\137\154\x64\x61\x70\137\154\157\x63\x61\x6c\x5f\x63\165\163\x74\157\x6d\137\141\x74\164\162\151\142\165\x74\145\137" . $qn;
        delete_option($g7);
        update_option("\155\157\137\x6c\144\141\160\x5f\x6c\x6f\x63\x61\x6c\137\x6d\145\x73\163\141\147\x65", "\123\165\x63\x63\x65\163\x73\x66\165\154\x6c\171\x20\x64\x65\154\145\164\x65\40\143\x75\163\164\157\x6d\40\141\x74\x74\162\151\142\165\164\145\x3a\40\74\x62\76" . $qn . "\x3c\57\x62\76");
        $this->show_success_message();
        TN:
        goto lr;
        pf:
        $Ek = sanitize_text_field($_POST["\x6d\x6f\137\x6c\x64\x61\x70\137\156\x65\x77\137\165\163\x65\162\x5f\154\x6f\x63\141\164\151\x6f\x6e"]);
        $MI = sanitize_text_field($_POST["\155\157\137\x6c\x64\141\160\x5f\157\142\152\145\x63\164\x63\x6c\x61\x73\163\137\141\x74\164\x72\151\x62\x75\x74\x65"]);
        update_option("\x6d\x6f\137\154\144\x61\160\x5f\154\157\143\141\x6c\137\x6e\x65\x77\x5f\165\163\145\162\137\154\x6f\x63\141\x74\x69\x6f\x6e", $Ek);
        update_option("\155\157\137\x6c\144\x61\160\137\x6c\x6f\143\141\154\137\x6f\142\152\145\143\x74\143\x6c\x61\x73\163\x5f\x61\x74\164\162\151\142\x75\x74\x65", $MI);
        update_option("\155\x6f\137\x6c\x64\x61\160\x5f\x6c\157\143\141\x6c\137\155\x65\163\x73\141\147\145", "\123\x75\x63\143\x65\x73\163\x66\x75\154\154\x79\40\x73\141\x76\x65\x64\x20\125\x73\x65\x72\x20\x4d\141\x6e\x61\147\145\155\145\156\164\40\x43\x6f\156\x66\x69\147\x75\x72\x61\164\151\157\x6e");
        $this->show_success_message();
        lr:
        goto wP;
        v7:
        $Qg = array();
        foreach ($_POST as $wZ => $iH) {
            if (strpos($wZ, "\155\157\x5f\x6c\144\x61\x70\x5f\154\157\143\141\x6c\x5f\x63\165\163\164\x6f\x6d\137\x61\164\164\x72\151\142\x75\x74\145") === false) {
                goto mj;
            }
            array_push($Qg, $wZ);
            goto ow;
            mj:
            ow:
            FE:
        }
        fP:
        update_option("\155\157\137\x6c\x64\141\160\137\154\157\143\x61\154\x5f\145\x6e\x61\142\x6c\x65\137\x61\x74\x74\x72\137\155\x61\160\x70\151\x6e\147", isset($_POST["\155\x6f\x5f\154\144\x61\160\x5f\154\x6f\143\141\x6c\137\145\x6e\141\142\154\x65\x5f\141\164\x74\162\x5f\155\x61\x70\x70\151\156\147"]) ? $_POST["\155\x6f\137\154\x64\141\x70\x5f\x6c\157\143\x61\x6c\x5f\145\x6e\x61\x62\154\x65\137\141\x74\x74\162\x5f\x6d\141\x70\160\x69\156\147"] : 0);
        update_option("\x6d\x6f\137\x6c\x64\141\x70\x5f\154\x6f\x63\141\x6c\137\145\x6e\141\x62\x6c\x65\137\x75\160\144\141\164\x65\137\x6c\144\x61\x70", isset($_POST["\x65\156\141\x62\154\145\x5f\x75\160\144\141\164\145\137\154\x64\x61\x70"]) ? $_POST["\x65\156\x61\142\154\x65\x5f\165\160\144\x61\x74\145\x5f\x6c\x64\x61\x70"] : 0);
        $jR = sanitize_text_field($_POST["\x6d\157\x5f\x6c\144\x61\160\137\x65\x6d\x61\x69\x6c\137\x61\x74\164\162\151\142\165\x74\145"]);
        $xg = sanitize_text_field($_POST["\x6d\157\x5f\154\x64\141\x70\137\160\x68\157\x6e\x65\137\141\164\164\x72\151\x62\165\164\145"]);
        $U3 = sanitize_text_field($_POST["\x6d\x6f\137\154\144\x61\160\137\x66\x6e\x61\155\x65\137\x61\x74\164\162\x69\x62\165\164\145"]);
        $ri = sanitize_text_field($_POST["\155\157\137\x6c\144\141\x70\137\154\156\x61\x6d\x65\137\x61\164\x74\x72\151\x62\165\164\145"]);
        $Ic = sanitize_text_field($_POST["\x6d\157\x5f\154\144\141\x70\x5f\x6e\151\x63\x6b\x6e\141\x6d\x65\137\141\164\x74\162\x69\x62\165\x74\145"]);
        $H8 = sanitize_text_field($_POST["\155\157\x5f\154\144\141\x70\x5f\x64\x69\163\x70\x6c\x61\x79\x5f\156\x61\x6d\x65\x5f\x61\164\x74\x72\151\x62\x75\164\145"]);
        $xV = isset($_POST["\x6d\x6f\137\154\144\x61\160\137\165\163\x65\x72\137\x65\156\x61\x62\154\x65\144\137\141\x74\164\162\151\x62\x75\x74\x65"]) ? $_POST["\x6d\x6f\137\154\144\141\x70\137\165\x73\x65\x72\137\145\x6e\x61\142\154\x65\x64\137\141\164\x74\162\x69\x62\x75\164\x65"] : 0;
        update_option("\x6d\157\x5f\154\x64\x61\160\137\x6c\x6f\143\x61\154\x5f\x65\155\141\x69\154\x5f\141\x74\164\x72\151\142\165\164\145", $jR);
        update_option("\155\x6f\x5f\154\144\x61\160\137\154\157\143\x61\x6c\137\x70\150\157\x6e\145\137\141\x74\x74\162\151\142\x75\x74\x65", $xg);
        update_option("\155\x6f\137\154\x64\141\x70\137\x6c\157\143\x61\154\137\146\156\x61\x6d\145\x5f\x61\164\x74\162\x69\142\x75\164\x65", $U3);
        update_option("\x6d\x6f\137\x6c\x64\141\160\137\x6c\x6f\143\x61\154\x5f\x6c\156\141\x6d\x65\137\x61\x74\x74\x72\x69\x62\165\x74\x65", $ri);
        update_option("\155\x6f\x5f\154\x64\x61\x70\x5f\154\157\x63\141\x6c\137\156\151\143\x6b\x6e\x61\x6d\145\137\x61\164\164\x72\x69\x62\x75\164\145", $Ic);
        update_option("\155\x6f\137\x6c\144\141\160\x5f\x6c\x6f\x63\141\154\x5f\x64\x69\x73\160\x6c\141\171\137\x6e\x61\x6d\145\x5f\141\x74\164\162\151\142\x75\164\145", $H8);
        update_option("\x6d\157\x5f\x6c\144\141\x70\x5f\x6c\x6f\143\141\154\x5f\x75\163\x65\x72\137\x65\x6e\141\x62\154\145\x64\137\x61\x74\x74\x72\x69\142\x75\164\145", $xV);
        foreach ($Qg as $QC) {
            if (!(isset($_POST[$QC]) and $_POST[$QC] != '')) {
                goto D0;
            }
            if (get_option($QC) == null) {
                goto vF;
            }
            $yj = strtolower(sanitize_text_field($_POST[$QC]));
            goto mD;
            vF:
            $yj = "\155\157\x5f\x6c\x64\141\160\x5f\x6c\157\x63\x61\x6c\x5f\143\165\163\164\x6f\x6d\137\141\x74\164\162\x69\142\x75\164\x65\x5f" . strtolower(sanitize_text_field($_POST[$QC]));
            mD:
            update_option($yj, strtolower(sanitize_text_field($_POST[$QC])));
            D0:
            yS:
        }
        z0:
        update_option("\x6d\x6f\x5f\154\144\141\x70\137\154\x6f\x63\x61\154\137\155\x65\x73\x73\141\147\x65", "\123\x75\x63\143\145\x73\x73\146\165\x6c\x6c\x79\40\x73\x61\166\x65\x64\x20\x4c\104\x41\120\40\x41\x74\164\x72\x69\142\165\164\145\x20\x43\157\156\x66\151\147\165\x72\141\x74\x69\157\x6e");
        $this->show_success_message();
        wP:
        goto hl;
        A5:
        $P9 = 100;
        $Ja = 0;
        $Gb = 1;
        Rt:
        if (!($Gb <= $P9)) {
            goto aN;
        }
        if (isset($_POST["\155\x61\x70\160\x69\156\x67\x5f\153\x65\x79\137" . $Gb]) && isset($_POST["\155\141\160\x70\x69\x6e\x67\137\153\145\x79\x5f" . $Gb])) {
            goto up;
        }
        goto aN;
        goto HD;
        up:
        if (!($_POST["\155\x61\160\160\x69\x6e\147\137\x6b\x65\x79\137" . $Gb] == '')) {
            goto hW;
        }
        goto VG;
        hW:
        update_option("\155\157\x5f\x6c\144\x61\160\x5f\x6c\157\143\x61\x6c\x5f\x6d\x61\160\160\151\156\x67\137\153\x65\x79\137" . $Gb, $_POST["\155\141\x70\160\151\x6e\147\137\x6b\145\x79\137" . $Gb]);
        update_option("\x6d\x6f\137\x6c\x64\141\160\137\x6c\157\x63\x61\154\137\x6d\141\x70\x70\151\x6e\147\137\x76\141\x6c\x75\x65\137" . $Gb, $_POST["\x6d\141\x70\160\151\156\x67\x5f\166\x61\154\x75\x65\137" . $Gb]);
        $Ja++;
        HD:
        VG:
        $Gb++;
        goto Rt;
        aN:
        update_option("\x6d\157\x5f\x6c\144\141\160\137\154\157\x63\141\x6c\137\x72\157\x6c\x65\137\x6d\x61\x70\x70\x69\156\x67\137\x63\157\x75\156\164", $Ja);
        if (!isset($_POST["\x6d\141\x70\x70\x69\156\147\137\166\x61\154\x75\x65\137\144\x65\x66\141\x75\x6c\164"])) {
            goto Ny;
        }
        update_option("\155\157\x5f\154\144\141\160\137\x6c\157\143\141\x6c\137\x6d\141\x70\x70\151\156\x67\137\x76\141\154\x75\145\x5f\144\x65\146\x61\x75\154\x74", $_POST["\x6d\x61\160\160\x69\156\147\137\x76\x61\154\x75\x65\x5f\x64\x65\146\141\165\x6c\164"]);
        Ny:
        if (!isset($_POST["\155\x61\160\160\151\156\147\x5f\x6d\145\x6d\142\x65\162\x6f\x66\137\141\164\x74\x72\x69\142\165\164\145"])) {
            goto NT;
        }
        update_option("\155\157\x5f\x6c\x64\141\x70\137\x6c\x6f\x63\x61\x6c\x5f\155\141\x70\x70\x69\x6e\147\x5f\x6d\x65\x6d\142\x65\x72\x6f\x66\x5f\x61\x74\x74\162\x69\x62\x75\x74\145", $_POST["\x6d\x61\160\160\151\156\147\x5f\x6d\x65\x6d\x62\145\x72\157\146\x5f\x61\164\x74\x72\x69\x62\x75\164\145"]);
        NT:
        $xb = '';
        if (get_option("\x6d\x6f\137\154\x64\x61\x70\x5f\x6c\x6f\x63\141\154\137\145\156\141\142\x6c\145\x5f\162\157\x6c\145\x5f\x6d\141\x70\160\x69\156\x67")) {
            goto AI;
        }
        $xb = "\x20\x50\154\x65\141\163\145\40\143\x68\145\143\x6b\x20\74\x62\x3e\42\105\156\x61\142\154\145\40\122\157\x6c\145\40\x4d\141\x70\160\151\156\147\42\x3c\57\x62\x3e\x20\164\157\x20\x61\x63\x74\x69\x76\x61\164\145\40\151\164\56";
        AI:
        update_option("\155\x6f\137\x6c\x64\x61\160\x5f\154\157\x63\x61\154\x5f\x6d\x65\x73\x73\141\147\x65", "\114\x44\x41\120\x20\107\162\x6f\x75\x70\x20\x74\x6f\40\127\120\40\162\x6f\154\x65\40\155\x61\x70\160\x69\156\x67\40\150\141\x73\x20\142\x65\145\156\40\x75\160\x64\141\164\x65\x64\x2e" . $xb);
        $this->show_success_message();
        hl:
        goto xG;
        TJ:
        update_option("\155\x6f\137\154\x64\x61\160\137\154\x6f\x63\x61\154\137\x6b\x65\145\x70\137\x65\x78\x69\x73\x74\151\x6e\147\x5f\x75\163\x65\162\x5f\162\157\x6c\145\163", isset($_POST["\x6b\x65\145\x70\x5f\145\x78\x69\163\x74\x69\x6e\147\137\x75\x73\145\162\137\x72\157\154\x65\163"]) ? $_POST["\x6b\145\145\x70\137\145\x78\151\x73\x74\x69\156\x67\137\x75\x73\145\162\x5f\162\x6f\x6c\145\163"] : 0);
        if (get_option("\155\157\137\154\144\141\x70\x5f\154\157\143\141\154\x5f\153\145\145\160\x5f\x65\170\x69\163\x74\151\x6e\147\x5f\165\163\145\x72\x5f\162\x6f\x6c\145\163")) {
            goto Qa;
        }
        update_option("\x6d\x6f\137\154\x64\141\x70\137\154\x6f\x63\x61\154\x5f\155\x65\163\163\141\147\x65", "\127\x50\40\x52\157\x6c\x65\163\40\x6f\146\40\105\x78\x69\163\164\x69\x6e\x67\40\x75\163\145\x72\x73\40\167\x69\154\x6c\40\142\145\x20\165\x70\144\141\164\x65\144\56");
        $this->show_success_message();
        goto qf;
        Qa:
        update_option("\x6d\x6f\137\154\x64\x61\x70\137\154\157\x63\141\154\x5f\155\145\163\x73\141\x67\145", "\127\120\x20\x52\157\x6c\145\163\40\157\146\40\x45\x78\151\163\x74\151\x6e\147\x20\165\x73\145\162\163\x20\167\x69\154\154\40\156\x6f\x74\x20\x62\145\40\x75\160\144\x61\x74\145\144\x2e");
        $this->show_success_message();
        qf:
        xG:
        goto Dd;
        d_:
        update_option("\155\157\x5f\x6c\x64\141\160\137\x6c\157\143\141\x6c\x5f\x65\x6e\x61\142\x6c\145\x5f\x72\x6f\154\145\x5f\155\141\160\160\x69\156\x67", isset($_POST["\145\156\141\142\x6c\145\137\x6c\x64\x61\x70\137\x72\157\154\x65\x5f\155\x61\160\x70\x69\x6e\x67"]) ? $_POST["\x65\156\x61\x62\x6c\x65\137\x6c\x64\x61\160\x5f\162\x6f\154\145\x5f\155\x61\x70\x70\x69\x6e\x67"] : 0);
        if (get_option("\x6d\157\x5f\154\144\141\160\x5f\x6c\157\x63\141\x6c\x5f\145\x6e\x61\x62\x6c\145\x5f\162\x6f\154\x65\x5f\x6d\141\160\x70\151\x6e\x67")) {
            goto kB;
        }
        update_option("\x6d\157\137\154\144\141\160\x5f\154\157\143\141\154\x5f\x6d\x65\163\163\x61\147\x65", "\114\x44\101\x50\x20\x47\162\157\x75\x70\40\164\x6f\x20\127\x50\x20\x72\157\x6c\x65\x20\x6d\141\160\x70\151\156\147\x20\150\141\x73\x20\x62\145\x65\156\x20\144\151\x73\x61\142\154\145\x64\x2e");
        $this->show_success_message();
        goto Qf;
        kB:
        update_option("\x6d\x6f\x5f\154\x64\141\x70\x5f\x6c\x6f\x63\141\x6c\x5f\x6d\x65\x73\163\x61\x67\145", "\114\104\x41\x50\40\x47\162\x6f\x75\160\x20\164\157\x20\x57\120\40\162\x6f\154\x65\x20\x6d\x61\160\160\151\156\x67\x20\x68\141\x73\40\142\x65\145\x6e\x20\x65\x6e\x61\x62\x6c\x65\x64\56");
        $this->show_success_message();
        Qf:
        Dd:
        goto Lw;
        PC:
        delete_option("\155\x6f\x5f\x6c\144\141\160\x5f\x6c\x6f\143\x61\154\137\x6d\145\x73\x73\141\x67\145");
        $Xp = sanitize_text_field($_POST["\154\144\141\160\x5f\x73\x65\x72\x76\145\x72"]);
        $Ch = new Mo_Ldap_Local_Config();
        $ns = $Ch->ping_ldap_server($Xp);
        if (strcasecmp($ns, "\x53\125\x43\x43\105\123\123") == 0) {
            goto zn;
        }
        if (strcasecmp($ns, "\x4c\x44\x41\x50\x5f\105\x52\x52\117\122") == 0) {
            goto tV;
        }
        $nz = str_replace("\154\144\x61\160\72\x2f\57", '', $Xp);
        $nz = str_replace("\154\x64\141\160\163\x3a\x2f\57", '', $nz);
        $eu = explode("\x3a", $nz);
        if (!isset($eu[0])) {
            goto zA;
        }
        $nz = $eu[0];
        zA:
        $jK = "\105\162\x72\157\162\40\x63\x6f\x6e\156\x65\143\x74\151\156\x67\40\x74\157\x20\114\104\x41\120\x20\123\145\162\x76\145\162\x2e\40\120\154\145\141\x73\x65\x20\143\x68\145\x63\x6b\40\x79\x6f\x75\162\x20\114\104\101\120\40\x73\145\x72\166\x65\x72\40\125\x52\x4c\40\x3c\142\76" . $Xp . "\74\x2f\142\x3e\x2e\x3c\x62\x72\x3e\x50\157\163\x73\x69\142\154\145\x20\162\x65\141\163\157\x6e\163\40\x2d\x3c\142\x72\x3e\61\x2e\x20\114\104\x41\x50\40\125\122\x4c\40\151\163\x20\164\171\160\145\144\40\151\x6e\x63\x6f\162\162\x65\143\x74\154\171\56\40\124\171\160\x65\40\x69\164\x20\x70\x72\157\x70\145\x72\154\171\x2c\40\x65\151\x74\x68\x65\162\40\167\x69\164\150\40\111\120\40\x61\144\144\162\145\x73\x73\40\157\x72\40\167\x69\x74\150\40\x66\165\x6c\x6c\x79\x20\161\x75\x61\154\x69\146\151\145\144\x20\144\x6f\x6d\x61\151\x6e\40\156\x61\155\x65\56\x20\x42\x6f\164\150\40\163\x68\x6f\165\154\x64\40\167\157\x72\x6b\56\40\105\147\x2e\40\74\x62\x3e\154\x64\x61\x70\x3a\57\57\x35\70\56\66\64\56\61\x33\62\x2e\x32\63\65\72\63\x38\71\x3c\x2f\x62\76\40\157\162\40\74\x62\x3e\x6c\144\141\x70\x3a\57\x2f\x6c\144\x61\x70\x2e\x6d\151\156\x69\x6f\162\x61\156\x67\145\56\143\x6f\155\x3a\63\x38\x39\74\x2f\142\x3e\56\x3c\142\x72\76\62\56\x20\114\x44\101\120\x20\163\145\x72\166\145\x72\40\x69\163\x20\x75\156\162\145\141\x63\150\141\142\x6c\145\x20\55\40\117\x70\x65\x6e\x20\x61\40\x63\x6f\155\155\141\x6e\x64\x20\160\162\x6f\155\160\164\40\141\x6e\144\x20\163\145\145\40\x69\146\x20\x79\x6f\x75\x20\x61\162\x65\40\x61\x62\x6c\x65\40\164\x6f\x20\160\151\x6e\147\40\x74\150\145\x20\171\x6f\x75\x72\40\x4c\x44\x41\120\x20\x73\x65\x72\x76\x65\162\40\x28\145\x2e\147\56\40\164\171\x70\x65\x20\x74\150\151\x73\x20\x63\x6f\x6d\155\x61\x6e\144\40\157\x6e\40\x61\x20\143\157\x6d\x6d\141\156\144\x20\160\162\157\x6d\x70\x74\x20\x3c\x62\76\160\x69\x6e\147\40" . $nz . "\x3c\57\142\76\x2e\40\111\x66\x20\160\x69\x6e\147\40\151\163\x20\x73\x75\143\x63\145\163\x73\x66\x75\x6c\x20\x74\x68\145\x6e\x20\157\x6e\154\171\40\47\143\x6f\x6e\x74\141\x63\164\40\x6c\144\141\x70\x20\x73\145\x72\166\x65\162\47\40\x77\151\154\154\40\x77\x6f\162\x6b\56\x3c\142\x72\76\63\x2e\40\x54\150\x65\162\x65\40\151\163\40\x61\40\74\142\x3e\146\x69\x72\145\167\x61\154\154\74\x2f\x62\x3e\x20\151\156\x20\x62\x65\x74\167\145\x65\x6e\x20\55\x20\x69\146\40\164\x68\x65\162\145\40\151\x73\x20\141\x20\146\x69\162\x65\x77\x61\x6c\x6c\x2c\40\160\x6c\145\x61\163\x65\40\157\160\145\156\40\164\x68\x65\40\146\x69\162\x65\167\141\154\154\x20\164\157\40\141\154\154\x6f\x77\40\x69\x6e\143\157\155\151\156\x67\40\162\x65\161\165\x65\x73\x74\x73\x20\164\x6f\40\x79\x6f\x75\162\x20\114\104\101\x50\x20\146\162\157\x6d\x20\x79\x6f\165\162\x20\x77\x6f\x72\x64\x70\x72\x65\163\163\x20\111\x50\40\141\156\x64\x20\160\157\162\164\40\63\x38\71\56";
        $Bj = "\105\x72\x72\x6f\x72\x20\x63\157\x6e\x6e\x65\143\151\156\x67\x20\163\x65\162\x76\x65\x72\40" . $Xp;
        add_option("\x6d\x6f\x5f\x6c\144\x61\160\137\154\x6f\143\x61\154\x5f\x6d\x65\x73\163\x61\147\x65", $jK, '', "\x6e\157");
        $this->show_error_message();
        goto aa;
        tV:
        $jK = "\x3c\141\40\x74\x61\x72\147\x65\164\75\x27\137\142\x6c\141\x6e\x6b\47\x20\x68\x72\x65\146\x3d\47\150\x74\x74\x70\72\57\57\x70\150\160\x2e\x6e\x65\x74\57\x6d\x61\156\165\x61\154\x2f\145\156\57\154\x64\141\160\56\x69\x6e\x73\164\x61\x6c\154\x61\x74\x69\x6f\x6e\x2e\x70\x68\160\47\76\120\110\x50\x20\114\x44\x41\120\40\145\x78\x74\145\x6e\163\x69\157\x6e\74\x2f\x61\76\40\x69\x73\x20\x6e\157\x74\40\x69\156\x73\x74\141\x6c\x6c\x65\144\x20\157\x72\40\144\x69\x73\141\x62\x6c\x65\144\56\x20\120\154\x65\x61\x73\x65\40\x65\x6e\x61\x62\154\x65\x20\151\164\56";
        $Bj = "\114\x44\x41\120\x20\145\x78\x74\x65\x6e\x73\x69\x6f\x6e\40\x6e\x6f\x74\x20\151\156\x73\164\141\x6c\x6c\x65\144\x20\x66\x6f\x72\40\x73\x65\x72\166\145\162\40" . $Xp;
        add_option("\155\157\137\154\144\x61\x70\x5f\154\157\x63\141\x6c\x5f\x6d\145\x73\x73\x61\x67\x65", "\114\x44\101\x50\x20\105\x78\x74\x65\156\163\151\157\x6e\40\151\x73\40\x64\151\x73\x61\142\x6c\145\x64\x3a\40" . $jK, '', "\x6e\x6f");
        $this->show_error_message();
        aa:
        goto bm;
        zn:
        $jK = "\123\x75\143\143\145\x73\x73\x66\165\154\154\x79\40\x63\157\156\164\x61\x63\x74\x65\144\x20\x4c\x44\x41\x50\40\123\145\162\166\x65\162\x2e\x20\x50\x6c\x65\x61\163\x65\40\143\157\156\x66\x69\x67\x75\x72\145\40\x79\x6f\165\162\40\x53\x65\x72\166\151\143\145\40\x41\143\x63\157\165\156\164\40\156\157\x77\x2e";
        $Bj = "\x53\165\x63\x63\145\x73\163\146\165\x6c\x6c\x79\40\143\157\x6e\164\141\x63\164\145\x64\x20\114\104\101\120\40\123\x65\x72\166\x65\162\x20" . $Xp;
        add_option("\155\157\137\x6c\144\x61\160\137\x6c\x6f\143\141\154\x5f\155\145\x73\163\141\x67\145", $jK, '', "\x6e\157");
        $this->show_success_message();
        bm:
        Lw:
        goto vN;
        ym:
        $Tu = '';
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\157\164\160\137\x74\157\153\x65\156"])) {
            goto VJ;
        }
        $Tu = sanitize_text_field($_POST["\157\164\160\x5f\164\157\x6b\145\156"]);
        goto Fo;
        VJ:
        update_option("\x6d\x6f\137\154\x64\141\160\137\154\157\143\x61\x6c\x5f\x6d\x65\x73\163\x61\x67\x65", "\x50\x6c\145\141\163\145\40\x65\x6e\164\145\162\40\x61\40\x76\x61\154\165\145\40\x69\156\x20\x6f\x74\x70\x20\146\x69\145\x6c\144\56");
        update_option("\155\157\x5f\154\x64\141\x70\137\154\157\x63\x61\x6c\x5f\x72\145\147\x69\163\x74\162\x61\x74\151\157\x6e\137\163\164\141\x74\x75\163", "\x4d\117\x5f\x4f\x54\120\x5f\x56\x41\x4c\111\x44\x41\124\x49\117\x4e\x5f\106\x41\111\114\125\x52\x45");
        $this->show_error_message();
        return;
        Fo:
        $s5 = new Mo_Ldap_Local_Customer();
        $tJ = json_decode($s5->validate_otp_token(get_option("\x6d\157\137\x6c\144\x61\160\x5f\x6c\157\x63\141\154\x5f\164\162\141\156\x73\x61\143\164\151\x6f\156\x49\144"), $Tu), true);
        if (strcasecmp($tJ["\163\164\141\164\165\x73"], "\123\x55\103\103\105\x53\123") == 0) {
            goto nu;
        }
        if (strcasecmp($tJ["\163\x74\141\x74\x75\x73"], "\x43\x55\122\x4c\137\105\x52\x52\x4f\122") == 0) {
            goto H7;
        }
        update_option("\155\x6f\x5f\x6c\144\x61\160\137\x6c\x6f\143\141\x6c\x5f\155\145\x73\x73\x61\x67\145", "\111\156\x76\141\154\151\x64\40\x6f\156\x65\40\x74\x69\x6d\x65\40\160\141\x73\163\x63\157\144\x65\x2e\x20\120\154\145\141\x73\145\40\x65\156\164\x65\162\x20\x61\x20\x76\x61\154\151\x64\40\x6f\x74\160\56");
        update_option("\x6d\157\x5f\x6c\x64\141\160\x5f\154\x6f\143\x61\x6c\x5f\x72\145\x67\x69\x73\164\x72\x61\x74\x69\157\x6e\137\x73\164\x61\164\165\163", "\115\x4f\137\117\124\120\x5f\126\x41\x4c\111\x44\101\124\111\x4f\x4e\137\x46\x41\111\114\x55\x52\x45");
        $this->show_error_message();
        goto KP;
        H7:
        update_option("\x6d\157\x5f\154\144\x61\160\x5f\154\157\x63\141\x6c\137\155\x65\x73\x73\141\x67\145", $tJ["\x73\164\x61\x74\x75\163\x4d\x65\x73\163\141\147\x65"]);
        update_option("\x6d\157\137\x6c\144\x61\160\137\154\x6f\x63\141\x6c\137\x72\145\147\151\163\x74\162\141\x74\x69\x6f\x6e\137\x73\x74\141\164\x75\163", "\115\117\x5f\x4f\x54\x50\x5f\x56\101\114\111\104\101\124\x49\117\x4e\x5f\x46\101\111\x4c\125\x52\105");
        $this->show_error_message();
        KP:
        goto V9;
        nu:
        $s5 = new Mo_Ldap_Local_Customer();
        $Nc = json_decode($s5->create_customer(), true);
        delete_option("\155\157\x5f\x6c\144\x61\x70\x5f\154\157\x63\x61\x6c\x5f\x65\x6d\141\x69\x6c\x5f\143\157\165\x6e\x74");
        delete_option("\x6d\157\137\154\144\x61\160\137\154\x6f\143\x61\x6c\x5f\x73\155\163\x5f\x63\157\x75\156\x74");
        if (strcasecmp($Nc["\163\x74\x61\x74\x75\163"], "\x43\125\x53\124\x4f\115\x45\122\x5f\x55\x53\x45\122\x4e\x41\x4d\105\x5f\x41\x4c\x52\x45\101\104\131\x5f\x45\x58\x49\123\124\123") == 0) {
            goto w6;
        }
        if (!(strcasecmp($Nc["\163\164\141\x74\165\163"], "\123\125\x43\103\105\123\x53") == 0)) {
            goto V8;
        }
        $this->save_success_customer_config($Nc["\151\144"], $Nc["\x61\160\x69\x4b\145\x79"], $Nc["\x74\x6f\153\145\x6e"], "\122\x65\147\x69\163\164\x72\141\x74\151\157\156\x20\143\157\x6d\160\154\145\164\x65\41");
        V8:
        goto AU;
        w6:
        $tJ = $s5->get_customer_key();
        $Nc = json_decode($tJ, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto MY;
        }
        update_option("\x6d\157\x5f\154\x64\x61\x70\137\x6c\157\143\x61\x6c\137\x6d\x65\x73\x73\x61\x67\145", "\x59\x6f\x75\40\x61\154\x72\145\141\x64\171\x20\150\x61\x76\x65\x20\x61\156\40\x61\x63\x63\x6f\165\156\164\x20\167\x69\x74\150\x20\155\x69\156\151\x4f\162\141\156\147\145\56\40\x50\x6c\145\x61\163\x65\40\145\156\164\x65\x72\x20\141\40\166\x61\154\151\144\x20\x70\141\x73\163\167\157\162\144\56");
        update_option("\155\x6f\137\x6c\144\x61\160\137\154\x6f\143\141\x6c\137\x76\145\162\151\x66\x79\x5f\143\165\x73\164\157\155\145\162", "\164\x72\x75\x65");
        delete_option("\x6d\x6f\x5f\154\144\x61\160\x5f\x6c\x6f\143\141\154\x5f\x6e\145\x77\137\162\x65\x67\151\163\x74\162\141\164\x69\x6f\x6e");
        $this->show_error_message();
        goto Dv;
        MY:
        $this->save_success_customer_config($Nc["\x69\x64"], $Nc["\141\x70\151\x4b\145\171"], $Nc["\x74\157\x6b\x65\156"], "\x59\x6f\165\162\40\141\x63\143\157\165\156\164\x20\x68\x61\163\x20\x62\145\145\x6e\40\162\x65\164\x72\x69\x65\x76\145\144\x20\163\165\x63\143\x65\x73\163\x66\165\154\154\x79\x2e");
        Dv:
        AU:
        update_option("\155\x6f\x5f\x6c\x64\141\x70\x5f\154\x6f\x63\x61\154\x5f\160\141\x73\x73\x77\x6f\x72\144", '');
        V9:
        vN:
        goto jG;
        jZ:
        $s5 = new Mo_Ldap_Local_Customer();
        $MF = "\105\x4d\101\111\x4c";
        $tJ = json_decode($s5->send_otp_token($MF, null), true);
        if (strcasecmp($tJ["\x73\x74\141\164\165\x73"], "\123\x55\x43\103\105\x53\x53") == 0) {
            goto Ed;
        }
        if (strcasecmp($tJ["\163\x74\x61\x74\165\163"], "\103\125\x52\x4c\137\x45\122\x52\117\x52") == 0) {
            goto WW;
        }
        update_option("\155\x6f\137\154\x64\x61\160\137\154\x6f\x63\x61\154\x5f\155\145\x73\163\141\147\x65", "\x54\x68\145\x72\145\40\x77\141\163\40\x61\156\40\145\x72\162\x6f\x72\x20\151\156\40\x73\x65\x6e\x64\x69\156\x67\x20\x65\155\x61\x69\154\56\x20\x50\x6c\145\x61\x73\x65\40\143\154\x69\143\153\40\x6f\156\x20\x52\x65\163\x65\x6e\x64\x20\x4f\124\x50\x20\164\x6f\x20\x74\162\171\x20\141\x67\141\151\156\x2e");
        update_option("\x6d\157\137\x6c\x64\x61\160\x5f\x6c\157\143\x61\x6c\137\162\145\147\x69\163\x74\162\141\164\x69\157\156\137\163\164\x61\x74\x75\163", "\115\117\x5f\x4f\x54\x50\x5f\104\105\x4c\111\126\x45\x52\x45\x44\x5f\x46\x41\x49\x4c\125\x52\105");
        $this->show_error_message();
        goto ya;
        WW:
        update_option("\x6d\x6f\137\154\x64\x61\x70\x5f\154\157\x63\x61\154\x5f\155\145\163\163\x61\147\145", $tJ["\x73\x74\141\x74\x75\163\x4d\145\163\x73\141\x67\x65"]);
        update_option("\155\x6f\x5f\x6c\144\141\x70\137\x6c\157\143\141\154\x5f\x72\145\x67\x69\x73\x74\x72\141\x74\151\x6f\x6e\137\163\x74\141\x74\165\163", "\115\117\137\117\x54\120\137\x44\105\114\x49\126\105\122\105\x44\137\106\x41\111\114\125\122\x45");
        $this->show_error_message();
        ya:
        goto sX;
        Ed:
        if (get_option("\155\x6f\x5f\154\144\x61\160\x5f\154\x6f\x63\141\154\x5f\145\x6d\141\151\154\137\x63\x6f\165\x6e\x74")) {
            goto Nq;
        }
        update_option("\155\x6f\x5f\154\x64\x61\x70\137\x6c\x6f\x63\141\154\x5f\x6d\x65\163\163\141\x67\x65", "\x41\x6e\40\117\x54\x50\40\150\x61\163\x20\x62\145\145\156\x20\x73\x65\156\164\x20\x74\157\40\74\x62\76" . get_option("\155\x6f\137\x6c\144\x61\x70\x5f\x6c\157\x63\141\154\x5f\141\x64\x6d\151\x6e\x5f\145\155\x61\151\x6c") . "\74\x2f\x62\x3e\x2e\x20\120\x6c\x65\x61\163\145\40\x65\x6e\x74\x65\162\40\x74\150\145\40\117\124\120\40\142\145\x6c\x6f\167\x20\164\x6f\x20\166\145\x72\151\146\x79\40\x79\x6f\165\162\x20\145\x6d\x61\x69\154\x2e\x20");
        update_option("\155\x6f\137\x6c\x64\141\x70\137\x6c\157\x63\x61\x6c\x5f\x65\155\141\151\x6c\137\143\157\165\x6e\164", 1);
        goto pE;
        Nq:
        update_option("\x6d\157\137\x6c\144\x61\160\137\154\x6f\143\141\154\x5f\x65\155\x61\151\154\137\x63\x6f\165\x6e\x74", get_option("\155\x6f\x5f\x6c\x64\x61\x70\x5f\154\x6f\143\141\x6c\137\x65\155\141\151\x6c\x5f\x63\x6f\x75\x6e\x74") + 1);
        update_option("\x6d\157\x5f\x6c\144\141\x70\x5f\x6c\157\143\x61\154\137\155\145\163\163\141\147\x65", "\101\x6e\x6f\164\150\145\x72\40\117\156\145\x20\124\151\x6d\145\40\120\x61\x73\x73\x63\157\144\145\x20\150\141\163\x20\x62\x65\145\156\40\163\x65\x6e\164\40\x3c\142\x3e\x28\40" . get_option("\x6d\157\x5f\x6c\x64\x61\160\137\154\x6f\x63\141\x6c\x5f\145\x6d\141\151\x6c\137\x63\157\165\156\164") . "\x20\x29\x3c\x2f\142\76\40\164\x6f\x20\x3c\142\x3e" . get_option("\155\x6f\x5f\x6c\144\141\160\x5f\154\157\143\x61\154\137\x61\x64\155\x69\x6e\x5f\145\155\x61\151\154") . "\x3c\57\x62\x3e\x2e\x20\120\x6c\145\x61\x73\x65\40\x65\156\x74\x65\162\x20\x74\x68\x65\x20\x4f\124\120\x20\x62\145\154\157\167\40\x74\157\x20\x76\x65\162\x69\146\171\40\x79\x6f\x75\x72\x20\145\155\141\x69\154\56\40");
        pE:
        update_option("\x6d\x6f\x5f\154\x64\141\x70\137\154\x6f\143\x61\154\137\x74\x72\x61\x6e\x73\141\143\164\x69\157\x6e\111\144", $tJ["\x74\x78\x49\x64"]);
        update_option("\155\x6f\137\x6c\x64\x61\x70\x5f\154\x6f\143\x61\154\137\162\x65\147\151\x73\x74\x72\141\x74\151\157\156\137\163\x74\x61\164\165\163", "\115\117\137\117\x54\x50\x5f\104\x45\114\x49\126\105\x52\x45\104\137\x53\125\x43\x43\x45\123\x53");
        $this->show_success_message();
        sX:
        jG:
        goto SO;
        sa:
        $Ux = '';
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x71\165\x65\162\171\137\x65\x6d\141\x69\x6c"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x71\x75\145\162\x79"])) {
            goto zp;
        }
        $Ux = sanitize_text_field($_POST["\x71\165\x65\x72\171"]);
        $RA = sanitize_text_field($_POST["\161\x75\145\162\x79\x5f\x65\155\x61\151\x6c"]);
        $vh = sanitize_text_field($_POST["\161\165\x65\x72\171\x5f\x70\x68\x6f\x6e\x65"]);
        $H2 = new Mo_Ldap_Local_Customer();
        $aJ = json_decode($H2->submit_contact_us($RA, $vh, $Ux), true);
        if (strcasecmp($aJ["\163\164\x61\164\165\x73"], "\103\x55\122\x4c\137\105\122\122\117\x52") == 0) {
            goto ph;
        }
        if (!(json_last_error() == JSON_ERROR_NONE)) {
            goto oB;
        }
        if ($aJ == false) {
            goto zq;
        }
        update_option("\155\157\x5f\x6c\144\141\160\x5f\154\x6f\143\x61\x6c\137\x6d\x65\163\163\x61\x67\145", "\124\x68\x61\x6e\x6b\163\40\x66\x6f\x72\x20\x67\145\164\x74\151\156\147\x20\x69\x6e\40\x74\157\165\x63\x68\x21\x20\127\145\40\x73\x68\141\154\x6c\x20\x67\x65\x74\40\142\141\x63\x6b\40\164\157\40\171\157\165\x20\163\150\157\x72\164\154\171\56");
        $this->show_success_message();
        goto SX;
        zq:
        update_option("\155\157\137\x6c\x64\x61\160\137\x6c\157\x63\141\x6c\137\x6d\145\x73\x73\x61\147\145", "\x59\x6f\165\x72\40\x71\x75\145\x72\171\40\x63\x6f\x75\154\x64\x20\x6e\157\x74\x20\142\145\x20\x73\165\142\x6d\151\x74\x74\x65\x64\x2e\x20\x50\154\145\141\163\x65\x20\x74\x72\171\x20\141\x67\x61\151\156\x2e");
        $this->show_error_message();
        SX:
        oB:
        goto Pe;
        ph:
        update_option("\x6d\157\137\x6c\144\141\160\137\x6c\157\143\141\154\x5f\x6d\145\163\163\141\147\x65", $aJ["\163\164\x61\x74\165\x73\x4d\x65\163\163\x61\147\145"]);
        $this->show_error_message();
        Pe:
        goto Ml;
        zp:
        update_option("\x6d\157\x5f\154\144\x61\160\137\x6c\157\143\x61\154\x5f\x6d\145\x73\163\141\147\145", "\120\x6c\145\x61\163\x65\40\163\x75\142\x6d\x69\x74\40\x79\157\165\162\x20\161\165\x65\x72\x79\40\x61\x6c\157\x6e\x67\x20\167\x69\x74\150\x20\x65\155\141\x69\154\x2e");
        $this->show_error_message();
        return;
        Ml:
        SO:
        goto Zr;
        Bd:
        if (NddKoYsdasadJD()) {
            goto LT;
        }
        update_option("\155\x6f\137\154\144\141\160\137\154\x6f\x63\x61\154\x5f\155\x65\163\163\x61\147\x65", "\x53\x65\164\x74\x69\x6e\147\x73\40\143\x61\156\47\x74\40\142\x65\x20\164\145\163\x74\x65\144\x20\167\x69\x74\x68\157\165\x74\40\x76\x65\162\x69\146\171\151\156\x67\x20\x79\157\x75\162\40\154\x69\x63\145\x6e\163\x65\40\x6b\x65\171\56");
        $this->show_error_message();
        goto f5;
        LT:
        $V0 = get_option("\155\157\137\x6c\144\141\x70\137\154\157\143\141\154\x5f\163\145\162\166\x65\162\x5f\x75\162\154");
        $WD = get_option("\x6d\x6f\137\x6c\x64\141\160\x5f\154\157\x63\x61\x6c\137\x73\145\x72\x76\145\162\x5f\144\156");
        $e3 = get_option("\155\x6f\137\154\144\141\x70\137\x6c\157\143\141\x6c\x5f\163\145\162\166\x65\x72\137\160\x61\x73\x73\167\157\x72\144");
        $m1 = get_option("\x6d\x6f\137\154\144\x61\160\x5f\154\x6f\x63\141\x6c\137\163\x65\141\x72\143\150\137\x62\141\163\145");
        $mt = get_option("\x6d\x6f\137\154\144\x61\x70\x5f\154\x6f\x63\x61\154\x5f\x73\x65\141\162\x63\150\137\146\151\x6c\164\x65\x72");
        delete_option("\155\x6f\x5f\154\x64\141\x70\x5f\x6c\157\143\141\x6c\137\155\145\163\163\x61\x67\145");
        $YO = '';
        $ZY = '';
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x74\145\163\x74\137\165\x73\x65\162\156\141\x6d\145"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\164\145\163\164\x5f\x70\x61\x73\x73\167\x6f\162\x64"])) {
            goto gl;
        }
        if (Mo_Ldap_Local_Util::check_empty_or_null($V0) || Mo_Ldap_Local_Util::check_empty_or_null($WD) || Mo_Ldap_Local_Util::check_empty_or_null($e3) || Mo_Ldap_Local_Util::check_empty_or_null($m1) || Mo_Ldap_Local_Util::check_empty_or_null($mt)) {
            goto rF;
        }
        $YO = sanitize_text_field($_POST["\x74\145\x73\x74\137\x75\163\x65\x72\x6e\x61\x6d\x65"]);
        $ZY = sanitize_text_field($_POST["\x74\145\x73\x74\137\160\x61\x73\x73\x77\x6f\162\144"]);
        goto uH;
        rF:
        add_option("\155\157\137\x6c\x64\x61\160\137\154\157\x63\x61\154\137\x6d\x65\x73\163\141\x67\x65", "\120\x6c\x65\141\163\145\40\163\x61\166\145\x20\x4c\104\101\x50\40\103\157\x6e\146\x69\x67\x75\x72\x61\x74\x69\x6f\156\40\164\x6f\40\164\145\163\164\40\x61\165\x74\x68\145\x6e\x74\151\143\141\x74\x69\157\156\x2e", '', "\x6e\x6f");
        $this->show_error_message();
        return;
        uH:
        goto ue;
        gl:
        add_option("\x6d\x6f\x5f\x6c\x64\141\160\x5f\x6c\x6f\x63\141\154\137\x6d\145\x73\x73\141\x67\x65", "\x41\x6c\x6c\x20\x74\150\145\40\146\x69\x65\x6c\144\163\40\x61\162\x65\x20\162\145\x71\x75\x69\162\145\144\56\40\x50\154\x65\141\x73\145\40\x65\156\x74\145\162\40\166\x61\x6c\x69\x64\40\145\156\164\x72\x69\x65\163\56", '', "\x6e\x6f");
        $this->show_error_message();
        return;
        ue:
        $Ch = new Mo_Ldap_Local_Config();
        $tJ = $Ch->test_authentication($YO, $ZY, null);
        $ns = json_decode($tJ, true);
        if (strcasecmp($ns["\x73\x74\141\x74\165\x73\x43\x6f\144\x65"], "\123\125\103\x43\105\123\123") == 0) {
            goto jm;
        }
        if (strcasecmp($ns["\x73\x74\x61\164\165\163\x43\x6f\x64\145"], "\105\122\122\117\122") == 0) {
            goto Q7;
        }
        if (strcasecmp($ns["\163\164\x61\x74\165\163\x43\157\x64\145"], "\x4c\x44\x41\x50\137\x45\x52\x52\117\122") == 0) {
            goto Fw;
        }
        if (strcasecmp($ns["\x73\164\x61\164\x75\163\103\x6f\144\145"], "\x43\125\122\x4c\x5f\x45\122\x52\117\122") == 0) {
            goto MQ;
        }
        if (strcasecmp($ns["\163\x74\141\x74\x75\163\103\157\144\x65"], "\x4f\x50\x45\x4e\x53\x53\x4c\137\105\x52\122\x4f\122") == 0) {
            goto bX;
        }
        if (strcasecmp($ns["\x73\x74\x61\x74\165\163\103\x6f\144\x65"], "\120\x49\x4e\x47\137\105\122\122\x4f\122") == 0) {
            goto wG;
        }
        add_option("\155\157\x5f\x6c\x64\141\x70\x5f\154\157\143\x61\x6c\137\155\145\x73\163\141\147\145", "\124\x68\x65\162\145\x20\167\x61\x73\x20\141\156\40\x65\162\x72\x6f\162\x20\x70\162\x6f\x63\145\x73\x73\151\156\147\40\x79\157\x75\162\40\162\x65\161\x75\x65\x73\164\x2e\40\x50\x6c\145\141\x73\x65\x20\x76\145\x72\151\x66\171\40\164\150\x65\x20\x53\x65\x61\x72\143\150\40\102\x61\x73\145\50\x73\x29\x20\x61\156\144\x20\123\x65\x61\x72\x63\150\40\146\x69\x6c\x74\x65\x72\x2e\40\x59\157\165\162\x20\165\x73\145\x72\x20\x73\150\157\165\x6c\x64\40\x62\x65\40\160\162\x65\x73\145\156\x74\40\x69\156\40\164\150\145\40\123\145\x61\x72\143\150\x20\x62\141\163\x65\x20\144\145\146\x69\x6e\145\x64\56", '', "\156\x6f");
        $this->show_error_message();
        goto bu;
        wG:
        add_option("\x6d\x6f\x5f\154\x64\141\x70\x5f\154\157\x63\x61\x6c\137\155\145\163\163\141\x67\145", $ns["\x73\164\x61\164\165\x73\x4d\x65\163\x73\141\147\145"], '', "\x6e\157");
        $this->show_error_message();
        bu:
        goto GJ;
        bX:
        add_option("\x6d\157\x5f\x6c\x64\x61\x70\137\154\157\x63\x61\x6c\137\x6d\145\163\163\141\x67\145", $ns["\x73\164\141\x74\x75\163\115\x65\x73\163\x61\147\x65"], '', "\156\157");
        $this->show_error_message();
        GJ:
        goto tG;
        MQ:
        add_option("\155\x6f\x5f\x6c\x64\x61\x70\x5f\x6c\157\143\x61\154\x5f\155\145\x73\x73\141\x67\x65", $ns["\163\x74\141\164\165\x73\x4d\x65\x73\163\141\147\145"], '', "\156\x6f");
        $this->show_error_message();
        tG:
        goto Hh;
        Fw:
        add_option("\155\157\137\154\144\x61\160\x5f\154\157\143\x61\x6c\137\155\x65\x73\163\x61\x67\145", $ns["\x73\164\x61\164\x75\163\115\x65\x73\163\141\147\x65"], '', "\x6e\x6f");
        $this->show_error_message();
        Hh:
        goto dk;
        Q7:
        add_option("\x6d\157\137\x6c\x64\141\x70\x5f\154\157\x63\x61\x6c\x5f\155\x65\163\163\141\x67\x65", $ns["\x73\164\x61\164\165\163\x4d\145\163\x73\x61\147\145"], '', "\x6e\157");
        $this->show_error_message();
        dk:
        goto iH;
        jm:
        $ss = add_query_arg(array("\x74\x61\142" => "\162\157\x6c\145\x6d\x61\x70\x70\x69\156\x67"), $_SERVER["\x52\105\x51\125\105\x53\124\137\125\122\x49"]);
        $aG = "\131\x6f\165\40\x68\x61\x76\145\40\163\x75\143\143\x65\x73\x73\x66\x75\x6c\154\171\x20\143\x6f\x6e\146\151\x67\x75\x72\x65\x64\x20\171\x6f\x75\x72\x20\x4c\104\101\120\x20\x73\145\x74\164\151\156\x67\x73\56\74\142\x72\76\12\11\x9\11\11\11\11\11\11\11\131\x6f\x75\x20\143\x61\156\40\x6e\x6f\x77\x20\x64\x6f\40\x65\151\x74\x68\145\x72\40\157\146\40\x74\167\157\x20\x74\150\x69\156\x67\163\x2e\74\x62\x72\76\xa\x9\x9\x9\11\11\x9\x9\x9\x9\61\56\40\105\x6e\141\142\154\145\40\x4c\104\x41\120\x20\x4c\x6f\147\x69\x6e\40\141\x74\x20\x74\x68\x65\x20\164\157\160\40\x61\156\144\x20\164\150\145\156\40\74\141\40\x68\162\145\146\75\42" . wp_logout_url(get_permalink()) . "\x22\76\114\x6f\x67\157\x75\164\74\57\x61\76\x20\x66\162\157\155\40\167\157\162\144\x70\x72\x65\x73\x73\x20\141\156\144\x20\x6c\x6f\x67\x69\156\40\141\x67\x61\151\x6e\x20\x77\x69\164\x68\40\171\x6f\x75\x72\40\114\104\101\120\x20\x63\x72\x65\144\145\156\x74\x69\141\154\x73\56\74\x62\162\x3e\x20\xa\x9\11\x9\11\11\11\11\11\x9\62\56\40\x44\157\40\162\157\x6c\145\x20\155\x61\x70\x70\x69\x6e\147\40\50\x3c\x61\x20\150\x72\145\x66\75\x22" . $ss . "\42\76\x43\x6c\x69\x63\x6b\x20\150\145\162\145\74\x2f\141\76\x29";
        add_option("\155\x6f\137\154\x64\x61\160\137\x6c\157\x63\x61\154\x5f\x6d\x65\163\163\141\x67\x65", $aG, '', "\x6e\157");
        $this->show_success_message();
        iH:
        f5:
        Zr:
        goto U3;
        SI:
        delete_option("\155\157\x5f\x6c\x64\141\x70\137\154\x6f\143\141\x6c\137\x75\x73\x65\x72\137\155\x61\160\160\x69\x6e\x67\x5f\163\x74\x61\x74\x75\x73");
        $oJ = '';
        $m1 = '';
        $mt = '';
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x73\145\x61\162\x63\x68\137\x62\x61\163\x65"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\163\145\x61\x72\143\150\137\146\x69\x6c\164\145\x72"])) {
            goto xg;
        }
        $m1 = sanitize_text_field($_POST["\163\x65\x61\x72\x63\x68\137\142\x61\163\x65"]);
        $mt = sanitize_text_field($_POST["\163\x65\141\x72\x63\x68\137\146\x69\154\x74\x65\162"]);
        goto VN;
        xg:
        update_option("\x6d\x6f\137\154\144\x61\x70\x5f\x6c\157\143\141\x6c\137\x6d\145\x73\x73\x61\x67\x65", "\101\154\x6c\x20\164\150\x65\x20\146\x69\x65\x6c\144\163\x20\x61\162\145\x20\162\145\x71\x75\x69\x72\x65\x64\56\x20\120\154\x65\x61\x73\x65\40\x65\x6e\x74\x65\x72\40\166\x61\154\x69\144\40\x65\156\x74\162\x69\x65\163\56");
        $this->show_error_message();
        return;
        VN:
        if (!Mo_Ldap_Local_Util::is_extension_installed("\157\x70\145\x6e\x73\163\x6c")) {
            goto Y2;
        }
        update_option("\155\x6f\137\154\x64\141\160\137\x6c\157\x63\x61\154\137\x73\145\x61\x72\143\x68\137\x62\141\163\145", Mo_Ldap_Local_Util::encrypt($m1));
        update_option("\155\157\137\154\x64\x61\160\137\154\x6f\143\141\x6c\x5f\163\x65\x61\x72\143\x68\x5f\x66\151\x6c\x74\145\x72", Mo_Ldap_Local_Util::encrypt($mt));
        delete_option("\x6d\157\x5f\154\x64\x61\x70\x5f\x6c\x6f\143\x61\x6c\x5f\x6d\145\x73\163\x61\147\145");
        $Ch = new Mo_Ldap_Local_Config();
        $iL = $Ch->save_ldap_user_mapping_config();
        $aG = "\x4c\104\x41\x50\40\125\x73\145\162\40\x4d\x61\x70\160\151\x6e\147\x20\x43\157\x6e\146\151\147\x75\162\141\x74\x69\x6f\x6e\x20\x68\141\x73\x20\x62\145\145\156\x20\163\141\166\145\144\x2e\40\x50\x6c\145\x61\x73\145\x20\164\x65\x73\x74\x20\141\x75\164\150\145\x6e\164\x69\x63\x61\x74\x69\157\x6e\40\x74\x6f\x20\x76\x65\162\x69\146\171\40\114\x44\x41\120\40\x55\163\x65\x72\x20\115\141\160\x70\x69\x6e\x67\40\x43\157\156\146\x69\147\165\162\141\164\x69\157\x6e\x2e";
        add_option("\155\157\137\x6c\x64\x61\160\x5f\x6c\157\143\141\154\x5f\x6d\x65\x73\x73\x61\x67\145", $aG, '', "\x6e\157");
        $this->show_success_message();
        goto ix;
        Y2:
        update_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\154\157\143\141\x6c\137\x6d\x65\163\x73\141\x67\145", "\120\x48\x50\40\117\160\145\x6e\x53\x53\x4c\40\x65\170\x74\x65\156\163\x69\157\156\x20\151\163\x20\x6e\x6f\x74\x20\151\156\163\x74\x61\x6c\154\x65\144\40\157\162\40\x64\x69\163\x61\x62\x6c\x65\x64\x2e\x20\x50\154\145\141\x73\145\40\145\x6e\x61\142\154\x65\40\x69\x74\x20\146\x69\x72\x73\164\56");
        $this->show_error_message();
        ix:
        U3:
        goto c8;
        QH:
        if (NddKoYsdasadJD()) {
            goto Pr;
        }
        update_option("\x6d\157\137\154\144\x61\x70\137\154\157\143\141\x6c\x5f\155\145\163\163\x61\x67\145", "\x53\145\x74\x74\151\156\147\x73\x20\x63\x61\x6e\47\x74\x20\x62\x65\40\x73\141\x76\x65\x64\40\x77\151\164\x68\x6f\165\x74\x20\166\x65\162\x69\146\x79\151\x6e\x67\40\x79\x6f\x75\162\40\x6c\x69\143\145\156\163\145\x20\153\145\171\x2e");
        $this->show_error_message();
        goto bo;
        Pr:
        $V0 = '';
        $WD = '';
        $e3 = '';
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\154\x64\141\x70\137\163\145\x72\x76\x65\162"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\144\156"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\141\x64\155\151\x6e\x5f\160\x61\x73\x73\x77\157\x72\144"])) {
            goto dA;
        }
        $V0 = sanitize_text_field($_POST["\x6c\144\141\160\137\x73\145\162\166\145\162"]);
        $WD = sanitize_text_field($_POST["\144\156"]);
        $e3 = sanitize_text_field($_POST["\141\x64\155\151\x6e\x5f\160\x61\x73\x73\167\157\162\x64"]);
        goto CL;
        dA:
        update_option("\155\x6f\x5f\x6c\x64\141\x70\x5f\154\x6f\143\141\x6c\137\155\x65\163\x73\x61\x67\145", "\101\154\x6c\40\x74\x68\145\x20\x66\151\x65\x6c\144\x73\40\141\x72\145\x20\162\145\x71\165\x69\x72\145\x64\56\x20\120\x6c\145\141\163\145\x20\x65\156\x74\145\x72\x20\x76\x61\x6c\x69\x64\x20\145\156\164\x72\x69\145\163\x2e");
        $this->show_error_message();
        return;
        CL:
        if (!Mo_Ldap_Local_Util::is_extension_installed("\157\x70\x65\156\x73\163\154")) {
            goto wf;
        }
        update_option("\155\x6f\137\x6c\x64\141\160\x5f\154\157\x63\x61\154\x5f\x73\x65\x72\166\145\x72\137\165\162\x6c", Mo_Ldap_Local_Util::encrypt($V0));
        update_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\157\x63\141\x6c\x5f\x73\x65\162\x76\x65\162\137\x64\x6e", Mo_Ldap_Local_Util::encrypt($WD));
        update_option("\x6d\x6f\137\x6c\x64\x61\x70\137\154\x6f\143\x61\x6c\137\163\145\162\166\x65\162\x5f\x70\141\163\x73\167\x6f\x72\144", Mo_Ldap_Local_Util::encrypt($e3));
        delete_option("\x6d\157\137\154\144\x61\x70\137\x6c\x6f\x63\141\x6c\x5f\155\145\163\163\141\x67\x65");
        $Ch = new Mo_Ldap_Local_Config();
        $iL = $Ch->save_ldap_config();
        $aG = "\131\x6f\x75\162\40\143\x6f\156\x66\151\x67\x75\162\x61\164\151\x6f\156\x20\150\x61\x73\40\142\145\145\156\40\x73\141\x76\x65\144\56";
        $kD = "\163\x75\x63\143\145\x73\163";
        $tJ = $Ch->test_connection();
        $ns = json_decode($tJ, true);
        if (strcasecmp($ns["\163\x74\x61\164\x75\163\x43\x6f\x64\x65"], "\x53\x55\103\103\105\123\123") == 0) {
            goto Tk;
        }
        if (strcasecmp($ns["\163\164\141\164\x75\163\103\x6f\x64\145"], "\105\122\122\x4f\x52") == 0) {
            goto i3;
        }
        if (strcasecmp($ns["\x73\x74\x61\164\165\163\103\157\x64\x65"], "\114\104\101\120\x5f\x45\122\x52\x4f\122") == 0) {
            goto uB;
        }
        if (strcasecmp($ns["\163\164\141\164\165\x73\x43\157\x64\145"], "\117\120\105\116\x53\x53\114\x5f\105\x52\122\117\122") == 0) {
            goto OC;
        }
        if (strcasecmp($ns["\x73\164\x61\x74\x75\163\x43\157\144\145"], "\x50\x49\116\107\137\x45\122\x52\117\122") == 0) {
            goto sU;
        }
        add_option("\155\157\x5f\154\x64\141\160\137\x6c\157\x63\141\154\137\155\x65\163\x73\141\147\145", $aG . "\x20\x54\150\x65\x72\145\40\167\141\x73\x20\141\x6e\40\145\162\162\x6f\x72\40\x69\156\x20\143\x6f\156\156\x65\143\x74\151\x6e\x67\x20\x77\151\164\x68\40\x74\150\145\40\x63\165\162\162\x65\x6e\x74\40\163\145\x74\x74\151\x6e\147\163\x2e\x20\115\x61\153\145\x20\x73\165\x72\x65\x20\171\157\165\40\x68\141\166\145\40\x65\x6e\x74\x65\162\145\144\x20\163\x65\162\166\145\x72\40\165\x72\154\x20\151\156\x20\146\157\x72\155\141\x74\x20\154\x64\x61\x70\72\57\57\x64\x6f\x6d\141\x69\156\x2e\143\157\155\72\x70\157\162\x74\56\40\124\145\163\x74\40\x75\x73\151\x6e\147\x20\120\x69\x6e\147\40\x4c\x44\x41\x50\40\x53\145\x72\x76\x65\162\56", '', "\x6e\x6f");
        $Bj = "\111\x6e\166\x61\x6c\151\x64\40\143\157\x6e\x66\x69\x67\165\x72\141\x74\x69\157\156\x2e";
        $this->show_error_message();
        goto w9;
        sU:
        add_option("\x6d\157\137\x6c\x64\141\160\137\154\x6f\143\x61\x6c\x5f\155\x65\x73\163\141\x67\x65", $ns["\163\164\141\x74\x75\x73\115\x65\163\163\x61\147\x65"], '', "\156\157");
        $Bj = "\120\x69\x6e\147\x20\163\x65\162\x76\145\162\40\x66\141\151\x6c\145\x64\x20" . $V0;
        $this->show_error_message();
        w9:
        goto pR;
        OC:
        add_option("\155\x6f\x5f\x6c\144\141\160\x5f\x6c\x6f\x63\x61\154\x5f\x6d\145\x73\163\x61\147\x65", $ns["\x73\164\141\x74\165\x73\x4d\145\163\163\x61\147\x65"], '', "\x6e\157");
        $Bj = "\117\x70\x65\156\x53\x53\x4c\40\x65\170\164\145\156\163\151\157\x6e\x20\156\x6f\164\40\x69\156\163\164\141\x6c\x6c\145\x64\x2e";
        $this->show_error_message();
        pR:
        goto QN;
        uB:
        add_option("\x6d\x6f\x5f\x6c\x64\141\x70\137\154\157\x63\141\154\137\x6d\145\x73\163\x61\147\145", $ns["\x73\164\141\x74\165\x73\115\145\x73\x73\141\x67\x65"], '', "\x6e\x6f");
        $Bj = "\114\x44\x41\x50\40\145\170\x74\145\x6e\163\151\x6f\156\40\156\157\164\40\151\156\163\x74\141\154\154\x65\x64\56";
        $this->show_error_message();
        QN:
        goto mY;
        i3:
        add_option("\155\157\137\154\x64\141\x70\x5f\x6c\157\x63\141\154\x5f\x6d\x65\x73\x73\141\x67\145", $ns["\x73\164\x61\x74\x75\163\x4d\145\x73\x73\x61\x67\x65"], '', "\156\157");
        $Bj = "\x49\156\166\141\154\151\144\40\163\x65\141\162\x63\x68\40\146\x69\x6c\x74\x65\162\x20\x6f\162\x20\163\x65\141\162\143\x68\40\x62\x61\x73\x65\x2e";
        $this->show_error_message();
        mY:
        goto wg;
        Tk:
        add_option("\155\x6f\137\x6c\144\141\x70\x5f\154\x6f\143\x61\x6c\137\155\145\163\x73\141\147\x65", $aG . "\40\x43\x6f\x6e\156\x65\x63\164\151\157\x6e\40\x77\x61\x73\40\x65\x73\x74\x61\142\154\151\x73\x68\x65\144\40\x73\165\143\x63\145\x73\163\x66\x75\154\x6c\x79\x2e\x20\x50\154\x65\x61\x73\x65\40\x63\157\x6e\x66\151\x67\x75\x72\145\40\x4c\104\x41\120\40\x55\x73\145\162\x20\115\141\160\160\x69\x6e\147\40\x6e\x6f\x77\56", '', "\156\157");
        $Bj = "\x54\x65\163\164\x20\x77\141\163\x20\163\x75\x63\x63\x65\x73\163\146\165\x6c\x2e";
        $this->show_success_message();
        wg:
        goto tT;
        wf:
        update_option("\x6d\157\137\154\x64\141\x70\x5f\154\x6f\x63\141\x6c\x5f\x6d\x65\163\x73\141\147\145", "\x50\110\120\x20\117\160\145\156\123\123\x4c\x20\145\170\164\145\156\163\x69\x6f\156\x20\151\x73\x20\x6e\157\x74\x20\151\156\163\164\141\154\154\x65\x64\x20\157\162\40\x64\x69\x73\x61\x62\154\145\x64\x2e\x20\120\154\x65\141\x73\145\40\x65\x6e\141\142\x6c\145\40\151\164\x20\x66\x69\x72\163\x74\x2e");
        $this->show_error_message();
        tT:
        bo:
        c8:
        goto xA;
        oL:
        if (NddKoYsdasadJD()) {
            goto JF;
        }
        update_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\157\143\x61\x6c\x5f\155\x65\163\x73\x61\147\145", "\123\x65\164\x74\151\156\x67\x73\40\x63\141\156\47\x74\x20\x62\x65\40\x73\141\x76\x65\x64\40\167\151\164\150\157\165\164\40\x76\x65\162\x69\x66\171\151\156\147\40\171\x6f\165\162\x20\154\x69\x63\145\x6e\163\145\40\153\x65\171\56");
        $this->show_error_message();
        goto uL;
        JF:
        update_option("\x6d\x6f\x5f\x6c\x64\141\x70\x5f\154\157\143\141\154\137\162\145\147\151\163\164\145\x72\137\x75\x73\145\x72", isset($_POST["\155\x6f\x5f\x6c\x64\x61\160\137\154\157\143\x61\x6c\x5f\162\x65\147\x69\x73\164\145\x72\137\x75\x73\x65\162"]) ? $_POST["\x6d\157\x5f\x6c\144\141\x70\x5f\x6c\x6f\x63\141\x6c\x5f\x72\x65\147\x69\x73\x74\x65\x72\137\x75\163\145\162"] : 0);
        if (get_option("\155\x6f\x5f\154\144\x61\160\x5f\154\x6f\x63\x61\154\x5f\162\145\x67\151\163\x74\145\162\x5f\165\163\145\x72")) {
            goto re;
        }
        update_option("\155\x6f\137\x6c\144\x61\x70\x5f\x6c\x6f\x63\141\154\137\155\145\x73\x73\141\x67\145", "\x41\165\x74\157\40\122\x65\147\151\163\x74\145\162\x69\156\147\x20\x75\163\145\162\163\x20\x68\141\x73\x20\x62\x65\x65\156\x20\144\x69\163\141\142\x6c\x65\x64\x2e");
        $this->show_success_message();
        goto gz;
        re:
        update_option("\155\157\137\x6c\144\141\x70\x5f\x6c\157\143\x61\x6c\x5f\155\x65\163\x73\x61\147\x65", "\101\165\x74\157\x20\122\145\147\x69\163\164\x65\162\x69\x6e\x67\40\165\x73\145\x72\x73\40\150\141\163\x20\142\145\x65\156\40\145\156\x61\x62\154\145\x64\56");
        $this->show_success_message();
        gz:
        uL:
        xA:
        goto xf;
        yo:
        update_option("\155\x6f\x5f\x6c\x64\141\x70\137\154\x6f\x63\141\154\137\165\163\x65\137\x74\x6c\x73", isset($_POST["\x6d\x6f\137\154\144\x61\160\137\154\x6f\x63\141\154\137\164\x6c\x73\137\145\156\x61\142\x6c\x65"]) ? $_POST["\x6d\157\137\x6c\144\x61\x70\x5f\154\157\x63\x61\x6c\137\x74\154\x73\137\145\x6e\141\142\154\145"] : 0);
        if (get_option("\x6d\157\x5f\154\144\141\160\137\154\157\143\x61\154\137\165\x73\x65\137\x74\x6c\163")) {
            goto IU;
        }
        update_option("\x6d\x6f\137\x6c\x64\x61\x70\137\154\157\x63\141\x6c\137\x6d\x65\163\163\x61\x67\145", "\x4c\x6f\147\x69\x6e\x20\x74\x68\x72\157\165\147\x68\40\171\157\x75\x72\40\x4c\104\x41\120\x20\x68\141\x73\x20\x62\x65\x65\x6e\40\x64\151\163\x61\x62\x6c\145\x64\x2e");
        $this->show_error_message();
        goto Xb;
        IU:
        update_option("\155\157\137\154\144\141\x70\137\x6c\157\x63\x61\x6c\x5f\155\145\163\163\x61\x67\x65", "\x4c\157\147\151\156\40\164\x68\162\157\165\147\x68\40\x79\157\165\x72\x20\x4c\x44\x41\x50\40\150\x61\163\40\142\x65\145\156\40\x65\156\141\x62\154\x65\144\x2e");
        $this->show_success_message();
        Xb:
        xf:
        goto m7;
        c9:
        if (NddKoYsdasadJD()) {
            goto pi;
        }
        update_option("\155\157\137\x6c\144\141\x70\137\x6c\x6f\x63\141\154\137\x6d\x65\163\x73\x61\147\145", "\x53\x65\164\x74\x69\x6e\147\x73\40\143\x61\x6e\47\x74\40\x62\x65\x20\x73\141\x76\x65\x64\40\167\151\x74\150\x6f\x75\x74\x20\x76\145\x72\151\146\x79\x69\156\147\x20\171\157\x75\x72\40\154\x69\x63\145\156\163\x65\40\x6b\145\171\x2e");
        $this->show_error_message();
        goto qc;
        pi:
        update_option("\155\x6f\137\x6c\x64\141\x70\137\x6c\x6f\143\x61\154\137\145\156\x61\142\154\145\137\154\x6f\147\151\156", isset($_POST["\x65\x6e\x61\x62\154\x65\x5f\154\x64\141\x70\137\x6c\x6f\x67\151\156"]) ? $_POST["\145\156\141\x62\154\x65\x5f\154\x64\141\160\137\x6c\157\x67\151\x6e"] : 0);
        if (get_option("\155\157\137\x6c\x64\141\160\x5f\x6c\157\x63\141\154\x5f\145\x6e\141\142\x6c\145\137\x6c\157\147\x69\x6e")) {
            goto Fe;
        }
        update_option("\155\157\x5f\154\x64\141\160\x5f\x6c\157\x63\141\154\x5f\155\145\163\x73\x61\x67\145", "\x4c\x6f\147\151\156\40\164\150\x72\x6f\165\x67\x68\x20\171\x6f\165\162\40\114\x44\101\x50\x20\150\x61\163\x20\142\145\145\156\x20\x64\151\x73\x61\142\x6c\145\144\x2e");
        $this->show_success_message();
        goto Ah;
        Fe:
        update_option("\x6d\x6f\137\x6c\144\x61\160\x5f\154\x6f\x63\x61\154\137\x6d\145\163\163\141\147\x65", "\x4c\157\147\151\x6e\x20\164\150\162\x6f\x75\147\150\x20\171\x6f\165\162\40\114\x44\101\x50\40\x68\141\163\40\142\x65\145\x6e\40\145\156\x61\x62\x6c\x65\144\x2e");
        $this->show_success_message();
        Ah:
        qc:
        m7:
        goto dw;
        s2:
        $RA = '';
        $bP = '';
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\145\x6d\x61\x69\154"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\160\x61\163\163\x77\157\162\144"])) {
            goto Av;
        }
        $RA = sanitize_email($_POST["\145\155\x61\x69\x6c"]);
        $bP = sanitize_text_field($_POST["\160\x61\163\x73\167\x6f\162\x64"]);
        goto W5;
        Av:
        update_option("\x6d\157\137\x6c\144\x61\160\x5f\x6c\x6f\x63\141\x6c\x5f\155\x65\163\163\141\147\x65", "\x41\x6c\x6c\x20\x74\150\145\40\146\x69\145\154\144\x73\40\141\162\145\x20\x72\x65\x71\x75\151\x72\145\144\56\x20\x50\x6c\145\x61\163\145\40\145\x6e\x74\145\162\40\x76\141\154\151\x64\40\x65\156\164\162\x69\145\163\x2e");
        $this->show_error_message();
        return;
        W5:
        update_option("\155\x6f\x5f\x6c\x64\141\160\137\154\x6f\143\x61\x6c\137\141\144\x6d\x69\156\137\145\x6d\141\151\154", $RA);
        update_option("\155\157\x5f\x6c\x64\141\x70\x5f\154\157\143\141\x6c\x5f\x70\141\163\163\x77\157\162\x64", $bP);
        $s5 = new Mo_Ldap_Local_Customer();
        $tJ = $s5->get_customer_key();
        $Nc = json_decode($tJ, true);
        delete_option("\155\157\x5f\154\144\x61\x70\x5f\x6c\x6f\x63\141\154\137\x76\145\x72\x69\146\x79\137\x63\x75\163\x74\x6f\x6d\x65\162");
        if (get_option("\155\x6f\x5f\154\x64\141\x70\137\x6c\157\x63\x61\x6c\137\x6c\151\x63\x65\156\163\x65\x5f\153\x65\171")) {
            goto H9;
        }
        $this->show_success_message();
        goto HY;
        H9:
        $ls = Mo_Ldap_Local_Util::decrypt(get_option("\155\x6f\137\154\144\x61\160\x5f\x6c\x6f\143\x61\154\x5f\154\x69\143\x65\x6e\x73\x65\x5f\153\145\x79"));
        $tJ = json_decode($s5->XfskodsfhHJ($ls), true);
        if (strcasecmp($tJ["\163\164\141\164\165\163"], "\x53\125\x43\x43\x45\x53\123") == 0) {
            goto wO;
        }
        update_option("\155\x6f\x5f\x6c\144\141\160\x5f\154\157\x63\x61\154\x5f\155\145\x73\x73\x61\147\x65", "\114\151\143\x65\156\x73\145\40\153\145\x79\40\x66\x6f\x72\40\164\x68\151\163\x20\x69\156\x73\164\x61\156\143\x65\x20\151\163\x20\151\x6e\143\157\x72\x72\x65\143\x74\56\40\115\141\x6b\145\40\x73\x75\162\145\x20\x79\157\165\40\x68\141\x76\x65\40\156\x6f\x74\x20\x74\141\155\x70\x65\162\x65\x64\40\x77\151\164\x68\x20\x69\x74\x20\141\x74\40\x61\154\x6c\x2e\x20\x50\x6c\145\x61\163\145\x20\x65\156\x74\x65\x72\40\x61\40\x76\x61\154\151\x64\x20\154\151\x63\145\x6e\x73\x65\x20\153\x65\x79\56");
        delete_option("\155\157\137\154\x64\x61\x70\137\x6c\x6f\x63\141\154\x5f\154\151\143\x65\x6e\x73\145\137\x6b\145\x79");
        $this->show_error_message();
        goto gn;
        wO:
        $this->show_success_message();
        gn:
        HY:
        if (strcasecmp($Nc["\x61\x70\x69\113\145\x79"], "\x43\x55\x52\114\x5f\x45\122\x52\117\122") == 0) {
            goto rw;
        }
        if (json_last_error() == JSON_ERROR_NONE) {
            goto CD;
        }
        update_option("\155\157\137\x6c\144\141\x70\137\154\x6f\143\141\x6c\x5f\x6d\x65\x73\163\141\x67\145", "\x49\x6e\166\141\x6c\x69\x64\x20\165\x73\x65\162\x6e\x61\x6d\x65\40\x6f\x72\40\160\141\x73\163\x77\157\x72\144\x2e\40\120\154\x65\141\x73\x65\40\164\x72\171\40\x61\147\141\x69\x6e\56");
        $this->show_error_message();
        goto SW;
        CD:
        update_option("\155\157\137\x6c\x64\x61\160\137\x6c\157\143\141\154\137\x61\144\x6d\x69\x6e\137\x70\150\x6f\156\145", $Nc["\160\x68\x6f\x6e\x65"]);
        $this->save_success_customer_config($Nc["\151\144"], $Nc["\141\160\151\113\x65\x79"], $Nc["\164\x6f\153\x65\156"], "\x59\157\165\x72\x20\141\x63\x63\157\x75\x6e\164\40\150\x61\x73\x20\x62\145\145\x6e\x20\x72\x65\164\x72\x69\145\166\x65\x64\40\163\165\x63\143\145\163\x73\x66\x75\x6c\x6c\x79\56");
        update_option("\x6d\x6f\137\x6c\x64\x61\x70\x5f\x6c\x6f\x63\x61\154\137\160\x61\163\x73\167\x6f\162\x64", '');
        SW:
        goto s6;
        rw:
        update_option("\155\157\x5f\x6c\144\141\160\137\154\x6f\143\x61\x6c\137\155\145\x73\x73\141\x67\145", $Nc["\x74\157\153\145\x6e"]);
        $this->show_error_message();
        s6:
        update_option("\x6d\157\x5f\x6c\144\141\x70\137\x6c\157\143\x61\154\137\160\x61\x73\163\x77\x6f\x72\x64", '');
        dw:
        goto O0;
        to:
        $RA = '';
        $vh = '';
        $bP = '';
        $JR = '';
        if (Mo_Ldap_Local_Util::check_empty_or_null($_POST["\x65\155\141\x69\x6c"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\160\141\163\163\x77\x6f\x72\144"]) || Mo_Ldap_Local_Util::check_empty_or_null($_POST["\143\157\156\146\x69\162\155\120\x61\163\x73\167\157\162\x64"])) {
            goto TW;
        }
        if (strlen($_POST["\160\141\x73\x73\x77\157\162\144"]) < 6 || strlen($_POST["\x63\x6f\x6e\146\151\x72\x6d\120\141\163\x73\167\157\x72\x64"]) < 6) {
            goto e8;
        }
        $RA = sanitize_email($_POST["\145\x6d\141\x69\x6c"]);
        $vh = sanitize_text_field($_POST["\x70\150\157\x6e\x65"]);
        $bP = sanitize_text_field($_POST["\x70\x61\163\x73\167\157\x72\x64"]);
        $JR = sanitize_text_field($_POST["\143\157\x6e\146\x69\x72\155\x50\x61\x73\163\x77\157\162\x64"]);
        goto GT;
        e8:
        update_option("\155\x6f\137\154\144\141\160\137\x6c\x6f\x63\x61\154\x5f\x6d\x65\163\x73\x61\147\x65", "\103\150\x6f\x6f\163\145\x20\x61\40\160\141\x73\163\x77\x6f\162\144\x20\x77\151\164\150\40\x6d\151\156\151\155\165\155\x20\x6c\145\x6e\x67\164\150\40\x36\56");
        $this->show_error_message();
        return;
        GT:
        goto L2;
        TW:
        update_option("\155\x6f\137\154\x64\141\x70\x5f\x6c\x6f\x63\141\154\137\x6d\x65\163\x73\x61\147\145", "\101\x6c\x6c\x20\164\150\145\x20\146\151\x65\x6c\144\163\x20\141\162\145\x20\162\145\x71\x75\151\x72\x65\x64\x2e\40\x50\154\145\x61\163\x65\x20\145\156\x74\x65\x72\40\166\141\154\151\x64\x20\145\156\x74\162\x69\x65\x73\x2e");
        $this->show_error_message();
        return;
        L2:
        update_option("\155\x6f\x5f\x6c\144\x61\160\x5f\154\x6f\143\141\154\137\x61\144\155\151\x6e\137\x65\155\x61\151\x6c", $RA);
        if (!($vh != '')) {
            goto Bl;
        }
        update_option("\x6d\157\137\x6c\144\x61\160\137\154\157\x63\x61\x6c\x5f\141\x64\x6d\x69\x6e\137\160\x68\157\x6e\x65", $vh);
        Bl:
        if (strcmp($bP, $JR) == 0) {
            goto nq;
        }
        update_option("\x6d\157\137\154\x64\141\x70\x5f\154\x6f\143\x61\x6c\x5f\x6d\x65\x73\163\x61\147\x65", "\120\141\163\163\167\157\162\x64\x20\141\x6e\144\x20\x43\x6f\156\146\x69\162\155\x20\160\141\163\x73\x77\157\162\144\40\x64\157\x20\156\157\x74\40\155\x61\x74\143\150\56");
        delete_option("\x6d\157\x5f\x6c\144\141\x70\137\x6c\157\143\141\154\137\x76\145\x72\x69\x66\x79\x5f\143\165\163\164\157\155\145\162");
        $this->show_error_message();
        goto ij;
        nq:
        update_option("\155\x6f\x5f\154\144\x61\x70\x5f\154\157\143\x61\154\x5f\160\x61\x73\163\167\157\162\144", $bP);
        $s5 = new Mo_Ldap_Local_Customer();
        $tJ = json_decode($s5->check_customer(), true);
        if (strcasecmp($tJ["\x73\x74\141\x74\165\163"], "\x43\x55\123\124\x4f\x4d\105\x52\137\x4e\117\124\137\x46\117\x55\x4e\104") == 0) {
            goto mv;
        }
        if (strcasecmp($tJ["\x73\164\x61\x74\165\163"], "\x43\x55\x52\114\137\x45\122\x52\x4f\122") == 0) {
            goto rD;
        }
        $tJ = $s5->get_customer_key();
        $Nc = json_decode($tJ, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto cx;
        }
        update_option("\155\157\x5f\x6c\144\141\160\x5f\x6c\x6f\143\x61\x6c\137\x6d\x65\x73\x73\141\x67\x65", "\131\157\165\40\141\154\162\x65\x61\x64\x79\x20\x68\x61\166\x65\40\141\x6e\40\141\143\143\157\x75\156\x74\x20\167\x69\x74\x68\40\155\x69\156\151\x4f\x72\141\x6e\x67\145\56\x20\120\x6c\145\141\x73\x65\40\145\156\164\x65\162\x20\x61\40\166\141\x6c\151\x64\x20\x70\141\x73\x73\167\x6f\x72\144\56");
        update_option("\x6d\x6f\x5f\154\x64\141\x70\137\x6c\157\x63\141\x6c\137\x76\145\162\x69\x66\171\137\143\x75\163\x74\157\x6d\145\x72", "\164\x72\165\x65");
        delete_option("\155\x6f\137\154\144\141\160\137\x6c\157\143\x61\154\137\156\145\167\x5f\162\145\147\151\x73\164\x72\141\x74\x69\x6f\x6e");
        $this->show_error_message();
        goto dx;
        cx:
        $this->save_success_customer_config($Nc["\151\144"], $Nc["\141\160\151\113\145\x79"], $Nc["\164\157\x6b\145\x6e"], "\x59\x6f\x75\162\x20\141\143\143\157\165\156\164\x20\x68\141\x73\40\142\145\x65\156\40\162\145\164\162\x69\145\x76\145\x64\40\x73\165\x63\143\x65\163\x73\146\x75\x6c\x6c\171\56");
        update_option("\155\157\x5f\x6c\x64\x61\x70\137\154\157\143\141\154\x5f\x70\141\x73\163\x77\157\162\x64", '');
        dx:
        goto VK;
        rD:
        update_option("\x6d\157\137\x6c\x64\141\x70\137\154\x6f\143\x61\154\x5f\x6d\x65\x73\x73\141\147\145", $tJ["\x73\164\x61\x74\x75\x73\115\145\163\163\x61\147\x65"]);
        update_option("\x6d\157\137\154\144\x61\160\x5f\x6c\157\143\x61\154\x5f\162\x65\147\151\x73\x74\162\x61\x74\x69\x6f\156\137\x73\x74\141\x74\165\x73", "\x4d\x4f\x5f\x4f\124\120\x5f\104\x45\114\x49\x56\x45\122\x45\x44\137\106\x41\111\x4c\x55\122\105");
        $this->show_error_message();
        VK:
        goto ol;
        mv:
        $MF = "\105\x4d\101\111\114";
        $tJ = json_decode($s5->send_otp_token($MF, null), true);
        if (strcasecmp($tJ["\x73\164\x61\164\165\x73"], "\x53\125\x43\x43\105\x53\x53") == 0) {
            goto bi;
        }
        update_option("\155\157\x5f\x6c\x64\x61\160\137\154\x6f\143\141\x6c\137\x6d\x65\163\163\x61\147\x65", "\x54\x68\145\162\145\40\167\x61\163\40\x61\156\40\145\162\x72\157\x72\40\151\x6e\x20\163\145\156\144\151\x6e\147\40\145\x6d\x61\151\x6c\x2e\x20\120\154\x65\x61\163\145\x20\x63\154\x69\143\x6b\x20\x6f\156\x20\x52\145\x73\145\156\x64\40\117\x54\120\x20\164\x6f\x20\164\x72\x79\x20\141\x67\141\151\156\56");
        update_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\154\157\x63\141\x6c\137\x72\x65\147\151\163\164\x72\x61\164\x69\x6f\x6e\x5f\x73\x74\x61\x74\165\x73", "\115\117\x5f\x4f\x54\120\x5f\x44\105\114\x49\126\105\x52\105\104\137\x46\x41\111\x4c\125\122\x45");
        $this->show_error_message();
        goto v5;
        bi:
        update_option("\155\157\x5f\x6c\144\x61\160\137\x6c\x6f\143\141\x6c\137\145\x6d\x61\x69\154\137\x63\157\165\156\164", 1);
        update_option("\155\x6f\137\x6c\x64\141\x70\x5f\x6c\x6f\x63\x61\x6c\x5f\x6d\x65\x73\x73\141\x67\145", "\x41\40\x4f\x6e\x65\x20\124\x69\155\145\40\120\x61\x73\163\143\157\x64\x65\40\150\x61\x73\x20\142\145\x65\x6e\x20\163\x65\x6e\x74\40\74\142\x3e\50\40\61\x20\x29\x3c\x2f\142\x3e\40\164\x6f\x20\74\142\76" . get_option("\155\157\137\154\x64\141\x70\137\x6c\x6f\143\x61\x6c\137\141\144\x6d\x69\156\x5f\x65\155\141\151\x6c") . "\74\57\142\x3e\56\x20\120\154\145\141\163\145\40\x65\x6e\x74\145\162\x20\164\x68\145\40\117\124\x50\40\142\145\154\157\167\40\x74\157\40\x76\x65\162\x69\x66\x79\40\171\x6f\x75\x72\x20\145\155\141\x69\154\x2e\x20");
        update_option("\155\x6f\137\x6c\x64\x61\160\137\x6c\157\x63\141\154\x5f\x74\x72\x61\156\x73\141\143\x74\x69\x6f\x6e\111\144", $tJ["\164\170\x49\x64"]);
        update_option("\x6d\157\x5f\154\144\141\x70\137\x6c\157\x63\x61\154\137\x72\145\x67\151\163\164\x72\x61\x74\151\157\156\137\x73\164\141\164\165\x73", "\115\117\x5f\117\124\x50\137\104\105\x4c\111\x56\105\122\x45\x44\x5f\123\x55\x43\x43\105\123\x53");
        $this->show_success_message();
        v5:
        ol:
        ij:
        O0:
        if (isset($_POST["\157\x70\164\x69\x6f\156"]) && $_POST["\157\x70\164\x69\157\x6e"] == "\x6d\157\x5f\154\x64\141\x70\137\154\157\143\141\x6c\x5f\166\x65\162\x69\146\x79\x5f\154\x69\x63\x65\x6e\163\145") {
            goto PG;
        }
        if (isset($_POST["\157\x70\164\x69\x6f\156"]) && $_POST["\x6f\160\x74\151\157\x6e"] == "\155\x6f\x5f\x6c\x64\x61\x70\x5f\x6c\157\143\141\x6c\x5f\146\x72\145\x65\137\164\162\x69\141\x6c") {
            goto lF;
        }
        if (!(isset($_POST["\157\160\x74\151\x6f\156"]) && $_POST["\157\x70\164\151\157\x6e"] == "\155\x6f\137\154\144\141\x70\x5f\x6c\157\143\x61\x6c\137\143\x68\x65\x63\153\x5f\x6c\x69\143\145\x6e\163\x65")) {
            goto aK;
        }
        $s5 = new Mo_Ldap_Local_Customer();
        $tJ = json_decode($s5->check_customer_ln(), true);
        if (strcasecmp($tJ["\x73\x74\x61\164\165\x73"], "\x53\x55\103\x43\105\123\x53") == 0) {
            goto Pz;
        }
        $ei = add_query_arg(array("\x74\141\x62" => "\x70\x72\x69\143\x69\x6e\147"), $_SERVER["\122\x45\121\x55\x45\x53\124\137\125\122\x49"]);
        update_option("\x6d\157\x5f\154\x64\x61\160\137\x6c\x6f\143\x61\154\137\155\145\163\x73\x61\x67\145", "\x59\x6f\x75\x20\x68\141\x76\145\x20\156\157\x74\x20\165\160\x67\162\x61\x64\145\x64\x20\x79\x65\164\x2e\x20\x3c\x61\x20\x68\x72\145\146\75\x22" . $ei . "\42\76\x43\154\151\x63\153\40\150\145\162\145\x3c\57\x61\x3e\x20\x74\x6f\40\x75\x70\147\162\x61\x64\x65\40\164\x6f\x20\160\162\145\155\x69\165\155\x20\166\x65\162\163\151\157\156\x2e");
        $this->show_error_message();
        goto Rn;
        Pz:
        if (array_key_exists("\154\x69\143\x65\156\x73\x65\x50\154\x61\156", $tJ) && !Mo_Ldap_Local_Util::check_empty_or_null($tJ["\154\x69\143\x65\x6e\163\x65\x50\154\141\156"])) {
            goto T1;
        }
        update_option("\x73\151\x74\145\137\143\153\x5f\x6c", Mo_Ldap_Local_Util::encrypt("\x66\141\154\x73\x65"));
        $ei = add_query_arg(array("\164\141\142" => "\x70\x72\151\143\151\156\147"), $_SERVER["\x52\105\x51\125\105\123\x54\137\125\x52\x49"]);
        update_option("\155\x6f\137\x6c\144\x61\x70\x5f\154\x6f\x63\x61\x6c\x5f\155\x65\163\x73\141\147\x65", "\131\x6f\x75\40\x68\141\x76\x65\x20\156\157\x74\40\x75\x70\147\162\x61\x64\x65\x64\40\171\x65\164\x2e\x20\x3c\141\40\x68\x72\x65\x66\x3d\x22" . $ei . "\x22\x3e\x43\154\x69\x63\153\40\150\145\162\145\74\x2f\x61\x3e\40\x74\x6f\x20\165\160\x67\x72\x61\144\x65\40\x74\157\40\x70\162\x65\x6d\151\165\155\x20\x76\145\x72\163\x69\x6f\156\56");
        $this->show_error_message();
        goto ly;
        T1:
        update_option("\x6d\157\x5f\154\144\141\x70\137\154\157\143\141\x6c\137\154\x69\143\x65\x6e\163\x65\x5f\x6e\141\155\145", base64_encode($tJ["\154\151\x63\145\x6e\x73\x65\120\154\x61\156"]));
        update_option("\x73\x69\164\x65\x5f\143\153\x5f\154", Mo_Ldap_Local_Util::encrypt("\x74\x72\165\145"));
        $ei = add_query_arg(array("\x74\x61\142" => "\141\143\143\x6f\x75\x6e\164"), $_SERVER["\x52\105\121\125\105\x53\x54\x5f\125\122\111"]);
        update_option("\155\x6f\x5f\x6c\144\141\160\x5f\x6c\x6f\x63\141\154\137\x6d\145\x73\x73\x61\147\x65", "\x59\157\x75\x20\150\x61\166\x65\40\163\165\143\x63\x65\163\x73\x66\165\x6c\x6c\171\x20\165\160\147\x72\x61\x64\145\x64\x20\x74\157\40\x70\x72\x65\155\151\165\155\x20\166\145\162\163\151\x6f\156\x2e\x20\74\x61\40\x68\162\x65\x66\75\42" . $ei . "\42\x3e\x43\154\151\x63\x6b\40\x68\145\x72\145\x3c\x2f\141\76\x20\164\157\40\141\143\x74\x69\166\x61\x74\x65\x20\x79\x6f\165\162\x20\x6c\x69\x63\x65\156\163\145\56");
        $this->show_success_message();
        ly:
        Rn:
        aK:
        goto S_;
        lF:
        if (decryptLDAPElement()) {
            goto qG;
        }
        $ls = post_response();
        $s5 = new Mo_Ldap_Local_Customer();
        $tJ = json_decode($s5->XfskodsfhHJ($ls), true);
        if (strcasecmp($tJ["\163\164\x61\164\165\163"], "\x53\125\103\103\105\123\123") == 0) {
            goto on;
        }
        if (strcasecmp($tJ["\x73\x74\x61\x74\x75\163"], "\106\x41\x49\114\x45\104") == 0) {
            goto ZK;
        }
        update_option("\155\157\x5f\154\x64\141\160\x5f\x6c\157\x63\x61\x6c\x5f\155\145\163\163\x61\x67\145", "\x41\x6e\40\x65\162\x72\x6f\162\40\157\x63\x63\165\x72\145\144\40\x77\150\x69\x6c\x65\x20\x70\x72\157\143\145\163\x73\x69\x6e\x67\x20\x79\x6f\165\x72\40\x72\x65\x71\x75\x65\x73\x74\56\x20\120\154\145\x61\163\145\x20\x54\x72\x79\40\141\x67\x61\x69\x6e\x2e");
        $this->show_error_message();
        goto HM;
        ZK:
        update_option("\x6d\x6f\x5f\154\x64\141\160\x5f\x6c\157\143\x61\154\x5f\155\145\163\x73\x61\147\x65", "\124\150\x65\x72\x65\x20\167\x61\x73\40\x61\x6e\x20\x65\162\x72\157\x72\x20\141\x63\164\151\x76\x61\164\151\156\x67\40\x79\x6f\x75\x72\x20\x54\x52\x49\x41\114\x20\166\x65\162\x73\151\157\156\56\x20\120\x6c\x65\x61\x73\x65\x20\x63\x6f\x6e\164\x61\x63\x74\x20\x69\156\x66\157\x40\155\x69\x6e\x69\157\x72\141\156\147\145\56\x63\157\x6d\x20\146\x6f\x72\x20\x67\145\x74\164\x69\x6e\x67\x20\x6e\145\x77\x20\x6c\x69\x63\x65\x6e\x73\x65\40\146\x6f\x72\x20\164\x72\151\141\x6c\40\166\145\x72\x73\151\157\156\56");
        $this->show_error_message();
        HM:
        goto Ub;
        on:
        update_option("\x6d\157\x5f\154\x64\141\x70\x5f\154\x6f\x63\x61\154\x5f\x69\x73\x5f\x74\x72\x69\x61\154\x5f\x6b\145\x79", Mo_Ldap_Local_Util::encrypt($ls));
        update_option("\164\x5f\x73\x69\x74\x65\137\x73\x74\141\164\165\163", Mo_Ldap_Local_Util::encrypt("\164\162\165\x65"));
        update_option("\155\x6f\137\154\144\x61\x70\x5f\x6c\x6f\x63\141\154\x5f\x6d\145\163\x73\141\x67\x65", "\131\157\165\x72\40\x35\x20\144\x61\171\x73\x20\x54\122\111\x41\114\x20\151\x73\x20\x61\143\x74\151\166\x61\164\x65\144\56\x20\131\x6f\x75\40\143\x61\x6e\x20\156\157\167\40\163\x65\164\x75\x70\40\164\150\145\40\x70\x6c\x75\147\151\156\x2e");
        $this->show_success_message();
        Ub:
        goto L4;
        qG:
        update_option("\x6d\x6f\137\x6c\144\141\160\137\154\x6f\143\141\x6c\x5f\155\145\163\163\141\147\x65", "\x54\x68\x65\162\145\40\167\x61\163\x20\141\x6e\x20\x65\162\162\x6f\x72\40\x61\x63\164\x69\x76\141\x74\x69\x6e\x67\40\171\157\165\162\40\x54\x52\111\101\x4c\x20\x76\145\162\163\151\x6f\x6e\x2e\40\x45\151\x74\x68\x65\162\x20\171\x6f\165\162\x20\164\162\x69\x61\x6c\x20\x70\145\162\x69\157\x64\40\x69\x73\x20\145\x78\160\151\x72\x65\x64\40\x6f\x72\40\x79\157\165\x20\141\x72\x65\x20\165\x73\x69\x6e\x67\x20\167\162\x6f\x6e\147\x20\164\162\151\141\154\x20\166\x65\162\x73\151\157\x6e\56\40\120\x6c\x65\x61\x73\x65\x20\143\x6f\156\x74\141\x63\x74\40\151\156\x66\157\100\x6d\151\x6e\x69\x6f\x72\x61\156\147\x65\x2e\x63\x6f\155\x20\x66\157\162\x20\147\145\164\164\x69\156\147\x20\156\145\x77\40\x6c\x69\143\x65\x6e\x73\145\x20\x66\x6f\x72\40\164\x72\x69\141\x6c\x20\166\x65\162\x73\151\x6f\x6e\56");
        $this->show_error_message();
        L4:
        S_:
        goto Wr;
        PG:
        if (!Mo_Ldap_Local_Util::check_empty_or_null($_POST["\155\157\137\x6c\x64\141\x70\x5f\154\x6f\x63\x61\x6c\137\x6c\151\x63\x65\156\x73\145\x5f\x6b\x65\171"])) {
            goto Ab;
        }
        update_option("\155\x6f\137\154\x64\141\x70\x5f\154\157\x63\x61\x6c\x5f\x6d\145\x73\x73\x61\147\x65", "\101\x6c\x6c\x20\164\x68\x65\40\146\x69\145\x6c\x64\163\40\141\162\145\40\x72\x65\161\x75\151\x72\145\x64\56\x20\x50\x6c\145\141\163\145\x20\145\x6e\164\145\162\x20\x76\141\154\x69\144\40\x6c\x69\x63\x65\156\163\x65\40\x6b\145\171\x2e");
        $this->show_error_message();
        return;
        Ab:
        $ls = trim($_POST["\x6d\157\x5f\x6c\x64\x61\x70\x5f\x6c\x6f\143\141\154\137\x6c\x69\x63\x65\x6e\x73\x65\137\153\145\171"]);
        $s5 = new Mo_Ldap_Local_Customer();
        $tJ = json_decode($s5->XfskodsfhHJ($ls), true);
        if (strcasecmp($tJ["\x73\x74\141\x74\x75\163"], "\x53\x55\x43\103\x45\x53\x53") == 0) {
            goto ar;
        }
        if (strcasecmp($tJ["\163\164\141\x74\165\x73"], "\106\x41\111\x4c\105\x44") == 0) {
            goto Ro;
        }
        update_option("\155\157\x5f\154\x64\x61\160\137\154\157\x63\141\x6c\x5f\155\145\x73\163\x61\x67\x65", "\x41\x6e\40\145\x72\162\157\162\x20\157\x63\143\165\x72\145\144\x20\x77\150\151\154\x65\40\160\162\157\143\x65\163\x73\x69\x6e\x67\40\171\157\165\x72\40\x72\x65\161\165\x65\163\x74\56\x20\x50\154\x65\x61\x73\145\40\124\x72\x79\40\x61\x67\x61\x69\156\56");
        $this->show_error_message();
        goto zc;
        Ro:
        if (strcasecmp($tJ["\x6d\145\163\163\141\147\x65"], "\103\157\x64\145\40\x68\141\163\x20\105\170\x70\151\x72\145\x64") == 0) {
            goto ih;
        }
        update_option("\155\x6f\137\154\144\141\160\x5f\x6c\157\143\141\154\137\155\x65\163\163\x61\x67\x65", "\x59\x6f\165\x20\x68\x61\166\x65\40\145\156\164\x65\x72\x65\x64\x20\x61\156\x20\x69\x6e\166\141\x6c\151\144\40\x6c\x69\x63\145\x6e\x73\x65\40\x6b\145\x79\x2e\40\120\x6c\x65\141\x73\x65\40\145\156\x74\x65\x72\40\x61\40\166\141\154\x69\x64\40\154\x69\x63\145\156\x73\145\40\x6b\145\x79\x2e");
        goto la;
        ih:
        $ei = add_query_arg(array("\164\x61\x62" => "\x70\x72\x69\143\151\156\x67"), $_SERVER["\122\105\121\125\x45\123\124\x5f\x55\122\x49"]);
        update_option("\155\157\137\x6c\144\x61\160\x5f\x6c\x6f\x63\x61\154\x5f\155\x65\163\x73\x61\x67\145", "\x4c\151\143\x65\x6e\x73\145\x20\x6b\145\x79\x20\171\157\x75\x20\x68\141\166\145\x20\x65\156\x74\x65\162\145\x64\x20\150\x61\x73\x20\x61\154\x72\x65\x61\x64\x79\x20\142\145\x65\156\40\x75\x73\x65\144\56\40\120\x6c\145\141\x73\x65\x20\x65\156\x74\x65\x72\x20\x61\x20\153\x65\x79\x20\x77\150\151\143\x68\40\x68\x61\x73\40\156\x6f\x74\x20\142\145\x65\x6e\x20\165\163\145\x64\x20\x62\145\x66\157\x72\145\40\x6f\156\40\x61\156\171\x20\157\x74\150\x65\162\x20\x69\x6e\163\x74\141\156\143\145\40\x6f\162\40\x69\146\40\171\157\165\40\x68\x61\x76\x65\x20\145\x78\x61\165\163\164\145\144\x20\141\154\x6c\40\171\157\x75\162\40\x6b\145\x79\163\40\164\x68\145\156\x20\x3c\141\x20\150\x72\x65\x66\x3d\x22" . $ei . "\x22\76\103\x6c\151\x63\153\x20\150\x65\162\x65\74\57\x61\x3e\x20\x74\x6f\40\142\165\x79\x20\155\157\x72\145\x2e");
        la:
        $this->show_error_message();
        zc:
        goto me;
        ar:
        update_option("\155\x6f\137\154\144\141\x70\137\x6c\x6f\x63\141\154\137\x6c\x69\x63\x65\x6e\x73\x65\137\153\x65\171", Mo_Ldap_Local_Util::encrypt($ls));
        update_option("\x6d\x6f\x5f\154\x64\141\x70\x5f\154\x6f\143\141\x6c\x5f\155\x65\163\x73\141\147\145", "\131\x6f\165\162\x20\154\151\143\x65\156\x73\x65\x20\x69\163\40\166\145\162\x69\x66\x69\145\x64\x2e\x20\x59\x6f\x75\40\143\141\156\x20\156\157\x77\x20\163\145\x74\165\x70\x20\x74\x68\x65\x20\160\154\x75\x67\x69\156\56");
        update_option("\x74\137\x73\151\164\x65\137\x73\x74\x61\x74\x75\x73", Mo_Ldap_Local_Util::encrypt("\x66\141\x6c\x73\145"));
        update_option("\x73\x69\164\145\x5f\x63\x6b\x5f\154", Mo_Ldap_Local_Util::encrypt("\x74\x72\x75\145"));
        $this->show_success_message();
        me:
        Wr:
        iw:
        if (mo_ldap_local_ntlsl()) {
            goto oW;
        }
        if (ch_xdigit()) {
            goto NK;
        }
        delete_option("\155\x6f\x5f\154\x64\141\160\x5f\154\157\143\x61\154\x5f\x65\x6e\141\142\x6c\145\137\154\157\x67\x69\156");
        NK:
        goto Lt;
        oW:
        if (!decryptLDAPElement()) {
            goto ib;
        }
        update_option("\x74\137\163\x69\x74\145\x5f\163\164\x61\x74\165\163", Mo_Ldap_Local_Util::encrypt("\x66\141\x6c\163\x65"));
        ib:
        Lt:
    }
    function test_attribute_configuration()
    {
        if (is_user_logged_in()) {
            goto xo;
        }
        error_log("\x55\x73\x65\162\x20\151\x73\x20\x6e\157\x74\40\x6c\x6f\x67\147\145\144\x20\151\x6e\x2e\40\104\157\x20\156\157\x74\150\x69\156\x67");
        goto R3;
        xo:
        if (!(current_user_can("\141\x64\x6d\x69\156\151\x73\164\x72\x61\164\157\162") && isset($_REQUEST["\x6f\160\x74\x69\157\156"]))) {
            goto wA;
        }
        if ($_REQUEST["\157\160\x74\x69\x6f\156"] == "\164\x65\163\164\141\x74\x74\x72\143\x6f\156\146\x69\147") {
            goto ll;
        }
        if (!(current_user_can("\141\144\155\151\156\151\x73\164\x72\141\164\x6f\x72") && $_REQUEST["\157\x70\164\x69\157\x6e"] == "\x74\145\163\164\x72\157\x6c\145\155\141\160\x70\x69\x6e\147\143\157\156\146\x69\147")) {
            goto EP;
        }
        $eV = $_REQUEST["\165\163\145\162"];
        $GG = new Mo_Ldap_Local_Role_Mapping();
        $GG->test_configuration($eV);
        EP:
        goto eA;
        ll:
        $eV = $_REQUEST["\165\x73\x65\162"];
        $Ch = new Mo_Ldap_Local_Config();
        $Ch->test_attribute_configuration($eV);
        eA:
        wA:
        R3:
    }
    function save_success_customer_config($Sm, $my, $vi, $aG)
    {
        update_option("\x6d\157\x5f\154\x64\141\x70\x5f\154\157\x63\141\154\137\x61\x64\155\151\x6e\137\x63\165\163\164\x6f\155\x65\162\x5f\x6b\x65\171", $Sm);
        update_option("\155\157\137\154\144\141\x70\137\x6c\x6f\143\141\x6c\x5f\x61\x64\x6d\151\x6e\137\141\x70\x69\x5f\x6b\145\171", $my);
        update_option("\155\x6f\x5f\154\x64\141\160\x5f\154\x6f\143\141\154\x5f\143\165\x73\x74\x6f\155\145\162\137\164\x6f\153\145\x6e", $vi);
        update_option("\x6d\x6f\x5f\154\144\x61\160\137\154\157\143\x61\x6c\x5f\x70\x61\163\163\167\157\x72\144", '');
        update_option("\155\157\137\154\144\141\x70\x5f\x6c\157\143\141\x6c\137\x6d\145\163\x73\x61\x67\145", $aG);
        delete_option("\155\157\137\154\144\141\x70\x5f\154\157\143\x61\x6c\137\166\x65\162\151\146\x79\137\143\x75\x73\x74\157\x6d\x65\x72");
        delete_option("\x6d\x6f\x5f\154\x64\141\160\x5f\154\x6f\x63\141\154\137\156\145\167\x5f\x72\x65\147\x69\163\164\x72\141\164\151\x6f\156");
        delete_option("\x6d\157\x5f\x6c\x64\141\x70\137\x6c\x6f\x63\141\154\137\x72\x65\x67\x69\163\x74\x72\x61\x74\x69\157\156\137\163\x74\x61\x74\165\163");
        $this->show_success_message();
    }
    function mo_ldap_local_settings_style()
    {
        wp_enqueue_style("\155\x6f\137\154\x64\x61\x70\x5f\x61\x64\155\151\x6e\x5f\x73\145\164\x74\151\156\x67\163\137\163\x74\x79\154\145", plugins_url("\151\156\x63\x6c\x75\144\145\x73\57\143\x73\163\x2f\163\x74\171\154\145\137\x73\145\x74\x74\x69\156\147\x73\x2e\x63\x73\163", __FILE__));
        wp_enqueue_style("\x6d\x6f\137\154\x64\141\x70\x5f\x61\x64\155\x69\x6e\137\163\145\x74\164\x69\x6e\x67\x73\137\160\150\157\156\145\137\x73\x74\x79\x6c\x65", plugins_url("\x69\x6e\143\x6c\x75\144\x65\163\57\143\x73\x73\57\160\x68\x6f\x6e\x65\x2e\143\x73\163", __FILE__));
    }
    function mo_ldap_local_settings_script()
    {
        wp_enqueue_script("\x6d\157\137\x6c\144\141\x70\x5f\141\144\x6d\151\156\x5f\x73\x65\164\x74\151\x6e\x67\x73\137\160\x68\x6f\x6e\145\x5f\163\x63\x72\x69\160\164", plugins_url("\x69\156\143\154\x75\x64\145\x73\x2f\x6a\163\57\160\150\157\x6e\x65\x2e\152\x73", __FILE__));
        wp_enqueue_script("\x6d\x6f\x5f\x6c\144\x61\x70\x5f\x61\x64\155\x69\156\137\163\145\x74\x74\151\x6e\147\x73\137\x73\x63\162\x69\160\164", plugins_url("\x69\156\x63\154\165\x64\x65\163\x2f\x6a\x73\57\163\145\164\x74\151\x6e\147\163\137\x70\141\147\145\x2e\152\x73", __FILE__), array("\x6a\x71\x75\145\162\x79"));
    }
    function error_message()
    {
        $OH = "\145\x72\x72\x6f\162";
        $aG = get_option("\x6d\157\137\x6c\144\x61\x70\137\x6c\x6f\143\x61\154\x5f\x6d\145\163\x73\x61\x67\145");
        echo "\x3c\x64\x69\x76\40\143\x6c\141\x73\163\x3d\x27" . $OH . "\47\76\x20\74\x70\76" . $aG . "\x3c\57\x70\76\74\x2f\144\x69\x76\76";
    }
    function success_message()
    {
        $OH = "\165\160\x64\141\x74\145\144";
        $aG = get_option("\x6d\157\137\154\144\141\x70\x5f\154\157\143\141\x6c\x5f\x6d\x65\x73\163\141\147\x65");
        echo "\74\144\151\166\40\143\x6c\141\163\163\75\x27" . $OH . "\x27\x3e\40\x3c\x70\76" . $aG . "\74\x2f\x70\76\x3c\57\144\x69\166\76";
    }
    function show_success_message()
    {
        remove_action("\x61\x64\155\x69\x6e\x5f\156\x6f\x74\x69\x63\145\x73", array($this, "\145\x72\x72\157\x72\x5f\155\145\163\x73\141\147\145"));
        add_action("\141\x64\155\151\x6e\137\156\157\164\x69\143\x65\163", array($this, "\163\165\x63\x63\x65\163\x73\x5f\155\145\x73\163\x61\147\x65"));
    }
    function show_error_message()
    {
        remove_action("\x61\x64\x6d\151\156\x5f\x6e\157\164\151\143\x65\x73", array($this, "\x73\x75\143\143\145\163\163\x5f\155\145\163\163\x61\147\x65"));
        add_action("\x61\144\155\x69\x6e\137\x6e\157\x74\x69\143\145\x73", array($this, "\x65\162\162\157\x72\x5f\x6d\145\x73\163\141\x67\x65"));
    }
    function plugin_query_vars($dk)
    {
        $dk[] = "\x61\160\x70\x5f\x6e\141\x6d\x65";
        return $dk;
    }
    function parse_sso_request($PK)
    {
        if (!array_key_exists("\141\160\x70\137\x6e\x61\155\x65", $PK->query_vars)) {
            goto d3;
        }
        $Yo = mo_ldap_saml_login($PK->query_vars["\x61\160\x70\137\156\x61\155\145"]);
        wp_redirect($Yo, 302);
        die;
        d3:
    }
    function mo_ldap_activate()
    {
        update_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\x6c\157\143\x61\154\x5f\x72\x65\147\151\163\x74\145\162\137\x75\163\x65\162", 1);
    }
    public static function mo_ldap_local_uninstall()
    {
        delete_option("\155\157\137\x6c\144\141\x70\137\154\157\x63\x61\154\x5f\163\145\x72\166\x65\x72\137\x75\162\x6c");
        delete_option("\155\157\137\154\x64\x61\x70\x5f\x6c\157\143\141\x6c\x5f\x73\x65\x72\x76\x65\x72\x5f\x64\156");
        delete_option("\x6d\157\x5f\x6c\144\x61\x70\x5f\x6c\157\x63\141\154\137\163\x65\162\166\x65\x72\137\160\x61\163\x73\x77\157\x72\144");
        delete_option("\x6d\x6f\137\154\x64\141\160\x5f\154\x6f\x63\141\x6c\137\x73\x65\x61\162\143\150\x5f\146\151\x6c\164\x65\x72");
        delete_option("\155\157\x5f\x6c\x64\141\x70\x5f\154\x6f\x63\141\154\x5f\x73\x65\141\162\x63\150\137\142\141\x73\x65");
        delete_option("\x6d\x6f\x5f\154\x64\141\160\137\x6c\157\x63\x61\154\x5f\x72\157\154\145\137\155\141\160\160\x69\x6e\147\137\143\157\x75\156\x74");
    }
    function mo_ldap_local_deactivate()
    {
        do_action("\x66\x6c\x75\163\x68\143\x61\x63\150\x65");
        if (Mo_Ldap_Local_Util::check_empty_or_null(get_option("\x6d\157\137\x6c\x64\x61\x70\137\x6c\157\143\141\154\137\x72\145\x67\x69\x73\x74\x72\x61\164\x69\157\x6e\x5f\x73\x74\x61\x74\x75\x73"))) {
            goto Sr;
        }
        delete_option("\x6d\157\137\154\144\141\160\137\x6c\x6f\143\141\x6c\137\141\144\x6d\x69\x6e\137\145\155\141\x69\154");
        Sr:
        delete_option("\155\x6f\137\154\x64\141\160\137\154\x6f\143\141\x6c\137\x68\x6f\163\164\x5f\156\x61\155\145");
        delete_option("\x6d\x6f\137\154\144\x61\160\x5f\x6c\x6f\143\x61\x6c\x5f\x64\x65\146\x61\x75\x6c\164\x5f\x63\x6f\x6e\x66\x69\147");
        delete_option("\155\157\x5f\154\144\x61\x70\x5f\x6c\x6f\x63\x61\x6c\137\x70\141\163\x73\167\157\162\144");
        delete_option("\155\157\137\154\144\x61\160\x5f\154\x6f\x63\141\x6c\137\x6e\145\x77\137\162\x65\x67\x69\163\164\x72\141\x74\x69\x6f\x6e");
        delete_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\x6c\x6f\x63\141\154\137\x61\x64\x6d\x69\x6e\x5f\160\150\x6f\x6e\x65");
        delete_option("\x6d\157\137\154\144\x61\160\x5f\x6c\x6f\x63\x61\154\137\x76\145\x72\x69\x66\171\137\x63\x75\163\x74\x6f\155\145\162");
        delete_option("\x6d\x6f\137\154\x64\141\160\x5f\x6c\x6f\x63\141\154\x5f\141\x64\x6d\151\156\x5f\x63\165\x73\164\x6f\155\x65\x72\x5f\x6b\145\171");
        delete_option("\x6d\157\x5f\x6c\x64\141\160\x5f\x6c\157\x63\x61\x6c\x5f\141\144\x6d\151\156\x5f\x61\x70\151\x5f\x6b\x65\x79");
        delete_option("\155\x6f\x5f\154\x64\141\x70\137\x6c\x6f\x63\x61\x6c\137\x63\x75\163\164\x6f\155\x65\162\x5f\164\x6f\x6b\145\x6e");
        delete_option("\155\x6f\137\154\x64\x61\x70\137\154\157\143\x61\154\x5f\155\x65\x73\163\141\x67\145");
        delete_option("\x6d\157\137\x6c\144\x61\160\x5f\x6c\x6f\143\141\x6c\137\x65\156\141\142\154\145\x5f\x6c\157\x67\151\156");
        delete_option("\155\157\x5f\154\144\141\x70\137\154\x6f\143\x61\x6c\137\x74\162\x61\x6e\x73\141\x63\164\151\157\156\111\x64");
        delete_option("\155\x6f\x5f\x6c\x64\141\x70\x5f\x6c\x6f\143\141\154\137\x72\x65\147\151\x73\x74\162\x61\164\151\x6f\156\x5f\x73\x74\141\x74\165\163");
        delete_option("\x6d\157\137\154\x64\141\160\137\154\157\x63\x61\x6c\137\145\156\x61\142\x6c\x65\x5f\x72\x6f\154\x65\137\x6d\x61\x70\160\151\156\x67");
        delete_option("\x6d\x6f\x5f\154\x64\x61\160\x5f\154\x6f\x63\x61\154\137\x6b\145\x65\160\137\x65\x78\151\163\x74\151\156\x67\137\165\x73\145\162\x5f\162\157\154\x65\163");
    }
}
new Mo_Ldap_Local_Login();
?>

Function Calls

None

Variables

None

Stats

MD5 3914f20cbcaa482c88b965943413aaee
Eval Count 0
Decode Time 138 ms