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: miniOrange SSO using SAML 2.0 Plugin URI: http://miniorange.com/ ..

Decoded Output download

<?php 
/* 
Plugin Name: miniOrange SSO using SAML 2.0 
Plugin URI: http://miniorange.com/ 
Description: (Premium Single-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider. 
Version: 12.0.1 
Author: miniOrange 
Author URI: http://miniorange.com/ 
*/ 
 
 
include_once dirname(__FILE__) . "/mo_login_saml_sso_widget.php"; 
include_once "xmlseclibs.php"; 
use RobRichards\XMLSecLibs\XMLSecurityKey; 
use RobRichards\XMLSecLibs\XMLSecurityDSig; 
use RobRichards\XMLSecLibs\XMLSecEnc; 
require "mo-saml-class-customer.php"; 
require "mo_saml_settings_page.php"; 
require "MetadataReader.php"; 
require "certificate_utility.php"; 
require_once "mo-saml-plugin-version-update.php"; 
class saml_mo_login 
{ 
    function __construct() 
    { 
        add_action("admin_menu", array($this, "miniorange_sso_menu")); 
        add_action("admin_init", array($this, "miniorange_login_widget_saml_save_settings")); 
        add_action("admin_enqueue_scripts", array($this, "plugin_settings_style")); 
        register_deactivation_hook(__FILE__, array($this, "mo_sso_saml_deactivate")); 
        add_action("admin_enqueue_scripts", array($this, "plugin_settings_script")); 
        remove_action("admin_notices", array($this, "mo_saml_success_message")); 
        remove_action("admin_notices", array($this, "mo_saml_error_message")); 
        add_action("wp_authenticate", array($this, "mo_saml_authenticate")); 
        add_action("wp", array($this, "mo_saml_auto_redirect")); 
        $Nc = new mo_login_wid(); 
        add_filter("logout_redirect", array($Nc, "mo_saml_logout"), 10, 3); 
        add_action("init", array($Nc, "mo_saml_widget_init")); 
        add_action("admin_init", "mo_saml_download"); 
        add_action("login_enqueue_scripts", array($this, "mo_saml_login_enqueue_scripts")); 
        add_action("login_form", array($this, "mo_saml_modify_login_form")); 
        add_shortcode("MO_SAML_FORM", array($this, "mo_get_saml_shortcode")); 
        add_filter("cron_schedules", array($this, "myprefix_add_cron_schedule")); 
        add_action("metadata_sync_cron_action", array($this, "metadata_sync_cron_action")); 
        register_activation_hook(__FILE__, array($this, "mo_saml_check_openssl")); 
        add_action("plugin_action_links_" . plugin_basename(__FILE__), array($this, "mo_saml_plugin_action_links")); 
        add_action("admin_init", array($this, "default_certificate")); 
        add_option("lcdjkasjdksacl", "default-certificate"); 
        add_filter("manage_users_columns", array($this, "mo_saml_custom_attr_column")); 
        add_action("manage_users_custom_column", array($this, "mo_saml_attr_column_content"), 10, 3); 
    } 
    function default_certificate() 
    { 
        $em = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt"); 
        $xn = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key"); 
        add_option("mo_saml_cert", $em); 
        add_option("mo_saml_cert_private_key", $xn); 
        if (!(!get_option("mo_saml_current_cert") && !get_option("mo_saml_current_cert_private_key"))) { 
            goto v8; 
        } 
        update_option("mo_saml_current_cert", $em); 
        update_option("mo_saml_current_cert_private_key", $xn); 
        v8: 
    } 
    function mo_saml_check_openssl() 
    { 
        if (mo_saml_is_extension_installed("openssl")) { 
            goto XO; 
        } 
        wp_die("PHP openssl extension is not installed or disabled,please enable it to activate the plugin."); 
        XO: 
        add_option("Activated_Plugin", "Plugin-Slug"); 
    } 
    function myprefix_add_cron_schedule($Yu) 
    { 
        $Yu["weekly"] = array("interval" => 604800, "display" => __("Once Weekly")); 
        $Yu["monthly"] = array("interval" => 2635200, "display" => __("Once Monthly")); 
        return $Yu; 
    } 
    function metadata_sync_cron_action() 
    { 
        error_log("miniorange : RAN SYNC - " . time()); 
        $td = get_option("saml_identity_name"); 
        $this->upload_metadata(@file_get_contents(get_option("saml_metadata_url_for_sync"))); 
        update_option("saml_identity_name", $td); 
    } 
    function mo_login_widget_saml_options() 
    { 
        global $wpdb; 
        update_option("mo_saml_host_name", "https://login.xecurify.com"); 
        $pD = get_option("mo_saml_host_name"); 
        mo_register_saml_sso(); 
    } 
    function mo_saml_success_message() 
    { 
        $kk = "error"; 
        $Ew = get_option("mo_saml_message"); 
        echo "<div class='" . $kk . "'> <p>" . $Ew . "</p></div>"; 
    } 
    function mo_saml_error_message() 
    { 
        $kk = "updated"; 
        $Ew = get_option("mo_saml_message"); 
        echo "<div class='" . $kk . "'> <p>" . $Ew . "</p></div>"; 
    } 
    public function mo_sso_saml_deactivate() 
    { 
        if (!is_multisite()) { 
            goto pG; 
        } 
        global $wpdb; 
        $TH = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}"); 
        $FR = get_current_blog_id(); 
        do_action("mo_saml_flush_cache"); 
        foreach ($TH as $blog_id) { 
            switch_to_blog($blog_id); 
            delete_option("mo_saml_host_name"); 
            delete_option("mo_saml_new_registration"); 
            delete_option("mo_saml_admin_phone"); 
            delete_option("mo_saml_admin_password"); 
            delete_option("mo_saml_verify_customer"); 
            delete_option("mo_saml_admin_customer_key"); 
            delete_option("mo_saml_admin_api_key"); 
            delete_option("mo_saml_customer_token"); 
            delete_option("mo_saml_message"); 
            delete_option("mo_saml_registration_status"); 
            delete_option("mo_saml_idp_config_complete"); 
            delete_option("mo_saml_transactionId"); 
            delete_option("vl_check_t"); 
            delete_option("vl_check_s"); 
            lC: 
        } 
        Ty: 
        switch_to_blog($FR); 
        goto k3; 
        pG: 
        do_action("mo_saml_flush_cache"); 
        delete_option("mo_saml_host_name"); 
        delete_option("mo_saml_new_registration"); 
        delete_option("mo_saml_admin_phone"); 
        delete_option("mo_saml_admin_password"); 
        delete_option("mo_saml_verify_customer"); 
        delete_option("mo_saml_admin_customer_key"); 
        delete_option("mo_saml_admin_api_key"); 
        delete_option("mo_saml_customer_token"); 
        delete_option("mo_saml_message"); 
        delete_option("mo_saml_registration_status"); 
        delete_option("mo_saml_idp_config_complete"); 
        delete_option("mo_saml_transactionId"); 
        delete_option("mo_saml_enable_cloud_broker"); 
        delete_option("vl_check_t"); 
        delete_option("vl_check_s"); 
        k3: 
    } 
    function mo_saml_show_success_message() 
    { 
        remove_action("admin_notices", array($this, "mo_saml_success_message")); 
        add_action("admin_notices", array($this, "mo_saml_error_message")); 
    } 
    function mo_saml_show_error_message() 
    { 
        remove_action("admin_notices", array($this, "mo_saml_error_message")); 
        add_action("admin_notices", array($this, "mo_saml_success_message")); 
    } 
    function plugin_settings_style($JS) 
    { 
        if (!("toplevel_page_mo_saml_settings" != $JS)) { 
            goto tY; 
        } 
        return; 
        tY: 
        if (!(isset($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing")) { 
            goto T2; 
        } 
        wp_enqueue_style("mo_saml_bootstrap_css", plugins_url("includes/css/bootstrap/bootstrap.min.css", __FILE__), array(), "12.0.0", "all"); 
        T2: 
        wp_enqueue_style("mo_saml_admin_settings_jquery_style", plugins_url("includes/css/jquery.ui.css", __FILE__), array(), "12.0.0", "all"); 
        wp_enqueue_style("mo_saml_admin_settings_style_tracker", plugins_url("includes/css/progress-tracker.css", __FILE__), array(), "12.0.0", "all"); 
        wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.min.css", __FILE__), array(), "12.0.0", "all"); 
        wp_enqueue_style("mo_saml_admin_settings_phone_style", plugins_url("includes/css/phone.min.css", __FILE__), array(), "12.0.0", "all"); 
        wp_enqueue_style("mo_saml_wpb-fa", plugins_url("includes/css/font-awesome.min.css", __FILE__), array(), "12.0.0", "all"); 
    } 
    function plugin_settings_script($JS) 
    { 
        if (!("toplevel_page_mo_saml_settings" != $JS)) { 
            goto Hv; 
        } 
        return; 
        Hv: 
        wp_enqueue_script("jquery"); 
        wp_enqueue_script("mo_saml_admin_settings_color_script", plugins_url("includes/js/jscolor/jscolor.js", __FILE__), array(), "12.0.1", false); 
        wp_enqueue_script("mo_saml_admin_bootstrap_script", plugins_url("includes/js/bootstrap.js", __FILE__), array(), "12.0.1", false); 
        wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.min.js", __FILE__), array(), "12.0.1", false); 
        wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.min.js", __FILE__), array(), "12.0.1", false); 
        if (!(isset($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing")) { 
            goto yg; 
        } 
        wp_enqueue_script("mo_saml_modernizr_script", plugins_url("includes/js/modernizr.js", __FILE__), array(), "12.0.1", false); 
        wp_enqueue_script("mo_saml_popover_script", plugins_url("includes/js/bootstrap/popper.min.js", __FILE__), array(), "12.0.1", false); 
        wp_enqueue_script("mo_saml_bootstrap_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", __FILE__), array(), "12.0.1", false); 
        yg: 
    } 
    function mo_saml_activation_message() 
    { 
        $kk = "updated"; 
        $Ew = get_option("mo_saml_message"); 
        echo "<div class='" . $kk . "'> <p>" . $Ew . "</p></div>"; 
    } 
    function get_empty_strings() 
    { 
        return ''; 
    } 
    function mo_saml_custom_attr_column($Lh) 
    { 
        $th = maybe_unserialize(get_option("mo_saml_custom_attrs_mapping")); 
        $or = get_option("saml_show_user_attribute"); 
        $lp = 0; 
        if (!is_array($th)) { 
            goto Pc; 
        } 
        foreach ($th as $k3 => $zw) { 
            if (empty($k3)) { 
                goto f_; 
            } 
            if (!in_array($lp, $or)) { 
                goto vz; 
            } 
            $Lh[$k3] = $k3; 
            vz: 
            f_: 
            $lp++; 
            X8: 
        } 
        Np: 
        Pc: 
        return $Lh; 
    } 
    function mo_saml_attr_column_content($zw, $FA, $fd) 
    { 
        $th = get_option("mo_saml_custom_attrs_mapping"); 
        if (!is_array($th)) { 
            goto BP; 
        } 
        foreach ($th as $k3 => $zw) { 
            if (!($k3 === $FA)) { 
                goto EL; 
            } 
            $C2 = get_user_meta($fd, $FA, false); 
            if (empty($C2)) { 
                goto Fp; 
            } 
            if (!is_array($C2[0])) { 
                goto ta; 
            } 
            $Dz = ''; 
            foreach ($C2[0] as $CH) { 
                $Dz = $Dz . $CH; 
                if (!next($C2[0])) { 
                    goto G3; 
                } 
                $Dz = $Dz . " | "; 
                G3: 
                UZ: 
            } 
            y9: 
            return $Dz; 
            goto Sv; 
            ta: 
            return $C2[0]; 
            Sv: 
            Fp: 
            EL: 
            Dx: 
        } 
        wa: 
        BP: 
    } 
    static function mo_check_option_admin_referer($qT) 
    { 
        return isset($_POST["option"]) and $_POST["option"] == $qT and check_admin_referer($qT); 
    } 
    function miniorange_login_widget_saml_save_settings() 
    { 
        if (!current_user_can("manage_options")) { 
            goto lS; 
        } 
        if (!(is_admin() && get_option("Activated_Plugin") == "Plugin-Slug")) { 
            goto H0; 
        } 
        delete_option("Activated_Plugin"); 
        update_option("mo_saml_message", "Go to plugin <b><a href="admin.php?page=mo_saml_settings">settings</a></b> to configure SAML Single Sign On by miniOrange."); 
        add_action("admin_notices", array($this, "mo_saml_activation_message")); 
        H0: 
        lS: 
        if (!(isset($_POST["option"]) && current_user_can("manage_options"))) { 
            goto z9; 
        } 
        if (self::mo_check_option_admin_referer("login_widget_saml_save_settings")) { 
            goto h0; 
        } 
        if (self::mo_check_option_admin_referer("login_widget_saml_attribute_mapping")) { 
            goto Ck; 
        } 
        if (self::mo_check_option_admin_referer("clear_attrs_list")) { 
            goto EW; 
        } 
        if (self::mo_check_option_admin_referer("login_widget_saml_role_mapping")) { 
            goto oY; 
        } 
        if (self::mo_check_option_admin_referer("saml_form_domain_restriction_option")) { 
            goto eo; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_update_idp_settings_option")) { 
            goto Zx; 
        } 
        if (!self::mo_check_option_admin_referer("saml_upload_metadata")) { 
            goto Tc; 
        } 
        if (preg_match("/^\w*$/", $_POST["saml_identity_metadata_provider"])) { 
            goto p3; 
        } 
        update_option("mo_saml_message", "Please match the requested format for Identity Provider Name. Only alphabets, numbers and underscore is allowed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        p3: 
        if (function_exists("wp_handle_upload")) { 
            goto g2; 
        } 
        require_once ABSPATH . "wp-admin/includes/file.php"; 
        g2: 
        $this->_handle_upload_metadata(); 
        Tc: 
        goto sV; 
        Zx: 
        if (!(isset($_POST["mo_saml_sp_base_url"]) && isset($_POST["mo_saml_sp_entity_id"]))) { 
            goto mv; 
        } 
        $Gp = sanitize_text_field($_POST["mo_saml_sp_base_url"]); 
        $zY = sanitize_text_field($_POST["mo_saml_sp_entity_id"]); 
        if (!(substr($Gp, -1) == "/")) { 
            goto tv; 
        } 
        $Gp = substr($Gp, 0, -1); 
        tv: 
        update_option("mo_saml_sp_base_url", $Gp); 
        update_option("mo_saml_sp_entity_id", $zY); 
        mv: 
        update_option("mo_saml_message", "Settings updated successfully."); 
        $this->mo_saml_show_success_message(); 
        sV: 
        goto Ta; 
        eo: 
        $AJ = isset($_POST["mo_saml_enable_domain_restriction_login"]) && !empty($_POST["mo_saml_enable_domain_restriction_login"]) ? htmlspecialchars($_POST["mo_saml_enable_domain_restriction_login"]) : ''; 
        $nG = isset($_POST["mo_saml_allow_deny_user_with_domain"]) && !empty($_POST["mo_saml_allow_deny_user_with_domain"]) ? htmlspecialchars($_POST["mo_saml_allow_deny_user_with_domain"]) : "allow"; 
        $Qp = isset($_POST["saml_am_email_domains"]) && !empty($_POST["saml_am_email_domains"]) ? htmlspecialchars($_POST["saml_am_email_domains"]) : ''; 
        update_option("mo_saml_enable_domain_restriction_login", $AJ); 
        update_option("mo_saml_allow_deny_user_with_domain", $nG); 
        update_option("saml_am_email_domains", $Qp); 
        update_option("mo_saml_message", "Domain Restriction has been saved successfully."); 
        $this->mo_saml_show_success_message(); 
        Ta: 
        goto FR; 
        oY: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto nw; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Save Role Mapping failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        nw: 
        if (!isset($_POST["saml_am_default_user_role"])) { 
            goto cm; 
        } 
        $Jl = htmlspecialchars($_POST["saml_am_default_user_role"]); 
        update_option("saml_am_default_user_role", $Jl); 
        cm: 
        if (isset($_POST["saml_am_dont_allow_unlisted_user_role"])) { 
            goto ae; 
        } 
        update_option("saml_am_dont_allow_unlisted_user_role", "unchecked"); 
        goto iV; 
        ae: 
        update_option("saml_am_default_user_role", false); 
        update_option("saml_am_dont_allow_unlisted_user_role", "checked"); 
        iV: 
        if (isset($_POST["mo_saml_dont_create_user_if_role_not_mapped"])) { 
            goto m9; 
        } 
        update_option("mo_saml_dont_create_user_if_role_not_mapped", "unchecked"); 
        goto EI; 
        m9: 
        update_option("mo_saml_dont_create_user_if_role_not_mapped", "checked"); 
        update_option("saml_am_default_user_role", false); 
        update_option("saml_am_dont_allow_unlisted_user_role", "unchecked"); 
        EI: 
        if (isset($_POST["mo_saml_dont_update_existing_user_role"])) { 
            goto RB; 
        } 
        update_option("saml_am_dont_update_existing_user_role", "unchecked"); 
        goto eR; 
        RB: 
        update_option("saml_am_dont_update_existing_user_role", "checked"); 
        eR: 
        if (isset($_POST["mo_saml_dont_allow_user_tologin_create_with_given_groups"])) { 
            goto NL; 
        } 
        update_option("saml_am_dont_allow_user_tologin_create_with_given_groups", "unchecked"); 
        goto J9; 
        NL: 
        update_option("saml_am_dont_allow_user_tologin_create_with_given_groups", "checked"); 
        if (!isset($_POST["mo_saml_restrict_users_with_groups"])) { 
            goto sb; 
        } 
        if (!empty($_POST["mo_saml_restrict_users_with_groups"])) { 
            goto BA; 
        } 
        update_option("mo_saml_restrict_users_with_groups", ''); 
        goto kH; 
        BA: 
        update_option("mo_saml_restrict_users_with_groups", htmlspecialchars(stripslashes($_POST["mo_saml_restrict_users_with_groups"]))); 
        kH: 
        sb: 
        J9: 
        $wp_roles = new WP_Roles(); 
        $lm = $wp_roles->get_names(); 
        $bT = array(); 
        foreach ($lm as $En => $d6) { 
            $wF = "saml_am_group_attr_values_" . $En; 
            $bT[$En] = htmlspecialchars(stripslashes($_POST[$wF])); 
            f1: 
        } 
        r5: 
        update_option("saml_am_role_mapping", $bT); 
        update_option("mo_saml_message", "Role Mapping details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        FR: 
        goto U1; 
        EW: 
        delete_option("mo_saml_test_config_attrs"); 
        update_option("mo_saml_message", "Attributes list removed successfully"); 
        $this->mo_saml_show_success_message(); 
        U1: 
        goto Su; 
        Ck: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto ex; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Save Attribute Mapping failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        ex: 
        update_option("saml_am_username", htmlspecialchars(stripslashes($_POST["saml_am_username"]))); 
        update_option("saml_am_email", htmlspecialchars(stripslashes($_POST["saml_am_email"]))); 
        update_option("saml_am_first_name", htmlspecialchars(stripslashes($_POST["saml_am_first_name"]))); 
        update_option("saml_am_last_name", htmlspecialchars(stripslashes($_POST["saml_am_last_name"]))); 
        update_option("saml_am_group_name", htmlspecialchars(stripslashes($_POST["saml_am_group_name"]))); 
        update_option("saml_am_display_name", htmlspecialchars(stripslashes($_POST["saml_am_display_name"]))); 
        $th = array(); 
        $Kn = array(); 
        $Uj = array(); 
        $j2 = array(); 
        if (!(isset($_POST["mo_saml_custom_attribute_keys"]) && !empty($_POST["mo_saml_custom_attribute_keys"]))) { 
            goto al; 
        } 
        $Kn = $_POST["mo_saml_custom_attribute_keys"]; 
        al: 
        if (!(isset($_POST["mo_saml_custom_attribute_values"]) && !empty($_POST["mo_saml_custom_attribute_values"]))) { 
            goto wh; 
        } 
        $Uj = $_POST["mo_saml_custom_attribute_values"]; 
        wh: 
        $kn = count($Kn); 
        if (!($kn > 0)) { 
            goto oQ; 
        } 
        $Kn = array_map("htmlspecialchars", $Kn); 
        $Uj = array_map("htmlspecialchars", $Uj); 
        $gs = 0; 
        Pn: 
        if (!($gs < $kn)) { 
            goto eV; 
        } 
        if (!(isset($_POST["mo_saml_display_attribute_" . $gs]) && !empty($_POST["mo_saml_display_attribute_" . $gs]))) { 
            goto vq; 
        } 
        array_push($j2, $gs); 
        vq: 
        $gs++; 
        goto Pn; 
        eV: 
        oQ: 
        update_option("saml_show_user_attribute", $j2); 
        $th = array_combine($Kn, $Uj); 
        $th = array_filter($th); 
        if (!empty($th)) { 
            goto Oj; 
        } 
        $th = get_option("mo_saml_custom_attrs_mapping"); 
        if (empty($th)) { 
            goto kc; 
        } 
        delete_option("mo_saml_custom_attrs_mapping"); 
        kc: 
        goto hV; 
        Oj: 
        update_option("mo_saml_custom_attrs_mapping", $th); 
        hV: 
        update_option("mo_saml_message", "Attribute Mapping details saved successfully"); 
        $this->mo_saml_show_success_message(); 
        Su: 
        goto at; 
        h0: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto e0; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Save Identity Provider Configuration failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        e0: 
        $td = ''; 
        $xP = ''; 
        $YE = ''; 
        $nq = ''; 
        $AC = ''; 
        $kH = ''; 
        $Ay = ''; 
        $kc = ''; 
        $zT = ''; 
        if ($this->mo_saml_check_empty_or_null($_POST["saml_identity_name"]) || $this->mo_saml_check_empty_or_null($_POST["saml_login_url"]) || $this->mo_saml_check_empty_or_null($_POST["saml_issuer"]) || $this->mo_saml_check_empty_or_null($_POST["saml_nameid_format"])) { 
            goto N4; 
        } 
        if (!preg_match("/^\w*$/", $_POST["saml_identity_name"])) { 
            goto cU; 
        } 
        $td = htmlspecialchars(trim($_POST["saml_identity_name"])); 
        $YE = htmlspecialchars(trim($_POST["saml_login_url"])); 
        if (!array_key_exists("saml_login_binding_type", $_POST)) { 
            goto xs; 
        } 
        $xP = htmlspecialchars($_POST["saml_login_binding_type"]); 
        xs: 
        if (!array_key_exists("saml_logout_binding_type", $_POST)) { 
            goto a1; 
        } 
        $nq = htmlspecialchars($_POST["saml_logout_binding_type"]); 
        a1: 
        if (!array_key_exists("saml_logout_url", $_POST)) { 
            goto bf; 
        } 
        $AC = htmlspecialchars(trim($_POST["saml_logout_url"])); 
        bf: 
        $kH = htmlspecialchars(trim($_POST["saml_issuer"])); 
        $Dj = htmlspecialchars(trim($_POST["saml_identity_provider_guide_name"])); 
        $Ay = $_POST["saml_x509_certificate"]; 
        $zT = htmlspecialchars($_POST["saml_nameid_format"]); 
        goto v6; 
        cU: 
        update_option("mo_saml_message", "Please match the requested format for Identity Provider Name. Only alphabets, numbers and underscore is allowed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        v6: 
        goto lG; 
        N4: 
        update_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        lG: 
        update_option("saml_identity_name", $td); 
        update_option("saml_login_binding_type", $xP); 
        update_option("saml_login_url", $YE); 
        update_option("saml_logout_binding_type", $nq); 
        update_option("saml_logout_url", $AC); 
        update_option("saml_issuer", $kH); 
        update_option("saml_nameid_format", $zT); 
        update_option("saml_identity_provider_guide_name", $Dj); 
        if (isset($_POST["saml_request_signed"])) { 
            goto SK; 
        } 
        update_option("saml_request_signed", "unchecked"); 
        goto yJ; 
        SK: 
        update_option("saml_request_signed", "checked"); 
        yJ: 
        foreach ($Ay as $k3 => $zw) { 
            if (empty($zw)) { 
                goto ga; 
            } 
            $Ay[$k3] = SAMLSPUtilities::sanitize_certificate($zw); 
            if (@openssl_x509_read($Ay[$k3])) { 
                goto us; 
            } 
            update_option("mo_saml_message", "Invalid certificate: Please provide a valid certificate."); 
            $this->mo_saml_show_error_message(); 
            delete_option("saml_x509_certificate"); 
            return; 
            us: 
            goto xc; 
            ga: 
            unset($Ay[$k3]); 
            xc: 
            f6: 
        } 
        Pe: 
        if (!empty($Ay)) { 
            goto AM; 
        } 
        update_option("mo_saml_message", "Invalid Certificate:Please provide a certificate"); 
        $this->mo_saml_show_error_message(); 
        return; 
        AM: 
        update_option("saml_x509_certificate", maybe_serialize($Ay)); 
        if (isset($_POST["saml_response_signed"])) { 
            goto RI; 
        } 
        update_option("saml_response_signed", "Yes"); 
        goto pO; 
        RI: 
        update_option("saml_response_signed", "checked"); 
        pO: 
        if (isset($_POST["saml_assertion_signed"])) { 
            goto RU; 
        } 
        update_option("saml_assertion_signed", "Yes"); 
        goto e8; 
        RU: 
        update_option("saml_assertion_signed", "checked"); 
        e8: 
        if (array_key_exists("enable_iconv", $_POST)) { 
            goto js; 
        } 
        update_option("mo_saml_encoding_enabled", ''); 
        goto yw; 
        js: 
        update_option("mo_saml_encoding_enabled", "checked"); 
        yw: 
        update_option("mo_saml_message", "Identity Provider details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        at: 
        if (self::mo_check_option_admin_referer("add_custom_certificate")) { 
            goto zR; 
        } 
        if (self::mo_check_option_admin_referer("add_custom_messages")) { 
            goto jj; 
        } 
        if (!self::mo_check_option_admin_referer("mo_saml_relay_state_option")) { 
            goto bx; 
        } 
        $yC = isset($_POST["mo_saml_relay_state"]) ? sanitize_text_field($_POST["mo_saml_relay_state"]) : ''; 
        $dy = isset($_POST["mo_saml_logout_relay_state"]) ? sanitize_text_field($_POST["mo_saml_logout_relay_state"]) : ''; 
        update_option("mo_saml_relay_state", $yC); 
        update_option("mo_saml_logout_relay_state", $dy); 
        update_option("mo_saml_message", "Relay State updated successfully."); 
        $this->mo_saml_show_success_message(); 
        bx: 
        goto Ff; 
        jj: 
        update_option("mo_saml_account_creation_disabled_msg", sanitize_text_field($_POST["mo_saml_account_creation_disabled_msg"])); 
        update_option("mo_saml_restricted_domain_error_msg", sanitize_text_field($_POST["mo_saml_restricted_domain_error_msg"])); 
        update_option("mo_saml_message", "Configuration has been saved successfully."); 
        $this->mo_saml_show_success_message(); 
        Ff: 
        goto WM; 
        zR: 
        if (isset($_POST["submit"]) and $_POST["submit"] == "Upload") { 
            goto AT; 
        } 
        if (!(isset($_POST["submit"]) and $_POST["submit"] == "Reset")) { 
            goto JG; 
        } 
        delete_option("mo_saml_custom_cert"); 
        delete_option("mo_saml_custom_cert_private_key"); 
        update_option("mo_saml_current_cert", isset($em)); 
        update_option("mo_saml_current_cert_private_key", isset($xn)); 
        update_option("mo_saml_message", "Reset Certificate successfully."); 
        $this->mo_saml_show_success_message(); 
        JG: 
        goto VO; 
        AT: 
        if (!@openssl_x509_read($_POST["saml_public_x509_certificate"])) { 
            goto CW; 
        } 
        if (!@openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) { 
            goto OU; 
        } 
        if (openssl_x509_read($_POST["saml_public_x509_certificate"]) && openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) { 
            goto Fl; 
        } 
        goto zY; 
        CW: 
        update_option("mo_saml_message", "Invalid Certificate format. Please enter a valid certificate."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto zY; 
        OU: 
        update_option("mo_saml_message", "Invalid Private Key."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto zY; 
        Fl: 
        $Yn = $_POST["saml_public_x509_certificate"]; 
        $n5 = $_POST["saml_private_x509_certificate"]; 
        update_option("mo_saml_custom_cert", $Yn); 
        update_option("mo_saml_custom_cert_private_key", $n5); 
        update_option("mo_saml_current_cert", $Yn); 
        update_option("mo_saml_current_cert_private_key", $n5); 
        update_option("mo_saml_message", "Custom Certificate updated successfully."); 
        $this->mo_saml_show_success_message(); 
        zY: 
        VO: 
        WM: 
        if (self::mo_check_option_admin_referer("mo_saml_widget_option")) { 
            goto aP; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_register_customer")) { 
            goto mo; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_validate_otp")) { 
            goto WA; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_verify_customer")) { 
            goto a5; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_contact_us_query_option")) { 
            goto zg; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_resend_otp_email")) { 
            goto FW; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_resend_otp_phone")) { 
            goto Gy; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_go_back")) { 
            goto fI; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_register_with_phone_option")) { 
            goto rb; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_registered_only_access_option")) { 
            goto WJ; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_redirect_to_wp_login_option")) { 
            goto QH; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_force_authentication_option")) { 
            goto Fm; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_enable_rss_access_option")) { 
            goto lj; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_enable_login_redirect_option")) { 
            goto OJ; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_add_sso_button_wp_option")) { 
            goto bq; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_use_button_as_shortcode_option")) { 
            goto Hn; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_use_button_as_widget_option")) { 
            goto b8; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_allow_wp_signin_option")) { 
            goto fO; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_custom_button_option")) { 
            goto dX; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_forgot_password_form_option")) { 
            goto ze; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_verify_license")) { 
            goto qc; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_free_trial")) { 
            goto M1; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_check_license")) { 
            goto kB; 
        } 
        if (!self::mo_check_option_admin_referer("mo_saml_remove_account")) { 
            goto Rt; 
        } 
        $this->mo_sso_saml_deactivate(); 
        add_option("mo_saml_registration_status", "removed_account"); 
        $WO = add_query_arg(array("tab" => "login"), $_SERVER["REQUEST_URI"]); 
        header("Location: " . $WO); 
        Rt: 
        goto wo; 
        kB: 
        $lF = new Customersaml(); 
        $C2 = $lF->check_customer_ln(); 
        if ($C2) { 
            goto VT; 
        } 
        return; 
        VT: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto fz; 
        } 
        $k3 = get_option("mo_saml_customer_token"); 
        update_option("site_ck_l", AESEncryption::encrypt_data("false", $k3)); 
        $WO = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $WO) . " to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto ko; 
        fz: 
        if (array_key_exists("licensePlan", $C2) && !$this->mo_saml_check_empty_or_null($C2["licensePlan"])) { 
            goto Ji; 
        } 
        $k3 = get_option("mo_saml_customer_token"); 
        update_option("site_ck_l", AESEncryption::encrypt_data("false", $k3)); 
        $WO = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $WO) . " to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto JV; 
        Ji: 
        update_option("mo_saml_license_name", base64_encode($C2["licensePlan"])); 
        $k3 = get_option("mo_saml_customer_token"); 
        if (!(array_key_exists("noOfUsers", $C2) && !$this->mo_saml_check_empty_or_null($C2["noOfUsers"]))) { 
            goto UH; 
        } 
        update_option("mo_saml_usr_lmt", AESEncryption::encrypt_data($C2["noOfUsers"], $k3)); 
        UH: 
        update_option("site_ck_l", AESEncryption::encrypt_data("true", $k3)); 
        $ho = plugin_dir_path(__FILE__); 
        $IC = home_url(); 
        $IC = trim($IC, "/"); 
        if (preg_match("#^http(s)?://#", $IC)) { 
            goto eP; 
        } 
        $IC = "http://" . $IC; 
        eP: 
        $rV = parse_url($IC); 
        $ef = preg_replace("/^www\./", '', $rV["host"]); 
        $vo = wp_upload_dir(); 
        $iT = $ef . "-" . $vo["basedir"]; 
        $bv = hash_hmac("sha256", $iT, "4DHfjgfjasndfsajfHGJ"); 
        $LE = $this->djkasjdksa(); 
        $f1 = round(strlen($LE) / rand(2, 20)); 
        $LE = substr_replace($LE, $bv, $f1, 0); 
        $Ax = base64_decode($LE); 
        if (is_writable($ho . "license")) { 
            goto zu; 
        } 
        $LE = str_rot13($LE); 
        $cJ = base64_decode("bGNkamthc2pka3NhY2w="); 
        update_option($cJ, $LE); 
        goto Qs; 
        zu: 
        file_put_contents($ho . "license", $Ax); 
        Qs: 
        update_option("lcwrtlfsaml", true); 
        $WO = add_query_arg(array("tab" => "general"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_saml_message", "You have successfully upgraded your license."); 
        $this->mo_saml_show_success_message(); 
        JV: 
        ko: 
        wo: 
        goto mr; 
        M1: 
        if (decryptSamlElement()) { 
            goto x4; 
        } 
        $oZ = postResponse(); 
        $lF = new Customersaml(); 
        $C2 = $lF->mo_saml_vl($oZ, false); 
        if ($C2) { 
            goto v7; 
        } 
        return; 
        v7: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto Jt; 
        } 
        if (strcasecmp($C2["status"], "FAILED") == 0) { 
            goto YE; 
        } 
        update_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto aN; 
        YE: 
        update_option("mo_saml_message", "There was an error activating your TRIAL version. Please contact [email protected] for getting new license for trial version."); 
        $this->mo_saml_show_error_message(); 
        aN: 
        goto rN; 
        Jt: 
        $k3 = get_option("mo_saml_customer_token"); 
        $k3 = get_option("mo_saml_customer_token"); 
        update_option("t_site_status", AESEncryption::encrypt_data("true", $k3)); 
        update_option("mo_saml_message", "Your 5 days TRIAL is activated. You can now setup the plugin."); 
        $this->mo_saml_show_success_message(); 
        rN: 
        goto GS; 
        x4: 
        update_option("mo_saml_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->mo_saml_show_error_message(); 
        GS: 
        mr: 
        goto Tn; 
        qc: 
        if (!$this->mo_saml_check_empty_or_null($_POST["saml_licence_key"])) { 
            goto Z7; 
        } 
        update_option("mo_saml_message", "All the fields are required. Please enter valid license key."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Z7: 
        $oZ = htmlspecialchars(trim($_POST["saml_licence_key"])); 
        $lF = new Customersaml(); 
        $C2 = $lF->check_customer_ln(); 
        if ($C2) { 
            goto jm; 
        } 
        return; 
        jm: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto wr; 
        } 
        $k3 = get_option("mo_saml_customer_token"); 
        update_option("site_ck_l", AESEncryption::encrypt_data("false", $k3)); 
        $WO = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $WO) . " to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto I_; 
        wr: 
        $C2 = json_decode($lF->mo_saml_vl($oZ, false), true); 
        update_option("vl_check_t", time()); 
        if (is_array($C2) and strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto bt; 
        } 
        if (is_array($C2) and strcasecmp($C2["status"], "FAILED") == 0) { 
            goto to; 
        } 
        update_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto f0; 
        to: 
        if (strcasecmp($C2["message"], "Code has Expired") == 0) { 
            goto tO; 
        } 
        update_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key."); 
        goto KO; 
        tO: 
        $WO = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_option("mo_saml_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 " . addLink("Click here", $WO) . " to buy more."); 
        KO: 
        $this->mo_saml_show_error_message(); 
        f0: 
        goto IH; 
        bt: 
        $k3 = get_option("mo_saml_customer_token"); 
        update_option("sml_lk", AESEncryption::encrypt_data($oZ, $k3)); 
        $Ew = "Your license is verified. You can now setup the plugin."; 
        update_option("mo_saml_message", $Ew); 
        $k3 = get_option("mo_saml_customer_token"); 
        update_option("site_ck_l", AESEncryption::encrypt_data("true", $k3)); 
        update_option("t_site_status", AESEncryption::encrypt_data("false", $k3)); 
        $ho = plugin_dir_path(__FILE__); 
        $IC = home_url(); 
        $IC = trim($IC, "/"); 
        if (preg_match("#^http(s)?://#", $IC)) { 
            goto TJ; 
        } 
        $IC = "http://" . $IC; 
        TJ: 
        $rV = parse_url($IC); 
        $ef = preg_replace("/^www\./", '', $rV["host"]); 
        $vo = wp_upload_dir(); 
        $iT = $ef . "-" . $vo["basedir"]; 
        $bv = hash_hmac("sha256", $iT, "4DHfjgfjasndfsajfHGJ"); 
        $LE = $this->djkasjdksa(); 
        $f1 = round(strlen($LE) / rand(2, 20)); 
        $LE = substr_replace($LE, $bv, $f1, 0); 
        $Ax = base64_decode($LE); 
        if (is_writable($ho . "license")) { 
            goto RJ; 
        } 
        $LE = str_rot13($LE); 
        $cJ = base64_decode("bGNkamthc2pka3NhY2w="); 
        update_option($cJ, $LE); 
        goto yR; 
        RJ: 
        file_put_contents($ho . "license", $Ax); 
        yR: 
        update_option("lcwrtlfsaml", true); 
        $WO = add_query_arg(array("tab" => "general"), $_SERVER["REQUEST_URI"]); 
        $this->mo_saml_show_success_message(); 
        IH: 
        I_: 
        Tn: 
        goto G6; 
        ze: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto eq; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        eq: 
        $Op = get_option("mo_saml_admin_email"); 
        $lF = new Customersaml(); 
        $C2 = $lF->mo_saml_forgot_password($Op); 
        if ($C2) { 
            goto rh; 
        } 
        return; 
        rh: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto b3; 
        } 
        update_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto Oo; 
        b3: 
        update_option("mo_saml_message", "Your password has been reset successfully. Please enter the new password sent to " . $Op . "."); 
        $this->mo_saml_show_success_message(); 
        Oo: 
        G6: 
        goto XA; 
        dX: 
        $yd = ''; 
        $C6 = ''; 
        $NS = ''; 
        $m4 = ''; 
        $qw = ''; 
        $Zc = ''; 
        $uS = ''; 
        $KS = ''; 
        $My = ''; 
        $os = ''; 
        $b1 = "above"; 
        if (!(array_key_exists("mo_saml_button_size", $_POST) && !empty($_POST["mo_saml_button_size"]))) { 
            goto qO; 
        } 
        $NS = htmlspecialchars($_POST["mo_saml_button_size"]); 
        qO: 
        if (!(array_key_exists("mo_saml_button_width", $_POST) && !empty($_POST["mo_saml_button_width"]))) { 
            goto rv; 
        } 
        $m4 = htmlspecialchars($_POST["mo_saml_button_width"]); 
        rv: 
        if (!(array_key_exists("mo_saml_button_height", $_POST) && !empty($_POST["mo_saml_button_height"]))) { 
            goto uQ; 
        } 
        $qw = htmlspecialchars($_POST["mo_saml_button_height"]); 
        uQ: 
        if (!(array_key_exists("mo_saml_button_curve", $_POST) && !empty($_POST["mo_saml_button_curve"]))) { 
            goto tm; 
        } 
        $Zc = htmlspecialchars($_POST["mo_saml_button_curve"]); 
        tm: 
        if (!array_key_exists("mo_saml_button_color", $_POST)) { 
            goto Jl; 
        } 
        $uS = htmlspecialchars($_POST["mo_saml_button_color"]); 
        Jl: 
        if (!array_key_exists("mo_saml_button_theme", $_POST)) { 
            goto M2; 
        } 
        $yd = htmlspecialchars($_POST["mo_saml_button_theme"]); 
        M2: 
        if (!array_key_exists("mo_saml_button_text", $_POST)) { 
            goto Fz; 
        } 
        $KS = htmlspecialchars($_POST["mo_saml_button_text"]); 
        if (!(empty($KS) || $KS == "Login")) { 
            goto fb; 
        } 
        $KS = "Login"; 
        fb: 
        $Rs = get_option("saml_identity_name"); 
        $KS = str_replace("##IDP##", $Rs, $KS); 
        Fz: 
        if (!array_key_exists("mo_saml_font_color", $_POST)) { 
            goto hu; 
        } 
        $My = htmlspecialchars($_POST["mo_saml_font_color"]); 
        hu: 
        if (!array_key_exists("mo_saml_font_size", $_POST)) { 
            goto Hd; 
        } 
        $os = htmlspecialchars($_POST["mo_saml_font_size"]); 
        Hd: 
        if (!array_key_exists("sso_button_login_form_position", $_POST)) { 
            goto zl; 
        } 
        $b1 = htmlspecialchars($_POST["sso_button_login_form_position"]); 
        zl: 
        update_option("mo_saml_button_theme", $yd); 
        update_option("mo_saml_button_size", $NS); 
        update_option("mo_saml_button_width", $m4); 
        update_option("mo_saml_button_height", $qw); 
        update_option("mo_saml_button_curve", $Zc); 
        update_option("mo_saml_button_color", $uS); 
        update_option("mo_saml_button_text", $KS); 
        update_option("mo_saml_font_color", $My); 
        update_option("mo_saml_font_size", $os); 
        update_option("sso_button_login_form_position", $b1); 
        update_option("mo_saml_message", "Sign In settings updated."); 
        $this->mo_saml_show_success_message(); 
        XA: 
        goto uL; 
        fO: 
        $FI = "false"; 
        if (array_key_exists("mo_saml_allow_wp_signin", $_POST)) { 
            goto SQ; 
        } 
        $Jp = "false"; 
        goto WI; 
        SQ: 
        $Jp = htmlspecialchars($_POST["mo_saml_allow_wp_signin"]); 
        WI: 
        if ($Jp == "true") { 
            goto LQ; 
        } 
        update_option("mo_saml_allow_wp_signin", ''); 
        goto LC; 
        LQ: 
        update_option("mo_saml_allow_wp_signin", "true"); 
        if (!array_key_exists("mo_saml_backdoor_url", $_POST)) { 
            goto fY; 
        } 
        $FI = htmlspecialchars(trim($_POST["mo_saml_backdoor_url"])); 
        fY: 
        LC: 
        update_option("mo_saml_backdoor_url", $FI); 
        update_option("mo_saml_message", "Sign In settings updated."); 
        $this->mo_saml_show_success_message(); 
        uL: 
        goto H7; 
        b8: 
        if (mo_saml_is_sp_configured()) { 
            goto xP; 
        } 
        update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto Ba; 
        xP: 
        if (array_key_exists("mo_saml_use_button_as_widget", $_POST)) { 
            goto c4; 
        } 
        $iP = "false"; 
        goto dt; 
        c4: 
        $iP = htmlspecialchars($_POST["mo_saml_use_button_as_widget"]); 
        dt: 
        update_option("mo_saml_use_button_as_widget", $iP); 
        update_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        Ba: 
        H7: 
        goto c0; 
        Hn: 
        if (mo_saml_is_sp_configured()) { 
            goto Zr; 
        } 
        update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto G_; 
        Zr: 
        if (array_key_exists("mo_saml_use_button_as_shortcode", $_POST)) { 
            goto Pw; 
        } 
        $iP = "false"; 
        goto Pm; 
        Pw: 
        $iP = htmlspecialchars($_POST["mo_saml_use_button_as_shortcode"]); 
        Pm: 
        update_option("mo_saml_use_button_as_shortcode", $iP); 
        update_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        G_: 
        c0: 
        goto Wl; 
        bq: 
        if (mo_saml_is_sp_configured()) { 
            goto n_; 
        } 
        update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto uy; 
        n_: 
        if (array_key_exists("mo_saml_add_sso_button_wp", $_POST)) { 
            goto jx; 
        } 
        $qt = "false"; 
        goto pv; 
        jx: 
        $qt = htmlspecialchars($_POST["mo_saml_add_sso_button_wp"]); 
        pv: 
        update_option("mo_saml_add_sso_button_wp", $qt); 
        update_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        uy: 
        Wl: 
        goto rm; 
        OJ: 
        if (mo_saml_is_sp_configured()) { 
            goto Y4; 
        } 
        update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto jy; 
        Y4: 
        if (array_key_exists("mo_saml_enable_login_redirect", $_POST)) { 
            goto ps; 
        } 
        $mY = "false"; 
        goto SE; 
        ps: 
        $mY = htmlspecialchars($_POST["mo_saml_enable_login_redirect"]); 
        SE: 
        if ($mY == "true") { 
            goto ZN; 
        } 
        update_option("mo_saml_enable_login_redirect", ''); 
        update_option("mo_saml_allow_wp_signin", ''); 
        goto I4; 
        ZN: 
        update_option("mo_saml_enable_login_redirect", "true"); 
        update_option("mo_saml_allow_wp_signin", "true"); 
        I4: 
        update_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        jy: 
        rm: 
        goto k_; 
        lj: 
        if (mo_saml_is_sp_configured()) { 
            goto WY; 
        } 
        update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto jY; 
        WY: 
        if (array_key_exists("mo_saml_enable_rss_access", $_POST)) { 
            goto AU; 
        } 
        $zD = false; 
        goto VH; 
        AU: 
        $zD = htmlspecialchars($_POST["mo_saml_enable_rss_access"]); 
        VH: 
        if ($zD == "true") { 
            goto Xz; 
        } 
        update_option("mo_saml_enable_rss_access", ''); 
        goto KY; 
        Xz: 
        update_option("mo_saml_enable_rss_access", "true"); 
        KY: 
        update_option("mo_saml_message", "RSS Feed option updated."); 
        $this->mo_saml_show_success_message(); 
        jY: 
        k_: 
        goto b9; 
        Fm: 
        if (mo_saml_is_sp_configured()) { 
            goto oI; 
        } 
        update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto cI; 
        oI: 
        if (array_key_exists("mo_saml_force_authentication", $_POST)) { 
            goto PE; 
        } 
        $mY = "false"; 
        goto nF; 
        PE: 
        $mY = htmlspecialchars($_POST["mo_saml_force_authentication"]); 
        nF: 
        if ($mY == "true") { 
            goto xf; 
        } 
        update_option("mo_saml_force_authentication", ''); 
        goto K9; 
        xf: 
        update_option("mo_saml_force_authentication", "true"); 
        K9: 
        update_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        cI: 
        b9: 
        goto S6; 
        QH: 
        if (!mo_saml_is_sp_configured()) { 
            goto G8; 
        } 
        if (array_key_exists("mo_saml_redirect_to_wp_login", $_POST)) { 
            goto k8; 
        } 
        $gS = "false"; 
        goto bn; 
        k8: 
        $gS = htmlspecialchars($_POST["mo_saml_redirect_to_wp_login"]); 
        bn: 
        update_option("mo_saml_redirect_to_wp_login", $gS); 
        update_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        G8: 
        S6: 
        goto Ku; 
        WJ: 
        if (mo_saml_is_sp_configured()) { 
            goto Rn; 
        } 
        update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto pc; 
        Rn: 
        if (array_key_exists("mo_saml_registered_only_access", $_POST)) { 
            goto m2; 
        } 
        $mY = "false"; 
        goto zO; 
        m2: 
        $mY = htmlspecialchars($_POST["mo_saml_registered_only_access"]); 
        zO: 
        if ($mY == "true") { 
            goto tZ; 
        } 
        update_option("mo_saml_registered_only_access", ''); 
        goto Ea; 
        tZ: 
        update_option("mo_saml_registered_only_access", "true"); 
        Ea: 
        update_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        pc: 
        Ku: 
        goto yU; 
        rb: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto Ix; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Ix: 
        $lN = sanitize_text_field($_POST["phone"]); 
        $lN = str_replace(" ", '', $lN); 
        $lN = str_replace("-", '', $lN); 
        update_option("mo_saml_admin_phone", $lN); 
        $lF = new CustomerSaml(); 
        $C2 = $lF->send_otp_token('', $lN, FALSE, TRUE); 
        if ($C2) { 
            goto Po; 
        } 
        return; 
        Po: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto b2; 
        } 
        update_option("mo_saml_message", "There was an error in sending SMS. Please click on Resend OTP to try again."); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE"); 
        $this->mo_saml_show_error_message(); 
        goto Mz; 
        b2: 
        update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_phone") . ". Please enter the otp here to verify your email."); 
        update_option("mo_saml_transactionId", $C2["txId"]); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE"); 
        $this->mo_saml_show_success_message(); 
        Mz: 
        yU: 
        goto QP; 
        fI: 
        update_option("mo_saml_registration_status", ''); 
        update_option("mo_saml_verify_customer", ''); 
        delete_option("mo_saml_new_registration"); 
        delete_option("mo_saml_admin_email"); 
        delete_option("mo_saml_admin_phone"); 
        delete_site_option("sml_lk"); 
        delete_site_option("t_site_status"); 
        delete_site_option("site_ck_l"); 
        QP: 
        goto om; 
        Gy: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto xa; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        xa: 
        $lN = get_option("mo_saml_admin_phone"); 
        $lF = new CustomerSaml(); 
        $C2 = $lF->send_otp_token('', $lN, FALSE, TRUE); 
        if ($C2) { 
            goto My; 
        } 
        return; 
        My: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto gr; 
        } 
        update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again."); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE"); 
        $this->mo_saml_show_error_message(); 
        goto Sm; 
        gr: 
        update_option("mo_saml_message", " A one time passcode is sent to " . $lN . " again. Please check if you got the otp and enter it here."); 
        update_option("mo_saml_transactionId", $C2["txId"]); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE"); 
        $this->mo_saml_show_success_message(); 
        Sm: 
        om: 
        goto eX; 
        FW: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto DJ; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        DJ: 
        $Op = get_option("mo_saml_admin_email"); 
        $lF = new CustomerSaml(); 
        $C2 = $lF->send_otp_token($Op, ''); 
        if ($C2) { 
            goto Kj; 
        } 
        return; 
        Kj: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto M4; 
        } 
        update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again."); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL"); 
        $this->mo_saml_show_error_message(); 
        goto Et; 
        M4: 
        update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_email") . " again. Please check if you got the otp and enter it here."); 
        update_option("mo_saml_transactionId", $C2["txId"]); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL"); 
        $this->mo_saml_show_success_message(); 
        Et: 
        eX: 
        goto hO; 
        zg: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto aX; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Query submit failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        aX: 
        $Op = sanitize_email($_POST["mo_saml_contact_us_email"]); 
        $lN = htmlspecialchars($_POST["mo_saml_contact_us_phone"]); 
        $Gy = htmlspecialchars($_POST["mo_saml_contact_us_query"]); 
        if (array_key_exists("send_plugin_config", $_POST) === true) { 
            goto uH; 
        } 
        update_option("send_plugin_config", "off"); 
        goto wX; 
        uH: 
        $dF = miniorange_import_export(true, true); 
        $Gy .= $dF; 
        delete_option("send_plugin_config"); 
        wX: 
        $lF = new CustomerSaml(); 
        if ($this->mo_saml_check_empty_or_null($Op) || $this->mo_saml_check_empty_or_null($Gy)) { 
            goto k2; 
        } 
        if (!filter_var($Op, FILTER_VALIDATE_EMAIL)) { 
            goto iP; 
        } 
        $Oq = $lF->submit_contact_us($Op, $lN, $Gy); 
        if ($Oq) { 
            goto Db; 
        } 
        return; 
        Db: 
        update_option("mo_saml_message", "Thanks for getting in touch! We shall get back to you shortly."); 
        $this->mo_saml_show_success_message(); 
        goto Wr; 
        iP: 
        update_option("mo_saml_message", "Please enter a valid email address."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Wr: 
        goto sf; 
        k2: 
        update_option("mo_saml_message", "Please fill up Email and Query fields to submit your query."); 
        $this->mo_saml_show_error_message(); 
        sf: 
        hO: 
        goto kP; 
        a5: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto tq; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Login failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        tq: 
        $Op = ''; 
        $xN = self::get_empty_strings(); 
        if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"])) { 
            goto Rd; 
        } 
        if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) { 
            goto hF; 
        } 
        $Op = sanitize_email($_POST["email"]); 
        $xN = stripslashes(strip_tags($_POST["password"])); 
        goto mP; 
        hF: 
        update_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.$%^&*-_) should be present."); 
        $this->mo_saml_show_error_message(); 
        return; 
        mP: 
        goto XY; 
        Rd: 
        update_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        XY: 
        update_option("mo_saml_admin_email", $Op); 
        update_option("mo_saml_admin_password", $xN); 
        $lF = new Customersaml(); 
        $C2 = $lF->get_customer_key(); 
        if ($C2) { 
            goto Gg; 
        } 
        return; 
        Gg: 
        $F0 = json_decode($C2, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto U7; 
        } 
        update_option("mo_saml_message", "Invalid username or password. Please try again."); 
        $this->mo_saml_show_error_message(); 
        goto JA; 
        U7: 
        update_option("mo_saml_admin_customer_key", $F0["id"]); 
        update_option("mo_saml_admin_api_key", $F0["apiKey"]); 
        update_option("mo_saml_customer_token", $F0["token"]); 
        if (empty($F0["phone"])) { 
            goto S3; 
        } 
        update_option("mo_saml_admin_phone", $F0["phone"]); 
        S3: 
        update_option("mo_saml_admin_password", ''); 
        update_option("mo_saml_message", "Customer retrieved successfully"); 
        update_option("mo_saml_registration_status", "Existing User"); 
        delete_option("mo_saml_verify_customer"); 
        if (get_option("sml_lk")) { 
            goto Si; 
        } 
        $this->mo_saml_show_success_message(); 
        goto Xt; 
        Si: 
        $k3 = get_option("mo_saml_customer_token"); 
        $oZ = AESEncryption::decrypt_data(get_option("sml_lk"), $k3); 
        $C2 = json_decode($lF->mo_saml_vl($oZ, false), true); 
        update_option("vl_check_t", time()); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto cz; 
        } 
        update_option("mo_saml_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("sml_lk"); 
        $this->mo_saml_show_error_message(); 
        goto Er; 
        cz: 
        $ho = plugin_dir_path(__FILE__); 
        $IC = home_url(); 
        $IC = trim($IC, "/"); 
        if (preg_match("#^http(s)?://#", $IC)) { 
            goto t2; 
        } 
        $IC = "http://" . $IC; 
        t2: 
        $rV = parse_url($IC); 
        $ef = preg_replace("/^www\./", '', $rV["host"]); 
        $vo = wp_upload_dir(); 
        $iT = $ef . "-" . $vo["basedir"]; 
        $bv = hash_hmac("sha256", $iT, "4DHfjgfjasndfsajfHGJ"); 
        $LE = $this->djkasjdksa(); 
        $f1 = round(strlen($LE) / rand(2, 20)); 
        $LE = substr_replace($LE, $bv, $f1, 0); 
        $Ax = base64_decode($LE); 
        if (is_writable($ho . "license")) { 
            goto Ev; 
        } 
        $LE = str_rot13($LE); 
        $cJ = base64_decode("bGNkamthc2pka3NhY2w="); 
        update_option($cJ, $LE); 
        goto IB; 
        Ev: 
        file_put_contents($ho . "license", $Ax); 
        IB: 
        update_option("lcwrtlfsaml", true); 
        $this->mo_saml_show_success_message(); 
        Er: 
        Xt: 
        JA: 
        update_option("mo_saml_admin_password", ''); 
        kP: 
        goto mD; 
        WA: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto GF; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Validate OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        GF: 
        $Fq = ''; 
        if ($this->mo_saml_check_empty_or_null($_POST["otp_token"])) { 
            goto xq; 
        } 
        $Fq = sanitize_text_field($_POST["otp_token"]); 
        goto Pa; 
        xq: 
        update_option("mo_saml_message", "Please enter a value in otp field."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Pa: 
        $lF = new CustomerSaml(); 
        $C2 = $lF->validate_otp_token(get_option("mo_saml_transactionId"), $Fq); 
        if ($C2) { 
            goto LN; 
        } 
        return; 
        LN: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto m7; 
        } 
        update_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp."); 
        $this->mo_saml_show_error_message(); 
        goto E2; 
        m7: 
        $this->create_customer(); 
        E2: 
        mD: 
        goto lB; 
        mo: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto hX; 
        } 
        update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Registration failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        hX: 
        $Op = ''; 
        $lN = ''; 
        $xN = self::get_empty_strings(); 
        $KH = self::get_empty_strings(); 
        if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"]) || $this->mo_saml_check_empty_or_null($_POST["confirmPassword"])) { 
            goto We; 
        } 
        if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) { 
            goto JT; 
        } 
        if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) { 
            goto fi; 
        } 
        $Op = sanitize_email($_POST["email"]); 
        if (!isset($_POST["phone"])) { 
            goto PU; 
        } 
        $lN = sanitize_text_field($_POST["phone"]); 
        PU: 
        $xN = stripslashes(strip_tags($_POST["password"])); 
        $KH = stripslashes(strip_tags($_POST["confirmPassword"])); 
        goto Fb; 
        fi: 
        update_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.$%^&*-_) should be present."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Fb: 
        goto d0; 
        JT: 
        update_option("mo_saml_message", "Choose a password with minimum length 6."); 
        $this->mo_saml_show_error_message(); 
        return; 
        d0: 
        goto Wu; 
        We: 
        update_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Wu: 
        update_option("mo_saml_admin_email", $Op); 
        update_option("mo_saml_admin_phone", $lN); 
        if (strcmp($xN, $KH) == 0) { 
            goto x1; 
        } 
        update_option("mo_saml_message", "Passwords do not match."); 
        delete_option("mo_saml_verify_customer"); 
        $this->mo_saml_show_error_message(); 
        goto SI; 
        x1: 
        update_option("mo_saml_admin_password", $xN); 
        $Op = get_option("mo_saml_admin_email"); 
        $lF = new CustomerSaml(); 
        $C2 = $lF->check_customer(); 
        if ($C2) { 
            goto fF; 
        } 
        return; 
        fF: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "CUSTOMER_NOT_FOUND") == 0) { 
            goto I3; 
        } 
        $this->get_current_customer(); 
        goto Jd; 
        I3: 
        $C2 = $lF->send_otp_token($Op, ''); 
        if ($C2) { 
            goto PO; 
        } 
        return; 
        PO: 
        $C2 = json_decode($C2, true); 
        if (strcasecmp($C2["status"], "SUCCESS") == 0) { 
            goto sc; 
        } 
        update_option("mo_saml_message", "There was an error in sending email. Please verify your email and try again."); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL"); 
        $this->mo_saml_show_error_message(); 
        goto Mh; 
        sc: 
        update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_email") . ". Please enter the otp here to verify your email."); 
        update_option("mo_saml_transactionId", $C2["txId"]); 
        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL"); 
        $this->mo_saml_show_success_message(); 
        Mh: 
        Jd: 
        SI: 
        lB: 
        goto ef; 
        aP: 
        $H4 = sanitize_text_field($_POST["mo_saml_custom_login_text"]); 
        update_option("mo_saml_custom_login_text", stripcslashes($H4)); 
        $sT = sanitize_text_field($_POST["mo_saml_custom_greeting_text"]); 
        update_option("mo_saml_custom_greeting_text", stripcslashes($sT)); 
        $T_ = sanitize_text_field($_POST["mo_saml_greeting_name"]); 
        update_option("mo_saml_greeting_name", stripslashes($T_)); 
        $ry = sanitize_text_field($_POST["mo_saml_custom_logout_text"]); 
        update_option("mo_saml_custom_logout_text", stripcslashes($ry)); 
        update_option("mo_saml_message", "Widget Settings updated successfully."); 
        $this->mo_saml_show_success_message(); 
        ef: 
        z9: 
        if (mo_saml_is_trial_active()) { 
            goto Hy; 
        } 
        if (site_check()) { 
            goto Dp; 
        } 
        delete_option("mo_saml_force_authentication"); 
        Dp: 
        goto XE; 
        Hy: 
        if (!decryptSamlElement()) { 
            goto h_; 
        } 
        $k3 = get_option("mo_saml_customer_token"); 
        update_option("t_site_status", AESEncryption::encrypt_data("false", $k3)); 
        h_: 
        XE: 
    } 
    function djkasjdksa() 
    { 
        $lv = "!~@#$%^&*()_+|{}<>?0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; 
        $E2 = strlen($lv); 
        $N6 = ''; 
        $lp = 0; 
        XD: 
        if (!($lp < 10000)) { 
            goto MH; 
        } 
        $N6 .= $lv[rand(0, $E2 - 1)]; 
        D4: 
        $lp++; 
        goto XD; 
        MH: 
        return $N6; 
    } 
    function create_customer() 
    { 
        $lF = new CustomerSaml(); 
        $C2 = $lF->create_customer(); 
        if ($C2) { 
            goto gl; 
        } 
        return; 
        gl: 
        $F0 = json_decode($C2, true); 
        if (strcasecmp($F0["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) { 
            goto Xs; 
        } 
        if (!(strcasecmp($F0["status"], "SUCCESS") == 0)) { 
            goto JD; 
        } 
        update_option("mo_saml_admin_customer_key", $F0["id"]); 
        update_option("mo_saml_admin_api_key", $F0["apiKey"]); 
        update_option("mo_saml_customer_token", $F0["token"]); 
        update_option("mo_saml_admin_password", ''); 
        update_option("mo_saml_message", "Thank you for registering with miniorange."); 
        update_option("mo_saml_registration_status", ''); 
        delete_option("mo_saml_verify_customer"); 
        delete_option("mo_saml_new_registration"); 
        $this->mo_saml_show_success_message(); 
        JD: 
        goto v0; 
        Xs: 
        $this->get_current_customer(); 
        v0: 
        update_option("mo_saml_admin_password", ''); 
    } 
    function get_current_customer() 
    { 
        $lF = new CustomerSaml(); 
        $C2 = $lF->get_customer_key(); 
        if ($C2) { 
            goto kv; 
        } 
        return; 
        kv: 
        $F0 = json_decode($C2, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto Gq; 
        } 
        update_option("mo_saml_message", "You already have an account with miniOrange. Please enter a valid password."); 
        update_option("mo_saml_verify_customer", "true"); 
        delete_option("mo_saml_new_registration"); 
        $this->mo_saml_show_error_message(); 
        goto kz; 
        Gq: 
        update_option("mo_saml_admin_customer_key", $F0["id"]); 
        update_option("mo_saml_admin_api_key", $F0["apiKey"]); 
        update_option("mo_saml_customer_token", $F0["token"]); 
        update_option("mo_saml_admin_password", ''); 
        update_option("mo_saml_message", "Your account has been retrieved successfully."); 
        delete_option("mo_saml_verify_customer"); 
        delete_option("mo_saml_new_registration"); 
        $this->mo_saml_show_success_message(); 
        kz: 
    } 
    public function mo_saml_check_empty_or_null($zw) 
    { 
        if (!(!isset($zw) || empty($zw))) { 
            goto Vv; 
        } 
        return true; 
        Vv: 
        return false; 
    } 
    function miniorange_sso_menu() 
    { 
        $JS = add_menu_page("MO SAML Settings " . __("Configure SAML Identity Provider for SSO", "mo_saml_settings"), "miniOrange SAML 2.0 SSO", "administrator", "mo_saml_settings", array($this, "mo_login_widget_saml_options"), plugin_dir_url(__FILE__) . "images/miniorange.png"); 
    } 
    function mo_saml_redirect_for_authentication($yC) 
    { 
        if (!mo_saml_is_customer_license_key_verified()) { 
            goto C5; 
        } 
        if (!(get_option("mo_saml_registered_only_access") == "true")) { 
            goto q2; 
        } 
        $base_url = home_url(); 
        echo "<script>window.location.href='{$base_url}/?option=saml_user_login&redirect_to='+encodeURIComponent(window.location.href);</script>"; 
        die; 
        q2: 
        if (get_option("mo_saml_registered_only_access") == "true" || get_option("mo_saml_enable_login_redirect") == "true") { 
            goto cJ; 
        } 
        if (!(get_option("mo_saml_redirect_to_wp_login") == "true")) { 
            goto Fc; 
        } 
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) { 
            goto Tz; 
        } 
        $WO = site_url() . "/wp-login.php"; 
        if (empty($yC)) { 
            goto Tb; 
        } 
        $WO = $WO . "?redirect_to=" . urlencode($yC) . "&reauth=1"; 
        Tb: 
        header("Location: " . $WO); 
        die; 
        Tz: 
        Fc: 
        goto aB; 
        cJ: 
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) { 
            goto uA; 
        } 
        $Gp = get_option("mo_saml_sp_base_url"); 
        if (!empty($Gp)) { 
            goto af; 
        } 
        $Gp = home_url(); 
        af: 
        if (!(get_option("mo_saml_relay_state") && get_option("mo_saml_relay_state") != '')) { 
            goto K4; 
        } 
        $yC = get_option("mo_saml_relay_state"); 
        K4: 
        $yC = mo_saml_get_relay_state($yC); 
        $ac = empty($yC) ? "/" : $yC; 
        $So = get_option("saml_login_url"); 
        $do = get_option("saml_login_binding_type"); 
        $cf = get_option("mo_saml_force_authentication"); 
        $XR = $Gp . "/"; 
        $zY = get_option("mo_saml_sp_entity_id"); 
        $zT = get_option("saml_nameid_format"); 
        if (!empty($zT)) { 
            goto v5; 
        } 
        $zT = "1.1:nameid-format:unspecified"; 
        v5: 
        if (!empty($zY)) { 
            goto co; 
        } 
        $zY = $Gp . "/wp-content/plugins/miniorange-saml-20-single-sign-on/"; 
        co: 
        $o_ = SAMLSPUtilities::createAuthnRequest($XR, $zY, $So, $cf, $do, $zT); 
        if (empty($do) || $do == "HttpRedirect") { 
            goto C9; 
        } 
        if (!(get_option("saml_request_signed") == "unchecked")) { 
            goto ZX; 
        } 
        $Ji = base64_encode($o_); 
        SAMLSPUtilities::postSAMLRequest($So, $Ji, $ac); 
        die; 
        ZX: 
        $hw = ''; 
        $y9 = ''; 
        $Ji = SAMLSPUtilities::signXML($o_, "NameIDPolicy"); 
        SAMLSPUtilities::postSAMLRequest($So, $Ji, $ac); 
        goto Dw; 
        C9: 
        $U_ = $So; 
        if (strpos($So, "?") !== false) { 
            goto z0; 
        } 
        $U_ .= "?"; 
        goto jn; 
        z0: 
        $U_ .= "&"; 
        jn: 
        if (!(get_option("saml_request_signed") == "unchecked")) { 
            goto ZI; 
        } 
        $U_ .= "SAMLRequest=" . $o_ . "&RelayState=" . urlencode($ac); 
        header("Location: " . $U_); 
        die; 
        ZI: 
        $o_ = "SAMLRequest=" . $o_ . "&RelayState=" . urlencode($ac) . "&SigAlg=" . urlencode(XMLSecurityKey::RSA_SHA256); 
        $b3 = array("type" => "private"); 
        $k3 = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $b3); 
        $Zb = get_option("mo_saml_current_cert_private_key"); 
        $k3->loadKey($Zb, FALSE); 
        $m0 = new XMLSecurityDSig(); 
        $bn = $k3->signData($o_); 
        $bn = base64_encode($bn); 
        $U_ .= $o_ . "&Signature=" . urlencode($bn); 
        header("Location: " . $U_); 
        die; 
        Dw: 
        uA: 
        aB: 
        C5: 
    } 
    function mo_saml_authenticate() 
    { 
        $eT = ''; 
        if (!isset($_REQUEST["redirect_to"])) { 
            goto uf; 
        } 
        $eT = htmlspecialchars($_REQUEST["redirect_to"]); 
        uf: 
        if (!is_user_logged_in()) { 
            goto Rj; 
        } 
        if (!empty($eT)) { 
            goto lA; 
        } 
        header("Location: " . home_url()); 
        goto Ja; 
        lA: 
        header("Location: " . $eT); 
        Ja: 
        die; 
        Rj: 
        if (!(get_option("mo_saml_enable_login_redirect") == "true")) { 
            goto TT; 
        } 
        $WZ = get_option("mo_saml_backdoor_url") ? trim(get_option("mo_saml_backdoor_url")) : "false"; 
        if (isset($_GET["loggedout"]) && $_GET["loggedout"] == "true") { 
            goto V_; 
        } 
        if (get_option("mo_saml_allow_wp_signin") == "true") { 
            goto v4; 
        } 
        goto FO; 
        V_: 
        header("Location: " . home_url()); 
        die; 
        goto FO; 
        v4: 
        if (isset($_GET["saml_sso"]) && $_GET["saml_sso"] === $WZ || isset($_POST["saml_sso"]) && $_POST["saml_sso"] === $WZ) { 
            goto qC; 
        } 
        if (isset($_REQUEST["redirect_to"])) { 
            goto M7; 
        } 
        goto Ij; 
        qC: 
        return; 
        goto Ij; 
        M7: 
        $eT = htmlspecialchars($_REQUEST["redirect_to"]); 
        if (!(strpos($eT, "wp-admin") !== false && strpos($eT, "saml_sso=" . $WZ) !== false)) { 
            goto uv; 
        } 
        return; 
        uv: 
        Ij: 
        FO: 
        $this->mo_saml_redirect_for_authentication($eT); 
        TT: 
    } 
    function mo_saml_auto_redirect() 
    { 
        if (!current_user_can("read")) { 
            goto Wc; 
        } 
        return; 
        Wc: 
        if (!(get_option("mo_saml_registered_only_access") == "true" || get_option("mo_saml_redirect_to_wp_login") == "true")) { 
            goto C6; 
        } 
        if (!(get_option("mo_saml_enable_rss_access") == "true" && is_feed())) { 
            goto uj; 
        } 
        return; 
        uj: 
        $yC = saml_get_current_page_url(); 
        $this->mo_saml_redirect_for_authentication($yC); 
        C6: 
    } 
    function mo_saml_modify_login_form() 
    { 
        $WZ = get_option("mo_saml_backdoor_url") ? trim(get_option("mo_saml_backdoor_url")) : "false"; 
        echo "<input type="hidden" name="saml_sso" value=" . $WZ . ">" . "
"; 
        if (!(get_option("mo_saml_add_sso_button_wp") == "true")) { 
            goto RK; 
        } 
        $this->mo_saml_add_sso_button(); 
        RK: 
    } 
    function mo_saml_login_enqueue_scripts() 
    { 
        wp_enqueue_script("jquery"); 
    } 
    function mo_saml_add_sso_button() 
    { 
        if (is_user_logged_in()) { 
            goto cs; 
        } 
        $Gp = get_option("mo_saml_sp_base_url"); 
        if (!empty($Gp)) { 
            goto YJ; 
        } 
        $Gp = home_url(); 
        YJ: 
        $fe = get_option("mo_saml_button_width") ? get_option("mo_saml_button_width") : "100"; 
        $oM = get_option("mo_saml_button_height") ? get_option("mo_saml_button_height") : "50"; 
        $Pq = get_option("mo_saml_button_size") ? get_option("mo_saml_button_size") : "50"; 
        $X_ = get_option("mo_saml_button_curve") ? get_option("mo_saml_button_curve") : "5"; 
        $Uu = get_option("mo_saml_button_color") ? get_option("mo_saml_button_color") : "0085ba"; 
        $MF = get_option("mo_saml_button_theme") ? get_option("mo_saml_button_theme") : "longbutton"; 
        $D7 = get_option("mo_saml_button_text") ? get_option("mo_saml_button_text") : (get_option("saml_identity_name") ? get_option("saml_identity_name") : "Login"); 
        $Ob = get_option("mo_saml_font_color") ? get_option("mo_saml_font_color") : "ffffff"; 
        $Gj = get_option("mo_saml_font_size") ? get_option("mo_saml_font_size") : "20"; 
        $b1 = get_option("sso_button_login_form_position") ? get_option("sso_button_login_form_position") : "above"; 
        $fQ = "<input type="button" name="mo_saml_wp_sso_button" value="" . $D7 . "" style=""; 
        $EU = ''; 
        if ($MF == "longbutton") { 
            goto BW; 
        } 
        if ($MF == "circle") { 
            goto QL; 
        } 
        if ($MF == "oval") { 
            goto x9; 
        } 
        if ($MF == "square") { 
            goto nm; 
        } 
        goto ua; 
        QL: 
        $EU = $EU . "width:" . $Pq . "px;"; 
        $EU = $EU . "height:" . $Pq . "px;"; 
        $EU = $EU . "border-radius:999px;"; 
        goto ua; 
        x9: 
        $EU = $EU . "width:" . $Pq . "px;"; 
        $EU = $EU . "height:" . $Pq . "px;"; 
        $EU = $EU . "border-radius:5px;"; 
        goto ua; 
        nm: 
        $EU = $EU . "width:" . $Pq . "px;"; 
        $EU = $EU . "height:" . $Pq . "px;"; 
        $EU = $EU . "border-radius:0px;"; 
        $EU = $EU . "padding:0px;"; 
        ua: 
        goto Cb; 
        BW: 
        $EU = $EU . "width:" . $fe . "px;"; 
        $EU = $EU . "height:" . $oM . "px;"; 
        $EU = $EU . "border-radius:" . $X_ . "px;"; 
        Cb: 
        $EU = $EU . "background-color:#" . $Uu . ";"; 
        $EU = $EU . "border-color:transparent;"; 
        $EU = $EU . "color:#" . $Ob . ";"; 
        $EU = $EU . "font-size:" . $Gj . "px;"; 
        $EU = $EU . "cursor:pointer"; 
        $fQ = $fQ . $EU . ""/>"; 
        $eT = ''; 
        if (!isset($_GET["redirect_to"])) { 
            goto XZ; 
        } 
        $eT = urlencode($_GET["redirect_to"]); 
        XZ: 
        $MP = "<a href="" . $Gp . "/?option=saml_user_login&redirect_to=" . $eT . "" style="text-decoration:none;">" . $fQ . "</a>"; 
        $MP = "<div style="padding:10px;">" . $MP . "</div>"; 
        if ($b1 == "above") { 
            goto lK; 
        } 
        $MP = "<div id="sso_button" style="text-align:center"><div style="padding:5px;font-size:14px;"><b>OR</b></div>" . $MP . "</div><br/>"; 
        goto zz; 
        lK: 
        $MP = "<div id="sso_button" style="text-align:center">" . $MP . "<div style="padding:5px;font-size:14px;"><b>OR</b></div></div><br/>"; 
        $MP = $MP . "<script>
	\x9	var $element = jQuery("#user_login");\xa	\x9\x9jQuery("#sso_button").insertBefore(jQuery("label[for='"+$element.attr('id')+"']"));\xa			</script>"; 
        zz: 
        echo $MP; 
        cs: 
    } 
    function mo_get_saml_shortcode() 
    { 
        if (!is_user_logged_in()) { 
            goto mt; 
        } 
        $current_user = wp_get_current_user(); 
        $sT = "Hello,"; 
        if (!get_option("mo_saml_custom_greeting_text")) { 
            goto tr; 
        } 
        $sT = get_option("mo_saml_custom_greeting_text"); 
        tr: 
        $T_ = ''; 
        if (!get_option("mo_saml_greeting_name")) { 
            goto QJ; 
        } 
        switch (get_option("mo_saml_greeting_name")) { 
            case "USERNAME": 
                $T_ = $current_user->user_login; 
                goto JU; 
            case "EMAIL": 
                $T_ = $current_user->user_email; 
                goto JU; 
            case "FNAME": 
                $T_ = $current_user->user_firstname; 
                goto JU; 
            case "LNAME": 
                $T_ = $current_user->user_lastname; 
                goto JU; 
            case "FNAME_LNAME": 
                $T_ = $current_user->user_firstname . " " . $current_user->user_lastname; 
                goto JU; 
            case "LNAME_FNAME": 
                $T_ = $current_user->user_lastname . " " . $current_user->user_firstname; 
                goto JU; 
            default: 
                $T_ = $current_user->user_login; 
        } 
        j1: 
        JU: 
        QJ: 
        $T_ = trim($T_); 
        if (!empty($T_)) { 
            goto hw; 
        } 
        $T_ = $current_user->user_login; 
        hw: 
        $d_ = $sT . " " . $T_; 
        $yA = "Logout"; 
        if (!get_option("mo_saml_custom_logout_text")) { 
            goto wD; 
        } 
        $yA = get_option("mo_saml_custom_logout_text"); 
        wD: 
        $MP = $d_ . " | <a href="" . wp_logout_url(home_url()) . "" title="logout" >" . $yA . "</a></li>"; 
        goto F_; 
        mt: 
        $Gp = get_option("mo_saml_sp_base_url"); 
        if (!empty($Gp)) { 
            goto sm; 
        } 
        $Gp = home_url(); 
        sm: 
        if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) { 
            goto gL; 
        } 
        $MP = "SP is not configured."; 
        goto OY; 
        gL: 
        $g2 = "Login with " . get_option("saml_identity_name"); 
        if (!get_option("mo_saml_custom_login_text")) { 
            goto sX; 
        } 
        $g2 = get_option("mo_saml_custom_login_text"); 
        sX: 
        $Rs = get_option("saml_identity_name"); 
        $g2 = str_replace("##IDP##", $Rs, $g2); 
        $iP = false; 
        if (!get_option("mo_saml_use_button_as_shortcode")) { 
            goto dB; 
        } 
        if (!(get_option("mo_saml_use_button_as_shortcode") == "true")) { 
            goto PZ; 
        } 
        $iP = true; 
        PZ: 
        dB: 
        if (!$iP) { 
            goto HP; 
        } 
        $fe = get_option("mo_saml_button_width") ? get_option("mo_saml_button_width") : "100"; 
        $oM = get_option("mo_saml_button_height") ? get_option("mo_saml_button_height") : "50"; 
        $Pq = get_option("mo_saml_button_size") ? get_option("mo_saml_button_size") : "50"; 
        $X_ = get_option("mo_saml_button_curve") ? get_option("mo_saml_button_curve") : "5"; 
        $Uu = get_option("mo_saml_button_color") ? get_option("mo_saml_button_color") : "0085ba"; 
        $MF = get_option("mo_saml_button_theme") ? get_option("mo_saml_button_theme") : "longbutton"; 
        $D7 = get_option("mo_saml_button_text") ? get_option("mo_saml_button_text") : (get_option("saml_identity_name") ? get_option("saml_identity_name") : "Login"); 
        $Ob = get_option("mo_saml_font_color") ? get_option("mo_saml_font_color") : "ffffff"; 
        $Gj = get_option("mo_saml_font_size") ? get_option("mo_saml_font_size") : "20"; 
        $g2 = "<input type="button" name="mo_saml_wp_sso_button" value="" . $D7 . "" style=""; 
        $EU = ''; 
        if ($MF == "longbutton") { 
            goto TM; 
        } 
        if ($MF == "circle") { 
            goto oC; 
        } 
        if ($MF == "oval") { 
            goto uq; 
        } 
        if ($MF == "square") { 
            goto g9; 
        } 
        goto w6; 
        oC: 
        $EU = $EU . "width:" . $Pq . "px;"; 
        $EU = $EU . "height:" . $Pq . "px;"; 
        $EU = $EU . "border-radius:999px;"; 
        goto w6; 
        uq: 
        $EU = $EU . "width:" . $Pq . "px;"; 
        $EU = $EU . "height:" . $Pq . "px;"; 
        $EU = $EU . "border-radius:5px;"; 
        goto w6; 
        g9: 
        $EU = $EU . "width:" . $Pq . "px;"; 
        $EU = $EU . "height:" . $Pq . "px;"; 
        $EU = $EU . "border-radius:0px;"; 
        w6: 
        goto w4; 
        TM: 
        $EU = $EU . "width:" . $fe . "px;"; 
        $EU = $EU . "height:" . $oM . "px;"; 
        $EU = $EU . "border-radius:" . $X_ . "px;"; 
        w4: 
        $EU = $EU . "background-color:#" . $Uu . ";"; 
        $EU = $EU . "border-color:transparent;"; 
        $EU = $EU . "color:#" . $Ob . ";"; 
        $EU = $EU . "font-size:" . $Gj . "px;"; 
        $EU = $EU . "padding:0px;"; 
        $g2 = $g2 . $EU . ""/>"; 
        HP: 
        $eT = urlencode(saml_get_current_page_url()); 
        $MP = "<a href="" . $Gp . "/?option=saml_user_login&redirect_to=" . $eT . """; 
        if (!$iP) { 
            goto zp; 
        } 
        $MP = $MP . "style="text-decoration:none;""; 
        zp: 
        $MP = $MP . ">" . $g2 . "</a>"; 
        OY: 
        F_: 
        return $MP; 
    } 
    function _handle_upload_metadata() 
    { 
        if (!(isset($_FILES["metadata_file"]) || isset($_POST["metadata_url"]))) { 
            goto Lj; 
        } 
        if (!empty($_FILES["metadata_file"]["tmp_name"])) { 
            goto b4; 
        } 
        if (mo_saml_is_extension_installed("curl")) { 
            goto oL; 
        } 
        update_option("mo_saml_message", "PHP cURL extension is not installed or disabled. Cannot fetch metadata from URL."); 
        $this->mo_saml_show_error_message(); 
        return; 
        oL: 
        $WO = filter_var(htmlspecialchars($_POST["metadata_url"]), FILTER_SANITIZE_URL); 
        $rQ = SAMLSPUtilities::mo_saml_wp_remote_call($WO, array("sslverify" => false), true); 
        if (!$rQ) { 
            goto Ai; 
        } 
        $eU = $rQ; 
        goto vK; 
        Ai: 
        return; 
        vK: 
        if (isset($_POST["sync_metadata"])) { 
            goto C_; 
        } 
        delete_option("saml_metadata_url_for_sync"); 
        delete_option("saml_metadata_sync_interval"); 
        wp_unschedule_event(wp_next_scheduled("metadata_sync_cron_action"), "metadata_sync_cron_action"); 
        goto d5; 
        C_: 
        update_option("saml_metadata_url_for_sync", htmlspecialchars($_POST["metadata_url"])); 
        update_option("saml_metadata_sync_interval", htmlspecialchars($_POST["sync_interval"])); 
        if (wp_next_scheduled("metadata_sync_cron_action")) { 
            goto iJ; 
        } 
        wp_schedule_event(time(), htmlspecialchars($_POST["sync_interval"]), "metadata_sync_cron_action"); 
        iJ: 
        d5: 
        goto Vc; 
        b4: 
        $eU = @file_get_contents($_FILES["metadata_file"]["tmp_name"]); 
        Vc: 
        $this->upload_metadata($eU); 
        Lj: 
    } 
    function upload_metadata($eU) 
    { 
        $rB = set_error_handler(array($this, "handleXmlError")); 
        $X8 = new DOMDocument(); 
        $X8->loadXML($eU); 
        restore_error_handler(); 
        $HT = $X8->firstChild; 
        if (!empty($HT)) { 
            goto vH; 
        } 
        if (!empty($_FILES["metadata_file"]["tmp_name"])) { 
            goto Bp; 
        } 
        if (!empty($_POST["metadata_url"])) { 
            goto M0; 
        } 
        update_option("mo_saml_message", "Please provide a valid metadata file or a valid URL."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto lP; 
        M0: 
        update_option("mo_saml_message", "Please provide a valid metadata URL."); 
        $this->mo_saml_show_error_message(); 
        lP: 
        goto s2; 
        Bp: 
        update_option("mo_saml_message", "Please provide a valid metadata file."); 
        $this->mo_saml_show_error_message(); 
        s2: 
        goto Ve; 
        vH: 
        $m5 = new IDPMetadataReader($X8); 
        $mf = $m5->getIdentityProviders(); 
        if (!empty($mf)) { 
            goto I7; 
        } 
        update_option("mo_saml_message", "Please provide a valid metadata file."); 
        $this->mo_saml_show_error_message(); 
        return; 
        I7: 
        foreach ($mf as $k3 => $uW) { 
            $td = get_option("saml_identity_name"); 
            if (!isset($_POST["saml_identity_metadata_provider"])) { 
                goto Vg; 
            } 
            $td = htmlspecialchars($_POST["saml_identity_metadata_provider"]); 
            Vg: 
            $xP = "HttpRedirect"; 
            $YE = ''; 
            if (array_key_exists("HTTP-Redirect", $uW->getLoginDetails())) { 
                goto MA; 
            } 
            if (!array_key_exists("HTTP-POST", $uW->getLoginDetails())) { 
                goto AB; 
            } 
            $xP = "HttpPost"; 
            $YE = $uW->getLoginURL("HTTP-POST"); 
            AB: 
            goto dI; 
            MA: 
            $YE = $uW->getLoginURL("HTTP-Redirect"); 
            dI: 
            $nq = "HttpRedirect"; 
            $AC = ''; 
            if (array_key_exists("HTTP-Redirect", $uW->getLogoutDetails())) { 
                goto Iu; 
            } 
            if (!array_key_exists("HTTP-POST", $uW->getLogoutDetails())) { 
                goto xm; 
            } 
            $nq = "HttpPost"; 
            $AC = $uW->getLogoutURL("HTTP-POST"); 
            xm: 
            goto LT; 
            Iu: 
            $AC = $uW->getLogoutURL("HTTP-Redirect"); 
            LT: 
            $kH = $uW->getEntityID(); 
            $Ay = $uW->getSigningCertificate(); 
            update_option("saml_identity_name", $td); 
            update_option("saml_login_binding_type", $xP); 
            update_option("saml_login_url", $YE); 
            update_option("saml_logout_binding_type", $nq); 
            update_option("saml_logout_url", $AC); 
            update_option("saml_issuer", $kH); 
            update_option("saml_nameid_format", "1.1:nameid-format:unspecified"); 
            update_option("saml_x509_certificate", maybe_serialize($Ay)); 
            goto CU; 
            qZ: 
        } 
        CU: 
        update_option("mo_saml_message", "Identity Provider details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        Ve: 
    } 
    function handleXmlError($CI, $d3, $Ro, $cZ) 
    { 
        if ($CI == E_WARNING && substr_count($d3, "DOMDocument::loadXML()") > 0) { 
            goto aJ; 
        } 
        return false; 
        goto gW; 
        aJ: 
        return; 
        gW: 
    } 
    function mo_saml_plugin_action_links($zX) 
    { 
        $zX = array_merge(array("<a href="" . esc_url(admin_url("admin.php?page=mo_saml_settings")) . "">" . __("Settings", "textdomain") . "</a>"), $zX); 
        return $zX; 
    } 
    function checkPasswordPattern($xN) 
    { 
        $Y8 = "/^[(\w)*(\!\@\#\$\%\^\&\*\.\-\_)*]+$/"; 
        return !preg_match($Y8, $xN); 
    } 
} 
new saml_mo_login(); 
 ?>

Did this file decode correctly?

Original Code

<?php
/*
Plugin Name: miniOrange SSO using SAML 2.0
Plugin URI: http://miniorange.com/
Description: (Premium Single-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 12.0.1
Author: miniOrange
Author URI: http://miniorange.com/
*/


include_once dirname(__FILE__) . "\57\155\157\x5f\154\157\x67\x69\x6e\137\x73\x61\x6d\x6c\137\163\163\x6f\137\167\x69\144\x67\x65\x74\56\160\x68\160";
include_once "\170\x6d\154\x73\145\x63\154\x69\142\163\56\x70\150\160";
use RobRichards\XMLSecLibs\XMLSecurityKey;
use RobRichards\XMLSecLibs\XMLSecurityDSig;
use RobRichards\XMLSecLibs\XMLSecEnc;
require "\x6d\x6f\x2d\163\141\155\x6c\55\x63\x6c\x61\x73\x73\55\143\165\x73\164\157\155\145\x72\56\x70\150\x70";
require "\x6d\x6f\x5f\x73\x61\x6d\154\x5f\x73\x65\164\164\151\x6e\147\x73\x5f\x70\141\147\x65\56\x70\150\160";
require "\x4d\x65\164\x61\144\x61\x74\x61\122\145\x61\144\x65\x72\x2e\x70\150\160";
require "\x63\145\162\x74\151\146\x69\x63\141\164\x65\137\165\x74\x69\x6c\151\164\x79\x2e\x70\x68\160";
require_once "\x6d\x6f\x2d\163\x61\x6d\154\55\160\154\x75\147\x69\x6e\55\166\x65\162\x73\x69\157\156\x2d\165\160\x64\141\x74\145\x2e\160\150\160";
class saml_mo_login
{
    function __construct()
    {
        add_action("\x61\144\x6d\x69\156\x5f\155\145\x6e\165", array($this, "\x6d\x69\156\x69\157\162\141\x6e\x67\x65\x5f\163\x73\157\137\x6d\145\x6e\165"));
        add_action("\141\x64\x6d\151\x6e\x5f\x69\156\x69\x74", array($this, "\155\x69\156\x69\x6f\x72\x61\156\x67\x65\x5f\x6c\x6f\x67\x69\156\137\167\x69\144\147\x65\164\137\x73\x61\x6d\154\x5f\163\141\166\145\137\163\145\x74\x74\151\x6e\147\163"));
        add_action("\x61\144\155\x69\x6e\137\145\156\161\165\x65\x75\145\x5f\x73\x63\162\151\160\164\x73", array($this, "\160\154\165\147\x69\156\x5f\163\145\x74\x74\x69\x6e\x67\163\137\x73\x74\x79\154\x65"));
        register_deactivation_hook(__FILE__, array($this, "\x6d\157\x5f\x73\x73\x6f\137\x73\141\155\154\x5f\x64\x65\141\143\164\151\166\x61\x74\145"));
        add_action("\x61\x64\x6d\x69\156\x5f\145\x6e\161\165\145\165\145\x5f\x73\x63\x72\151\160\164\163", array($this, "\160\154\165\147\151\x6e\x5f\163\x65\164\164\151\x6e\x67\x73\137\x73\x63\162\151\160\164"));
        remove_action("\141\x64\155\151\x6e\x5f\x6e\157\x74\x69\143\x65\x73", array($this, "\155\x6f\137\163\x61\x6d\154\x5f\x73\165\143\143\x65\163\x73\x5f\x6d\x65\x73\163\141\147\x65"));
        remove_action("\x61\x64\x6d\151\x6e\x5f\156\157\164\151\x63\x65\x73", array($this, "\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\145\x72\x72\157\162\137\x6d\145\x73\x73\141\147\x65"));
        add_action("\167\160\x5f\141\165\164\150\145\x6e\x74\151\x63\x61\x74\145", array($this, "\155\157\137\163\141\x6d\154\x5f\x61\165\x74\150\145\x6e\x74\151\143\141\x74\145"));
        add_action("\x77\x70", array($this, "\155\157\137\163\x61\155\x6c\x5f\141\165\164\x6f\x5f\162\x65\x64\x69\162\x65\143\x74"));
        $Nc = new mo_login_wid();
        add_filter("\x6c\x6f\147\x6f\x75\x74\x5f\162\x65\x64\x69\162\145\x63\164", array($Nc, "\155\157\x5f\x73\x61\155\x6c\x5f\154\x6f\147\x6f\x75\x74"), 10, 3);
        add_action("\x69\156\x69\164", array($Nc, "\x6d\157\x5f\163\x61\155\154\137\x77\151\144\147\145\x74\137\151\156\x69\164"));
        add_action("\141\x64\x6d\x69\156\137\x69\x6e\151\164", "\x6d\x6f\137\x73\x61\x6d\154\137\144\x6f\167\x6e\x6c\157\x61\x64");
        add_action("\154\157\x67\151\x6e\x5f\x65\x6e\x71\165\x65\x75\x65\137\x73\143\x72\x69\x70\x74\x73", array($this, "\x6d\157\x5f\x73\x61\155\154\137\154\157\x67\151\x6e\x5f\x65\156\161\x75\x65\x75\145\137\163\143\x72\151\160\x74\163"));
        add_action("\154\157\147\x69\x6e\137\x66\157\162\x6d", array($this, "\155\x6f\137\163\x61\x6d\x6c\137\x6d\157\x64\x69\x66\171\137\x6c\157\x67\151\x6e\x5f\146\x6f\162\x6d"));
        add_shortcode("\x4d\117\137\123\101\x4d\114\137\x46\x4f\122\x4d", array($this, "\155\x6f\137\x67\145\164\x5f\163\x61\x6d\x6c\137\x73\x68\157\x72\x74\143\157\x64\145"));
        add_filter("\143\162\157\156\137\x73\x63\150\x65\144\x75\x6c\145\163", array($this, "\155\171\x70\x72\145\x66\x69\x78\x5f\x61\x64\144\x5f\x63\162\x6f\156\x5f\x73\143\x68\x65\x64\x75\154\x65"));
        add_action("\x6d\x65\x74\x61\x64\141\x74\x61\137\x73\171\x6e\x63\x5f\x63\x72\x6f\x6e\137\x61\143\x74\151\x6f\x6e", array($this, "\x6d\x65\164\x61\x64\x61\x74\141\137\163\171\156\x63\137\143\162\157\156\x5f\141\x63\x74\151\157\156"));
        register_activation_hook(__FILE__, array($this, "\x6d\x6f\x5f\x73\x61\155\154\x5f\143\150\145\x63\153\x5f\x6f\160\145\156\163\x73\154"));
        add_action("\160\x6c\x75\147\151\x6e\x5f\x61\x63\x74\151\157\156\x5f\x6c\x69\x6e\x6b\163\x5f" . plugin_basename(__FILE__), array($this, "\155\x6f\137\163\141\155\154\137\x70\154\x75\x67\151\156\137\x61\x63\x74\151\157\156\x5f\x6c\151\156\x6b\163"));
        add_action("\x61\144\155\151\156\137\151\x6e\x69\164", array($this, "\x64\x65\146\x61\165\154\164\137\143\145\162\x74\151\146\x69\x63\x61\x74\145"));
        add_option("\154\x63\144\152\153\141\x73\x6a\144\153\x73\x61\x63\154", "\144\x65\146\x61\165\x6c\164\x2d\x63\145\x72\x74\151\x66\151\143\141\x74\145");
        add_filter("\155\141\x6e\141\147\145\x5f\x75\x73\x65\162\x73\x5f\x63\157\x6c\x75\x6d\x6e\163", array($this, "\x6d\157\137\163\x61\155\x6c\137\x63\165\x73\x74\x6f\155\137\x61\164\x74\162\x5f\143\157\x6c\x75\x6d\156"));
        add_action("\155\141\x6e\141\x67\x65\137\x75\163\x65\x72\163\x5f\143\165\x73\164\x6f\x6d\x5f\143\157\154\x75\x6d\156", array($this, "\155\x6f\137\x73\x61\x6d\154\x5f\141\x74\164\162\x5f\143\x6f\x6c\165\x6d\156\137\143\157\156\164\145\x6e\164"), 10, 3);
    }
    function default_certificate()
    {
        $em = file_get_contents(plugin_dir_path(__FILE__) . "\x72\145\163\x6f\165\162\143\x65\x73" . DIRECTORY_SEPARATOR . "\x73\160\x2d\143\145\162\x74\151\x66\151\143\141\164\x65\56\143\x72\x74");
        $xn = file_get_contents(plugin_dir_path(__FILE__) . "\162\145\163\157\x75\162\x63\145\163" . DIRECTORY_SEPARATOR . "\163\x70\x2d\153\145\x79\56\153\145\171");
        add_option("\x6d\157\137\x73\x61\155\154\137\143\145\x72\164", $em);
        add_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\143\x65\162\x74\137\x70\x72\x69\166\141\x74\x65\x5f\153\x65\171", $xn);
        if (!(!get_option("\155\x6f\137\163\x61\x6d\154\x5f\x63\x75\x72\x72\x65\x6e\x74\137\143\x65\x72\x74") && !get_option("\155\157\137\x73\x61\x6d\154\x5f\x63\x75\162\162\x65\156\x74\137\143\x65\x72\164\x5f\160\x72\x69\x76\141\x74\x65\137\x6b\145\171"))) {
            goto v8;
        }
        update_option("\155\157\137\163\141\x6d\x6c\137\x63\x75\162\162\x65\156\164\137\x63\x65\162\x74", $em);
        update_option("\x6d\157\x5f\163\x61\155\x6c\x5f\x63\x75\x72\x72\x65\156\x74\137\143\x65\162\164\137\160\x72\x69\x76\x61\164\145\137\153\145\x79", $xn);
        v8:
    }
    function mo_saml_check_openssl()
    {
        if (mo_saml_is_extension_installed("\x6f\160\145\156\x73\x73\154")) {
            goto XO;
        }
        wp_die("\x50\110\120\x20\x6f\160\145\x6e\163\x73\x6c\40\145\170\x74\x65\x6e\163\x69\x6f\156\x20\151\163\x20\x6e\157\164\40\151\x6e\163\164\141\x6c\x6c\145\x64\x20\157\x72\40\x64\151\163\x61\142\x6c\145\x64\x2c\160\x6c\x65\x61\x73\145\x20\145\156\x61\x62\x6c\x65\40\151\164\x20\x74\x6f\x20\141\143\164\151\x76\141\164\145\40\164\150\145\x20\160\x6c\x75\x67\x69\x6e\x2e");
        XO:
        add_option("\101\143\164\151\x76\x61\164\x65\144\x5f\120\154\165\147\151\156", "\x50\154\x75\x67\x69\x6e\55\123\154\x75\147");
    }
    function myprefix_add_cron_schedule($Yu)
    {
        $Yu["\x77\x65\145\153\154\171"] = array("\151\156\x74\145\162\166\x61\x6c" => 604800, "\x64\151\x73\160\154\141\x79" => __("\117\x6e\143\145\40\x57\x65\145\x6b\x6c\x79"));
        $Yu["\155\x6f\156\164\x68\154\171"] = array("\151\x6e\x74\x65\x72\x76\x61\154" => 2635200, "\144\x69\x73\x70\x6c\x61\x79" => __("\117\156\x63\145\40\x4d\x6f\x6e\164\150\154\x79"));
        return $Yu;
    }
    function metadata_sync_cron_action()
    {
        error_log("\155\x69\156\151\157\162\x61\156\x67\145\40\72\40\x52\101\x4e\x20\x53\x59\x4e\103\x20\55\40" . time());
        $td = get_option("\x73\x61\155\x6c\137\151\144\145\x6e\x74\x69\164\171\x5f\156\141\x6d\x65");
        $this->upload_metadata(@file_get_contents(get_option("\x73\141\x6d\x6c\137\155\145\x74\141\144\x61\x74\141\x5f\165\x72\154\137\146\x6f\x72\x5f\x73\171\x6e\143")));
        update_option("\163\x61\x6d\154\137\151\x64\145\x6e\164\151\164\171\137\x6e\141\x6d\145", $td);
    }
    function mo_login_widget_saml_options()
    {
        global $wpdb;
        update_option("\x6d\x6f\137\163\x61\x6d\154\x5f\x68\x6f\x73\164\x5f\156\x61\155\145", "\150\x74\x74\160\163\72\57\57\154\157\x67\151\156\56\x78\x65\143\x75\x72\x69\x66\x79\x2e\x63\x6f\155");
        $pD = get_option("\x6d\x6f\137\x73\141\x6d\154\x5f\150\157\163\164\137\x6e\141\155\x65");
        mo_register_saml_sso();
    }
    function mo_saml_success_message()
    {
        $kk = "\x65\162\162\x6f\x72";
        $Ew = get_option("\155\157\x5f\x73\141\x6d\x6c\x5f\x6d\x65\x73\x73\x61\x67\145");
        echo "\74\x64\151\166\40\143\x6c\x61\x73\163\x3d\47" . $kk . "\x27\x3e\40\x3c\x70\x3e" . $Ew . "\x3c\x2f\160\76\74\x2f\144\x69\x76\76";
    }
    function mo_saml_error_message()
    {
        $kk = "\x75\160\x64\x61\x74\x65\x64";
        $Ew = get_option("\155\x6f\137\x73\x61\x6d\154\137\x6d\x65\163\163\141\147\x65");
        echo "\74\144\x69\x76\40\x63\x6c\x61\x73\163\x3d\47" . $kk . "\x27\76\x20\x3c\x70\76" . $Ew . "\74\x2f\160\76\x3c\x2f\x64\151\166\x3e";
    }
    public function mo_sso_saml_deactivate()
    {
        if (!is_multisite()) {
            goto pG;
        }
        global $wpdb;
        $TH = $wpdb->get_col("\123\105\114\105\x43\x54\40\142\154\x6f\147\x5f\151\x64\x20\x46\x52\117\x4d\40{$wpdb->blogs}");
        $FR = get_current_blog_id();
        do_action("\x6d\157\137\x73\141\155\154\137\x66\x6c\165\163\150\137\x63\141\x63\150\x65");
        foreach ($TH as $blog_id) {
            switch_to_blog($blog_id);
            delete_option("\x6d\157\137\163\x61\155\x6c\x5f\x68\x6f\x73\x74\x5f\x6e\x61\x6d\145");
            delete_option("\x6d\x6f\137\x73\x61\155\154\x5f\156\x65\167\137\x72\145\x67\151\x73\x74\x72\141\x74\151\x6f\x6e");
            delete_option("\x6d\157\137\163\141\x6d\x6c\x5f\x61\x64\x6d\x69\156\x5f\x70\150\x6f\156\145");
            delete_option("\155\157\137\x73\x61\155\154\x5f\x61\144\155\x69\156\x5f\x70\141\163\163\167\157\162\x64");
            delete_option("\x6d\x6f\x5f\163\141\155\x6c\x5f\166\145\x72\151\x66\x79\x5f\143\x75\x73\x74\157\155\145\x72");
            delete_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\141\144\155\x69\156\137\143\x75\x73\164\x6f\155\x65\x72\x5f\153\145\x79");
            delete_option("\x6d\157\137\163\x61\x6d\x6c\137\141\144\155\x69\156\x5f\141\x70\151\137\153\145\171");
            delete_option("\155\157\137\x73\141\x6d\x6c\x5f\x63\x75\x73\x74\x6f\155\x65\162\137\164\x6f\x6b\x65\x6e");
            delete_option("\155\157\x5f\x73\x61\155\154\137\x6d\145\163\163\x61\x67\x65");
            delete_option("\x6d\157\137\x73\x61\155\x6c\137\162\x65\147\x69\163\x74\162\x61\164\x69\157\156\137\x73\x74\141\x74\x75\163");
            delete_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\x69\x64\x70\x5f\143\157\156\146\151\147\137\x63\157\155\x70\154\145\x74\x65");
            delete_option("\x6d\x6f\x5f\x73\141\155\154\137\164\162\141\x6e\x73\x61\143\x74\151\x6f\156\111\x64");
            delete_option("\166\154\x5f\x63\150\145\x63\153\137\164");
            delete_option("\166\x6c\137\143\150\145\x63\x6b\x5f\163");
            lC:
        }
        Ty:
        switch_to_blog($FR);
        goto k3;
        pG:
        do_action("\155\x6f\x5f\163\x61\155\x6c\x5f\x66\154\165\163\x68\x5f\x63\x61\x63\x68\x65");
        delete_option("\x6d\157\137\163\x61\x6d\154\137\x68\157\x73\x74\137\x6e\141\155\145");
        delete_option("\155\157\x5f\163\x61\x6d\x6c\137\x6e\x65\x77\137\x72\145\147\151\x73\x74\162\x61\164\x69\x6f\x6e");
        delete_option("\x6d\157\137\163\x61\155\154\x5f\x61\x64\155\151\156\137\160\x68\x6f\156\x65");
        delete_option("\155\157\137\x73\141\x6d\x6c\x5f\x61\144\x6d\151\x6e\x5f\160\141\x73\x73\x77\157\x72\x64");
        delete_option("\155\x6f\x5f\163\x61\x6d\154\137\166\x65\162\151\x66\171\x5f\143\165\163\164\157\155\x65\162");
        delete_option("\x6d\x6f\x5f\163\x61\155\154\137\x61\144\155\151\x6e\x5f\x63\x75\x73\164\157\155\x65\x72\x5f\153\x65\171");
        delete_option("\x6d\157\x5f\x73\141\155\154\x5f\x61\144\155\x69\x6e\x5f\141\x70\151\x5f\x6b\x65\171");
        delete_option("\155\x6f\137\163\141\x6d\x6c\x5f\143\x75\x73\164\x6f\155\x65\x72\137\164\157\153\x65\156");
        delete_option("\155\157\x5f\163\141\155\154\137\155\145\x73\163\141\147\145");
        delete_option("\x6d\157\x5f\163\x61\x6d\154\137\x72\145\x67\x69\163\164\x72\x61\164\151\x6f\156\137\163\164\x61\x74\165\x73");
        delete_option("\x6d\x6f\x5f\x73\141\155\154\137\x69\x64\x70\137\x63\157\x6e\146\x69\147\137\x63\157\155\160\x6c\x65\x74\145");
        delete_option("\155\157\x5f\x73\141\155\x6c\137\164\x72\x61\x6e\163\x61\143\164\151\157\x6e\x49\144");
        delete_option("\155\x6f\137\163\x61\x6d\x6c\137\145\156\x61\x62\154\x65\137\143\x6c\157\165\144\x5f\x62\x72\x6f\x6b\145\x72");
        delete_option("\166\x6c\137\143\x68\145\143\153\137\x74");
        delete_option("\166\154\x5f\143\150\145\143\153\x5f\163");
        k3:
    }
    function mo_saml_show_success_message()
    {
        remove_action("\141\x64\155\151\x6e\x5f\x6e\x6f\x74\x69\x63\145\163", array($this, "\x6d\157\137\x73\141\x6d\154\x5f\x73\165\x63\143\x65\163\163\137\x6d\x65\x73\x73\141\x67\145"));
        add_action("\x61\144\x6d\x69\x6e\137\156\x6f\164\x69\143\145\x73", array($this, "\155\x6f\137\x73\x61\x6d\154\x5f\145\162\x72\157\x72\137\x6d\145\x73\x73\x61\x67\x65"));
    }
    function mo_saml_show_error_message()
    {
        remove_action("\x61\x64\155\151\x6e\137\156\x6f\164\x69\143\145\163", array($this, "\155\157\x5f\x73\141\155\x6c\137\145\162\x72\157\162\x5f\155\145\163\163\141\147\x65"));
        add_action("\x61\144\155\151\x6e\137\x6e\x6f\x74\151\x63\145\163", array($this, "\155\x6f\x5f\163\x61\x6d\x6c\137\x73\165\143\143\145\x73\x73\x5f\x6d\x65\163\x73\x61\147\145"));
    }
    function plugin_settings_style($JS)
    {
        if (!("\x74\x6f\160\x6c\x65\166\145\x6c\137\160\x61\147\145\x5f\155\x6f\137\x73\x61\x6d\x6c\137\163\x65\164\164\151\156\x67\163" != $JS)) {
            goto tY;
        }
        return;
        tY:
        if (!(isset($_REQUEST["\164\141\142"]) && $_REQUEST["\164\141\x62"] == "\x6c\x69\x63\145\156\x73\151\156\x67")) {
            goto T2;
        }
        wp_enqueue_style("\x6d\x6f\137\163\141\155\154\x5f\x62\157\x6f\x74\x73\x74\x72\x61\160\137\143\163\163", plugins_url("\151\156\x63\154\x75\x64\x65\x73\x2f\143\x73\x73\57\142\157\157\x74\x73\x74\x72\x61\x70\x2f\142\x6f\x6f\164\163\164\162\141\160\x2e\155\151\x6e\56\143\163\x73", __FILE__), array(), "\61\62\x2e\x30\x2e\60", "\x61\154\x6c");
        T2:
        wp_enqueue_style("\x6d\157\x5f\163\x61\x6d\154\137\141\144\x6d\151\x6e\x5f\163\x65\x74\164\x69\x6e\x67\x73\x5f\152\161\x75\x65\162\x79\137\x73\164\171\154\x65", plugins_url("\151\x6e\x63\154\x75\x64\145\x73\x2f\143\163\163\x2f\152\161\x75\x65\162\171\x2e\165\x69\x2e\143\x73\163", __FILE__), array(), "\x31\62\x2e\x30\x2e\x30", "\141\154\154");
        wp_enqueue_style("\155\x6f\137\163\x61\x6d\154\x5f\x61\144\x6d\151\x6e\x5f\x73\x65\x74\164\151\156\147\x73\x5f\163\x74\171\154\145\x5f\x74\162\x61\x63\x6b\x65\x72", plugins_url("\x69\x6e\143\x6c\165\x64\x65\x73\57\x63\x73\x73\x2f\160\x72\157\147\x72\x65\x73\163\55\164\162\141\143\x6b\145\x72\x2e\x63\x73\x73", __FILE__), array(), "\x31\x32\56\60\x2e\x30", "\x61\154\x6c");
        wp_enqueue_style("\155\x6f\x5f\163\x61\x6d\x6c\137\141\x64\x6d\x69\156\137\163\x65\x74\x74\x69\x6e\x67\x73\137\x73\x74\171\154\145", plugins_url("\x69\x6e\143\x6c\165\144\145\x73\x2f\x63\x73\163\57\x73\x74\171\154\x65\x5f\163\145\164\x74\151\x6e\147\x73\56\x6d\151\x6e\x2e\143\163\163", __FILE__), array(), "\61\x32\x2e\60\x2e\x30", "\141\x6c\x6c");
        wp_enqueue_style("\x6d\157\137\x73\x61\x6d\x6c\x5f\141\x64\155\x69\x6e\137\x73\x65\164\164\x69\156\x67\x73\137\160\150\157\156\x65\137\163\x74\171\x6c\x65", plugins_url("\x69\156\143\x6c\165\x64\145\163\57\x63\x73\x73\57\160\150\x6f\156\145\56\x6d\151\x6e\56\143\163\x73", __FILE__), array(), "\x31\62\56\60\x2e\60", "\141\154\x6c");
        wp_enqueue_style("\x6d\x6f\137\x73\x61\155\154\137\x77\x70\142\x2d\146\141", plugins_url("\151\156\x63\154\x75\144\145\x73\57\143\x73\x73\x2f\x66\x6f\x6e\x74\x2d\x61\x77\145\x73\157\155\x65\56\155\x69\x6e\56\x63\163\x73", __FILE__), array(), "\x31\x32\x2e\x30\56\x30", "\141\154\154");
    }
    function plugin_settings_script($JS)
    {
        if (!("\x74\x6f\160\154\145\x76\145\x6c\137\160\x61\x67\x65\x5f\155\x6f\137\163\141\x6d\x6c\x5f\163\145\164\164\151\x6e\x67\x73" != $JS)) {
            goto Hv;
        }
        return;
        Hv:
        wp_enqueue_script("\x6a\x71\165\145\162\x79");
        wp_enqueue_script("\x6d\x6f\137\163\x61\x6d\x6c\137\x61\x64\x6d\x69\x6e\137\x73\145\164\164\x69\x6e\x67\163\137\143\157\154\x6f\162\x5f\x73\x63\x72\x69\x70\164", plugins_url("\151\x6e\x63\x6c\165\144\145\163\x2f\152\163\x2f\x6a\x73\x63\157\154\157\162\57\152\x73\x63\157\x6c\x6f\x72\x2e\152\x73", __FILE__), array(), "\x31\62\56\60\56\x31", false);
        wp_enqueue_script("\155\157\x5f\x73\x61\x6d\154\x5f\x61\x64\155\x69\156\x5f\x62\x6f\157\x74\x73\x74\162\141\x70\137\x73\x63\162\151\x70\164", plugins_url("\x69\156\143\154\x75\x64\145\x73\57\152\163\x2f\142\x6f\x6f\164\x73\164\x72\141\160\56\152\163", __FILE__), array(), "\61\62\x2e\60\x2e\x31", false);
        wp_enqueue_script("\x6d\157\x5f\x73\x61\x6d\154\137\141\144\155\151\156\x5f\163\x65\x74\164\x69\x6e\x67\x73\x5f\x73\x63\162\x69\x70\164", plugins_url("\x69\156\143\x6c\165\144\x65\163\57\152\x73\57\x73\145\164\164\151\x6e\x67\163\56\155\x69\156\56\152\x73", __FILE__), array(), "\x31\x32\56\x30\56\61", false);
        wp_enqueue_script("\155\x6f\x5f\163\141\x6d\154\137\x61\x64\x6d\151\156\x5f\163\x65\164\x74\x69\x6e\147\163\x5f\x70\150\157\156\145\137\x73\143\x72\x69\x70\164", plugins_url("\151\156\143\154\x75\144\x65\x73\x2f\x6a\163\x2f\160\150\157\x6e\145\x2e\x6d\151\156\56\x6a\163", __FILE__), array(), "\61\x32\x2e\60\56\61", false);
        if (!(isset($_REQUEST["\164\141\142"]) && $_REQUEST["\x74\x61\x62"] == "\154\151\143\x65\156\x73\x69\156\147")) {
            goto yg;
        }
        wp_enqueue_script("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\x6d\157\144\145\162\x6e\x69\x7a\x72\137\x73\143\x72\x69\160\164", plugins_url("\151\x6e\x63\154\x75\144\145\163\x2f\152\163\57\x6d\x6f\x64\145\x72\156\151\x7a\162\x2e\152\x73", __FILE__), array(), "\x31\62\x2e\60\56\61", false);
        wp_enqueue_script("\x6d\157\x5f\163\x61\x6d\x6c\137\160\157\x70\157\166\x65\162\x5f\x73\143\162\151\x70\164", plugins_url("\151\156\x63\154\x75\144\x65\163\x2f\x6a\163\x2f\x62\x6f\x6f\164\163\164\162\141\160\57\x70\157\160\x70\x65\x72\x2e\x6d\151\156\56\x6a\x73", __FILE__), array(), "\61\62\x2e\x30\56\x31", false);
        wp_enqueue_script("\x6d\157\137\x73\141\x6d\x6c\137\142\157\157\x74\163\164\x72\x61\x70\137\163\x63\x72\151\x70\164", plugins_url("\x69\156\x63\x6c\x75\144\145\163\57\x6a\x73\57\x62\x6f\x6f\164\x73\164\x72\x61\160\x2f\x62\157\157\164\163\x74\162\141\160\56\155\x69\x6e\56\152\163", __FILE__), array(), "\61\62\x2e\x30\x2e\x31", false);
        yg:
    }
    function mo_saml_activation_message()
    {
        $kk = "\x75\160\x64\x61\164\x65\144";
        $Ew = get_option("\x6d\157\137\x73\141\x6d\154\137\155\145\163\163\x61\147\145");
        echo "\x3c\144\x69\x76\40\143\154\141\163\x73\75\47" . $kk . "\x27\76\40\x3c\x70\76" . $Ew . "\74\57\x70\x3e\x3c\57\x64\x69\166\76";
    }
    function get_empty_strings()
    {
        return '';
    }
    function mo_saml_custom_attr_column($Lh)
    {
        $th = maybe_unserialize(get_option("\155\157\137\163\x61\155\x6c\137\143\x75\x73\164\x6f\x6d\137\141\x74\164\162\163\137\155\141\160\160\151\156\147"));
        $or = get_option("\x73\141\x6d\154\137\163\150\x6f\x77\137\x75\x73\145\162\137\x61\x74\x74\x72\151\142\x75\164\145");
        $lp = 0;
        if (!is_array($th)) {
            goto Pc;
        }
        foreach ($th as $k3 => $zw) {
            if (empty($k3)) {
                goto f_;
            }
            if (!in_array($lp, $or)) {
                goto vz;
            }
            $Lh[$k3] = $k3;
            vz:
            f_:
            $lp++;
            X8:
        }
        Np:
        Pc:
        return $Lh;
    }
    function mo_saml_attr_column_content($zw, $FA, $fd)
    {
        $th = get_option("\155\x6f\x5f\x73\x61\x6d\x6c\137\143\x75\x73\164\x6f\155\137\141\164\164\x72\163\137\155\x61\x70\160\151\x6e\x67");
        if (!is_array($th)) {
            goto BP;
        }
        foreach ($th as $k3 => $zw) {
            if (!($k3 === $FA)) {
                goto EL;
            }
            $C2 = get_user_meta($fd, $FA, false);
            if (empty($C2)) {
                goto Fp;
            }
            if (!is_array($C2[0])) {
                goto ta;
            }
            $Dz = '';
            foreach ($C2[0] as $CH) {
                $Dz = $Dz . $CH;
                if (!next($C2[0])) {
                    goto G3;
                }
                $Dz = $Dz . "\x20\x7c\x20";
                G3:
                UZ:
            }
            y9:
            return $Dz;
            goto Sv;
            ta:
            return $C2[0];
            Sv:
            Fp:
            EL:
            Dx:
        }
        wa:
        BP:
    }
    static function mo_check_option_admin_referer($qT)
    {
        return isset($_POST["\157\160\x74\x69\x6f\156"]) and $_POST["\157\x70\164\151\157\x6e"] == $qT and check_admin_referer($qT);
    }
    function miniorange_login_widget_saml_save_settings()
    {
        if (!current_user_can("\155\141\x6e\x61\x67\145\x5f\x6f\160\164\x69\157\x6e\163")) {
            goto lS;
        }
        if (!(is_admin() && get_option("\101\143\x74\x69\166\141\164\x65\144\137\120\154\165\147\x69\x6e") == "\120\154\165\147\x69\x6e\x2d\123\x6c\x75\147")) {
            goto H0;
        }
        delete_option("\101\x63\164\x69\x76\x61\x74\145\x64\x5f\120\154\x75\x67\151\x6e");
        update_option("\x6d\157\x5f\163\141\155\154\x5f\x6d\x65\163\x73\x61\147\145", "\x47\157\x20\164\157\40\160\x6c\165\x67\x69\x6e\x20\x3c\142\x3e\74\141\40\x68\162\145\146\75\x22\141\x64\x6d\151\156\56\160\150\160\x3f\x70\x61\147\145\x3d\x6d\x6f\x5f\163\x61\x6d\154\x5f\163\x65\x74\164\x69\156\x67\163\42\x3e\x73\145\164\164\x69\156\x67\163\74\57\x61\x3e\74\x2f\142\76\40\x74\x6f\x20\x63\x6f\x6e\x66\151\x67\x75\x72\x65\40\123\x41\115\x4c\40\123\x69\x6e\x67\x6c\145\40\x53\151\x67\x6e\x20\117\x6e\x20\x62\x79\x20\x6d\151\156\151\117\x72\x61\x6e\x67\145\x2e");
        add_action("\141\144\155\x69\x6e\x5f\156\x6f\164\x69\143\145\x73", array($this, "\x6d\x6f\137\x73\x61\x6d\154\137\141\143\164\x69\x76\141\164\151\x6f\156\137\x6d\145\x73\163\141\x67\145"));
        H0:
        lS:
        if (!(isset($_POST["\157\160\164\x69\x6f\x6e"]) && current_user_can("\155\141\156\x61\147\145\137\x6f\160\164\151\x6f\156\x73"))) {
            goto z9;
        }
        if (self::mo_check_option_admin_referer("\x6c\x6f\x67\x69\x6e\x5f\167\x69\x64\x67\x65\164\137\163\141\x6d\x6c\137\163\141\x76\145\x5f\163\145\164\x74\x69\156\x67\x73")) {
            goto h0;
        }
        if (self::mo_check_option_admin_referer("\154\x6f\147\151\156\x5f\x77\151\x64\x67\x65\x74\137\163\141\155\154\x5f\x61\164\164\x72\x69\142\165\x74\145\x5f\155\141\x70\x70\x69\x6e\x67")) {
            goto Ck;
        }
        if (self::mo_check_option_admin_referer("\143\x6c\x65\141\x72\x5f\141\x74\164\162\163\137\x6c\151\163\164")) {
            goto EW;
        }
        if (self::mo_check_option_admin_referer("\154\x6f\x67\151\x6e\137\x77\151\144\147\145\x74\137\x73\141\x6d\x6c\137\162\157\154\145\137\x6d\x61\160\x70\x69\156\x67")) {
            goto oY;
        }
        if (self::mo_check_option_admin_referer("\x73\x61\x6d\154\137\146\157\x72\155\137\x64\x6f\155\x61\151\156\x5f\162\x65\x73\x74\162\151\143\164\151\x6f\156\x5f\157\160\164\151\x6f\x6e")) {
            goto eo;
        }
        if (self::mo_check_option_admin_referer("\155\157\137\163\141\x6d\154\x5f\x75\160\x64\141\x74\x65\x5f\x69\x64\x70\137\163\145\x74\164\151\x6e\147\x73\x5f\x6f\x70\x74\151\x6f\x6e")) {
            goto Zx;
        }
        if (!self::mo_check_option_admin_referer("\x73\x61\x6d\x6c\137\x75\x70\154\x6f\x61\x64\137\155\145\164\x61\x64\141\x74\x61")) {
            goto Tc;
        }
        if (preg_match("\x2f\x5e\134\167\52\x24\57", $_POST["\x73\x61\155\x6c\x5f\x69\x64\145\x6e\x74\x69\x74\171\137\x6d\x65\164\141\x64\141\x74\141\137\x70\x72\x6f\166\151\144\x65\162"])) {
            goto p3;
        }
        update_option("\155\x6f\137\x73\x61\155\x6c\137\x6d\145\x73\x73\141\147\x65", "\x50\x6c\145\x61\x73\x65\x20\x6d\x61\x74\x63\150\40\164\x68\145\40\162\x65\x71\165\x65\163\164\145\x64\40\146\x6f\x72\155\141\164\40\x66\x6f\162\40\111\x64\x65\x6e\x74\151\x74\x79\40\120\x72\x6f\x76\x69\144\x65\x72\x20\x4e\x61\x6d\145\56\x20\117\x6e\154\x79\40\x61\154\160\x68\x61\x62\x65\164\x73\x2c\40\x6e\165\x6d\x62\145\x72\x73\40\141\156\x64\x20\165\x6e\144\x65\162\163\x63\157\162\145\40\x69\163\40\141\x6c\154\157\x77\145\x64\56");
        $this->mo_saml_show_error_message();
        return;
        p3:
        if (function_exists("\x77\x70\x5f\150\x61\156\x64\154\145\137\165\x70\x6c\157\x61\144")) {
            goto g2;
        }
        require_once ABSPATH . "\167\x70\x2d\x61\144\155\x69\156\x2f\x69\x6e\143\x6c\x75\144\145\x73\x2f\146\151\154\x65\x2e\x70\150\x70";
        g2:
        $this->_handle_upload_metadata();
        Tc:
        goto sV;
        Zx:
        if (!(isset($_POST["\155\x6f\x5f\163\x61\x6d\x6c\x5f\163\x70\x5f\142\x61\163\x65\x5f\x75\162\154"]) && isset($_POST["\x6d\157\137\x73\141\155\x6c\137\x73\160\x5f\145\x6e\164\x69\x74\x79\x5f\151\x64"]))) {
            goto mv;
        }
        $Gp = sanitize_text_field($_POST["\x6d\x6f\x5f\163\x61\x6d\x6c\137\x73\160\x5f\142\141\x73\145\137\x75\162\x6c"]);
        $zY = sanitize_text_field($_POST["\x6d\x6f\x5f\163\x61\155\154\x5f\163\160\137\x65\x6e\x74\x69\164\171\137\x69\x64"]);
        if (!(substr($Gp, -1) == "\57")) {
            goto tv;
        }
        $Gp = substr($Gp, 0, -1);
        tv:
        update_option("\155\x6f\x5f\x73\141\x6d\154\137\163\160\137\x62\141\163\145\x5f\165\x72\x6c", $Gp);
        update_option("\x6d\157\137\163\141\155\x6c\x5f\x73\160\137\145\156\164\x69\x74\171\137\x69\144", $zY);
        mv:
        update_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\x6d\145\x73\x73\141\x67\145", "\x53\145\164\164\x69\156\147\163\x20\x75\160\x64\141\x74\145\x64\x20\x73\x75\143\x63\x65\x73\163\x66\x75\154\x6c\171\x2e");
        $this->mo_saml_show_success_message();
        sV:
        goto Ta;
        eo:
        $AJ = isset($_POST["\155\x6f\x5f\x73\x61\155\154\x5f\145\x6e\x61\x62\154\x65\x5f\x64\x6f\155\141\x69\x6e\137\x72\x65\163\164\162\151\143\x74\x69\x6f\156\x5f\x6c\x6f\147\x69\156"]) && !empty($_POST["\x6d\157\137\163\141\155\154\137\145\x6e\141\x62\x6c\x65\x5f\x64\157\x6d\141\151\x6e\x5f\x72\145\x73\x74\162\151\x63\164\x69\x6f\156\x5f\154\157\147\151\156"]) ? htmlspecialchars($_POST["\x6d\157\x5f\163\141\x6d\x6c\x5f\145\x6e\141\142\x6c\x65\137\x64\x6f\155\x61\151\x6e\x5f\162\145\x73\x74\162\151\x63\164\x69\157\156\x5f\x6c\157\147\151\156"]) : '';
        $nG = isset($_POST["\155\157\x5f\x73\141\x6d\x6c\x5f\141\x6c\154\157\x77\x5f\144\x65\x6e\171\137\x75\163\145\x72\137\167\151\164\150\x5f\144\x6f\x6d\141\151\x6e"]) && !empty($_POST["\155\x6f\x5f\x73\141\x6d\154\137\141\154\x6c\x6f\x77\x5f\144\x65\156\x79\x5f\x75\163\x65\x72\137\x77\x69\164\x68\x5f\x64\x6f\x6d\141\x69\156"]) ? htmlspecialchars($_POST["\155\157\x5f\x73\141\155\x6c\x5f\x61\x6c\x6c\157\x77\137\x64\145\156\x79\137\x75\163\x65\162\x5f\x77\x69\164\x68\x5f\x64\x6f\155\141\151\x6e"]) : "\x61\x6c\154\157\x77";
        $Qp = isset($_POST["\x73\141\x6d\x6c\137\x61\x6d\137\x65\x6d\141\x69\154\137\x64\x6f\x6d\141\151\156\x73"]) && !empty($_POST["\x73\141\x6d\x6c\137\141\x6d\137\x65\x6d\141\x69\x6c\137\x64\x6f\x6d\141\x69\x6e\x73"]) ? htmlspecialchars($_POST["\163\x61\155\x6c\137\x61\x6d\137\145\x6d\141\x69\x6c\137\144\x6f\x6d\x61\151\x6e\x73"]) : '';
        update_option("\x6d\157\137\x73\x61\x6d\154\x5f\145\156\141\142\154\145\137\x64\x6f\x6d\x61\151\156\x5f\x72\145\163\x74\x72\x69\x63\164\x69\157\x6e\x5f\154\x6f\147\x69\x6e", $AJ);
        update_option("\x6d\157\x5f\163\141\x6d\x6c\137\x61\x6c\154\157\167\x5f\144\145\x6e\x79\137\165\163\145\x72\137\167\151\164\150\137\x64\157\155\x61\151\156", $nG);
        update_option("\163\141\155\154\137\x61\x6d\137\145\x6d\141\x69\x6c\x5f\144\157\155\141\151\x6e\x73", $Qp);
        update_option("\x6d\157\137\x73\x61\155\154\x5f\x6d\x65\x73\163\141\147\145", "\104\x6f\x6d\141\x69\156\40\x52\x65\x73\164\x72\151\143\164\151\157\x6e\x20\x68\141\163\40\x62\145\x65\x6e\x20\163\141\x76\145\144\x20\x73\165\143\143\x65\163\163\146\165\154\x6c\171\56");
        $this->mo_saml_show_success_message();
        Ta:
        goto FR;
        oY:
        if (mo_saml_is_extension_installed("\143\x75\x72\x6c")) {
            goto nw;
        }
        update_option("\155\x6f\137\x73\x61\155\x6c\x5f\155\x65\163\x73\141\147\x65", "\105\122\x52\x4f\x52\72\x20\120\110\x50\x20\143\x55\x52\114\40\145\170\164\145\156\x73\x69\x6f\x6e\x20\x69\x73\x20\x6e\x6f\164\x20\x69\156\163\164\141\x6c\x6c\x65\x64\40\x6f\x72\40\x64\x69\163\141\x62\154\145\144\56\x20\123\x61\166\145\x20\x52\x6f\154\x65\x20\x4d\x61\x70\160\x69\156\x67\x20\x66\141\x69\154\145\x64\56");
        $this->mo_saml_show_error_message();
        return;
        nw:
        if (!isset($_POST["\x73\141\x6d\154\x5f\141\x6d\137\144\145\x66\141\165\154\x74\x5f\165\163\145\162\137\162\x6f\154\145"])) {
            goto cm;
        }
        $Jl = htmlspecialchars($_POST["\x73\141\x6d\x6c\137\141\155\137\x64\x65\x66\x61\x75\x6c\164\x5f\165\x73\145\162\137\x72\x6f\154\145"]);
        update_option("\163\141\155\154\x5f\141\155\x5f\x64\x65\146\x61\x75\x6c\x74\137\x75\x73\145\x72\137\162\x6f\x6c\x65", $Jl);
        cm:
        if (isset($_POST["\163\x61\155\x6c\x5f\141\155\137\144\x6f\156\x74\137\x61\x6c\154\157\167\x5f\165\x6e\154\151\x73\x74\145\x64\137\165\x73\145\x72\137\162\157\x6c\145"])) {
            goto ae;
        }
        update_option("\x73\x61\155\x6c\137\x61\155\137\144\157\156\164\x5f\141\x6c\154\x6f\x77\x5f\165\156\x6c\x69\163\164\145\144\x5f\x75\163\145\162\x5f\x72\157\x6c\145", "\165\x6e\143\150\x65\x63\x6b\145\144");
        goto iV;
        ae:
        update_option("\x73\x61\x6d\154\x5f\x61\x6d\137\x64\145\x66\141\165\154\x74\x5f\x75\163\145\162\137\x72\x6f\x6c\x65", false);
        update_option("\163\141\x6d\154\137\141\x6d\137\x64\157\156\x74\137\x61\x6c\x6c\x6f\167\x5f\x75\x6e\154\151\163\164\x65\x64\x5f\165\163\x65\162\137\162\157\154\145", "\143\150\x65\x63\x6b\145\144");
        iV:
        if (isset($_POST["\155\157\137\163\141\155\x6c\x5f\x64\x6f\156\x74\x5f\143\x72\x65\141\x74\145\x5f\165\163\145\x72\137\151\x66\x5f\x72\x6f\x6c\x65\137\156\157\164\137\x6d\x61\x70\160\145\x64"])) {
            goto m9;
        }
        update_option("\x6d\157\137\163\141\155\154\x5f\144\x6f\156\164\137\x63\162\145\x61\x74\145\x5f\x75\163\145\162\x5f\151\x66\137\x72\x6f\x6c\145\137\156\x6f\164\x5f\155\141\x70\160\x65\144", "\x75\156\x63\150\145\x63\x6b\x65\144");
        goto EI;
        m9:
        update_option("\155\x6f\137\x73\141\155\x6c\137\144\x6f\156\x74\x5f\x63\162\x65\x61\x74\145\x5f\165\x73\x65\162\x5f\151\x66\137\162\x6f\x6c\x65\137\x6e\157\164\x5f\155\x61\160\160\145\144", "\143\150\x65\143\153\145\x64");
        update_option("\163\x61\x6d\154\x5f\x61\155\x5f\144\145\x66\x61\x75\154\x74\137\165\x73\x65\x72\x5f\x72\x6f\154\x65", false);
        update_option("\x73\x61\155\154\137\141\155\137\144\157\x6e\164\x5f\x61\x6c\x6c\157\167\x5f\x75\x6e\x6c\151\x73\164\x65\x64\x5f\x75\163\145\162\x5f\162\x6f\x6c\x65", "\165\x6e\x63\150\x65\143\x6b\145\144");
        EI:
        if (isset($_POST["\x6d\x6f\x5f\163\141\x6d\x6c\137\x64\x6f\156\x74\x5f\165\x70\144\x61\164\145\137\x65\x78\x69\163\164\151\x6e\x67\x5f\x75\163\145\162\x5f\162\157\x6c\145"])) {
            goto RB;
        }
        update_option("\163\141\155\154\137\141\155\137\144\157\156\x74\x5f\165\x70\x64\x61\x74\145\137\x65\x78\x69\x73\164\x69\x6e\147\137\165\163\145\x72\x5f\162\x6f\x6c\145", "\165\156\143\x68\x65\143\153\x65\144");
        goto eR;
        RB:
        update_option("\x73\141\155\x6c\137\141\155\137\144\x6f\x6e\164\x5f\x75\x70\x64\141\x74\145\x5f\x65\170\x69\x73\x74\151\x6e\147\137\165\x73\x65\x72\x5f\x72\x6f\x6c\145", "\x63\150\x65\143\x6b\145\x64");
        eR:
        if (isset($_POST["\x6d\x6f\x5f\163\141\155\x6c\137\x64\x6f\x6e\x74\x5f\141\x6c\x6c\x6f\167\x5f\165\163\x65\x72\x5f\x74\x6f\x6c\x6f\x67\x69\x6e\x5f\x63\x72\x65\141\x74\x65\137\167\x69\164\x68\137\147\151\166\x65\156\x5f\147\x72\x6f\x75\x70\x73"])) {
            goto NL;
        }
        update_option("\163\x61\155\154\137\x61\155\x5f\144\157\156\164\137\x61\154\x6c\157\167\137\165\x73\145\x72\137\164\157\x6c\x6f\x67\x69\156\x5f\143\x72\x65\x61\164\x65\137\167\x69\x74\150\137\147\x69\166\145\x6e\137\x67\162\157\x75\x70\163", "\x75\x6e\x63\x68\x65\x63\x6b\145\144");
        goto J9;
        NL:
        update_option("\163\x61\x6d\154\x5f\141\155\x5f\x64\x6f\x6e\x74\137\141\x6c\x6c\x6f\167\137\165\163\x65\162\137\164\x6f\x6c\x6f\147\151\156\137\x63\162\145\141\x74\x65\137\167\151\164\150\137\x67\151\x76\145\x6e\x5f\147\x72\x6f\165\160\163", "\143\150\x65\143\153\145\x64");
        if (!isset($_POST["\x6d\157\x5f\x73\x61\155\154\137\162\x65\x73\x74\x72\x69\x63\164\137\165\x73\x65\162\x73\x5f\x77\151\x74\150\x5f\x67\162\157\165\160\x73"])) {
            goto sb;
        }
        if (!empty($_POST["\x6d\157\137\163\x61\x6d\154\137\162\x65\163\x74\x72\x69\x63\x74\x5f\x75\x73\145\162\163\137\x77\x69\x74\x68\137\147\162\157\165\x70\163"])) {
            goto BA;
        }
        update_option("\155\157\137\163\x61\x6d\x6c\x5f\x72\x65\163\164\x72\151\143\164\x5f\x75\163\x65\x72\163\137\x77\x69\x74\150\137\x67\162\157\165\x70\163", '');
        goto kH;
        BA:
        update_option("\x6d\x6f\x5f\x73\x61\155\x6c\x5f\x72\x65\163\x74\162\151\x63\164\x5f\165\163\145\x72\163\137\x77\x69\164\150\x5f\147\162\x6f\165\x70\163", htmlspecialchars(stripslashes($_POST["\x6d\157\x5f\163\x61\155\x6c\x5f\x72\x65\163\x74\162\151\x63\x74\137\x75\163\x65\162\163\x5f\x77\151\x74\150\137\x67\x72\x6f\165\x70\x73"])));
        kH:
        sb:
        J9:
        $wp_roles = new WP_Roles();
        $lm = $wp_roles->get_names();
        $bT = array();
        foreach ($lm as $En => $d6) {
            $wF = "\x73\141\155\x6c\137\141\155\x5f\147\x72\x6f\165\x70\137\x61\x74\164\x72\x5f\166\x61\x6c\x75\x65\163\137" . $En;
            $bT[$En] = htmlspecialchars(stripslashes($_POST[$wF]));
            f1:
        }
        r5:
        update_option("\x73\141\x6d\x6c\137\141\x6d\x5f\x72\x6f\x6c\145\137\155\x61\x70\160\x69\156\147", $bT);
        update_option("\x6d\x6f\137\x73\141\155\x6c\137\155\x65\x73\x73\141\147\145", "\122\157\x6c\145\40\115\x61\160\x70\x69\156\147\40\x64\145\164\141\x69\154\163\40\x73\141\166\145\144\40\x73\x75\x63\x63\145\163\x73\x66\165\154\x6c\x79\x2e");
        $this->mo_saml_show_success_message();
        FR:
        goto U1;
        EW:
        delete_option("\x6d\157\137\x73\x61\155\154\137\164\145\163\x74\137\143\157\x6e\x66\x69\147\x5f\141\164\164\x72\163");
        update_option("\155\157\x5f\163\141\155\154\137\155\145\x73\x73\141\147\x65", "\101\x74\164\x72\x69\x62\165\164\x65\x73\x20\154\x69\x73\164\x20\162\x65\x6d\x6f\x76\x65\x64\x20\163\x75\143\x63\x65\163\163\x66\x75\x6c\x6c\171");
        $this->mo_saml_show_success_message();
        U1:
        goto Su;
        Ck:
        if (mo_saml_is_extension_installed("\x63\x75\162\154")) {
            goto ex;
        }
        update_option("\x6d\x6f\x5f\163\141\x6d\154\137\155\145\x73\163\141\x67\x65", "\105\122\122\x4f\x52\72\40\x50\x48\120\x20\143\x55\122\x4c\40\x65\170\x74\x65\x6e\163\x69\157\156\40\151\163\x20\x6e\157\x74\x20\x69\156\x73\164\x61\154\x6c\x65\144\x20\157\162\40\144\151\x73\141\x62\154\x65\x64\56\40\123\x61\166\145\x20\101\164\164\162\151\x62\165\164\x65\40\x4d\141\x70\x70\151\156\147\40\146\141\x69\154\145\144\56");
        $this->mo_saml_show_error_message();
        return;
        ex:
        update_option("\x73\141\x6d\154\137\x61\x6d\x5f\x75\163\x65\162\x6e\141\x6d\145", htmlspecialchars(stripslashes($_POST["\x73\141\155\154\x5f\x61\155\x5f\165\163\145\162\156\x61\x6d\x65"])));
        update_option("\x73\141\155\154\x5f\141\155\137\x65\x6d\141\151\x6c", htmlspecialchars(stripslashes($_POST["\163\x61\155\154\x5f\141\x6d\x5f\x65\x6d\x61\151\x6c"])));
        update_option("\x73\x61\155\x6c\x5f\x61\x6d\x5f\x66\151\162\x73\164\137\156\141\155\x65", htmlspecialchars(stripslashes($_POST["\163\141\155\x6c\137\141\x6d\137\146\x69\162\163\164\x5f\x6e\x61\x6d\x65"])));
        update_option("\x73\x61\155\154\x5f\x61\155\x5f\x6c\141\x73\164\137\156\141\x6d\x65", htmlspecialchars(stripslashes($_POST["\x73\x61\x6d\154\x5f\141\155\x5f\x6c\x61\x73\x74\x5f\156\141\155\145"])));
        update_option("\163\141\155\x6c\x5f\141\155\x5f\x67\162\157\165\160\137\156\141\x6d\145", htmlspecialchars(stripslashes($_POST["\163\141\155\154\x5f\141\155\137\147\x72\x6f\x75\160\x5f\156\x61\155\x65"])));
        update_option("\163\x61\x6d\154\137\x61\x6d\137\x64\151\x73\160\x6c\x61\171\x5f\x6e\x61\x6d\145", htmlspecialchars(stripslashes($_POST["\163\x61\155\x6c\137\141\155\137\x64\151\163\160\154\141\x79\137\156\141\x6d\145"])));
        $th = array();
        $Kn = array();
        $Uj = array();
        $j2 = array();
        if (!(isset($_POST["\x6d\157\137\163\x61\x6d\x6c\137\143\165\x73\x74\x6f\155\137\141\164\164\162\x69\142\165\164\x65\137\153\145\x79\x73"]) && !empty($_POST["\155\157\x5f\163\141\x6d\154\137\143\x75\163\164\x6f\155\137\x61\164\x74\x72\151\x62\165\164\145\137\153\x65\171\163"]))) {
            goto al;
        }
        $Kn = $_POST["\155\157\x5f\x73\x61\155\154\x5f\143\x75\163\x74\157\x6d\x5f\x61\164\164\162\x69\142\x75\x74\x65\137\153\145\x79\163"];
        al:
        if (!(isset($_POST["\x6d\x6f\137\163\x61\155\x6c\x5f\143\x75\163\x74\x6f\155\x5f\x61\164\x74\162\x69\x62\x75\164\145\137\166\x61\154\x75\145\x73"]) && !empty($_POST["\155\x6f\137\163\x61\x6d\154\x5f\143\x75\163\x74\157\155\x5f\x61\x74\x74\162\151\x62\165\164\x65\137\x76\141\154\165\x65\163"]))) {
            goto wh;
        }
        $Uj = $_POST["\x6d\157\137\163\141\155\154\x5f\143\165\x73\x74\x6f\x6d\x5f\x61\164\164\162\x69\x62\x75\164\145\x5f\166\141\154\165\x65\163"];
        wh:
        $kn = count($Kn);
        if (!($kn > 0)) {
            goto oQ;
        }
        $Kn = array_map("\x68\x74\x6d\154\x73\160\145\143\151\x61\x6c\x63\x68\x61\162\x73", $Kn);
        $Uj = array_map("\x68\164\x6d\154\x73\160\145\143\x69\x61\x6c\143\150\x61\x72\163", $Uj);
        $gs = 0;
        Pn:
        if (!($gs < $kn)) {
            goto eV;
        }
        if (!(isset($_POST["\x6d\157\137\x73\141\x6d\154\x5f\x64\x69\x73\x70\x6c\x61\171\x5f\x61\164\164\162\x69\142\165\164\x65\x5f" . $gs]) && !empty($_POST["\x6d\x6f\x5f\163\141\155\154\137\x64\x69\163\160\154\141\171\x5f\x61\164\x74\162\x69\142\x75\164\145\137" . $gs]))) {
            goto vq;
        }
        array_push($j2, $gs);
        vq:
        $gs++;
        goto Pn;
        eV:
        oQ:
        update_option("\163\x61\155\x6c\x5f\163\150\157\x77\x5f\x75\163\x65\x72\137\141\x74\164\162\x69\142\x75\x74\145", $j2);
        $th = array_combine($Kn, $Uj);
        $th = array_filter($th);
        if (!empty($th)) {
            goto Oj;
        }
        $th = get_option("\x6d\157\137\163\x61\155\x6c\x5f\x63\165\163\164\x6f\x6d\137\x61\x74\x74\x72\163\137\x6d\x61\160\x70\151\x6e\x67");
        if (empty($th)) {
            goto kc;
        }
        delete_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\143\x75\163\164\x6f\x6d\x5f\x61\x74\x74\162\x73\x5f\x6d\x61\x70\160\x69\x6e\147");
        kc:
        goto hV;
        Oj:
        update_option("\x6d\157\137\x73\141\x6d\x6c\137\x63\x75\163\x74\x6f\x6d\x5f\x61\164\x74\162\x73\137\x6d\x61\x70\x70\151\156\147", $th);
        hV:
        update_option("\155\157\137\x73\141\x6d\154\x5f\155\x65\x73\163\x61\x67\145", "\101\164\x74\x72\151\142\165\x74\x65\40\115\x61\160\x70\151\x6e\x67\40\x64\x65\x74\141\x69\154\163\x20\x73\141\x76\x65\x64\40\163\x75\x63\143\145\163\x73\x66\x75\x6c\154\171");
        $this->mo_saml_show_success_message();
        Su:
        goto at;
        h0:
        if (mo_saml_is_extension_installed("\x63\x75\x72\154")) {
            goto e0;
        }
        update_option("\155\x6f\137\163\141\x6d\x6c\137\155\145\163\163\x61\147\145", "\105\x52\x52\117\122\72\40\x50\110\120\40\143\x55\122\x4c\x20\x65\170\x74\145\x6e\163\151\x6f\x6e\40\151\163\x20\x6e\x6f\164\40\151\x6e\x73\164\141\x6c\x6c\x65\x64\x20\157\162\x20\144\x69\x73\141\142\154\145\x64\56\40\123\141\x76\x65\40\111\144\x65\156\164\151\x74\x79\40\x50\162\157\166\x69\x64\145\x72\40\103\x6f\156\146\x69\x67\165\x72\141\164\151\157\156\40\146\x61\151\x6c\x65\144\56");
        $this->mo_saml_show_error_message();
        return;
        e0:
        $td = '';
        $xP = '';
        $YE = '';
        $nq = '';
        $AC = '';
        $kH = '';
        $Ay = '';
        $kc = '';
        $zT = '';
        if ($this->mo_saml_check_empty_or_null($_POST["\x73\141\x6d\x6c\137\x69\x64\x65\156\x74\x69\x74\171\137\156\141\155\x65"]) || $this->mo_saml_check_empty_or_null($_POST["\163\141\155\154\x5f\x6c\x6f\x67\151\156\x5f\165\162\154"]) || $this->mo_saml_check_empty_or_null($_POST["\x73\x61\x6d\154\137\151\163\x73\165\145\162"]) || $this->mo_saml_check_empty_or_null($_POST["\163\x61\155\x6c\x5f\x6e\141\155\145\151\144\x5f\x66\x6f\x72\155\141\x74"])) {
            goto N4;
        }
        if (!preg_match("\57\x5e\x5c\167\52\44\57", $_POST["\x73\x61\155\154\137\x69\144\x65\156\164\151\164\171\x5f\156\141\x6d\x65"])) {
            goto cU;
        }
        $td = htmlspecialchars(trim($_POST["\x73\141\x6d\x6c\x5f\151\144\x65\x6e\x74\x69\x74\171\x5f\x6e\141\x6d\x65"]));
        $YE = htmlspecialchars(trim($_POST["\x73\x61\155\x6c\137\x6c\157\x67\151\x6e\x5f\x75\162\154"]));
        if (!array_key_exists("\163\x61\155\x6c\137\x6c\x6f\x67\x69\156\x5f\x62\151\x6e\144\x69\156\x67\137\164\x79\160\145", $_POST)) {
            goto xs;
        }
        $xP = htmlspecialchars($_POST["\x73\x61\155\154\x5f\154\x6f\x67\151\x6e\x5f\142\151\x6e\144\151\156\147\x5f\164\171\x70\x65"]);
        xs:
        if (!array_key_exists("\163\141\155\154\137\154\x6f\147\157\x75\164\137\142\x69\156\x64\151\156\147\137\164\171\x70\145", $_POST)) {
            goto a1;
        }
        $nq = htmlspecialchars($_POST["\x73\x61\x6d\x6c\x5f\154\x6f\x67\157\x75\x74\137\142\151\x6e\144\151\156\x67\137\x74\x79\160\x65"]);
        a1:
        if (!array_key_exists("\x73\141\x6d\x6c\137\x6c\157\147\x6f\x75\x74\137\x75\x72\x6c", $_POST)) {
            goto bf;
        }
        $AC = htmlspecialchars(trim($_POST["\163\141\155\154\x5f\x6c\x6f\x67\x6f\165\x74\x5f\165\162\154"]));
        bf:
        $kH = htmlspecialchars(trim($_POST["\x73\x61\x6d\154\137\151\x73\163\x75\x65\162"]));
        $Dj = htmlspecialchars(trim($_POST["\x73\141\155\x6c\137\x69\x64\x65\x6e\164\151\164\171\x5f\x70\x72\157\166\151\x64\145\162\137\x67\x75\x69\x64\145\137\x6e\141\x6d\x65"]));
        $Ay = $_POST["\163\x61\155\x6c\x5f\170\x35\60\71\x5f\143\x65\x72\164\x69\146\151\143\141\x74\145"];
        $zT = htmlspecialchars($_POST["\163\x61\x6d\154\137\x6e\x61\x6d\x65\151\x64\137\x66\157\162\155\141\164"]);
        goto v6;
        cU:
        update_option("\155\x6f\137\163\141\x6d\x6c\137\155\145\163\163\x61\147\145", "\120\x6c\145\141\x73\145\40\155\x61\x74\143\150\x20\164\x68\x65\40\x72\x65\161\165\145\x73\x74\x65\x64\40\146\x6f\162\x6d\141\164\40\146\157\x72\40\x49\x64\x65\x6e\x74\x69\x74\171\x20\120\162\x6f\x76\x69\144\145\x72\40\116\x61\x6d\145\x2e\x20\x4f\x6e\154\171\x20\x61\154\160\x68\141\142\145\164\163\x2c\40\x6e\165\x6d\142\145\162\x73\40\141\156\x64\40\165\156\144\145\x72\x73\143\157\x72\x65\x20\x69\163\x20\141\x6c\154\157\167\145\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        v6:
        goto lG;
        N4:
        update_option("\x6d\157\x5f\163\x61\x6d\154\137\155\145\x73\163\x61\x67\x65", "\x41\x6c\154\40\164\x68\x65\x20\146\x69\145\154\x64\163\40\141\162\145\40\162\145\x71\165\x69\162\x65\144\x2e\x20\120\154\x65\x61\x73\145\x20\145\156\x74\x65\x72\x20\166\141\154\151\x64\40\x65\156\164\x72\x69\x65\163\x2e");
        $this->mo_saml_show_error_message();
        return;
        lG:
        update_option("\x73\x61\x6d\x6c\x5f\x69\x64\145\156\164\151\x74\171\137\156\141\x6d\145", $td);
        update_option("\x73\x61\155\x6c\x5f\154\157\147\x69\156\x5f\x62\x69\x6e\x64\x69\x6e\147\x5f\164\x79\160\x65", $xP);
        update_option("\x73\141\x6d\x6c\x5f\x6c\x6f\x67\x69\156\x5f\165\x72\154", $YE);
        update_option("\163\x61\155\154\x5f\x6c\x6f\x67\157\165\x74\x5f\142\x69\156\x64\x69\156\x67\137\164\171\160\x65", $nq);
        update_option("\163\141\155\154\x5f\x6c\157\x67\157\165\x74\x5f\x75\x72\154", $AC);
        update_option("\x73\x61\155\x6c\x5f\151\x73\163\x75\x65\162", $kH);
        update_option("\x73\x61\x6d\154\137\156\x61\x6d\x65\x69\144\x5f\x66\157\x72\x6d\x61\x74", $zT);
        update_option("\163\141\155\154\x5f\151\x64\145\x6e\164\x69\164\171\x5f\x70\162\157\x76\151\x64\x65\162\137\147\165\151\144\x65\137\156\141\155\x65", $Dj);
        if (isset($_POST["\163\x61\155\x6c\x5f\x72\x65\161\165\x65\163\164\x5f\x73\x69\147\156\145\x64"])) {
            goto SK;
        }
        update_option("\x73\x61\155\154\x5f\x72\145\x71\165\x65\x73\x74\137\x73\x69\147\x6e\145\x64", "\x75\x6e\143\x68\x65\x63\153\x65\x64");
        goto yJ;
        SK:
        update_option("\x73\x61\x6d\x6c\137\162\x65\161\x75\145\x73\x74\x5f\x73\x69\147\156\145\144", "\x63\150\x65\143\153\145\x64");
        yJ:
        foreach ($Ay as $k3 => $zw) {
            if (empty($zw)) {
                goto ga;
            }
            $Ay[$k3] = SAMLSPUtilities::sanitize_certificate($zw);
            if (@openssl_x509_read($Ay[$k3])) {
                goto us;
            }
            update_option("\x6d\x6f\137\x73\141\155\154\x5f\x6d\145\x73\x73\x61\x67\145", "\111\156\x76\141\x6c\151\x64\40\143\x65\162\x74\x69\146\x69\143\x61\164\x65\72\x20\x50\x6c\145\x61\163\145\x20\x70\162\x6f\166\151\x64\x65\40\x61\x20\x76\x61\154\x69\144\x20\143\x65\x72\164\151\x66\x69\143\141\164\x65\56");
            $this->mo_saml_show_error_message();
            delete_option("\163\141\155\x6c\x5f\170\65\60\71\137\143\145\162\164\151\x66\x69\x63\141\x74\145");
            return;
            us:
            goto xc;
            ga:
            unset($Ay[$k3]);
            xc:
            f6:
        }
        Pe:
        if (!empty($Ay)) {
            goto AM;
        }
        update_option("\155\157\137\163\141\x6d\x6c\x5f\155\145\163\163\x61\x67\x65", "\x49\156\166\x61\x6c\151\x64\40\103\x65\x72\164\151\146\151\143\141\164\145\72\x50\154\x65\x61\x73\145\40\x70\162\157\x76\x69\x64\x65\x20\141\40\143\x65\x72\x74\x69\x66\151\143\141\164\x65");
        $this->mo_saml_show_error_message();
        return;
        AM:
        update_option("\163\141\155\x6c\x5f\x78\x35\x30\x39\137\143\145\x72\x74\x69\x66\x69\143\141\164\x65", maybe_serialize($Ay));
        if (isset($_POST["\x73\x61\155\x6c\137\162\x65\x73\x70\157\156\x73\145\137\x73\151\x67\156\x65\144"])) {
            goto RI;
        }
        update_option("\163\141\155\x6c\137\162\145\163\160\x6f\x6e\x73\145\137\x73\x69\x67\156\x65\x64", "\x59\145\x73");
        goto pO;
        RI:
        update_option("\x73\x61\155\154\137\162\x65\x73\x70\157\156\x73\x65\x5f\163\151\x67\156\x65\x64", "\143\x68\x65\x63\x6b\x65\x64");
        pO:
        if (isset($_POST["\163\x61\x6d\154\x5f\x61\163\x73\x65\162\x74\x69\157\x6e\x5f\x73\151\x67\x6e\145\144"])) {
            goto RU;
        }
        update_option("\163\141\x6d\x6c\x5f\141\163\x73\145\162\x74\x69\x6f\x6e\137\163\x69\x67\156\x65\x64", "\x59\x65\163");
        goto e8;
        RU:
        update_option("\x73\141\155\x6c\137\x61\x73\163\145\x72\164\151\157\x6e\x5f\163\x69\147\x6e\x65\x64", "\x63\x68\x65\143\x6b\145\144");
        e8:
        if (array_key_exists("\x65\156\141\x62\154\145\137\x69\x63\x6f\x6e\166", $_POST)) {
            goto js;
        }
        update_option("\x6d\157\137\163\141\x6d\x6c\137\x65\x6e\143\x6f\144\151\156\147\x5f\145\x6e\x61\142\x6c\x65\144", '');
        goto yw;
        js:
        update_option("\155\157\x5f\x73\141\x6d\154\x5f\x65\x6e\x63\157\144\151\x6e\x67\137\145\156\x61\x62\154\x65\144", "\143\150\x65\143\x6b\145\144");
        yw:
        update_option("\x6d\157\137\163\x61\155\x6c\137\x6d\145\163\x73\x61\147\x65", "\x49\x64\145\x6e\x74\x69\x74\x79\40\x50\x72\157\166\151\x64\145\162\40\144\x65\x74\x61\x69\154\163\x20\x73\x61\x76\x65\x64\x20\163\165\x63\143\x65\x73\163\x66\165\154\x6c\171\56");
        $this->mo_saml_show_success_message();
        at:
        if (self::mo_check_option_admin_referer("\141\x64\144\x5f\143\x75\163\164\x6f\x6d\x5f\x63\x65\162\x74\x69\x66\151\x63\141\x74\145")) {
            goto zR;
        }
        if (self::mo_check_option_admin_referer("\x61\144\x64\137\143\x75\x73\164\157\155\137\x6d\145\163\163\x61\x67\x65\x73")) {
            goto jj;
        }
        if (!self::mo_check_option_admin_referer("\155\x6f\137\163\141\x6d\x6c\137\162\145\x6c\x61\x79\137\163\x74\x61\164\145\x5f\x6f\160\164\151\x6f\x6e")) {
            goto bx;
        }
        $yC = isset($_POST["\x6d\157\137\x73\x61\x6d\154\x5f\x72\x65\154\x61\171\137\x73\164\x61\x74\145"]) ? sanitize_text_field($_POST["\x6d\157\137\163\141\155\x6c\137\x72\145\154\141\171\x5f\163\x74\141\164\x65"]) : '';
        $dy = isset($_POST["\x6d\157\137\x73\141\x6d\154\x5f\154\x6f\147\x6f\165\x74\137\162\145\x6c\141\x79\x5f\x73\164\141\164\145"]) ? sanitize_text_field($_POST["\x6d\157\x5f\163\x61\155\x6c\x5f\x6c\157\147\x6f\165\x74\137\162\145\x6c\141\171\x5f\x73\164\141\x74\145"]) : '';
        update_option("\155\157\x5f\163\141\x6d\154\x5f\162\145\154\141\171\137\163\164\141\x74\x65", $yC);
        update_option("\x6d\x6f\x5f\x73\141\155\154\137\x6c\157\x67\x6f\x75\164\137\x72\145\154\x61\x79\x5f\163\164\141\164\x65", $dy);
        update_option("\x6d\157\137\x73\141\155\154\137\155\145\163\163\141\x67\145", "\x52\x65\154\141\171\40\x53\164\x61\x74\x65\x20\165\160\x64\141\x74\145\144\40\x73\x75\143\143\x65\x73\163\146\x75\154\x6c\171\56");
        $this->mo_saml_show_success_message();
        bx:
        goto Ff;
        jj:
        update_option("\x6d\157\x5f\x73\141\x6d\154\137\141\143\x63\x6f\165\156\x74\137\143\162\x65\x61\x74\x69\x6f\x6e\x5f\x64\151\x73\141\x62\x6c\145\144\137\x6d\163\x67", sanitize_text_field($_POST["\x6d\x6f\x5f\x73\x61\x6d\154\137\x61\x63\143\x6f\x75\156\164\137\143\x72\x65\x61\164\151\x6f\x6e\x5f\144\x69\163\141\142\154\145\144\x5f\x6d\163\147"]));
        update_option("\x6d\157\x5f\x73\141\x6d\154\x5f\x72\x65\x73\164\162\x69\143\x74\x65\x64\137\144\157\x6d\141\x69\x6e\137\145\x72\162\157\x72\x5f\155\x73\x67", sanitize_text_field($_POST["\x6d\157\x5f\x73\141\155\x6c\x5f\x72\x65\x73\164\162\151\143\164\145\144\137\144\x6f\x6d\x61\x69\156\x5f\145\162\x72\157\162\137\x6d\x73\x67"]));
        update_option("\x6d\x6f\137\x73\141\x6d\x6c\x5f\155\145\x73\x73\x61\x67\145", "\x43\157\156\x66\x69\x67\165\162\x61\x74\x69\x6f\x6e\x20\150\141\163\x20\142\x65\x65\x6e\x20\x73\x61\166\x65\144\x20\163\x75\x63\143\x65\163\x73\146\165\154\154\171\56");
        $this->mo_saml_show_success_message();
        Ff:
        goto WM;
        zR:
        if (isset($_POST["\163\165\142\x6d\x69\x74"]) and $_POST["\x73\165\142\x6d\x69\x74"] == "\x55\160\154\x6f\x61\x64") {
            goto AT;
        }
        if (!(isset($_POST["\163\x75\142\155\x69\164"]) and $_POST["\163\165\x62\x6d\151\164"] == "\122\145\x73\x65\164")) {
            goto JG;
        }
        delete_option("\155\x6f\x5f\163\141\155\154\x5f\143\x75\163\x74\x6f\155\x5f\143\x65\162\x74");
        delete_option("\x6d\157\x5f\163\x61\155\x6c\x5f\143\x75\163\x74\157\x6d\x5f\x63\145\162\164\x5f\160\x72\x69\x76\x61\164\x65\x5f\x6b\x65\x79");
        update_option("\155\157\x5f\x73\141\155\x6c\x5f\x63\x75\162\x72\x65\156\164\137\x63\145\162\164", isset($em));
        update_option("\155\157\x5f\x73\x61\155\x6c\x5f\x63\165\x72\x72\145\x6e\x74\137\x63\145\x72\x74\137\x70\162\151\166\141\x74\x65\x5f\x6b\145\x79", isset($xn));
        update_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\x6d\145\x73\163\x61\147\x65", "\122\x65\163\x65\164\x20\x43\145\x72\x74\151\x66\151\143\141\x74\145\40\x73\x75\143\x63\145\x73\163\x66\x75\154\154\x79\56");
        $this->mo_saml_show_success_message();
        JG:
        goto VO;
        AT:
        if (!@openssl_x509_read($_POST["\x73\x61\x6d\154\x5f\x70\x75\142\154\x69\143\137\170\x35\60\71\x5f\143\145\x72\x74\x69\x66\x69\143\141\x74\x65"])) {
            goto CW;
        }
        if (!@openssl_x509_check_private_key($_POST["\163\141\155\x6c\137\160\x75\142\154\x69\x63\x5f\170\x35\60\71\137\143\x65\x72\x74\151\146\x69\143\141\x74\145"], $_POST["\x73\141\155\x6c\x5f\x70\x72\x69\166\x61\164\x65\x5f\x78\65\60\x39\x5f\143\145\162\164\x69\x66\x69\143\141\164\145"])) {
            goto OU;
        }
        if (openssl_x509_read($_POST["\163\x61\x6d\154\x5f\x70\165\142\154\151\143\x5f\x78\x35\x30\71\137\x63\145\x72\x74\x69\146\151\x63\x61\164\x65"]) && openssl_x509_check_private_key($_POST["\x73\141\x6d\154\137\160\165\142\x6c\x69\x63\x5f\170\x35\x30\x39\137\143\x65\162\164\x69\x66\x69\x63\x61\x74\145"], $_POST["\163\x61\x6d\x6c\x5f\160\162\x69\x76\141\x74\x65\x5f\170\65\x30\x39\x5f\x63\145\162\164\151\146\x69\x63\141\164\145"])) {
            goto Fl;
        }
        goto zY;
        CW:
        update_option("\155\157\x5f\163\141\x6d\x6c\x5f\x6d\x65\x73\x73\x61\x67\x65", "\x49\x6e\x76\141\x6c\151\144\x20\x43\145\162\x74\x69\x66\151\143\141\164\x65\x20\x66\157\x72\x6d\141\164\x2e\40\x50\154\145\141\x73\145\x20\145\x6e\164\x65\162\40\141\40\x76\141\154\151\x64\40\143\145\x72\x74\x69\146\151\x63\141\164\145\x2e");
        $this->mo_saml_show_error_message();
        return;
        goto zY;
        OU:
        update_option("\155\157\137\163\141\155\x6c\137\x6d\145\x73\x73\x61\x67\145", "\111\156\166\141\x6c\151\x64\x20\x50\162\151\x76\141\164\x65\x20\113\x65\x79\56");
        $this->mo_saml_show_error_message();
        return;
        goto zY;
        Fl:
        $Yn = $_POST["\163\141\x6d\x6c\x5f\160\x75\142\x6c\x69\x63\137\170\65\60\x39\x5f\x63\x65\162\164\151\x66\151\143\141\x74\x65"];
        $n5 = $_POST["\163\x61\155\x6c\x5f\x70\x72\151\166\141\164\x65\137\x78\65\60\x39\x5f\143\145\x72\164\151\146\x69\143\x61\164\x65"];
        update_option("\x6d\157\x5f\163\x61\155\x6c\137\143\165\x73\x74\x6f\155\137\x63\x65\162\x74", $Yn);
        update_option("\x6d\x6f\x5f\x73\x61\x6d\154\137\x63\x75\163\x74\x6f\155\x5f\143\145\162\x74\137\160\x72\x69\x76\141\164\145\x5f\153\x65\171", $n5);
        update_option("\155\x6f\x5f\163\141\x6d\154\x5f\143\x75\162\x72\145\156\164\137\143\145\x72\x74", $Yn);
        update_option("\x6d\x6f\x5f\163\141\x6d\x6c\x5f\143\x75\162\162\145\x6e\x74\x5f\143\145\162\164\x5f\x70\162\x69\166\141\164\x65\137\153\145\171", $n5);
        update_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\x6d\145\163\163\141\147\145", "\x43\x75\x73\x74\157\x6d\x20\x43\x65\162\x74\x69\146\x69\143\x61\x74\145\x20\165\x70\x64\x61\x74\x65\x64\40\x73\165\x63\143\145\163\x73\146\165\154\154\x79\56");
        $this->mo_saml_show_success_message();
        zY:
        VO:
        WM:
        if (self::mo_check_option_admin_referer("\155\x6f\x5f\163\x61\x6d\154\137\167\x69\144\x67\x65\x74\137\157\160\164\x69\x6f\x6e")) {
            goto aP;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\137\x73\141\155\154\137\x72\145\x67\151\x73\164\145\x72\137\x63\165\x73\x74\x6f\155\x65\x72")) {
            goto mo;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\x76\141\154\x69\x64\141\x74\145\137\x6f\x74\x70")) {
            goto WA;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\163\141\155\x6c\137\166\145\162\151\x66\171\137\143\165\x73\x74\157\155\x65\162")) {
            goto a5;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\163\x61\155\x6c\137\x63\x6f\x6e\x74\x61\x63\x74\137\x75\x73\x5f\161\x75\145\162\171\137\x6f\160\164\x69\157\x6e")) {
            goto zg;
        }
        if (self::mo_check_option_admin_referer("\155\157\137\163\141\x6d\154\x5f\162\x65\163\145\156\144\137\x6f\x74\160\x5f\x65\155\x61\151\x6c")) {
            goto FW;
        }
        if (self::mo_check_option_admin_referer("\155\157\x5f\x73\x61\x6d\x6c\x5f\x72\x65\163\x65\x6e\144\x5f\157\x74\x70\x5f\160\x68\x6f\x6e\x65")) {
            goto Gy;
        }
        if (self::mo_check_option_admin_referer("\155\157\x5f\x73\141\155\x6c\137\x67\x6f\x5f\142\x61\143\x6b")) {
            goto fI;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\137\163\141\155\154\x5f\162\145\147\x69\163\x74\145\x72\137\167\151\x74\150\137\x70\x68\157\x6e\x65\x5f\157\160\164\x69\x6f\x6e")) {
            goto rb;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\x5f\163\141\155\x6c\137\162\x65\147\x69\x73\x74\145\162\x65\x64\x5f\157\x6e\154\171\137\141\x63\143\x65\x73\163\x5f\x6f\160\x74\151\157\x6e")) {
            goto WJ;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\163\141\155\154\137\x72\145\x64\151\162\145\143\164\x5f\x74\x6f\x5f\x77\x70\x5f\x6c\157\x67\151\156\x5f\x6f\160\x74\151\x6f\156")) {
            goto QH;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\137\163\x61\x6d\154\137\x66\x6f\162\143\145\x5f\x61\165\164\150\145\x6e\164\151\143\141\164\151\157\156\x5f\157\x70\164\151\157\x6e")) {
            goto Fm;
        }
        if (self::mo_check_option_admin_referer("\155\157\x5f\x73\141\x6d\x6c\137\x65\156\x61\142\154\145\x5f\162\163\163\137\x61\143\x63\x65\163\163\x5f\157\160\x74\151\x6f\156")) {
            goto lj;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\x73\141\x6d\x6c\137\x65\x6e\141\142\154\145\x5f\x6c\x6f\x67\151\x6e\x5f\162\145\x64\151\162\145\143\164\137\x6f\160\164\x69\x6f\156")) {
            goto OJ;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\x73\x61\155\x6c\137\141\144\x64\x5f\163\x73\x6f\x5f\x62\x75\x74\x74\x6f\156\137\167\x70\x5f\x6f\160\x74\151\x6f\156")) {
            goto bq;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\x73\x61\155\154\x5f\x75\x73\145\x5f\x62\165\164\164\157\156\x5f\141\x73\137\163\150\157\162\x74\143\157\144\145\x5f\x6f\x70\x74\x69\x6f\x6e")) {
            goto Hn;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\137\163\x61\x6d\x6c\137\165\163\x65\x5f\142\x75\x74\x74\x6f\x6e\137\x61\163\137\x77\x69\x64\x67\145\x74\x5f\x6f\160\164\x69\x6f\x6e")) {
            goto b8;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\137\163\141\x6d\x6c\x5f\141\x6c\154\x6f\x77\137\167\160\x5f\x73\151\147\x6e\151\x6e\x5f\x6f\x70\164\x69\157\156")) {
            goto fO;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\137\x73\141\155\x6c\x5f\x63\x75\x73\x74\x6f\155\x5f\x62\165\164\164\x6f\156\x5f\x6f\160\164\x69\157\156")) {
            goto dX;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\137\x73\x61\155\154\x5f\x66\x6f\162\147\x6f\164\137\160\x61\x73\x73\167\157\x72\x64\x5f\x66\157\x72\155\137\157\x70\164\x69\x6f\156")) {
            goto ze;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\137\163\x61\155\x6c\137\x76\x65\162\151\x66\171\x5f\154\151\x63\145\x6e\x73\x65")) {
            goto qc;
        }
        if (self::mo_check_option_admin_referer("\155\157\137\163\x61\x6d\154\x5f\146\162\x65\145\x5f\164\x72\151\141\154")) {
            goto M1;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\x63\x68\145\x63\153\x5f\154\151\x63\145\x6e\x73\x65")) {
            goto kB;
        }
        if (!self::mo_check_option_admin_referer("\155\x6f\137\x73\141\155\154\x5f\x72\x65\x6d\157\x76\x65\x5f\141\143\x63\157\x75\x6e\164")) {
            goto Rt;
        }
        $this->mo_sso_saml_deactivate();
        add_option("\155\x6f\137\163\x61\155\x6c\x5f\162\x65\147\x69\163\164\162\141\164\x69\157\x6e\x5f\163\164\x61\164\x75\163", "\162\x65\155\x6f\166\145\x64\x5f\141\143\143\x6f\x75\156\164");
        $WO = add_query_arg(array("\x74\x61\x62" => "\x6c\157\147\151\x6e"), $_SERVER["\x52\105\121\x55\x45\x53\124\137\125\122\x49"]);
        header("\114\157\143\141\x74\x69\x6f\x6e\x3a\x20" . $WO);
        Rt:
        goto wo;
        kB:
        $lF = new Customersaml();
        $C2 = $lF->check_customer_ln();
        if ($C2) {
            goto VT;
        }
        return;
        VT:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\x73\164\141\x74\x75\163"], "\123\x55\103\x43\105\123\x53") == 0) {
            goto fz;
        }
        $k3 = get_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\x63\165\x73\x74\x6f\155\x65\162\137\x74\x6f\x6b\x65\x6e");
        update_option("\x73\151\x74\x65\137\143\153\137\154", AESEncryption::encrypt_data("\x66\141\154\x73\x65", $k3));
        $WO = add_query_arg(array("\164\x61\x62" => "\x6c\151\x63\x65\156\163\x69\x6e\147"), $_SERVER["\122\105\x51\125\105\123\x54\x5f\x55\122\111"]);
        update_option("\155\x6f\137\x73\x61\x6d\154\x5f\x6d\x65\163\x73\x61\147\145", "\131\x6f\165\x20\x68\x61\166\145\x20\156\x6f\164\40\165\x70\147\162\141\x64\145\144\40\171\145\x74\x2e\x20" . addLink("\103\154\x69\x63\x6b\40\150\x65\x72\x65", $WO) . "\40\x74\x6f\x20\165\160\x67\x72\x61\144\145\x20\164\x6f\x20\160\x72\x65\155\151\x75\x6d\x20\166\145\x72\163\x69\157\156\56");
        $this->mo_saml_show_error_message();
        goto ko;
        fz:
        if (array_key_exists("\154\151\143\x65\156\x73\x65\x50\x6c\141\156", $C2) && !$this->mo_saml_check_empty_or_null($C2["\x6c\151\143\x65\156\163\145\120\154\141\156"])) {
            goto Ji;
        }
        $k3 = get_option("\155\157\137\163\141\155\154\x5f\143\x75\163\164\x6f\155\x65\x72\x5f\164\157\x6b\145\156");
        update_option("\x73\151\x74\x65\x5f\x63\x6b\137\154", AESEncryption::encrypt_data("\146\x61\x6c\x73\145", $k3));
        $WO = add_query_arg(array("\x74\141\x62" => "\x6c\x69\x63\x65\x6e\163\151\156\147"), $_SERVER["\x52\x45\x51\x55\105\123\x54\137\x55\122\111"]);
        update_option("\x6d\157\137\163\141\155\x6c\x5f\x6d\145\163\163\x61\x67\145", "\131\x6f\165\40\x68\x61\166\x65\40\x6e\x6f\164\40\x75\160\x67\x72\x61\x64\x65\144\x20\171\145\x74\x2e\x20" . addLink("\103\154\151\x63\x6b\40\x68\145\x72\145", $WO) . "\40\x74\157\40\x75\160\x67\x72\x61\144\145\40\x74\x6f\x20\x70\162\145\155\151\165\155\40\x76\x65\162\x73\x69\157\156\x2e");
        $this->mo_saml_show_error_message();
        goto JV;
        Ji:
        update_option("\155\157\137\x73\141\x6d\154\137\x6c\151\143\145\156\163\145\137\x6e\x61\x6d\145", base64_encode($C2["\154\x69\143\x65\156\163\145\x50\x6c\x61\156"]));
        $k3 = get_option("\x6d\157\x5f\x73\141\x6d\x6c\137\143\x75\x73\x74\157\x6d\145\162\137\x74\x6f\153\x65\156");
        if (!(array_key_exists("\x6e\x6f\x4f\x66\x55\163\145\162\163", $C2) && !$this->mo_saml_check_empty_or_null($C2["\x6e\157\117\146\125\x73\145\x72\x73"]))) {
            goto UH;
        }
        update_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\165\163\x72\137\154\155\164", AESEncryption::encrypt_data($C2["\156\x6f\117\146\125\163\145\162\163"], $k3));
        UH:
        update_option("\163\151\164\x65\137\143\x6b\x5f\154", AESEncryption::encrypt_data("\164\162\x75\145", $k3));
        $ho = plugin_dir_path(__FILE__);
        $IC = home_url();
        $IC = trim($IC, "\57");
        if (preg_match("\43\x5e\150\x74\x74\x70\x28\163\x29\77\72\57\57\x23", $IC)) {
            goto eP;
        }
        $IC = "\x68\x74\164\160\72\x2f\57" . $IC;
        eP:
        $rV = parse_url($IC);
        $ef = preg_replace("\x2f\136\x77\x77\167\134\x2e\x2f", '', $rV["\x68\157\x73\164"]);
        $vo = wp_upload_dir();
        $iT = $ef . "\x2d" . $vo["\x62\141\x73\x65\x64\x69\x72"];
        $bv = hash_hmac("\x73\x68\141\x32\x35\66", $iT, "\x34\x44\110\x66\152\147\x66\152\141\x73\x6e\x64\146\x73\141\152\146\110\x47\x4a");
        $LE = $this->djkasjdksa();
        $f1 = round(strlen($LE) / rand(2, 20));
        $LE = substr_replace($LE, $bv, $f1, 0);
        $Ax = base64_decode($LE);
        if (is_writable($ho . "\154\x69\x63\x65\156\x73\145")) {
            goto zu;
        }
        $LE = str_rot13($LE);
        $cJ = base64_decode("\142\107\x4e\x6b\141\155\x74\150\143\62\160\x6b\x61\63\x4e\x68\x59\x32\167\75");
        update_option($cJ, $LE);
        goto Qs;
        zu:
        file_put_contents($ho . "\x6c\x69\143\x65\156\163\145", $Ax);
        Qs:
        update_option("\154\x63\167\x72\164\x6c\146\x73\x61\155\154", true);
        $WO = add_query_arg(array("\x74\141\x62" => "\x67\145\156\x65\162\x61\x6c"), $_SERVER["\x52\x45\x51\x55\105\123\124\x5f\x55\x52\x49"]);
        update_option("\155\157\x5f\163\x61\155\x6c\137\x6d\x65\163\x73\x61\147\145", "\x59\x6f\165\x20\x68\x61\166\145\x20\163\165\143\x63\x65\163\x73\x66\x75\x6c\x6c\171\40\x75\160\147\162\141\144\145\144\x20\171\157\165\162\40\x6c\x69\x63\x65\x6e\163\x65\56");
        $this->mo_saml_show_success_message();
        JV:
        ko:
        wo:
        goto mr;
        M1:
        if (decryptSamlElement()) {
            goto x4;
        }
        $oZ = postResponse();
        $lF = new Customersaml();
        $C2 = $lF->mo_saml_vl($oZ, false);
        if ($C2) {
            goto v7;
        }
        return;
        v7:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\x73\164\x61\x74\x75\x73"], "\123\125\x43\103\x45\x53\x53") == 0) {
            goto Jt;
        }
        if (strcasecmp($C2["\163\x74\141\x74\x75\x73"], "\106\x41\x49\x4c\105\x44") == 0) {
            goto YE;
        }
        update_option("\155\x6f\137\x73\141\x6d\154\137\x6d\145\163\x73\141\x67\x65", "\101\156\40\x65\x72\162\x6f\x72\40\x6f\x63\143\x75\x72\x65\144\40\167\x68\x69\x6c\145\x20\160\162\157\143\145\x73\163\151\156\x67\x20\171\157\165\x72\x20\x72\145\x71\165\145\x73\x74\56\40\120\x6c\145\x61\x73\x65\x20\124\x72\x79\40\x61\147\x61\151\x6e\x2e");
        $this->mo_saml_show_error_message();
        goto aN;
        YE:
        update_option("\155\x6f\x5f\x73\141\155\x6c\137\155\145\x73\163\141\147\145", "\124\x68\x65\x72\145\40\x77\x61\x73\40\141\156\40\145\x72\162\x6f\162\40\x61\143\164\151\166\141\164\x69\x6e\147\x20\x79\157\x75\162\x20\x54\122\x49\x41\114\x20\166\145\162\x73\x69\x6f\156\x2e\x20\120\154\145\x61\x73\145\x20\x63\157\156\x74\141\x63\164\x20\x69\x6e\146\157\x40\x78\x65\143\x75\162\151\146\171\x2e\143\x6f\x6d\40\x66\157\x72\40\147\x65\164\x74\151\156\x67\40\156\145\x77\x20\154\x69\x63\x65\x6e\x73\x65\40\146\x6f\162\x20\x74\x72\x69\141\x6c\40\x76\x65\x72\163\151\157\156\x2e");
        $this->mo_saml_show_error_message();
        aN:
        goto rN;
        Jt:
        $k3 = get_option("\x6d\157\x5f\163\x61\x6d\x6c\x5f\143\x75\x73\x74\x6f\155\x65\x72\137\x74\x6f\x6b\x65\x6e");
        $k3 = get_option("\x6d\157\137\x73\141\155\154\x5f\143\x75\163\164\x6f\x6d\x65\162\x5f\x74\x6f\x6b\145\156");
        update_option("\x74\x5f\x73\151\164\x65\x5f\x73\x74\141\x74\165\163", AESEncryption::encrypt_data("\x74\162\165\x65", $k3));
        update_option("\x6d\x6f\137\x73\x61\x6d\154\137\155\145\163\x73\141\x67\145", "\x59\157\165\162\40\65\40\144\x61\x79\163\x20\x54\122\111\101\x4c\x20\151\163\x20\141\143\x74\x69\166\141\164\x65\144\56\40\x59\157\x75\40\x63\141\x6e\x20\156\157\167\40\163\145\x74\x75\x70\40\x74\x68\x65\40\160\154\165\x67\151\x6e\56");
        $this->mo_saml_show_success_message();
        rN:
        goto GS;
        x4:
        update_option("\x6d\157\x5f\x73\141\155\154\x5f\x6d\145\163\163\141\147\x65", "\x54\150\145\162\x65\40\167\x61\x73\40\141\156\x20\145\x72\x72\x6f\x72\x20\141\143\164\151\x76\x61\164\x69\156\x67\40\x79\157\165\162\40\124\122\x49\101\114\x20\166\145\x72\163\151\x6f\156\56\x20\105\x69\164\150\145\162\x20\171\157\x75\x72\40\x74\162\x69\141\154\40\160\x65\x72\151\x6f\x64\40\151\x73\x20\145\x78\x70\x69\162\x65\144\40\157\162\40\x79\157\x75\40\x61\162\x65\x20\165\x73\x69\156\147\40\x77\162\157\x6e\x67\x20\x74\162\151\141\154\40\x76\x65\162\163\151\x6f\x6e\56\40\x50\154\x65\x61\x73\x65\40\143\x6f\x6e\x74\141\x63\x74\x20\151\156\x66\x6f\x40\x78\145\143\x75\162\x69\146\171\56\143\157\x6d\x20\x66\157\162\x20\147\145\x74\164\x69\x6e\x67\x20\156\145\167\40\x6c\x69\x63\x65\156\163\145\x20\x66\157\162\x20\164\x72\x69\141\154\x20\x76\x65\x72\x73\x69\x6f\156\x2e");
        $this->mo_saml_show_error_message();
        GS:
        mr:
        goto Tn;
        qc:
        if (!$this->mo_saml_check_empty_or_null($_POST["\x73\141\x6d\154\137\154\151\143\145\156\143\145\x5f\x6b\145\x79"])) {
            goto Z7;
        }
        update_option("\155\x6f\x5f\x73\141\x6d\x6c\x5f\155\145\163\x73\141\x67\145", "\101\154\154\x20\164\150\x65\40\146\x69\x65\x6c\144\x73\40\x61\x72\x65\x20\x72\x65\x71\x75\151\x72\x65\144\x2e\x20\x50\x6c\145\141\x73\145\40\x65\x6e\x74\145\x72\x20\x76\x61\154\x69\x64\x20\x6c\x69\143\x65\x6e\163\145\x20\x6b\x65\x79\x2e");
        $this->mo_saml_show_error_message();
        return;
        Z7:
        $oZ = htmlspecialchars(trim($_POST["\163\141\x6d\154\137\x6c\x69\143\145\x6e\x63\145\x5f\153\x65\171"]));
        $lF = new Customersaml();
        $C2 = $lF->check_customer_ln();
        if ($C2) {
            goto jm;
        }
        return;
        jm:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\163\164\x61\164\x75\163"], "\x53\125\103\x43\105\123\x53") == 0) {
            goto wr;
        }
        $k3 = get_option("\x6d\x6f\137\x73\141\x6d\x6c\137\143\165\163\164\157\x6d\145\x72\x5f\x74\157\x6b\x65\x6e");
        update_option("\163\x69\164\x65\x5f\x63\x6b\137\154", AESEncryption::encrypt_data("\x66\141\x6c\x73\x65", $k3));
        $WO = add_query_arg(array("\x74\x61\142" => "\x6c\151\143\145\156\x73\151\x6e\147"), $_SERVER["\122\x45\121\x55\105\123\124\x5f\x55\122\111"]);
        update_option("\x6d\157\137\x73\141\155\154\x5f\155\145\163\163\x61\147\x65", "\131\x6f\165\x20\x68\x61\x76\145\x20\x6e\x6f\164\x20\x75\x70\x67\162\141\144\145\144\x20\x79\x65\164\56\40" . addLink("\x43\154\x69\143\153\40\150\145\162\x65", $WO) . "\40\164\157\40\165\x70\x67\x72\x61\x64\x65\40\x74\157\40\x70\162\x65\x6d\x69\165\155\x20\x76\145\162\x73\151\x6f\x6e\x2e");
        $this->mo_saml_show_error_message();
        goto I_;
        wr:
        $C2 = json_decode($lF->mo_saml_vl($oZ, false), true);
        update_option("\166\154\x5f\x63\x68\145\143\153\137\x74", time());
        if (is_array($C2) and strcasecmp($C2["\x73\164\x61\164\165\x73"], "\123\125\103\x43\x45\x53\x53") == 0) {
            goto bt;
        }
        if (is_array($C2) and strcasecmp($C2["\x73\164\141\164\x75\163"], "\106\x41\x49\x4c\105\x44") == 0) {
            goto to;
        }
        update_option("\155\157\137\163\x61\x6d\x6c\137\155\x65\163\x73\141\147\145", "\x41\156\40\145\162\162\157\162\x20\157\143\x63\165\162\x65\x64\x20\167\x68\x69\154\x65\40\x70\x72\x6f\143\145\163\163\151\x6e\x67\40\x79\157\x75\162\40\162\x65\x71\165\145\x73\164\x2e\x20\120\x6c\145\141\163\x65\40\124\162\x79\40\x61\x67\x61\151\x6e\56");
        $this->mo_saml_show_error_message();
        goto f0;
        to:
        if (strcasecmp($C2["\155\x65\x73\x73\141\147\145"], "\103\157\144\145\40\150\141\163\x20\x45\x78\160\x69\162\145\x64") == 0) {
            goto tO;
        }
        update_option("\x6d\x6f\x5f\x73\x61\155\x6c\x5f\155\145\163\163\x61\x67\x65", "\x59\x6f\165\40\x68\x61\x76\145\40\x65\156\x74\x65\162\145\144\x20\141\x6e\x20\x69\x6e\x76\141\154\x69\144\x20\154\x69\x63\145\x6e\x73\145\40\x6b\x65\171\x2e\x20\x50\154\x65\141\x73\145\x20\x65\156\x74\x65\162\x20\141\40\166\x61\x6c\x69\x64\x20\x6c\151\143\145\x6e\163\145\40\x6b\x65\171\56");
        goto KO;
        tO:
        $WO = add_query_arg(array("\164\x61\x62" => "\154\151\x63\x65\x6e\x73\x69\156\x67"), $_SERVER["\122\105\121\125\105\x53\x54\x5f\x55\x52\x49"]);
        update_option("\x6d\157\x5f\163\x61\155\154\x5f\155\x65\x73\163\x61\147\145", "\x4c\x69\143\x65\x6e\x73\145\40\153\145\171\40\x79\157\165\x20\x68\141\x76\x65\40\x65\x6e\x74\145\x72\x65\x64\40\x68\x61\x73\40\x61\x6c\162\145\141\x64\171\40\142\x65\x65\x6e\40\165\163\145\144\x2e\40\x50\x6c\x65\x61\x73\145\40\x65\x6e\164\145\162\40\141\x20\x6b\145\171\40\x77\150\x69\143\150\x20\150\141\x73\x20\x6e\157\164\40\142\145\145\x6e\40\x75\x73\145\144\40\x62\145\x66\x6f\x72\145\x20\x6f\156\40\x61\156\171\x20\157\164\x68\x65\x72\x20\151\x6e\x73\164\141\156\x63\x65\40\x6f\x72\x20\x69\146\40\x79\x6f\165\40\x68\x61\x76\x65\x20\x65\x78\141\165\163\x74\x65\x64\40\141\x6c\154\x20\x79\x6f\165\162\40\x6b\145\x79\x73\40\164\150\x65\x6e\40" . addLink("\103\154\x69\x63\153\40\150\x65\x72\145", $WO) . "\40\164\x6f\x20\x62\165\x79\40\x6d\x6f\x72\x65\56");
        KO:
        $this->mo_saml_show_error_message();
        f0:
        goto IH;
        bt:
        $k3 = get_option("\x6d\157\137\x73\x61\x6d\154\x5f\x63\165\163\x74\157\x6d\x65\x72\x5f\x74\x6f\x6b\145\x6e");
        update_option("\163\x6d\x6c\x5f\x6c\153", AESEncryption::encrypt_data($oZ, $k3));
        $Ew = "\x59\x6f\165\162\40\154\x69\x63\145\x6e\x73\145\40\151\x73\40\x76\145\x72\151\x66\x69\145\144\56\x20\x59\157\x75\40\143\141\x6e\40\x6e\x6f\x77\40\163\145\164\x75\x70\x20\164\x68\x65\40\160\154\165\x67\151\x6e\x2e";
        update_option("\x6d\x6f\137\163\141\x6d\x6c\x5f\x6d\145\x73\163\141\147\x65", $Ew);
        $k3 = get_option("\155\157\137\163\141\x6d\x6c\x5f\143\x75\163\x74\157\155\x65\162\x5f\x74\x6f\x6b\x65\156");
        update_option("\x73\151\x74\145\x5f\x63\x6b\x5f\154", AESEncryption::encrypt_data("\164\162\x75\x65", $k3));
        update_option("\x74\x5f\x73\151\164\x65\x5f\x73\x74\x61\164\x75\163", AESEncryption::encrypt_data("\146\x61\154\x73\x65", $k3));
        $ho = plugin_dir_path(__FILE__);
        $IC = home_url();
        $IC = trim($IC, "\x2f");
        if (preg_match("\43\x5e\150\x74\164\160\50\x73\x29\x3f\72\x2f\x2f\x23", $IC)) {
            goto TJ;
        }
        $IC = "\150\164\164\x70\72\57\x2f" . $IC;
        TJ:
        $rV = parse_url($IC);
        $ef = preg_replace("\57\136\x77\167\167\134\x2e\57", '', $rV["\x68\157\163\x74"]);
        $vo = wp_upload_dir();
        $iT = $ef . "\55" . $vo["\x62\141\x73\x65\x64\151\x72"];
        $bv = hash_hmac("\x73\x68\x61\x32\65\66", $iT, "\x34\104\110\x66\x6a\147\x66\152\x61\x73\x6e\144\x66\x73\141\x6a\x66\110\x47\112");
        $LE = $this->djkasjdksa();
        $f1 = round(strlen($LE) / rand(2, 20));
        $LE = substr_replace($LE, $bv, $f1, 0);
        $Ax = base64_decode($LE);
        if (is_writable($ho . "\x6c\x69\143\145\x6e\x73\x65")) {
            goto RJ;
        }
        $LE = str_rot13($LE);
        $cJ = base64_decode("\142\x47\x4e\x6b\141\x6d\x74\150\143\62\160\x6b\141\63\x4e\150\131\62\167\75");
        update_option($cJ, $LE);
        goto yR;
        RJ:
        file_put_contents($ho . "\x6c\x69\143\x65\x6e\x73\x65", $Ax);
        yR:
        update_option("\x6c\x63\x77\x72\x74\x6c\146\x73\141\x6d\x6c", true);
        $WO = add_query_arg(array("\x74\x61\142" => "\x67\145\x6e\145\162\141\x6c"), $_SERVER["\x52\105\x51\125\105\x53\x54\137\x55\x52\x49"]);
        $this->mo_saml_show_success_message();
        IH:
        I_:
        Tn:
        goto G6;
        ze:
        if (mo_saml_is_extension_installed("\143\x75\162\154")) {
            goto eq;
        }
        update_option("\155\x6f\137\x73\141\155\x6c\137\x6d\145\x73\163\141\x67\145", "\x45\x52\122\117\x52\72\x20\120\110\120\x20\x63\x55\122\x4c\x20\145\x78\x74\145\156\x73\151\x6f\x6e\x20\x69\163\x20\156\157\x74\x20\151\x6e\x73\164\x61\x6c\x6c\x65\144\40\x6f\x72\x20\x64\151\x73\141\142\x6c\x65\x64\x2e\40\122\145\163\145\156\144\40\x4f\124\x50\x20\146\x61\x69\154\145\144\x2e");
        $this->mo_saml_show_error_message();
        return;
        eq:
        $Op = get_option("\155\157\x5f\163\141\155\154\x5f\x61\x64\x6d\x69\156\x5f\145\x6d\x61\151\154");
        $lF = new Customersaml();
        $C2 = $lF->mo_saml_forgot_password($Op);
        if ($C2) {
            goto rh;
        }
        return;
        rh:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\x73\164\141\164\165\x73"], "\123\x55\103\x43\105\123\x53") == 0) {
            goto b3;
        }
        update_option("\x6d\x6f\137\x73\141\x6d\x6c\137\155\145\163\163\x61\147\145", "\x41\156\40\145\162\162\157\x72\40\x6f\143\x63\x75\x72\x65\x64\x20\167\x68\x69\x6c\145\40\x70\162\x6f\143\145\163\x73\151\156\x67\x20\x79\157\x75\162\x20\162\145\161\x75\145\x73\164\56\40\120\x6c\145\141\163\145\x20\124\162\171\40\141\147\141\x69\156\56");
        $this->mo_saml_show_error_message();
        goto Oo;
        b3:
        update_option("\x6d\x6f\137\163\x61\x6d\x6c\137\155\145\163\163\x61\x67\x65", "\x59\157\x75\x72\x20\160\141\x73\163\x77\157\162\x64\40\150\141\x73\x20\x62\145\x65\x6e\40\x72\x65\x73\x65\164\40\163\x75\143\143\x65\x73\163\146\165\154\x6c\x79\x2e\40\120\154\145\x61\x73\x65\x20\x65\x6e\x74\x65\162\x20\164\x68\x65\40\156\145\x77\40\160\141\x73\163\x77\x6f\x72\144\x20\x73\145\x6e\164\40\164\x6f\x20" . $Op . "\56");
        $this->mo_saml_show_success_message();
        Oo:
        G6:
        goto XA;
        dX:
        $yd = '';
        $C6 = '';
        $NS = '';
        $m4 = '';
        $qw = '';
        $Zc = '';
        $uS = '';
        $KS = '';
        $My = '';
        $os = '';
        $b1 = "\141\x62\x6f\166\145";
        if (!(array_key_exists("\155\157\x5f\163\141\x6d\154\x5f\x62\x75\164\164\157\x6e\x5f\163\x69\172\145", $_POST) && !empty($_POST["\x6d\x6f\x5f\x73\141\x6d\154\x5f\x62\165\x74\164\157\x6e\x5f\163\x69\x7a\145"]))) {
            goto qO;
        }
        $NS = htmlspecialchars($_POST["\155\157\x5f\x73\141\155\154\x5f\x62\x75\164\x74\x6f\x6e\x5f\x73\151\x7a\x65"]);
        qO:
        if (!(array_key_exists("\x6d\157\137\x73\x61\x6d\154\137\142\x75\x74\164\157\156\137\167\x69\x64\164\x68", $_POST) && !empty($_POST["\155\x6f\137\163\x61\155\x6c\x5f\142\x75\x74\164\157\x6e\x5f\x77\x69\x64\164\150"]))) {
            goto rv;
        }
        $m4 = htmlspecialchars($_POST["\x6d\x6f\137\x73\141\155\154\137\142\165\x74\x74\157\x6e\x5f\167\151\144\x74\150"]);
        rv:
        if (!(array_key_exists("\155\157\x5f\x73\141\x6d\x6c\137\x62\x75\x74\x74\x6f\x6e\x5f\x68\145\151\147\150\164", $_POST) && !empty($_POST["\x6d\157\137\x73\x61\155\154\x5f\x62\165\164\164\157\156\137\x68\145\151\x67\x68\164"]))) {
            goto uQ;
        }
        $qw = htmlspecialchars($_POST["\x6d\157\137\x73\x61\x6d\154\137\142\x75\164\x74\157\156\x5f\x68\145\151\x67\x68\x74"]);
        uQ:
        if (!(array_key_exists("\155\x6f\137\163\141\155\154\x5f\x62\x75\164\164\x6f\x6e\x5f\143\x75\x72\x76\x65", $_POST) && !empty($_POST["\x6d\157\x5f\x73\x61\x6d\x6c\x5f\x62\x75\164\x74\x6f\156\x5f\143\165\x72\x76\x65"]))) {
            goto tm;
        }
        $Zc = htmlspecialchars($_POST["\x6d\157\x5f\163\x61\155\x6c\x5f\x62\x75\164\x74\157\x6e\137\143\165\162\166\145"]);
        tm:
        if (!array_key_exists("\x6d\157\137\163\141\x6d\154\x5f\x62\x75\164\164\157\x6e\x5f\143\x6f\154\157\x72", $_POST)) {
            goto Jl;
        }
        $uS = htmlspecialchars($_POST["\155\x6f\137\163\141\155\x6c\137\x62\x75\x74\x74\157\x6e\137\143\157\x6c\x6f\x72"]);
        Jl:
        if (!array_key_exists("\x6d\x6f\x5f\163\x61\x6d\154\137\x62\165\164\164\157\156\137\164\150\145\x6d\145", $_POST)) {
            goto M2;
        }
        $yd = htmlspecialchars($_POST["\155\157\137\x73\x61\x6d\x6c\x5f\x62\x75\x74\164\x6f\x6e\137\164\x68\x65\x6d\145"]);
        M2:
        if (!array_key_exists("\155\157\x5f\163\x61\x6d\154\x5f\142\165\x74\164\x6f\x6e\x5f\x74\145\x78\x74", $_POST)) {
            goto Fz;
        }
        $KS = htmlspecialchars($_POST["\x6d\157\137\163\x61\155\154\x5f\x62\165\x74\164\x6f\156\137\164\x65\170\x74"]);
        if (!(empty($KS) || $KS == "\x4c\x6f\147\x69\156")) {
            goto fb;
        }
        $KS = "\114\157\147\x69\x6e";
        fb:
        $Rs = get_option("\x73\141\x6d\154\x5f\x69\x64\145\156\164\151\164\171\x5f\x6e\x61\x6d\x65");
        $KS = str_replace("\43\43\111\104\120\43\x23", $Rs, $KS);
        Fz:
        if (!array_key_exists("\x6d\157\x5f\x73\x61\x6d\154\x5f\x66\x6f\x6e\x74\x5f\x63\x6f\154\157\162", $_POST)) {
            goto hu;
        }
        $My = htmlspecialchars($_POST["\155\157\x5f\x73\141\x6d\154\x5f\x66\x6f\x6e\164\137\143\x6f\x6c\x6f\162"]);
        hu:
        if (!array_key_exists("\155\157\x5f\163\141\x6d\x6c\137\x66\157\x6e\x74\x5f\163\151\x7a\x65", $_POST)) {
            goto Hd;
        }
        $os = htmlspecialchars($_POST["\x6d\157\x5f\x73\141\x6d\x6c\x5f\146\157\x6e\164\x5f\163\151\172\x65"]);
        Hd:
        if (!array_key_exists("\163\163\157\137\x62\x75\164\x74\157\156\x5f\x6c\157\147\x69\156\x5f\x66\157\162\x6d\137\160\x6f\163\151\x74\151\157\x6e", $_POST)) {
            goto zl;
        }
        $b1 = htmlspecialchars($_POST["\x73\x73\157\x5f\142\165\x74\164\x6f\x6e\x5f\154\157\147\x69\156\137\x66\157\x72\155\137\160\157\x73\x69\164\151\x6f\x6e"]);
        zl:
        update_option("\x6d\157\x5f\x73\x61\155\x6c\x5f\x62\165\x74\x74\157\x6e\137\164\x68\x65\x6d\145", $yd);
        update_option("\155\157\137\x73\141\155\154\137\x62\x75\x74\x74\x6f\x6e\137\x73\x69\x7a\145", $NS);
        update_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\142\165\164\164\x6f\156\x5f\167\151\x64\164\x68", $m4);
        update_option("\x6d\157\x5f\x73\x61\x6d\154\137\142\x75\164\164\x6f\156\x5f\150\145\x69\x67\150\164", $qw);
        update_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\142\165\x74\x74\x6f\x6e\137\143\x75\x72\x76\145", $Zc);
        update_option("\155\x6f\x5f\x73\x61\x6d\154\x5f\142\x75\x74\x74\157\x6e\137\143\x6f\154\157\162", $uS);
        update_option("\155\157\x5f\x73\x61\x6d\154\x5f\x62\165\x74\x74\157\156\137\x74\145\170\x74", $KS);
        update_option("\x6d\157\137\x73\141\155\x6c\x5f\146\157\x6e\x74\x5f\143\x6f\x6c\x6f\x72", $My);
        update_option("\155\x6f\137\163\x61\x6d\x6c\137\x66\157\x6e\164\x5f\x73\x69\x7a\145", $os);
        update_option("\163\163\157\x5f\x62\x75\x74\164\x6f\x6e\137\154\x6f\147\x69\x6e\x5f\x66\157\162\x6d\137\x70\x6f\x73\151\x74\x69\157\156", $b1);
        update_option("\155\157\x5f\163\141\155\154\x5f\x6d\145\163\163\141\147\x65", "\123\x69\147\156\40\x49\x6e\x20\163\x65\x74\x74\x69\156\147\163\x20\x75\x70\x64\x61\164\x65\x64\56");
        $this->mo_saml_show_success_message();
        XA:
        goto uL;
        fO:
        $FI = "\x66\x61\154\x73\x65";
        if (array_key_exists("\x6d\157\137\163\x61\x6d\154\137\141\x6c\x6c\157\167\x5f\167\x70\137\163\151\147\x6e\151\x6e", $_POST)) {
            goto SQ;
        }
        $Jp = "\146\141\154\163\145";
        goto WI;
        SQ:
        $Jp = htmlspecialchars($_POST["\155\x6f\137\x73\x61\155\154\x5f\141\154\x6c\157\167\137\167\x70\137\x73\x69\x67\156\x69\x6e"]);
        WI:
        if ($Jp == "\164\x72\x75\x65") {
            goto LQ;
        }
        update_option("\x6d\x6f\x5f\x73\141\155\x6c\x5f\141\x6c\154\x6f\167\137\167\x70\137\x73\151\147\156\x69\x6e", '');
        goto LC;
        LQ:
        update_option("\x6d\157\x5f\163\x61\155\154\x5f\141\x6c\x6c\x6f\x77\x5f\167\160\137\163\x69\x67\x6e\151\156", "\164\162\165\x65");
        if (!array_key_exists("\x6d\x6f\x5f\x73\141\155\154\x5f\x62\141\x63\x6b\144\x6f\x6f\162\137\x75\162\154", $_POST)) {
            goto fY;
        }
        $FI = htmlspecialchars(trim($_POST["\x6d\157\137\163\x61\x6d\154\137\x62\141\143\153\144\x6f\x6f\162\137\x75\x72\154"]));
        fY:
        LC:
        update_option("\x6d\x6f\x5f\163\141\x6d\x6c\137\142\141\143\153\x64\157\157\162\x5f\x75\162\x6c", $FI);
        update_option("\x6d\x6f\x5f\163\141\155\154\137\x6d\x65\163\163\141\147\x65", "\123\151\147\x6e\40\111\156\x20\x73\x65\x74\x74\x69\156\x67\x73\x20\x75\x70\x64\x61\164\x65\144\56");
        $this->mo_saml_show_success_message();
        uL:
        goto H7;
        b8:
        if (mo_saml_is_sp_configured()) {
            goto xP;
        }
        update_option("\x6d\x6f\x5f\163\141\155\x6c\137\155\x65\x73\163\x61\x67\x65", "\x50\154\x65\141\x73\x65\40\x63\x6f\x6d\160\154\145\164\x65\40" . addLink("\123\145\162\x76\x69\143\145\40\x50\x72\157\166\151\x64\x65\162", add_query_arg(array("\164\x61\142" => "\163\x61\166\x65"), $_SERVER["\x52\105\121\x55\105\x53\x54\137\125\x52\x49"])) . "\40\143\157\156\146\151\x67\165\x72\141\x74\151\x6f\x6e\40\146\x69\162\163\164\x2e");
        $this->mo_saml_show_error_message();
        goto Ba;
        xP:
        if (array_key_exists("\155\157\137\163\141\x6d\154\x5f\165\163\x65\137\x62\165\x74\164\x6f\x6e\137\141\x73\x5f\167\151\x64\147\x65\164", $_POST)) {
            goto c4;
        }
        $iP = "\x66\x61\154\x73\145";
        goto dt;
        c4:
        $iP = htmlspecialchars($_POST["\155\157\137\163\x61\x6d\x6c\137\165\163\145\137\x62\x75\164\164\x6f\x6e\137\141\163\137\167\x69\144\x67\145\164"]);
        dt:
        update_option("\155\x6f\137\163\141\155\154\137\165\163\145\137\142\165\164\x74\157\x6e\x5f\141\163\137\167\x69\144\x67\x65\164", $iP);
        update_option("\155\157\137\x73\141\x6d\x6c\137\155\145\x73\x73\141\147\145", "\123\x69\147\156\x20\x69\156\x20\157\x70\x74\x69\x6f\156\163\x20\x75\160\x64\141\164\145\144\x2e");
        $this->mo_saml_show_success_message();
        Ba:
        H7:
        goto c0;
        Hn:
        if (mo_saml_is_sp_configured()) {
            goto Zr;
        }
        update_option("\155\157\137\x73\x61\155\x6c\137\x6d\x65\163\x73\x61\147\145", "\120\x6c\145\141\163\145\x20\143\157\155\x70\154\x65\164\x65\x20" . addLink("\x53\145\x72\166\x69\143\145\40\x50\x72\x6f\x76\x69\144\x65\162", add_query_arg(array("\164\x61\142" => "\x73\141\166\x65"), $_SERVER["\122\105\121\125\105\123\124\137\x55\122\x49"])) . "\40\143\157\x6e\x66\x69\x67\165\x72\141\164\x69\x6f\156\x20\146\151\162\163\x74\x2e");
        $this->mo_saml_show_error_message();
        goto G_;
        Zr:
        if (array_key_exists("\155\157\x5f\163\x61\155\x6c\137\x75\x73\x65\137\142\x75\164\x74\157\x6e\137\x61\163\x5f\x73\150\x6f\x72\164\x63\157\144\x65", $_POST)) {
            goto Pw;
        }
        $iP = "\146\x61\x6c\x73\145";
        goto Pm;
        Pw:
        $iP = htmlspecialchars($_POST["\x6d\157\137\163\141\x6d\x6c\x5f\x75\163\145\x5f\142\165\x74\x74\x6f\156\x5f\x61\163\x5f\163\150\x6f\x72\x74\x63\x6f\144\x65"]);
        Pm:
        update_option("\155\x6f\x5f\x73\x61\x6d\154\x5f\x75\163\145\137\x62\x75\164\x74\x6f\x6e\137\x61\x73\x5f\163\x68\157\x72\x74\143\x6f\x64\145", $iP);
        update_option("\x6d\x6f\x5f\163\x61\155\x6c\137\155\x65\x73\x73\x61\147\145", "\x53\151\147\x6e\x20\151\x6e\x20\157\160\164\151\x6f\156\x73\x20\165\x70\x64\x61\x74\145\x64\x2e");
        $this->mo_saml_show_success_message();
        G_:
        c0:
        goto Wl;
        bq:
        if (mo_saml_is_sp_configured()) {
            goto n_;
        }
        update_option("\x6d\157\x5f\x73\x61\155\154\137\155\145\x73\163\141\x67\145", "\x50\x6c\145\x61\x73\145\40\x63\157\155\160\154\145\164\145\x20" . addLink("\x53\x65\x72\166\151\143\145\40\120\x72\157\166\151\x64\145\162", add_query_arg(array("\164\x61\x62" => "\x73\x61\166\145"), $_SERVER["\122\105\121\125\105\123\x54\x5f\x55\x52\111"])) . "\40\143\x6f\156\146\151\147\x75\x72\141\x74\151\157\156\x20\x66\x69\x72\163\x74\x2e");
        $this->mo_saml_show_error_message();
        goto uy;
        n_:
        if (array_key_exists("\x6d\157\137\163\x61\155\x6c\x5f\x61\144\144\137\163\163\157\137\x62\165\164\x74\x6f\x6e\x5f\167\x70", $_POST)) {
            goto jx;
        }
        $qt = "\146\x61\x6c\163\x65";
        goto pv;
        jx:
        $qt = htmlspecialchars($_POST["\155\157\137\x73\x61\x6d\x6c\137\141\144\144\137\x73\x73\157\137\142\x75\164\164\157\156\x5f\x77\x70"]);
        pv:
        update_option("\x6d\157\137\x73\x61\x6d\154\137\141\144\144\x5f\163\x73\x6f\137\x62\165\x74\x74\157\x6e\x5f\x77\160", $qt);
        update_option("\155\x6f\137\x73\x61\x6d\154\x5f\155\x65\x73\x73\x61\x67\145", "\x53\x69\x67\156\40\151\156\40\157\160\164\x69\157\156\x73\40\165\x70\144\x61\164\x65\144\56");
        $this->mo_saml_show_success_message();
        uy:
        Wl:
        goto rm;
        OJ:
        if (mo_saml_is_sp_configured()) {
            goto Y4;
        }
        update_option("\155\x6f\137\x73\x61\155\x6c\x5f\x6d\x65\x73\x73\141\x67\145", "\120\x6c\x65\x61\x73\145\x20\x63\157\155\160\154\x65\x74\x65\x20" . addLink("\x53\145\162\x76\151\143\145\40\x50\x72\157\x76\x69\x64\145\162", add_query_arg(array("\x74\141\x62" => "\x73\141\166\x65"), $_SERVER["\122\105\x51\x55\105\123\x54\x5f\x55\x52\111"])) . "\x20\x63\157\156\x66\x69\147\x75\x72\141\x74\151\157\156\40\146\151\x72\x73\x74\56");
        $this->mo_saml_show_error_message();
        goto jy;
        Y4:
        if (array_key_exists("\155\x6f\137\163\x61\x6d\154\137\x65\156\141\142\x6c\x65\x5f\x6c\x6f\x67\151\156\x5f\x72\145\144\x69\162\x65\x63\164", $_POST)) {
            goto ps;
        }
        $mY = "\x66\141\154\x73\145";
        goto SE;
        ps:
        $mY = htmlspecialchars($_POST["\155\157\137\x73\141\155\154\x5f\x65\x6e\x61\142\x6c\x65\137\x6c\157\147\151\x6e\x5f\162\145\144\x69\162\x65\143\x74"]);
        SE:
        if ($mY == "\x74\162\165\x65") {
            goto ZN;
        }
        update_option("\x6d\157\137\163\141\x6d\154\137\x65\156\x61\x62\154\145\137\x6c\157\147\151\156\137\x72\145\x64\x69\x72\x65\x63\x74", '');
        update_option("\x6d\157\137\163\141\155\154\137\x61\154\154\x6f\167\x5f\x77\160\x5f\163\x69\147\156\x69\156", '');
        goto I4;
        ZN:
        update_option("\155\x6f\x5f\163\141\x6d\154\x5f\x65\156\141\142\154\145\x5f\154\157\147\x69\156\x5f\162\x65\144\x69\x72\x65\143\x74", "\x74\162\165\x65");
        update_option("\x6d\x6f\x5f\x73\141\155\x6c\137\141\x6c\x6c\157\x77\x5f\x77\x70\137\x73\151\x67\x6e\x69\156", "\164\x72\x75\145");
        I4:
        update_option("\155\157\137\x73\141\x6d\154\x5f\155\145\163\x73\x61\x67\145", "\123\151\147\x6e\40\151\x6e\x20\157\x70\x74\151\x6f\156\163\x20\x75\x70\144\x61\164\145\x64\56");
        $this->mo_saml_show_success_message();
        jy:
        rm:
        goto k_;
        lj:
        if (mo_saml_is_sp_configured()) {
            goto WY;
        }
        update_option("\x6d\x6f\x5f\163\141\x6d\154\137\x6d\x65\163\163\141\147\x65", "\x50\154\145\141\163\x65\x20\143\157\155\160\x6c\x65\164\145\x20" . addLink("\123\x65\x72\166\151\x63\x65\x20\120\x72\157\x76\151\x64\145\162", add_query_arg(array("\x74\x61\142" => "\163\141\166\145"), $_SERVER["\x52\105\x51\x55\x45\x53\x54\x5f\125\122\x49"])) . "\40\143\x6f\x6e\146\x69\147\x75\162\x61\164\x69\157\x6e\x20\146\151\x72\x73\164\x2e");
        $this->mo_saml_show_error_message();
        goto jY;
        WY:
        if (array_key_exists("\x6d\157\137\x73\x61\x6d\154\137\x65\x6e\141\142\154\x65\137\x72\x73\x73\137\141\143\143\145\163\x73", $_POST)) {
            goto AU;
        }
        $zD = false;
        goto VH;
        AU:
        $zD = htmlspecialchars($_POST["\155\x6f\x5f\163\141\155\154\x5f\x65\x6e\141\x62\x6c\x65\x5f\x72\163\x73\x5f\141\143\x63\145\x73\x73"]);
        VH:
        if ($zD == "\164\162\165\145") {
            goto Xz;
        }
        update_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\x65\156\141\142\154\145\137\162\163\163\137\x61\143\x63\x65\x73\163", '');
        goto KY;
        Xz:
        update_option("\155\x6f\137\x73\x61\155\x6c\137\x65\156\x61\x62\x6c\x65\137\x72\x73\163\137\x61\143\143\145\x73\163", "\x74\162\x75\x65");
        KY:
        update_option("\155\157\x5f\x73\141\155\154\x5f\x6d\145\163\163\x61\147\x65", "\x52\123\123\40\106\145\x65\x64\40\157\x70\164\x69\x6f\x6e\x20\x75\160\x64\141\164\x65\144\56");
        $this->mo_saml_show_success_message();
        jY:
        k_:
        goto b9;
        Fm:
        if (mo_saml_is_sp_configured()) {
            goto oI;
        }
        update_option("\155\x6f\x5f\x73\141\155\x6c\137\155\145\x73\x73\141\x67\145", "\x50\x6c\x65\x61\163\145\x20\143\157\155\x70\x6c\x65\x74\x65\40" . addLink("\123\x65\x72\166\x69\x63\145\40\120\162\x6f\166\151\x64\145\x72", add_query_arg(array("\x74\x61\142" => "\x73\141\x76\145"), $_SERVER["\122\x45\x51\x55\x45\123\124\x5f\125\x52\111"])) . "\x20\143\x6f\156\x66\151\x67\165\162\x61\x74\x69\157\x6e\40\146\151\x72\x73\164\56");
        $this->mo_saml_show_error_message();
        goto cI;
        oI:
        if (array_key_exists("\x6d\157\x5f\x73\x61\x6d\154\137\x66\157\x72\143\145\137\x61\165\164\150\x65\x6e\x74\x69\143\x61\164\x69\157\x6e", $_POST)) {
            goto PE;
        }
        $mY = "\x66\x61\154\x73\x65";
        goto nF;
        PE:
        $mY = htmlspecialchars($_POST["\x6d\157\137\163\x61\x6d\154\137\146\x6f\x72\x63\x65\137\x61\165\164\150\x65\x6e\x74\x69\x63\x61\x74\151\x6f\x6e"]);
        nF:
        if ($mY == "\164\162\x75\x65") {
            goto xf;
        }
        update_option("\x6d\157\x5f\x73\x61\x6d\154\137\x66\x6f\162\x63\145\137\x61\165\x74\x68\x65\156\164\151\x63\x61\x74\151\x6f\x6e", '');
        goto K9;
        xf:
        update_option("\155\157\137\x73\141\155\x6c\137\146\157\x72\x63\x65\x5f\141\x75\164\x68\145\156\164\151\143\x61\x74\151\x6f\x6e", "\x74\162\165\x65");
        K9:
        update_option("\155\157\137\163\141\x6d\x6c\x5f\155\145\163\163\141\x67\145", "\123\x69\147\x6e\40\151\156\40\157\x70\164\x69\x6f\x6e\x73\x20\x75\160\x64\141\x74\x65\x64\x2e");
        $this->mo_saml_show_success_message();
        cI:
        b9:
        goto S6;
        QH:
        if (!mo_saml_is_sp_configured()) {
            goto G8;
        }
        if (array_key_exists("\x6d\x6f\137\x73\x61\155\154\137\162\145\x64\151\162\145\143\x74\137\164\x6f\137\x77\160\137\x6c\x6f\147\x69\156", $_POST)) {
            goto k8;
        }
        $gS = "\146\141\154\163\x65";
        goto bn;
        k8:
        $gS = htmlspecialchars($_POST["\155\x6f\137\x73\141\155\154\137\x72\145\144\151\x72\145\143\x74\x5f\x74\157\137\167\x70\x5f\154\157\147\x69\156"]);
        bn:
        update_option("\x6d\x6f\x5f\163\x61\155\x6c\137\162\x65\x64\x69\162\145\143\164\x5f\164\x6f\x5f\x77\160\x5f\154\157\x67\x69\156", $gS);
        update_option("\x6d\157\137\163\x61\155\x6c\137\x6d\x65\163\163\141\147\145", "\x53\x69\x67\x6e\x20\x69\156\40\x6f\x70\x74\151\x6f\x6e\x73\x20\x75\x70\144\141\x74\145\144\x2e");
        $this->mo_saml_show_success_message();
        G8:
        S6:
        goto Ku;
        WJ:
        if (mo_saml_is_sp_configured()) {
            goto Rn;
        }
        update_option("\x6d\157\x5f\x73\141\x6d\154\x5f\155\145\163\x73\x61\x67\145", "\x50\x6c\145\141\163\x65\40\x63\157\x6d\x70\154\145\x74\x65\40" . addLink("\123\x65\162\x76\151\x63\145\x20\x50\162\x6f\x76\x69\x64\x65\162", add_query_arg(array("\x74\x61\x62" => "\x73\x61\x76\x65"), $_SERVER["\122\x45\x51\125\x45\x53\x54\x5f\x55\122\111"])) . "\40\x63\x6f\x6e\x66\151\147\165\x72\x61\x74\x69\x6f\156\40\146\x69\162\x73\164\56");
        $this->mo_saml_show_error_message();
        goto pc;
        Rn:
        if (array_key_exists("\x6d\157\x5f\163\x61\155\154\137\162\145\147\151\163\164\145\162\145\x64\137\x6f\156\x6c\x79\x5f\x61\143\143\145\x73\x73", $_POST)) {
            goto m2;
        }
        $mY = "\x66\141\154\x73\145";
        goto zO;
        m2:
        $mY = htmlspecialchars($_POST["\155\157\137\x73\141\155\x6c\x5f\162\x65\147\151\163\164\145\x72\x65\x64\x5f\157\156\154\171\x5f\x61\x63\143\x65\163\163"]);
        zO:
        if ($mY == "\x74\162\x75\x65") {
            goto tZ;
        }
        update_option("\x6d\x6f\137\x73\141\155\x6c\137\x72\x65\x67\151\x73\x74\145\162\x65\144\137\x6f\x6e\154\171\137\x61\143\143\145\163\163", '');
        goto Ea;
        tZ:
        update_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x72\145\147\151\163\164\x65\162\x65\144\x5f\x6f\156\x6c\x79\x5f\x61\143\x63\145\x73\163", "\x74\162\165\145");
        Ea:
        update_option("\x6d\157\x5f\163\x61\x6d\x6c\137\155\145\163\163\x61\147\x65", "\x53\151\x67\156\x20\151\x6e\x20\x6f\160\164\x69\x6f\156\x73\x20\x75\x70\x64\x61\x74\145\x64\x2e");
        $this->mo_saml_show_success_message();
        pc:
        Ku:
        goto yU;
        rb:
        if (mo_saml_is_extension_installed("\x63\165\x72\154")) {
            goto Ix;
        }
        update_option("\155\157\x5f\163\141\x6d\154\x5f\155\145\163\x73\141\x67\145", "\105\x52\x52\117\122\72\x20\x50\x48\120\x20\x63\125\x52\114\40\145\170\x74\x65\156\163\x69\x6f\x6e\x20\x69\x73\x20\x6e\x6f\164\x20\151\156\x73\x74\141\x6c\x6c\145\144\x20\x6f\162\40\x64\x69\163\x61\x62\154\145\144\56\40\x52\145\163\145\x6e\x64\x20\x4f\x54\120\x20\x66\141\151\x6c\x65\144\56");
        $this->mo_saml_show_error_message();
        return;
        Ix:
        $lN = sanitize_text_field($_POST["\x70\150\x6f\156\145"]);
        $lN = str_replace("\40", '', $lN);
        $lN = str_replace("\x2d", '', $lN);
        update_option("\x6d\x6f\x5f\x73\141\x6d\154\137\x61\144\x6d\151\156\x5f\160\150\157\x6e\145", $lN);
        $lF = new CustomerSaml();
        $C2 = $lF->send_otp_token('', $lN, FALSE, TRUE);
        if ($C2) {
            goto Po;
        }
        return;
        Po:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\163\x74\141\164\165\163"], "\123\125\103\103\105\123\x53") == 0) {
            goto b2;
        }
        update_option("\155\157\x5f\163\x61\x6d\154\137\x6d\145\x73\163\x61\x67\x65", "\x54\150\145\162\145\40\x77\x61\163\x20\x61\x6e\40\145\162\x72\x6f\x72\40\x69\x6e\40\x73\x65\156\x64\x69\x6e\147\40\123\115\123\x2e\x20\120\x6c\x65\141\163\x65\x20\x63\154\151\x63\x6b\40\x6f\156\x20\122\145\163\145\156\x64\40\117\124\x50\x20\x74\157\40\164\162\171\40\x61\x67\x61\x69\x6e\56");
        update_option("\x6d\157\137\x73\x61\155\x6c\137\162\145\x67\x69\x73\164\162\x61\164\x69\157\156\137\163\164\x61\164\165\x73", "\x4d\117\137\x4f\x54\x50\137\x44\x45\114\111\126\105\122\x45\104\137\106\101\x49\x4c\125\x52\x45\x5f\120\x48\117\116\105");
        $this->mo_saml_show_error_message();
        goto Mz;
        b2:
        update_option("\155\x6f\x5f\x73\141\155\154\x5f\x6d\145\163\163\x61\x67\145", "\x20\x41\40\x6f\156\x65\x20\164\x69\x6d\145\x20\x70\x61\163\163\143\157\144\145\x20\151\163\x20\x73\x65\x6e\164\x20\164\157\x20" . get_option("\x6d\157\x5f\163\x61\x6d\x6c\x5f\141\x64\155\x69\x6e\137\x70\150\x6f\156\145") . "\x2e\x20\x50\154\x65\x61\x73\x65\x20\x65\156\164\x65\162\40\x74\x68\145\x20\157\x74\160\x20\x68\145\162\x65\x20\164\157\40\x76\145\162\151\x66\171\x20\x79\157\165\x72\x20\145\x6d\x61\151\154\56");
        update_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\x74\162\141\156\x73\141\143\x74\x69\157\156\x49\144", $C2["\164\170\111\x64"]);
        update_option("\x6d\157\x5f\163\x61\x6d\154\x5f\162\x65\x67\x69\x73\164\162\x61\x74\151\157\156\x5f\163\164\141\x74\x75\x73", "\x4d\x4f\x5f\117\124\120\x5f\104\105\x4c\x49\126\x45\122\105\x44\x5f\123\125\103\103\105\x53\123\137\120\110\x4f\x4e\105");
        $this->mo_saml_show_success_message();
        Mz:
        yU:
        goto QP;
        fI:
        update_option("\155\157\137\x73\x61\x6d\154\137\162\145\147\151\163\x74\162\x61\164\151\157\156\137\163\164\x61\164\165\x73", '');
        update_option("\155\157\137\163\x61\155\x6c\x5f\x76\x65\x72\151\x66\171\137\143\165\163\x74\157\155\x65\162", '');
        delete_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\156\145\x77\x5f\x72\x65\x67\151\163\x74\x72\x61\x74\x69\x6f\156");
        delete_option("\x6d\x6f\x5f\163\141\155\x6c\137\141\144\155\151\x6e\x5f\x65\155\141\151\154");
        delete_option("\x6d\157\x5f\x73\141\155\x6c\137\x61\144\x6d\151\x6e\137\x70\x68\x6f\x6e\145");
        delete_site_option("\x73\155\154\137\154\x6b");
        delete_site_option("\164\x5f\163\x69\164\x65\137\x73\164\141\x74\165\x73");
        delete_site_option("\x73\x69\x74\x65\137\x63\153\x5f\154");
        QP:
        goto om;
        Gy:
        if (mo_saml_is_extension_installed("\x63\x75\x72\154")) {
            goto xa;
        }
        update_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\155\145\x73\163\x61\x67\145", "\x45\122\122\x4f\122\x3a\40\x50\110\120\x20\143\125\122\x4c\x20\145\170\x74\x65\156\x73\x69\x6f\x6e\40\151\163\40\x6e\x6f\164\x20\151\156\x73\164\x61\x6c\154\x65\x64\40\157\x72\40\x64\151\163\141\x62\154\145\144\56\40\x52\145\x73\145\156\x64\40\x4f\x54\120\x20\146\x61\151\154\x65\144\56");
        $this->mo_saml_show_error_message();
        return;
        xa:
        $lN = get_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\141\x64\x6d\x69\x6e\137\160\150\157\x6e\145");
        $lF = new CustomerSaml();
        $C2 = $lF->send_otp_token('', $lN, FALSE, TRUE);
        if ($C2) {
            goto My;
        }
        return;
        My:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\x73\164\141\164\x75\x73"], "\x53\125\103\x43\x45\x53\123") == 0) {
            goto gr;
        }
        update_option("\x6d\157\x5f\163\x61\155\x6c\137\155\x65\163\x73\x61\x67\x65", "\x54\150\145\x72\145\x20\x77\x61\x73\40\x61\x6e\40\145\x72\x72\x6f\x72\40\151\156\x20\163\145\x6e\x64\x69\x6e\x67\40\145\x6d\x61\x69\154\x2e\40\120\x6c\x65\x61\x73\145\40\143\154\x69\x63\153\40\157\156\40\122\x65\x73\145\x6e\144\x20\117\124\x50\40\x74\157\x20\164\162\171\x20\141\x67\x61\x69\156\56");
        update_option("\155\157\137\163\141\x6d\x6c\137\162\145\147\x69\163\x74\162\x61\164\151\157\156\137\x73\x74\x61\164\x75\163", "\x4d\117\137\117\124\120\x5f\x44\x45\x4c\x49\126\x45\122\105\x44\137\x46\101\x49\114\125\x52\105\x5f\x50\x48\117\x4e\105");
        $this->mo_saml_show_error_message();
        goto Sm;
        gr:
        update_option("\155\157\x5f\163\x61\x6d\x6c\x5f\x6d\x65\163\x73\x61\147\145", "\x20\x41\x20\x6f\x6e\145\40\164\151\155\145\40\x70\x61\163\x73\143\x6f\144\x65\40\x69\x73\x20\163\x65\x6e\x74\x20\x74\157\x20" . $lN . "\x20\x61\x67\x61\x69\156\x2e\40\120\x6c\x65\x61\163\x65\40\143\x68\x65\x63\153\40\151\x66\x20\171\x6f\x75\x20\x67\157\164\x20\164\150\x65\x20\157\164\x70\40\141\x6e\x64\x20\145\x6e\x74\145\162\40\151\164\x20\x68\145\162\145\x2e");
        update_option("\155\x6f\137\163\x61\x6d\x6c\x5f\164\x72\141\156\163\141\143\x74\x69\157\x6e\x49\x64", $C2["\164\x78\x49\x64"]);
        update_option("\x6d\x6f\137\163\x61\x6d\x6c\137\162\x65\x67\151\163\164\162\141\x74\x69\x6f\156\137\x73\x74\x61\164\x75\163", "\115\117\137\117\124\x50\137\104\x45\114\111\126\105\122\x45\104\137\x53\x55\103\103\105\123\x53\137\x50\x48\117\x4e\105");
        $this->mo_saml_show_success_message();
        Sm:
        om:
        goto eX;
        FW:
        if (mo_saml_is_extension_installed("\x63\165\162\154")) {
            goto DJ;
        }
        update_option("\155\x6f\x5f\x73\141\155\154\x5f\x6d\145\163\x73\x61\x67\x65", "\x45\122\122\x4f\122\72\x20\120\x48\x50\40\143\125\122\x4c\x20\x65\170\164\x65\156\x73\x69\x6f\x6e\x20\151\163\x20\156\157\x74\x20\x69\156\x73\x74\x61\x6c\154\x65\x64\40\157\162\x20\x64\x69\x73\x61\x62\154\145\x64\x2e\40\x52\x65\163\145\156\144\x20\x4f\124\x50\40\x66\x61\x69\x6c\145\144\56");
        $this->mo_saml_show_error_message();
        return;
        DJ:
        $Op = get_option("\x6d\157\137\163\x61\155\x6c\x5f\141\144\x6d\x69\x6e\137\145\x6d\141\x69\154");
        $lF = new CustomerSaml();
        $C2 = $lF->send_otp_token($Op, '');
        if ($C2) {
            goto Kj;
        }
        return;
        Kj:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\163\x74\x61\164\165\x73"], "\123\125\103\x43\x45\123\123") == 0) {
            goto M4;
        }
        update_option("\155\157\x5f\x73\x61\155\x6c\137\x6d\x65\x73\163\141\147\145", "\x54\x68\x65\x72\145\40\x77\x61\x73\x20\141\156\40\145\x72\x72\x6f\162\x20\151\x6e\40\163\145\x6e\144\151\x6e\x67\40\145\x6d\x61\151\x6c\x2e\40\120\x6c\145\141\x73\145\x20\143\154\x69\143\153\x20\x6f\x6e\x20\122\145\163\x65\x6e\x64\40\117\124\120\x20\164\157\x20\164\x72\x79\x20\x61\x67\141\x69\x6e\56");
        update_option("\155\x6f\137\x73\x61\155\154\x5f\162\145\x67\151\163\x74\162\x61\164\x69\157\x6e\137\x73\164\141\x74\165\163", "\x4d\117\137\x4f\x54\120\x5f\x44\105\x4c\x49\126\105\122\105\x44\x5f\106\x41\111\114\x55\x52\105\x5f\x45\x4d\x41\111\x4c");
        $this->mo_saml_show_error_message();
        goto Et;
        M4:
        update_option("\x6d\157\x5f\163\x61\155\x6c\137\155\145\x73\x73\x61\x67\x65", "\x20\x41\40\x6f\156\145\40\164\x69\x6d\x65\x20\160\141\x73\x73\x63\x6f\144\145\40\x69\x73\x20\163\x65\x6e\164\40\x74\157\40" . get_option("\x6d\157\x5f\163\141\x6d\x6c\x5f\141\x64\x6d\x69\x6e\x5f\x65\155\x61\151\154") . "\40\141\x67\141\151\156\56\40\x50\x6c\x65\141\163\145\x20\143\150\145\143\x6b\40\151\x66\40\171\x6f\165\40\x67\157\164\x20\x74\150\145\40\x6f\164\160\40\x61\156\144\x20\x65\156\x74\x65\x72\40\x69\164\x20\x68\145\x72\x65\x2e");
        update_option("\x6d\x6f\x5f\x73\141\155\154\x5f\164\x72\141\156\163\x61\x63\x74\x69\157\156\x49\x64", $C2["\x74\x78\111\x64"]);
        update_option("\155\x6f\137\163\x61\155\154\x5f\162\x65\x67\x69\163\x74\162\x61\x74\151\x6f\x6e\137\163\x74\141\164\x75\163", "\x4d\x4f\137\x4f\x54\x50\x5f\x44\x45\114\x49\x56\x45\122\x45\x44\x5f\x53\125\103\103\105\123\x53\x5f\105\115\x41\111\114");
        $this->mo_saml_show_success_message();
        Et:
        eX:
        goto hO;
        zg:
        if (mo_saml_is_extension_installed("\143\165\162\154")) {
            goto aX;
        }
        update_option("\155\x6f\x5f\x73\141\x6d\154\x5f\155\x65\x73\x73\141\x67\145", "\x45\122\122\117\x52\x3a\40\x50\110\x50\40\143\125\122\x4c\x20\145\170\164\x65\156\163\x69\x6f\156\x20\151\163\x20\x6e\157\x74\x20\151\156\x73\x74\141\x6c\154\145\x64\40\x6f\162\40\x64\151\163\141\142\154\145\x64\x2e\x20\121\165\x65\x72\x79\40\163\165\142\155\x69\164\40\146\141\x69\154\145\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        aX:
        $Op = sanitize_email($_POST["\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x63\157\156\164\x61\143\164\137\165\163\x5f\145\x6d\141\151\x6c"]);
        $lN = htmlspecialchars($_POST["\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\143\157\x6e\164\x61\143\164\x5f\165\x73\x5f\160\150\157\156\145"]);
        $Gy = htmlspecialchars($_POST["\155\x6f\x5f\163\141\155\x6c\x5f\x63\x6f\156\164\141\143\164\137\x75\x73\137\x71\x75\x65\162\x79"]);
        if (array_key_exists("\x73\x65\x6e\x64\x5f\x70\154\x75\147\151\156\x5f\143\157\156\x66\151\x67", $_POST) === true) {
            goto uH;
        }
        update_option("\x73\145\x6e\x64\137\160\154\x75\x67\x69\156\137\143\x6f\156\146\x69\147", "\x6f\146\146");
        goto wX;
        uH:
        $dF = miniorange_import_export(true, true);
        $Gy .= $dF;
        delete_option("\163\145\x6e\144\137\160\154\x75\x67\x69\156\x5f\x63\157\x6e\x66\151\x67");
        wX:
        $lF = new CustomerSaml();
        if ($this->mo_saml_check_empty_or_null($Op) || $this->mo_saml_check_empty_or_null($Gy)) {
            goto k2;
        }
        if (!filter_var($Op, FILTER_VALIDATE_EMAIL)) {
            goto iP;
        }
        $Oq = $lF->submit_contact_us($Op, $lN, $Gy);
        if ($Oq) {
            goto Db;
        }
        return;
        Db:
        update_option("\x6d\157\137\163\x61\155\x6c\137\155\145\x73\163\141\x67\145", "\x54\x68\x61\x6e\153\163\40\x66\157\162\40\x67\x65\x74\164\151\x6e\x67\x20\151\x6e\x20\164\157\x75\143\x68\41\40\127\x65\x20\163\150\141\x6c\x6c\40\147\x65\164\40\142\x61\x63\x6b\40\x74\x6f\40\x79\157\165\x20\x73\x68\157\x72\x74\154\171\x2e");
        $this->mo_saml_show_success_message();
        goto Wr;
        iP:
        update_option("\x6d\x6f\137\163\x61\x6d\x6c\137\x6d\x65\163\x73\141\x67\145", "\120\154\145\x61\x73\145\x20\145\x6e\x74\145\162\x20\141\x20\x76\x61\x6c\x69\x64\40\x65\x6d\141\151\154\x20\141\x64\x64\x72\145\x73\163\56");
        $this->mo_saml_show_error_message();
        return;
        Wr:
        goto sf;
        k2:
        update_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\x6d\145\x73\x73\x61\147\x65", "\x50\x6c\x65\141\163\x65\x20\146\x69\x6c\x6c\x20\x75\x70\40\105\155\141\151\x6c\40\141\156\144\x20\121\x75\145\x72\171\40\x66\151\145\154\144\163\x20\164\x6f\x20\163\165\142\155\151\x74\40\x79\157\x75\x72\40\161\165\145\x72\171\x2e");
        $this->mo_saml_show_error_message();
        sf:
        hO:
        goto kP;
        a5:
        if (mo_saml_is_extension_installed("\143\165\x72\154")) {
            goto tq;
        }
        update_option("\x6d\157\137\x73\x61\x6d\x6c\137\x6d\145\163\163\x61\x67\145", "\105\x52\122\x4f\122\x3a\x20\x50\x48\120\40\x63\125\122\114\40\145\170\164\x65\x6e\x73\151\157\x6e\x20\151\163\40\156\157\x74\40\x69\x6e\x73\x74\x61\x6c\x6c\145\144\40\x6f\x72\x20\144\151\x73\x61\142\154\145\144\56\40\x4c\157\147\x69\156\40\146\141\151\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        tq:
        $Op = '';
        $xN = self::get_empty_strings();
        if ($this->mo_saml_check_empty_or_null($_POST["\145\x6d\141\x69\x6c"]) || $this->mo_saml_check_empty_or_null($_POST["\x70\x61\163\163\x77\x6f\162\x64"])) {
            goto Rd;
        }
        if ($this->checkPasswordPattern(strip_tags($_POST["\x70\x61\x73\x73\x77\157\162\144"]))) {
            goto hF;
        }
        $Op = sanitize_email($_POST["\145\x6d\141\x69\x6c"]);
        $xN = stripslashes(strip_tags($_POST["\160\141\163\163\x77\157\162\144"]));
        goto mP;
        hF:
        update_option("\x6d\157\x5f\x73\141\x6d\154\137\155\145\163\x73\141\147\x65", "\115\151\x6e\151\x6d\x75\x6d\x20\66\x20\x63\x68\x61\162\141\x63\x74\145\x72\163\40\x73\150\x6f\165\154\144\40\142\145\x20\x70\162\x65\x73\145\x6e\164\x2e\40\115\141\x78\x69\x6d\165\x6d\x20\x31\65\40\143\x68\141\162\141\x63\x74\x65\162\163\40\163\x68\157\165\x6c\144\x20\x62\145\x20\x70\162\145\x73\145\156\164\56\x20\117\156\154\171\x20\146\x6f\x6c\x6c\157\167\151\x6e\x67\40\163\171\x6d\x62\157\154\x73\40\x28\x21\100\x23\x2e\x24\x25\x5e\x26\x2a\x2d\137\x29\x20\x73\150\157\165\154\144\x20\x62\x65\40\x70\162\x65\163\145\x6e\164\56");
        $this->mo_saml_show_error_message();
        return;
        mP:
        goto XY;
        Rd:
        update_option("\155\x6f\137\x73\141\x6d\x6c\x5f\x6d\x65\163\163\141\x67\145", "\101\x6c\154\40\x74\150\145\40\146\x69\x65\x6c\144\x73\x20\141\162\x65\40\x72\x65\161\x75\151\162\x65\144\x2e\x20\120\154\x65\x61\x73\x65\x20\x65\156\x74\145\162\40\x76\141\154\x69\x64\40\x65\x6e\x74\162\x69\x65\x73\x2e");
        $this->mo_saml_show_error_message();
        return;
        XY:
        update_option("\x6d\157\x5f\163\x61\155\x6c\x5f\141\144\155\x69\x6e\x5f\x65\155\141\x69\154", $Op);
        update_option("\x6d\157\137\163\x61\x6d\x6c\x5f\141\x64\x6d\151\x6e\x5f\x70\141\163\x73\167\x6f\x72\x64", $xN);
        $lF = new Customersaml();
        $C2 = $lF->get_customer_key();
        if ($C2) {
            goto Gg;
        }
        return;
        Gg:
        $F0 = json_decode($C2, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto U7;
        }
        update_option("\x6d\x6f\x5f\x73\141\155\154\137\x6d\145\x73\163\x61\x67\x65", "\x49\156\x76\x61\x6c\151\144\40\x75\x73\145\162\x6e\141\155\145\40\157\162\40\160\141\163\x73\167\x6f\162\144\x2e\40\x50\x6c\x65\141\x73\145\x20\164\162\x79\40\141\147\x61\x69\156\56");
        $this->mo_saml_show_error_message();
        goto JA;
        U7:
        update_option("\155\157\137\163\x61\x6d\154\137\x61\144\x6d\151\x6e\x5f\x63\165\x73\164\157\155\145\162\137\x6b\x65\x79", $F0["\x69\x64"]);
        update_option("\x6d\157\137\163\x61\155\x6c\x5f\x61\x64\x6d\151\x6e\137\141\160\151\x5f\x6b\145\x79", $F0["\x61\160\x69\x4b\x65\x79"]);
        update_option("\155\157\137\x73\x61\155\154\137\143\x75\x73\164\x6f\155\145\162\137\x74\x6f\153\x65\156", $F0["\164\157\x6b\145\156"]);
        if (empty($F0["\x70\150\x6f\156\145"])) {
            goto S3;
        }
        update_option("\x6d\x6f\137\163\x61\x6d\x6c\x5f\x61\x64\x6d\x69\x6e\x5f\x70\150\157\x6e\145", $F0["\x70\x68\157\156\x65"]);
        S3:
        update_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\x61\144\x6d\x69\x6e\137\160\141\163\163\167\x6f\162\x64", '');
        update_option("\155\x6f\137\163\141\155\x6c\x5f\155\145\163\x73\x61\147\145", "\103\x75\163\164\x6f\155\145\162\x20\x72\x65\x74\x72\151\145\166\145\x64\x20\163\165\x63\x63\x65\x73\x73\x66\165\x6c\x6c\171");
        update_option("\155\157\137\x73\x61\155\154\x5f\x72\x65\x67\x69\x73\x74\162\141\164\x69\157\156\137\x73\x74\141\x74\x75\163", "\105\170\x69\x73\x74\151\156\147\40\125\163\145\162");
        delete_option("\x6d\x6f\137\163\141\x6d\154\x5f\166\x65\x72\x69\146\x79\x5f\x63\165\x73\164\157\x6d\x65\x72");
        if (get_option("\x73\155\x6c\x5f\154\153")) {
            goto Si;
        }
        $this->mo_saml_show_success_message();
        goto Xt;
        Si:
        $k3 = get_option("\155\x6f\137\x73\x61\155\x6c\x5f\x63\165\x73\x74\x6f\x6d\x65\162\137\x74\157\x6b\145\x6e");
        $oZ = AESEncryption::decrypt_data(get_option("\x73\x6d\154\137\154\x6b"), $k3);
        $C2 = json_decode($lF->mo_saml_vl($oZ, false), true);
        update_option("\166\154\137\x63\x68\145\x63\x6b\x5f\164", time());
        if (strcasecmp($C2["\x73\x74\x61\164\x75\163"], "\x53\125\x43\103\x45\123\123") == 0) {
            goto cz;
        }
        update_option("\155\157\137\163\141\x6d\154\137\155\x65\163\x73\141\x67\x65", "\x4c\151\x63\x65\x6e\x73\x65\40\153\145\171\40\x66\x6f\162\40\164\150\151\x73\x20\151\156\x73\x74\141\x6e\x63\x65\x20\x69\x73\x20\151\156\x63\157\162\x72\145\143\164\x2e\40\x4d\141\x6b\x65\x20\163\165\162\145\40\171\157\165\x20\150\141\x76\145\x20\156\x6f\x74\40\x74\141\x6d\160\145\162\145\x64\40\x77\x69\164\x68\40\x69\x74\40\x61\x74\40\141\x6c\154\56\x20\x50\154\x65\141\163\145\x20\145\156\164\x65\x72\40\141\x20\166\141\154\151\144\40\x6c\151\x63\x65\x6e\163\145\x20\x6b\145\171\56");
        delete_option("\x73\155\154\x5f\x6c\x6b");
        $this->mo_saml_show_error_message();
        goto Er;
        cz:
        $ho = plugin_dir_path(__FILE__);
        $IC = home_url();
        $IC = trim($IC, "\x2f");
        if (preg_match("\x23\x5e\150\x74\164\160\50\163\51\x3f\72\57\x2f\x23", $IC)) {
            goto t2;
        }
        $IC = "\150\x74\164\160\x3a\57\57" . $IC;
        t2:
        $rV = parse_url($IC);
        $ef = preg_replace("\x2f\136\167\x77\167\134\x2e\57", '', $rV["\x68\157\163\x74"]);
        $vo = wp_upload_dir();
        $iT = $ef . "\x2d" . $vo["\x62\x61\163\145\x64\x69\x72"];
        $bv = hash_hmac("\163\x68\141\x32\x35\66", $iT, "\64\104\x48\x66\x6a\x67\146\152\x61\x73\156\x64\x66\x73\141\152\x66\x48\107\112");
        $LE = $this->djkasjdksa();
        $f1 = round(strlen($LE) / rand(2, 20));
        $LE = substr_replace($LE, $bv, $f1, 0);
        $Ax = base64_decode($LE);
        if (is_writable($ho . "\x6c\x69\143\145\156\x73\x65")) {
            goto Ev;
        }
        $LE = str_rot13($LE);
        $cJ = base64_decode("\x62\107\x4e\153\141\x6d\164\x68\x63\62\x70\153\x61\63\x4e\150\x59\x32\167\75");
        update_option($cJ, $LE);
        goto IB;
        Ev:
        file_put_contents($ho . "\154\151\x63\x65\x6e\163\x65", $Ax);
        IB:
        update_option("\154\x63\167\x72\x74\154\x66\163\141\155\154", true);
        $this->mo_saml_show_success_message();
        Er:
        Xt:
        JA:
        update_option("\155\x6f\137\163\x61\x6d\x6c\137\x61\144\155\151\x6e\137\160\141\x73\163\x77\157\x72\144", '');
        kP:
        goto mD;
        WA:
        if (mo_saml_is_extension_installed("\x63\165\162\x6c")) {
            goto GF;
        }
        update_option("\155\157\x5f\x73\141\x6d\x6c\x5f\155\x65\x73\x73\x61\147\x65", "\105\x52\122\x4f\122\x3a\40\x50\x48\x50\x20\143\125\122\114\40\x65\x78\x74\145\x6e\163\x69\157\156\40\151\x73\40\156\x6f\x74\40\151\x6e\x73\164\x61\x6c\x6c\145\x64\40\x6f\x72\x20\x64\151\163\x61\142\x6c\145\144\x2e\40\126\141\x6c\151\x64\x61\x74\145\x20\117\124\120\40\x66\141\x69\x6c\x65\144\x2e");
        $this->mo_saml_show_error_message();
        return;
        GF:
        $Fq = '';
        if ($this->mo_saml_check_empty_or_null($_POST["\x6f\164\160\137\164\x6f\x6b\145\x6e"])) {
            goto xq;
        }
        $Fq = sanitize_text_field($_POST["\157\164\x70\137\164\x6f\153\x65\x6e"]);
        goto Pa;
        xq:
        update_option("\155\x6f\x5f\163\x61\x6d\154\137\155\145\x73\163\x61\147\145", "\120\154\x65\x61\163\145\40\x65\156\x74\145\x72\x20\x61\x20\x76\141\154\x75\x65\40\x69\156\40\x6f\164\x70\x20\x66\151\x65\x6c\x64\56");
        $this->mo_saml_show_error_message();
        return;
        Pa:
        $lF = new CustomerSaml();
        $C2 = $lF->validate_otp_token(get_option("\x6d\157\x5f\x73\141\155\x6c\x5f\164\162\141\156\x73\x61\x63\x74\151\x6f\156\x49\144"), $Fq);
        if ($C2) {
            goto LN;
        }
        return;
        LN:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\x73\x74\141\x74\165\163"], "\123\125\103\103\105\123\123") == 0) {
            goto m7;
        }
        update_option("\x6d\x6f\137\163\x61\x6d\x6c\137\155\x65\163\163\141\147\x65", "\111\156\166\141\154\x69\x64\x20\x6f\156\x65\x20\164\151\x6d\x65\40\160\x61\x73\163\x63\x6f\x64\x65\56\x20\x50\154\x65\141\163\145\x20\145\156\x74\145\x72\40\x61\40\166\x61\x6c\x69\144\40\x6f\x74\160\56");
        $this->mo_saml_show_error_message();
        goto E2;
        m7:
        $this->create_customer();
        E2:
        mD:
        goto lB;
        mo:
        if (mo_saml_is_extension_installed("\x63\165\x72\154")) {
            goto hX;
        }
        update_option("\155\157\137\x73\141\x6d\x6c\137\x6d\145\x73\163\x61\147\x65", "\x45\x52\122\x4f\122\x3a\x20\120\110\120\x20\x63\x55\122\114\x20\145\x78\164\x65\156\x73\x69\157\156\x20\151\163\40\156\157\x74\40\x69\x6e\x73\164\x61\154\154\x65\x64\40\x6f\x72\x20\144\151\163\141\x62\154\145\x64\56\x20\x52\x65\147\151\x73\x74\x72\x61\164\151\x6f\x6e\x20\146\x61\151\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        hX:
        $Op = '';
        $lN = '';
        $xN = self::get_empty_strings();
        $KH = self::get_empty_strings();
        if ($this->mo_saml_check_empty_or_null($_POST["\145\155\x61\151\154"]) || $this->mo_saml_check_empty_or_null($_POST["\160\141\163\x73\x77\157\x72\x64"]) || $this->mo_saml_check_empty_or_null($_POST["\143\x6f\x6e\146\151\162\155\x50\x61\x73\x73\167\x6f\x72\x64"])) {
            goto We;
        }
        if (strlen($_POST["\x70\141\163\x73\167\157\x72\x64"]) < 6 || strlen($_POST["\143\x6f\x6e\x66\x69\162\155\x50\x61\x73\163\167\x6f\162\x64"]) < 6) {
            goto JT;
        }
        if ($this->checkPasswordPattern(strip_tags($_POST["\160\141\x73\163\167\157\162\x64"]))) {
            goto fi;
        }
        $Op = sanitize_email($_POST["\145\155\x61\151\154"]);
        if (!isset($_POST["\x70\x68\157\156\x65"])) {
            goto PU;
        }
        $lN = sanitize_text_field($_POST["\x70\x68\157\x6e\x65"]);
        PU:
        $xN = stripslashes(strip_tags($_POST["\x70\x61\163\x73\167\x6f\162\x64"]));
        $KH = stripslashes(strip_tags($_POST["\x63\x6f\156\146\151\162\155\x50\141\163\163\x77\157\162\x64"]));
        goto Fb;
        fi:
        update_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\x6d\x65\163\x73\141\147\x65", "\115\151\156\x69\155\165\x6d\x20\x36\x20\143\150\x61\x72\x61\x63\164\x65\162\163\x20\163\x68\x6f\x75\154\144\x20\x62\x65\40\160\x72\145\x73\x65\156\164\56\40\115\x61\170\x69\155\x75\155\x20\x31\x35\40\143\150\141\162\x61\143\x74\145\162\163\40\163\x68\157\x75\x6c\144\40\142\145\x20\160\x72\145\x73\145\156\164\56\x20\117\x6e\154\x79\40\146\x6f\x6c\154\x6f\167\x69\156\147\x20\x73\171\x6d\x62\157\154\x73\x20\50\x21\100\x23\x2e\x24\45\136\46\x2a\55\x5f\51\40\x73\x68\x6f\x75\154\144\40\142\145\40\160\x72\145\163\x65\156\164\56");
        $this->mo_saml_show_error_message();
        return;
        Fb:
        goto d0;
        JT:
        update_option("\155\x6f\137\x73\141\155\x6c\x5f\155\x65\163\x73\x61\147\145", "\103\x68\157\157\163\x65\40\x61\40\x70\x61\x73\x73\167\157\x72\x64\40\167\151\x74\x68\40\155\x69\156\151\x6d\165\155\x20\154\145\156\x67\x74\150\x20\66\56");
        $this->mo_saml_show_error_message();
        return;
        d0:
        goto Wu;
        We:
        update_option("\155\157\137\163\141\x6d\154\137\x6d\145\163\x73\141\x67\145", "\101\x6c\154\x20\164\x68\145\40\146\x69\x65\154\x64\x73\x20\141\162\x65\x20\x72\x65\161\165\151\x72\x65\144\x2e\40\120\x6c\x65\141\163\145\40\145\156\x74\145\x72\x20\166\x61\154\x69\x64\40\x65\x6e\x74\x72\x69\145\x73\56");
        $this->mo_saml_show_error_message();
        return;
        Wu:
        update_option("\155\157\137\163\x61\155\154\137\x61\144\155\x69\x6e\x5f\145\x6d\141\151\x6c", $Op);
        update_option("\155\157\137\163\141\x6d\154\137\141\x64\x6d\x69\156\137\160\x68\157\156\145", $lN);
        if (strcmp($xN, $KH) == 0) {
            goto x1;
        }
        update_option("\x6d\157\x5f\x73\x61\155\x6c\x5f\155\x65\163\163\x61\x67\145", "\120\141\x73\163\x77\x6f\162\x64\163\40\144\x6f\x20\156\x6f\164\x20\155\141\x74\x63\x68\x2e");
        delete_option("\155\x6f\137\x73\141\x6d\154\137\166\x65\162\x69\x66\x79\137\x63\x75\x73\164\157\x6d\x65\162");
        $this->mo_saml_show_error_message();
        goto SI;
        x1:
        update_option("\x6d\157\137\163\x61\x6d\x6c\137\x61\144\155\x69\x6e\137\160\x61\x73\163\167\157\x72\144", $xN);
        $Op = get_option("\x6d\157\x5f\x73\141\155\x6c\137\x61\x64\x6d\151\x6e\137\x65\x6d\141\x69\154");
        $lF = new CustomerSaml();
        $C2 = $lF->check_customer();
        if ($C2) {
            goto fF;
        }
        return;
        fF:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\163\x74\141\164\x75\x73"], "\103\125\x53\x54\x4f\115\x45\x52\137\116\x4f\x54\x5f\x46\117\x55\x4e\x44") == 0) {
            goto I3;
        }
        $this->get_current_customer();
        goto Jd;
        I3:
        $C2 = $lF->send_otp_token($Op, '');
        if ($C2) {
            goto PO;
        }
        return;
        PO:
        $C2 = json_decode($C2, true);
        if (strcasecmp($C2["\163\164\141\x74\x75\163"], "\x53\125\x43\x43\x45\x53\123") == 0) {
            goto sc;
        }
        update_option("\155\x6f\137\163\141\155\x6c\x5f\155\145\x73\x73\141\147\145", "\124\x68\145\x72\145\40\x77\x61\x73\40\141\x6e\40\145\x72\162\157\162\x20\151\156\40\x73\x65\x6e\144\x69\156\147\40\x65\155\141\x69\154\x2e\40\x50\154\145\x61\x73\145\40\166\145\162\x69\146\171\x20\x79\x6f\x75\x72\40\145\155\x61\x69\x6c\40\x61\156\x64\x20\164\x72\x79\x20\x61\x67\141\151\x6e\56");
        update_option("\155\x6f\x5f\x73\141\x6d\x6c\x5f\x72\x65\x67\151\x73\164\162\141\x74\151\x6f\156\x5f\163\x74\141\x74\165\163", "\x4d\x4f\137\117\124\x50\137\x44\105\x4c\x49\x56\105\x52\105\x44\x5f\106\101\x49\114\125\x52\105\x5f\x45\x4d\x41\111\114");
        $this->mo_saml_show_error_message();
        goto Mh;
        sc:
        update_option("\155\x6f\x5f\x73\x61\155\154\137\x6d\x65\x73\x73\141\147\x65", "\x20\101\x20\x6f\x6e\145\x20\x74\x69\x6d\145\x20\160\x61\x73\x73\143\157\144\145\x20\151\163\40\163\x65\156\x74\x20\x74\157\40" . get_option("\155\157\x5f\163\141\155\154\137\141\x64\155\x69\156\137\145\x6d\x61\151\x6c") . "\x2e\x20\x50\154\x65\x61\163\145\40\145\156\x74\x65\162\x20\164\x68\x65\x20\x6f\x74\x70\x20\150\145\x72\x65\x20\164\157\x20\166\145\162\151\146\171\40\x79\157\165\x72\40\x65\155\141\151\154\x2e");
        update_option("\x6d\157\x5f\x73\x61\x6d\154\137\164\162\141\x6e\x73\x61\x63\x74\x69\157\x6e\111\x64", $C2["\x74\170\111\x64"]);
        update_option("\x6d\157\x5f\163\141\x6d\x6c\x5f\162\145\147\151\163\x74\162\141\x74\151\x6f\156\x5f\163\x74\141\164\x75\163", "\115\117\137\x4f\124\120\x5f\104\x45\114\111\x56\x45\x52\105\x44\137\123\125\x43\103\x45\x53\123\x5f\105\115\101\111\x4c");
        $this->mo_saml_show_success_message();
        Mh:
        Jd:
        SI:
        lB:
        goto ef;
        aP:
        $H4 = sanitize_text_field($_POST["\155\x6f\137\163\141\x6d\x6c\x5f\x63\165\163\164\x6f\155\137\x6c\157\x67\x69\156\137\164\x65\x78\x74"]);
        update_option("\155\157\x5f\x73\x61\x6d\154\137\143\165\163\164\x6f\155\137\x6c\x6f\147\x69\x6e\x5f\164\145\x78\x74", stripcslashes($H4));
        $sT = sanitize_text_field($_POST["\x6d\x6f\x5f\163\141\155\x6c\137\x63\165\163\164\157\x6d\137\147\162\145\145\164\151\x6e\147\137\164\x65\x78\164"]);
        update_option("\155\157\x5f\x73\141\x6d\154\x5f\x63\165\x73\164\x6f\155\x5f\x67\162\x65\145\x74\x69\156\147\x5f\164\145\170\164", stripcslashes($sT));
        $T_ = sanitize_text_field($_POST["\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x67\x72\x65\145\x74\x69\x6e\x67\x5f\156\141\155\x65"]);
        update_option("\155\x6f\137\x73\x61\155\154\137\147\x72\x65\145\x74\x69\156\x67\x5f\x6e\141\x6d\145", stripslashes($T_));
        $ry = sanitize_text_field($_POST["\155\x6f\137\163\x61\155\154\x5f\143\165\163\x74\x6f\x6d\137\154\x6f\147\x6f\x75\164\x5f\x74\145\x78\164"]);
        update_option("\x6d\157\137\163\x61\155\154\x5f\143\x75\163\164\157\x6d\137\154\157\x67\157\165\x74\137\x74\145\170\x74", stripcslashes($ry));
        update_option("\155\157\x5f\x73\x61\155\154\x5f\155\145\163\x73\x61\147\145", "\127\151\x64\x67\145\x74\40\123\x65\x74\x74\x69\156\x67\x73\x20\165\160\x64\141\164\145\144\40\x73\x75\x63\143\145\163\163\x66\165\154\154\171\56");
        $this->mo_saml_show_success_message();
        ef:
        z9:
        if (mo_saml_is_trial_active()) {
            goto Hy;
        }
        if (site_check()) {
            goto Dp;
        }
        delete_option("\x6d\x6f\x5f\x73\x61\155\x6c\x5f\x66\157\162\x63\145\137\x61\x75\164\150\145\156\164\x69\143\141\x74\151\x6f\156");
        Dp:
        goto XE;
        Hy:
        if (!decryptSamlElement()) {
            goto h_;
        }
        $k3 = get_option("\x6d\157\137\163\141\x6d\154\x5f\143\x75\163\164\157\155\145\162\137\164\157\153\145\x6e");
        update_option("\x74\x5f\x73\x69\x74\145\x5f\163\164\x61\164\x75\x73", AESEncryption::encrypt_data("\146\x61\154\x73\145", $k3));
        h_:
        XE:
    }
    function djkasjdksa()
    {
        $lv = "\41\x7e\100\x23\x24\45\x5e\46\52\x28\x29\x5f\53\174\x7b\x7d\74\76\x3f\x30\61\x32\x33\x34\x35\x36\x37\70\x39\x61\x62\143\x64\x65\146\147\150\x69\x6a\153\x6c\155\x6e\157\160\161\162\x73\164\165\166\x77\x78\x79\172\x41\x42\103\104\105\106\107\x48\x49\112\113\x4c\x4d\116\x4f\120\121\122\x53\124\125\126\127\x58\x59\132";
        $E2 = strlen($lv);
        $N6 = '';
        $lp = 0;
        XD:
        if (!($lp < 10000)) {
            goto MH;
        }
        $N6 .= $lv[rand(0, $E2 - 1)];
        D4:
        $lp++;
        goto XD;
        MH:
        return $N6;
    }
    function create_customer()
    {
        $lF = new CustomerSaml();
        $C2 = $lF->create_customer();
        if ($C2) {
            goto gl;
        }
        return;
        gl:
        $F0 = json_decode($C2, true);
        if (strcasecmp($F0["\x73\164\x61\x74\165\x73"], "\x43\x55\123\x54\117\115\x45\122\137\x55\x53\105\x52\x4e\x41\x4d\x45\x5f\x41\x4c\x52\105\101\x44\x59\137\x45\130\111\x53\x54\x53") == 0) {
            goto Xs;
        }
        if (!(strcasecmp($F0["\163\x74\x61\x74\165\x73"], "\x53\x55\x43\103\105\x53\123") == 0)) {
            goto JD;
        }
        update_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\x61\x64\x6d\x69\156\x5f\x63\165\x73\164\x6f\155\x65\x72\x5f\x6b\145\x79", $F0["\151\144"]);
        update_option("\x6d\157\137\163\141\x6d\x6c\x5f\141\x64\x6d\x69\156\x5f\141\160\x69\137\153\145\x79", $F0["\141\160\151\x4b\145\x79"]);
        update_option("\155\157\137\x73\x61\x6d\x6c\x5f\x63\x75\x73\164\x6f\155\145\162\137\x74\157\x6b\x65\156", $F0["\x74\157\153\x65\156"]);
        update_option("\155\157\137\x73\x61\x6d\x6c\x5f\x61\x64\155\x69\x6e\137\160\x61\163\x73\167\157\162\x64", '');
        update_option("\155\x6f\x5f\163\141\155\x6c\x5f\155\x65\x73\x73\x61\x67\145", "\x54\150\141\x6e\153\x20\x79\157\x75\40\x66\157\162\40\x72\145\147\x69\163\164\145\162\x69\156\147\x20\x77\151\x74\150\x20\155\x69\x6e\151\157\x72\x61\156\147\145\x2e");
        update_option("\x6d\x6f\137\163\141\155\154\x5f\x72\145\147\151\163\x74\162\x61\164\x69\x6f\x6e\x5f\163\164\x61\164\165\163", '');
        delete_option("\x6d\x6f\137\x73\141\x6d\x6c\137\x76\x65\162\151\146\x79\137\143\x75\x73\164\157\x6d\145\x72");
        delete_option("\155\157\x5f\163\141\155\154\x5f\x6e\x65\x77\137\x72\x65\147\151\163\164\162\141\164\151\x6f\x6e");
        $this->mo_saml_show_success_message();
        JD:
        goto v0;
        Xs:
        $this->get_current_customer();
        v0:
        update_option("\155\157\137\163\x61\x6d\x6c\137\x61\x64\x6d\x69\x6e\x5f\160\141\163\x73\167\x6f\162\144", '');
    }
    function get_current_customer()
    {
        $lF = new CustomerSaml();
        $C2 = $lF->get_customer_key();
        if ($C2) {
            goto kv;
        }
        return;
        kv:
        $F0 = json_decode($C2, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto Gq;
        }
        update_option("\155\157\x5f\163\x61\x6d\154\137\x6d\x65\163\x73\141\147\x65", "\131\x6f\165\40\x61\x6c\162\145\141\x64\x79\x20\x68\141\x76\x65\40\141\156\40\x61\143\x63\157\x75\x6e\x74\40\167\151\164\x68\x20\x6d\151\x6e\151\x4f\162\x61\156\x67\x65\x2e\40\120\154\x65\x61\x73\145\x20\145\156\164\x65\162\40\141\x20\166\x61\154\x69\144\x20\160\141\163\163\167\x6f\162\144\56");
        update_option("\155\x6f\137\x73\x61\x6d\154\137\x76\145\x72\x69\146\x79\137\143\165\x73\x74\x6f\155\145\162", "\x74\162\165\145");
        delete_option("\x6d\157\137\x73\x61\x6d\x6c\x5f\156\x65\167\137\x72\145\147\151\x73\164\x72\x61\164\151\157\x6e");
        $this->mo_saml_show_error_message();
        goto kz;
        Gq:
        update_option("\x6d\x6f\x5f\163\x61\155\154\137\141\144\x6d\151\x6e\137\143\165\163\164\x6f\155\145\162\x5f\153\x65\171", $F0["\x69\x64"]);
        update_option("\155\x6f\137\x73\141\155\x6c\x5f\x61\x64\x6d\151\156\137\x61\160\151\137\x6b\145\x79", $F0["\141\x70\x69\x4b\x65\x79"]);
        update_option("\x6d\x6f\137\163\x61\x6d\154\x5f\x63\x75\x73\x74\157\155\145\x72\x5f\164\x6f\153\x65\156", $F0["\x74\157\x6b\x65\x6e"]);
        update_option("\155\x6f\137\x73\141\x6d\154\x5f\141\144\155\151\156\x5f\160\x61\163\x73\167\x6f\x72\x64", '');
        update_option("\x6d\x6f\x5f\163\141\x6d\154\137\155\x65\163\x73\141\x67\x65", "\131\157\165\162\40\x61\143\x63\x6f\x75\156\x74\40\150\141\163\x20\142\x65\x65\x6e\x20\162\145\x74\162\x69\145\166\145\144\40\163\165\x63\x63\x65\163\163\x66\x75\x6c\154\x79\x2e");
        delete_option("\155\157\x5f\x73\x61\155\154\137\x76\145\162\151\x66\171\137\143\x75\x73\x74\157\x6d\145\162");
        delete_option("\155\x6f\x5f\163\x61\155\154\x5f\x6e\x65\167\137\162\145\x67\151\163\x74\x72\141\x74\x69\157\156");
        $this->mo_saml_show_success_message();
        kz:
    }
    public function mo_saml_check_empty_or_null($zw)
    {
        if (!(!isset($zw) || empty($zw))) {
            goto Vv;
        }
        return true;
        Vv:
        return false;
    }
    function miniorange_sso_menu()
    {
        $JS = add_menu_page("\115\117\x20\x53\101\115\114\x20\x53\x65\164\164\x69\156\147\163\40" . __("\x43\157\156\x66\151\x67\165\x72\x65\40\x53\x41\x4d\114\40\111\x64\x65\x6e\164\151\164\171\40\x50\x72\x6f\166\151\x64\x65\162\40\146\x6f\x72\40\x53\123\117", "\155\157\137\163\141\155\154\x5f\163\145\164\x74\x69\x6e\x67\x73"), "\x6d\x69\156\x69\x4f\x72\x61\x6e\147\145\x20\x53\101\x4d\114\40\x32\x2e\x30\x20\x53\x53\x4f", "\x61\x64\155\x69\156\151\163\x74\162\x61\x74\157\x72", "\155\157\x5f\x73\141\155\154\137\163\145\164\x74\151\x6e\x67\163", array($this, "\155\x6f\x5f\x6c\x6f\x67\x69\x6e\137\x77\x69\x64\x67\x65\x74\x5f\x73\141\155\154\137\157\160\x74\x69\157\x6e\x73"), plugin_dir_url(__FILE__) . "\151\155\x61\x67\x65\x73\x2f\x6d\151\156\x69\x6f\x72\x61\156\147\145\x2e\160\156\147");
    }
    function mo_saml_redirect_for_authentication($yC)
    {
        if (!mo_saml_is_customer_license_key_verified()) {
            goto C5;
        }
        if (!(get_option("\x6d\157\x5f\163\141\x6d\x6c\137\x72\145\147\151\163\164\x65\x72\x65\144\137\157\156\x6c\171\x5f\141\x63\143\145\x73\x73") == "\164\162\165\x65")) {
            goto q2;
        }
        $base_url = home_url();
        echo "\74\163\x63\x72\151\160\164\76\x77\151\156\x64\157\x77\56\x6c\157\143\x61\x74\151\157\156\56\x68\x72\145\x66\75\47{$base_url}\x2f\77\157\x70\164\x69\x6f\x6e\x3d\163\141\x6d\x6c\137\165\163\145\162\x5f\x6c\x6f\147\x69\x6e\46\162\145\x64\x69\x72\145\143\164\x5f\164\157\75\x27\53\x65\156\x63\x6f\144\145\125\122\x49\x43\157\x6d\x70\x6f\x6e\145\156\164\x28\167\x69\156\x64\x6f\x77\x2e\154\x6f\143\x61\x74\151\x6f\156\x2e\x68\162\145\x66\x29\73\x3c\57\163\x63\x72\x69\160\164\x3e";
        die;
        q2:
        if (get_option("\155\157\137\163\141\x6d\x6c\137\162\145\147\x69\x73\164\x65\162\x65\x64\x5f\157\x6e\154\x79\x5f\141\x63\143\x65\x73\163") == "\x74\162\x75\145" || get_option("\155\x6f\137\x73\x61\155\x6c\137\145\x6e\x61\x62\154\145\x5f\x6c\x6f\147\151\156\x5f\x72\145\144\151\x72\x65\x63\164") == "\164\162\x75\x65") {
            goto cJ;
        }
        if (!(get_option("\x6d\157\x5f\163\x61\x6d\154\x5f\162\x65\144\151\x72\145\x63\164\137\164\157\x5f\167\x70\137\154\x6f\x67\x69\x6e") == "\x74\162\165\x65")) {
            goto Fc;
        }
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
            goto Tz;
        }
        $WO = site_url() . "\57\x77\160\55\x6c\157\147\x69\x6e\x2e\160\x68\x70";
        if (empty($yC)) {
            goto Tb;
        }
        $WO = $WO . "\x3f\162\145\144\x69\162\x65\143\164\137\x74\157\x3d" . urlencode($yC) . "\x26\x72\x65\141\165\x74\x68\x3d\61";
        Tb:
        header("\114\x6f\143\x61\164\151\157\156\72\40" . $WO);
        die;
        Tz:
        Fc:
        goto aB;
        cJ:
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
            goto uA;
        }
        $Gp = get_option("\155\x6f\137\163\x61\x6d\x6c\137\x73\160\137\x62\141\x73\145\137\165\x72\x6c");
        if (!empty($Gp)) {
            goto af;
        }
        $Gp = home_url();
        af:
        if (!(get_option("\155\157\137\x73\141\x6d\154\137\x72\145\154\141\171\137\x73\164\141\164\145") && get_option("\155\x6f\x5f\x73\x61\x6d\154\137\x72\145\154\x61\171\x5f\163\x74\x61\164\145") != '')) {
            goto K4;
        }
        $yC = get_option("\x6d\x6f\137\163\141\155\154\x5f\162\x65\x6c\x61\x79\137\x73\x74\141\164\x65");
        K4:
        $yC = mo_saml_get_relay_state($yC);
        $ac = empty($yC) ? "\57" : $yC;
        $So = get_option("\x73\x61\x6d\154\137\x6c\x6f\147\151\x6e\137\x75\162\154");
        $do = get_option("\163\141\155\x6c\x5f\x6c\x6f\147\151\x6e\137\142\x69\156\144\151\x6e\147\x5f\x74\x79\160\x65");
        $cf = get_option("\x6d\157\137\163\141\x6d\x6c\137\x66\157\162\x63\x65\137\x61\x75\x74\x68\x65\x6e\164\x69\x63\x61\164\x69\x6f\156");
        $XR = $Gp . "\x2f";
        $zY = get_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\x73\x70\137\145\x6e\x74\151\x74\x79\x5f\x69\144");
        $zT = get_option("\x73\141\155\154\x5f\x6e\x61\x6d\145\x69\144\137\146\x6f\x72\x6d\x61\164");
        if (!empty($zT)) {
            goto v5;
        }
        $zT = "\61\x2e\x31\x3a\156\141\x6d\145\151\x64\x2d\146\157\x72\x6d\141\164\x3a\165\x6e\x73\x70\145\143\151\x66\151\145\144";
        v5:
        if (!empty($zY)) {
            goto co;
        }
        $zY = $Gp . "\57\167\x70\x2d\x63\157\156\x74\145\156\164\57\x70\x6c\x75\x67\x69\x6e\163\x2f\x6d\151\156\x69\x6f\x72\x61\156\147\145\x2d\x73\141\x6d\154\x2d\x32\60\x2d\x73\x69\156\147\x6c\145\x2d\163\x69\147\x6e\55\x6f\x6e\57";
        co:
        $o_ = SAMLSPUtilities::createAuthnRequest($XR, $zY, $So, $cf, $do, $zT);
        if (empty($do) || $do == "\x48\164\164\x70\x52\145\x64\151\162\145\x63\x74") {
            goto C9;
        }
        if (!(get_option("\x73\x61\x6d\x6c\137\x72\145\161\x75\x65\x73\x74\x5f\163\151\147\156\145\x64") == "\x75\x6e\143\150\145\x63\x6b\x65\x64")) {
            goto ZX;
        }
        $Ji = base64_encode($o_);
        SAMLSPUtilities::postSAMLRequest($So, $Ji, $ac);
        die;
        ZX:
        $hw = '';
        $y9 = '';
        $Ji = SAMLSPUtilities::signXML($o_, "\116\x61\x6d\145\111\104\120\x6f\x6c\x69\143\x79");
        SAMLSPUtilities::postSAMLRequest($So, $Ji, $ac);
        goto Dw;
        C9:
        $U_ = $So;
        if (strpos($So, "\x3f") !== false) {
            goto z0;
        }
        $U_ .= "\77";
        goto jn;
        z0:
        $U_ .= "\x26";
        jn:
        if (!(get_option("\163\141\155\x6c\137\162\145\161\x75\145\163\x74\137\x73\151\x67\156\145\144") == "\x75\156\x63\150\x65\x63\153\145\x64")) {
            goto ZI;
        }
        $U_ .= "\x53\x41\x4d\x4c\122\x65\161\x75\145\x73\164\x3d" . $o_ . "\46\122\145\154\x61\171\123\x74\x61\x74\145\x3d" . urlencode($ac);
        header("\114\x6f\143\x61\164\151\x6f\156\72\40" . $U_);
        die;
        ZI:
        $o_ = "\x53\x41\115\114\x52\145\161\165\x65\x73\164\75" . $o_ . "\46\122\145\154\x61\171\x53\x74\x61\x74\145\75" . urlencode($ac) . "\x26\x53\151\147\101\x6c\x67\x3d" . urlencode(XMLSecurityKey::RSA_SHA256);
        $b3 = array("\164\171\160\145" => "\x70\x72\x69\166\141\164\145");
        $k3 = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $b3);
        $Zb = get_option("\x6d\x6f\137\163\141\x6d\154\137\x63\x75\x72\x72\145\x6e\x74\x5f\x63\145\x72\x74\137\x70\x72\151\166\141\x74\x65\137\153\x65\171");
        $k3->loadKey($Zb, FALSE);
        $m0 = new XMLSecurityDSig();
        $bn = $k3->signData($o_);
        $bn = base64_encode($bn);
        $U_ .= $o_ . "\46\123\151\147\156\141\164\165\x72\145\75" . urlencode($bn);
        header("\114\157\143\141\x74\151\157\156\72\x20" . $U_);
        die;
        Dw:
        uA:
        aB:
        C5:
    }
    function mo_saml_authenticate()
    {
        $eT = '';
        if (!isset($_REQUEST["\x72\x65\144\151\x72\145\x63\x74\x5f\x74\157"])) {
            goto uf;
        }
        $eT = htmlspecialchars($_REQUEST["\x72\145\x64\x69\x72\x65\x63\164\x5f\164\157"]);
        uf:
        if (!is_user_logged_in()) {
            goto Rj;
        }
        if (!empty($eT)) {
            goto lA;
        }
        header("\x4c\157\143\141\x74\151\x6f\x6e\x3a\40" . home_url());
        goto Ja;
        lA:
        header("\114\x6f\x63\141\x74\151\x6f\x6e\x3a\40" . $eT);
        Ja:
        die;
        Rj:
        if (!(get_option("\x6d\x6f\x5f\163\141\x6d\x6c\137\x65\x6e\x61\x62\154\x65\x5f\154\157\x67\x69\x6e\137\162\145\x64\151\x72\x65\x63\x74") == "\164\x72\x75\145")) {
            goto TT;
        }
        $WZ = get_option("\155\157\137\x73\x61\155\x6c\x5f\x62\141\143\153\144\157\157\x72\x5f\165\162\154") ? trim(get_option("\155\157\x5f\163\x61\155\x6c\137\142\x61\143\153\x64\x6f\157\162\x5f\165\162\154")) : "\x66\x61\x6c\163\145";
        if (isset($_GET["\154\x6f\x67\x67\145\x64\157\x75\164"]) && $_GET["\154\157\147\147\x65\x64\x6f\x75\164"] == "\164\162\165\x65") {
            goto V_;
        }
        if (get_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\141\154\x6c\x6f\x77\x5f\x77\x70\x5f\x73\x69\147\x6e\x69\x6e") == "\x74\162\x75\145") {
            goto v4;
        }
        goto FO;
        V_:
        header("\x4c\x6f\143\x61\x74\x69\157\156\72\x20" . home_url());
        die;
        goto FO;
        v4:
        if (isset($_GET["\x73\141\x6d\x6c\x5f\163\x73\x6f"]) && $_GET["\x73\x61\155\x6c\x5f\163\x73\x6f"] === $WZ || isset($_POST["\163\141\155\154\x5f\x73\163\157"]) && $_POST["\163\141\155\x6c\137\x73\163\157"] === $WZ) {
            goto qC;
        }
        if (isset($_REQUEST["\162\x65\x64\151\x72\x65\x63\x74\137\x74\x6f"])) {
            goto M7;
        }
        goto Ij;
        qC:
        return;
        goto Ij;
        M7:
        $eT = htmlspecialchars($_REQUEST["\x72\145\x64\x69\162\x65\143\164\x5f\164\x6f"]);
        if (!(strpos($eT, "\x77\160\55\x61\x64\155\151\x6e") !== false && strpos($eT, "\x73\141\x6d\x6c\137\163\x73\157\75" . $WZ) !== false)) {
            goto uv;
        }
        return;
        uv:
        Ij:
        FO:
        $this->mo_saml_redirect_for_authentication($eT);
        TT:
    }
    function mo_saml_auto_redirect()
    {
        if (!current_user_can("\162\145\x61\144")) {
            goto Wc;
        }
        return;
        Wc:
        if (!(get_option("\x6d\157\137\163\141\155\154\x5f\x72\145\x67\x69\163\x74\x65\162\x65\x64\x5f\157\x6e\154\171\137\141\143\x63\x65\x73\x73") == "\164\162\165\145" || get_option("\155\157\137\163\x61\x6d\x6c\x5f\x72\x65\x64\x69\162\145\143\x74\137\x74\157\x5f\x77\x70\137\x6c\x6f\147\151\x6e") == "\164\162\165\x65")) {
            goto C6;
        }
        if (!(get_option("\x6d\x6f\137\x73\141\155\154\137\x65\x6e\x61\x62\154\x65\x5f\x72\x73\163\x5f\141\143\143\x65\x73\163") == "\164\x72\165\145" && is_feed())) {
            goto uj;
        }
        return;
        uj:
        $yC = saml_get_current_page_url();
        $this->mo_saml_redirect_for_authentication($yC);
        C6:
    }
    function mo_saml_modify_login_form()
    {
        $WZ = get_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\142\x61\x63\x6b\144\x6f\x6f\x72\137\165\x72\154") ? trim(get_option("\155\x6f\137\x73\141\x6d\x6c\x5f\x62\141\143\x6b\x64\x6f\157\162\137\165\162\154")) : "\146\x61\x6c\163\145";
        echo "\74\151\x6e\160\165\x74\40\164\x79\160\x65\75\x22\x68\x69\144\x64\x65\x6e\x22\x20\156\141\155\x65\x3d\x22\x73\141\155\x6c\137\x73\163\x6f\x22\x20\x76\x61\154\x75\145\x3d" . $WZ . "\76" . "\12";
        if (!(get_option("\155\x6f\x5f\163\x61\x6d\154\137\x61\x64\x64\137\163\x73\157\137\x62\x75\164\164\x6f\x6e\x5f\167\x70") == "\x74\162\x75\145")) {
            goto RK;
        }
        $this->mo_saml_add_sso_button();
        RK:
    }
    function mo_saml_login_enqueue_scripts()
    {
        wp_enqueue_script("\x6a\161\x75\145\x72\171");
    }
    function mo_saml_add_sso_button()
    {
        if (is_user_logged_in()) {
            goto cs;
        }
        $Gp = get_option("\155\157\137\x73\x61\155\154\137\163\160\137\142\141\163\x65\x5f\x75\162\154");
        if (!empty($Gp)) {
            goto YJ;
        }
        $Gp = home_url();
        YJ:
        $fe = get_option("\155\157\x5f\x73\x61\155\x6c\x5f\x62\165\x74\x74\157\x6e\x5f\167\151\144\164\150") ? get_option("\155\157\137\x73\x61\155\x6c\x5f\142\x75\x74\164\157\x6e\x5f\x77\151\x64\164\x68") : "\x31\x30\x30";
        $oM = get_option("\x6d\x6f\137\x73\x61\155\x6c\x5f\142\165\164\164\x6f\x6e\x5f\x68\145\151\x67\150\164") ? get_option("\x6d\157\137\x73\141\155\154\137\x62\x75\164\164\157\156\x5f\150\x65\151\147\150\x74") : "\65\x30";
        $Pq = get_option("\155\157\x5f\x73\x61\155\154\137\x62\165\x74\x74\x6f\x6e\x5f\x73\x69\172\x65") ? get_option("\x6d\157\137\x73\x61\155\x6c\x5f\142\x75\x74\164\157\x6e\x5f\x73\151\172\145") : "\x35\60";
        $X_ = get_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\142\x75\164\x74\x6f\x6e\x5f\143\x75\x72\166\145") ? get_option("\x6d\157\x5f\163\141\x6d\x6c\x5f\142\x75\x74\x74\x6f\x6e\x5f\x63\x75\x72\166\x65") : "\x35";
        $Uu = get_option("\155\x6f\137\x73\x61\x6d\154\137\142\x75\164\164\x6f\x6e\x5f\x63\157\154\157\x72") ? get_option("\x6d\x6f\x5f\x73\141\x6d\154\x5f\x62\165\164\x74\157\156\137\143\x6f\154\x6f\162") : "\60\60\x38\x35\142\141";
        $MF = get_option("\155\157\x5f\x73\141\155\154\x5f\142\165\x74\x74\157\x6e\137\x74\x68\145\155\x65") ? get_option("\155\157\x5f\163\141\x6d\x6c\137\x62\x75\164\x74\157\x6e\x5f\x74\x68\x65\155\145") : "\x6c\x6f\156\147\142\x75\x74\164\157\156";
        $D7 = get_option("\x6d\157\x5f\163\x61\x6d\154\137\142\165\164\x74\157\x6e\x5f\x74\145\170\x74") ? get_option("\155\157\137\163\141\x6d\154\x5f\x62\x75\164\164\157\156\x5f\164\145\170\164") : (get_option("\x73\x61\x6d\x6c\x5f\x69\144\145\x6e\x74\x69\164\171\x5f\156\141\x6d\x65") ? get_option("\x73\141\155\154\x5f\x69\144\145\156\x74\151\x74\171\x5f\x6e\141\x6d\145") : "\x4c\157\x67\151\x6e");
        $Ob = get_option("\155\157\x5f\163\x61\155\154\137\146\x6f\x6e\x74\137\143\x6f\x6c\157\x72") ? get_option("\155\x6f\x5f\163\141\x6d\x6c\137\146\x6f\x6e\x74\137\143\157\x6c\x6f\x72") : "\146\x66\146\x66\146\146";
        $Gj = get_option("\155\157\x5f\x73\x61\155\154\137\146\157\x6e\x74\x5f\x73\151\172\x65") ? get_option("\x6d\157\137\163\141\x6d\154\x5f\146\x6f\156\164\x5f\163\x69\x7a\x65") : "\x32\60";
        $b1 = get_option("\163\x73\157\137\x62\x75\x74\x74\157\x6e\x5f\154\157\147\151\x6e\x5f\x66\157\162\155\137\160\157\x73\151\x74\x69\157\156") ? get_option("\x73\x73\x6f\137\x62\165\x74\164\157\x6e\137\154\157\x67\x69\156\x5f\146\157\162\x6d\x5f\160\x6f\163\x69\164\x69\157\156") : "\x61\x62\157\x76\x65";
        $fQ = "\x3c\x69\x6e\160\165\x74\40\164\x79\x70\145\75\42\142\x75\164\x74\157\x6e\42\40\x6e\141\x6d\x65\75\x22\155\157\137\x73\141\155\x6c\x5f\x77\160\137\x73\163\157\x5f\142\165\164\164\x6f\156\x22\x20\166\x61\154\165\145\x3d\42" . $D7 . "\42\x20\x73\164\x79\x6c\145\x3d\42";
        $EU = '';
        if ($MF == "\154\157\x6e\147\x62\165\x74\x74\x6f\156") {
            goto BW;
        }
        if ($MF == "\x63\151\162\x63\154\145") {
            goto QL;
        }
        if ($MF == "\157\166\x61\154") {
            goto x9;
        }
        if ($MF == "\x73\x71\165\141\162\x65") {
            goto nm;
        }
        goto ua;
        QL:
        $EU = $EU . "\167\x69\144\164\150\x3a" . $Pq . "\160\x78\73";
        $EU = $EU . "\150\x65\151\147\150\x74\x3a" . $Pq . "\x70\170\x3b";
        $EU = $EU . "\x62\157\162\x64\x65\162\x2d\x72\x61\144\x69\x75\163\x3a\x39\x39\x39\x70\x78\73";
        goto ua;
        x9:
        $EU = $EU . "\167\x69\x64\x74\150\72" . $Pq . "\160\x78\73";
        $EU = $EU . "\x68\145\151\x67\x68\164\x3a" . $Pq . "\160\x78\73";
        $EU = $EU . "\142\157\162\144\x65\x72\55\162\141\x64\x69\x75\163\x3a\x35\160\170\x3b";
        goto ua;
        nm:
        $EU = $EU . "\167\151\144\164\150\72" . $Pq . "\x70\x78\73";
        $EU = $EU . "\150\145\x69\x67\x68\x74\x3a" . $Pq . "\x70\x78\x3b";
        $EU = $EU . "\x62\157\x72\144\145\x72\x2d\162\x61\x64\x69\x75\x73\x3a\x30\x70\x78\x3b";
        $EU = $EU . "\160\x61\x64\x64\x69\x6e\147\72\x30\x70\170\73";
        ua:
        goto Cb;
        BW:
        $EU = $EU . "\x77\x69\x64\164\150\72" . $fe . "\x70\x78\x3b";
        $EU = $EU . "\150\145\x69\147\150\164\x3a" . $oM . "\160\x78\73";
        $EU = $EU . "\x62\157\162\x64\145\162\55\162\x61\x64\151\x75\x73\x3a" . $X_ . "\160\x78\73";
        Cb:
        $EU = $EU . "\142\x61\x63\x6b\147\162\x6f\165\x6e\x64\55\143\x6f\154\157\162\x3a\x23" . $Uu . "\73";
        $EU = $EU . "\x62\157\162\144\145\162\55\143\x6f\154\x6f\162\x3a\x74\162\141\x6e\163\160\141\x72\x65\156\164\73";
        $EU = $EU . "\143\x6f\154\157\x72\72\x23" . $Ob . "\x3b";
        $EU = $EU . "\146\157\156\x74\x2d\x73\x69\x7a\145\72" . $Gj . "\160\x78\73";
        $EU = $EU . "\x63\x75\x72\x73\157\x72\x3a\160\157\x69\x6e\164\x65\x72";
        $fQ = $fQ . $EU . "\42\x2f\76";
        $eT = '';
        if (!isset($_GET["\162\145\144\151\162\x65\143\x74\137\x74\157"])) {
            goto XZ;
        }
        $eT = urlencode($_GET["\x72\145\144\151\162\x65\x63\x74\x5f\x74\x6f"]);
        XZ:
        $MP = "\74\141\40\150\162\145\146\75\x22" . $Gp . "\57\x3f\157\160\x74\151\x6f\156\x3d\x73\x61\x6d\154\x5f\x75\x73\x65\x72\x5f\154\157\147\x69\x6e\x26\x72\145\x64\151\x72\145\x63\x74\137\x74\x6f\x3d" . $eT . "\42\40\x73\x74\x79\154\145\x3d\x22\164\145\x78\x74\55\144\145\143\x6f\x72\x61\x74\x69\x6f\x6e\x3a\x6e\x6f\x6e\x65\73\42\76" . $fQ . "\x3c\x2f\141\76";
        $MP = "\74\x64\x69\x76\x20\163\164\171\154\145\75\42\x70\x61\x64\144\151\156\x67\72\61\x30\x70\x78\73\x22\76" . $MP . "\74\x2f\x64\151\x76\x3e";
        if ($b1 == "\141\x62\x6f\x76\x65") {
            goto lK;
        }
        $MP = "\74\x64\x69\166\x20\x69\144\75\42\x73\x73\157\137\x62\165\164\x74\157\156\42\x20\163\x74\x79\x6c\x65\x3d\42\164\x65\x78\x74\x2d\x61\154\x69\x67\156\72\143\145\x6e\164\145\162\x22\x3e\x3c\144\x69\166\40\x73\x74\171\x6c\x65\x3d\42\x70\141\144\144\151\156\x67\72\65\160\x78\x3b\146\157\156\164\55\x73\x69\x7a\145\x3a\61\x34\160\170\x3b\x22\x3e\x3c\142\x3e\x4f\x52\x3c\x2f\x62\76\x3c\x2f\x64\151\x76\76" . $MP . "\74\x2f\144\x69\x76\x3e\74\x62\162\57\76";
        goto zz;
        lK:
        $MP = "\74\x64\x69\x76\x20\151\144\75\x22\x73\x73\157\137\142\x75\164\164\157\x6e\42\x20\163\164\171\154\145\75\x22\164\x65\170\x74\x2d\141\154\151\147\x6e\72\x63\145\156\164\x65\x72\x22\76" . $MP . "\x3c\144\x69\166\x20\x73\164\x79\x6c\x65\x3d\x22\160\141\144\x64\x69\156\147\72\x35\160\x78\73\x66\157\156\164\55\x73\151\172\145\x3a\61\64\x70\x78\73\42\x3e\74\x62\76\x4f\122\x3c\57\x62\76\x3c\x2f\144\151\166\76\74\x2f\144\151\166\x3e\74\x62\x72\x2f\76";
        $MP = $MP . "\74\163\143\x72\x69\160\x74\76\12\11\x9\11\x76\x61\162\x20\44\145\154\145\155\x65\156\x74\x20\x3d\x20\152\121\x75\145\x72\x79\50\42\x23\165\163\x65\x72\137\x6c\x6f\147\151\x6e\x22\x29\x3b\xa\11\x9\x9\152\x51\165\x65\x72\x79\x28\x22\x23\x73\163\157\137\x62\x75\164\x74\x6f\x6e\x22\51\56\x69\156\x73\x65\162\x74\102\145\x66\157\x72\145\x28\152\121\x75\x65\162\171\x28\x22\x6c\141\142\x65\x6c\133\146\x6f\x72\x3d\47\42\x2b\x24\145\x6c\145\x6d\145\x6e\x74\x2e\141\164\x74\162\x28\47\x69\144\x27\x29\x2b\42\47\x5d\42\51\x29\73\xa\11\11\11\x3c\57\x73\143\x72\151\160\x74\76";
        zz:
        echo $MP;
        cs:
    }
    function mo_get_saml_shortcode()
    {
        if (!is_user_logged_in()) {
            goto mt;
        }
        $current_user = wp_get_current_user();
        $sT = "\x48\145\x6c\x6c\157\54";
        if (!get_option("\155\157\x5f\x73\x61\x6d\154\137\143\165\x73\x74\x6f\x6d\137\147\162\x65\x65\x74\x69\156\x67\x5f\x74\x65\170\x74")) {
            goto tr;
        }
        $sT = get_option("\x6d\x6f\137\163\x61\155\154\x5f\x63\x75\x73\164\157\155\x5f\x67\162\145\145\x74\x69\156\x67\x5f\164\x65\x78\x74");
        tr:
        $T_ = '';
        if (!get_option("\155\157\137\x73\141\x6d\154\137\x67\x72\145\x65\164\x69\x6e\x67\x5f\156\x61\x6d\145")) {
            goto QJ;
        }
        switch (get_option("\155\157\x5f\163\141\155\154\x5f\147\162\x65\145\164\151\x6e\147\x5f\156\x61\x6d\145")) {
            case "\x55\123\105\x52\x4e\x41\x4d\105":
                $T_ = $current_user->user_login;
                goto JU;
            case "\x45\x4d\101\111\114":
                $T_ = $current_user->user_email;
                goto JU;
            case "\106\116\101\115\x45":
                $T_ = $current_user->user_firstname;
                goto JU;
            case "\x4c\116\x41\115\105":
                $T_ = $current_user->user_lastname;
                goto JU;
            case "\x46\x4e\101\x4d\105\137\x4c\116\101\x4d\x45":
                $T_ = $current_user->user_firstname . "\x20" . $current_user->user_lastname;
                goto JU;
            case "\114\x4e\x41\x4d\x45\137\106\x4e\101\115\105":
                $T_ = $current_user->user_lastname . "\40" . $current_user->user_firstname;
                goto JU;
            default:
                $T_ = $current_user->user_login;
        }
        j1:
        JU:
        QJ:
        $T_ = trim($T_);
        if (!empty($T_)) {
            goto hw;
        }
        $T_ = $current_user->user_login;
        hw:
        $d_ = $sT . "\x20" . $T_;
        $yA = "\x4c\157\147\x6f\x75\x74";
        if (!get_option("\155\x6f\137\x73\x61\155\154\x5f\143\165\163\164\157\155\x5f\x6c\x6f\x67\157\165\x74\137\164\145\x78\164")) {
            goto wD;
        }
        $yA = get_option("\155\157\x5f\163\x61\x6d\154\x5f\143\x75\x73\x74\x6f\155\137\154\157\147\x6f\165\164\x5f\x74\145\x78\164");
        wD:
        $MP = $d_ . "\x20\x7c\x20\74\141\x20\x68\x72\x65\x66\75\42" . wp_logout_url(home_url()) . "\42\x20\164\x69\164\154\145\x3d\x22\x6c\157\147\x6f\x75\164\x22\40\x3e" . $yA . "\x3c\57\x61\x3e\74\57\x6c\151\76";
        goto F_;
        mt:
        $Gp = get_option("\x6d\157\x5f\x73\x61\155\x6c\x5f\163\x70\x5f\142\x61\163\145\x5f\x75\x72\154");
        if (!empty($Gp)) {
            goto sm;
        }
        $Gp = home_url();
        sm:
        if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
            goto gL;
        }
        $MP = "\x53\x50\40\x69\163\x20\x6e\157\x74\40\x63\x6f\156\146\151\147\x75\x72\145\144\x2e";
        goto OY;
        gL:
        $g2 = "\x4c\157\147\151\x6e\x20\167\151\x74\x68\40" . get_option("\163\141\x6d\154\137\151\x64\145\156\x74\151\164\x79\137\156\x61\x6d\x65");
        if (!get_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\143\x75\163\x74\x6f\x6d\x5f\154\157\147\151\x6e\x5f\x74\145\170\x74")) {
            goto sX;
        }
        $g2 = get_option("\x6d\x6f\137\x73\x61\155\154\137\x63\x75\163\164\x6f\155\x5f\154\x6f\147\x69\x6e\137\x74\x65\170\x74");
        sX:
        $Rs = get_option("\x73\141\x6d\x6c\137\x69\x64\145\x6e\x74\151\164\171\x5f\156\x61\155\145");
        $g2 = str_replace("\43\x23\x49\x44\x50\x23\43", $Rs, $g2);
        $iP = false;
        if (!get_option("\155\157\137\x73\x61\x6d\x6c\x5f\165\163\145\137\142\165\x74\x74\x6f\x6e\137\x61\x73\x5f\163\150\157\162\164\143\157\144\x65")) {
            goto dB;
        }
        if (!(get_option("\x6d\x6f\137\163\141\155\154\x5f\x75\x73\145\137\x62\x75\x74\x74\x6f\x6e\x5f\x61\163\137\163\150\157\x72\x74\143\157\x64\145") == "\164\x72\x75\x65")) {
            goto PZ;
        }
        $iP = true;
        PZ:
        dB:
        if (!$iP) {
            goto HP;
        }
        $fe = get_option("\x6d\157\137\x73\141\x6d\x6c\137\142\x75\164\164\157\156\137\x77\151\x64\x74\150") ? get_option("\155\157\137\163\141\x6d\x6c\x5f\142\165\164\164\x6f\x6e\x5f\167\x69\x64\164\x68") : "\x31\x30\60";
        $oM = get_option("\155\157\137\163\x61\x6d\154\137\x62\165\164\x74\157\x6e\x5f\x68\x65\x69\147\150\164") ? get_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\x62\165\x74\164\157\156\137\x68\145\x69\x67\150\164") : "\65\x30";
        $Pq = get_option("\155\x6f\x5f\x73\141\155\x6c\x5f\x62\x75\164\x74\x6f\156\137\x73\151\x7a\145") ? get_option("\x6d\x6f\137\x73\x61\155\154\137\142\165\164\x74\x6f\x6e\137\163\x69\172\145") : "\x35\60";
        $X_ = get_option("\155\x6f\x5f\x73\x61\155\154\137\142\165\x74\164\x6f\156\x5f\143\x75\x72\166\x65") ? get_option("\155\x6f\137\163\141\x6d\154\137\x62\x75\x74\x74\157\x6e\x5f\x63\165\162\166\x65") : "\65";
        $Uu = get_option("\155\x6f\x5f\163\141\155\x6c\x5f\142\x75\x74\x74\x6f\x6e\137\143\157\154\157\162") ? get_option("\155\x6f\x5f\163\141\155\x6c\137\142\x75\164\x74\x6f\x6e\137\x63\x6f\154\x6f\x72") : "\x30\60\x38\x35\142\x61";
        $MF = get_option("\x6d\x6f\137\x73\x61\x6d\154\137\142\x75\x74\164\157\156\137\164\x68\x65\x6d\x65") ? get_option("\x6d\x6f\137\x73\x61\155\154\137\142\x75\164\164\x6f\x6e\137\164\x68\x65\x6d\145") : "\154\x6f\156\147\x62\x75\164\x74\x6f\x6e";
        $D7 = get_option("\155\157\x5f\163\x61\x6d\x6c\137\x62\165\x74\164\x6f\156\137\x74\x65\x78\164") ? get_option("\x6d\157\137\163\141\155\154\x5f\x62\x75\164\164\157\x6e\137\164\145\x78\x74") : (get_option("\163\x61\155\x6c\x5f\x69\x64\x65\x6e\164\x69\164\x79\x5f\156\141\x6d\x65") ? get_option("\x73\x61\x6d\x6c\137\151\144\145\156\x74\x69\164\171\x5f\x6e\x61\x6d\x65") : "\x4c\x6f\x67\151\x6e");
        $Ob = get_option("\x6d\157\137\x73\141\x6d\x6c\137\146\x6f\x6e\164\x5f\143\157\154\157\x72") ? get_option("\x6d\x6f\x5f\163\x61\155\154\137\146\157\156\x74\x5f\143\157\154\157\x72") : "\x66\x66\146\146\146\x66";
        $Gj = get_option("\155\157\137\x73\x61\x6d\154\137\146\x6f\156\x74\x5f\163\151\172\x65") ? get_option("\155\157\137\163\x61\155\x6c\137\x66\x6f\156\x74\x5f\x73\x69\172\145") : "\62\x30";
        $g2 = "\74\151\x6e\160\x75\164\40\x74\x79\x70\x65\x3d\x22\142\165\x74\x74\157\156\x22\x20\156\x61\x6d\145\x3d\x22\x6d\157\137\163\x61\155\x6c\137\x77\160\x5f\x73\163\x6f\x5f\x62\x75\164\x74\157\x6e\x22\x20\x76\141\x6c\165\x65\75\x22" . $D7 . "\x22\40\163\164\x79\154\145\75\x22";
        $EU = '';
        if ($MF == "\154\157\x6e\x67\142\x75\x74\x74\x6f\x6e") {
            goto TM;
        }
        if ($MF == "\143\151\x72\x63\x6c\x65") {
            goto oC;
        }
        if ($MF == "\x6f\x76\141\x6c") {
            goto uq;
        }
        if ($MF == "\x73\161\x75\x61\x72\x65") {
            goto g9;
        }
        goto w6;
        oC:
        $EU = $EU . "\x77\151\144\x74\150\x3a" . $Pq . "\160\170\x3b";
        $EU = $EU . "\150\x65\151\147\x68\x74\72" . $Pq . "\x70\170\x3b";
        $EU = $EU . "\142\157\162\x64\x65\162\55\x72\x61\x64\x69\165\x73\x3a\71\x39\71\160\x78\73";
        goto w6;
        uq:
        $EU = $EU . "\167\151\x64\164\x68\x3a" . $Pq . "\x70\170\x3b";
        $EU = $EU . "\150\x65\x69\147\150\x74\72" . $Pq . "\160\x78\x3b";
        $EU = $EU . "\142\157\162\x64\x65\x72\55\162\x61\x64\x69\x75\x73\x3a\x35\160\x78\x3b";
        goto w6;
        g9:
        $EU = $EU . "\167\151\144\x74\x68\72" . $Pq . "\160\x78\73";
        $EU = $EU . "\150\x65\x69\147\x68\164\72" . $Pq . "\x70\x78\x3b";
        $EU = $EU . "\x62\157\162\144\x65\162\55\x72\141\x64\x69\165\163\x3a\x30\x70\x78\73";
        w6:
        goto w4;
        TM:
        $EU = $EU . "\167\151\x64\164\150\x3a" . $fe . "\x70\x78\x3b";
        $EU = $EU . "\150\x65\x69\x67\x68\x74\72" . $oM . "\160\170\73";
        $EU = $EU . "\x62\x6f\162\x64\145\162\55\x72\141\144\x69\165\x73\72" . $X_ . "\160\170\x3b";
        w4:
        $EU = $EU . "\142\x61\143\153\x67\x72\157\165\156\x64\x2d\143\x6f\154\x6f\162\x3a\43" . $Uu . "\x3b";
        $EU = $EU . "\142\x6f\x72\x64\x65\x72\55\x63\157\x6c\157\x72\72\x74\x72\x61\x6e\x73\x70\141\162\x65\x6e\x74\73";
        $EU = $EU . "\143\x6f\154\157\x72\x3a\x23" . $Ob . "\x3b";
        $EU = $EU . "\x66\157\156\164\x2d\163\151\172\x65\72" . $Gj . "\160\x78\x3b";
        $EU = $EU . "\160\141\x64\144\151\156\147\x3a\x30\160\170\x3b";
        $g2 = $g2 . $EU . "\42\57\x3e";
        HP:
        $eT = urlencode(saml_get_current_page_url());
        $MP = "\x3c\x61\x20\x68\x72\145\146\75\42" . $Gp . "\x2f\77\157\x70\x74\151\x6f\156\x3d\x73\x61\x6d\x6c\x5f\x75\163\x65\162\x5f\x6c\157\x67\151\156\x26\x72\145\x64\x69\162\x65\143\x74\137\164\x6f\x3d" . $eT . "\42";
        if (!$iP) {
            goto zp;
        }
        $MP = $MP . "\x73\164\171\154\x65\x3d\42\164\145\x78\164\55\144\x65\x63\157\x72\x61\x74\x69\x6f\156\72\156\157\156\145\73\42";
        zp:
        $MP = $MP . "\x3e" . $g2 . "\x3c\x2f\141\76";
        OY:
        F_:
        return $MP;
    }
    function _handle_upload_metadata()
    {
        if (!(isset($_FILES["\x6d\x65\x74\x61\144\x61\164\141\137\x66\x69\154\145"]) || isset($_POST["\x6d\x65\164\141\x64\141\x74\x61\x5f\x75\x72\x6c"]))) {
            goto Lj;
        }
        if (!empty($_FILES["\155\x65\x74\x61\144\x61\x74\141\x5f\x66\151\154\x65"]["\164\155\160\137\x6e\141\x6d\145"])) {
            goto b4;
        }
        if (mo_saml_is_extension_installed("\143\165\x72\154")) {
            goto oL;
        }
        update_option("\155\x6f\137\x73\x61\155\x6c\137\x6d\x65\x73\x73\x61\147\x65", "\120\x48\120\x20\x63\125\x52\x4c\x20\145\170\164\145\156\x73\151\x6f\x6e\40\151\x73\40\x6e\x6f\164\x20\x69\x6e\x73\164\141\154\154\145\144\40\157\x72\40\x64\x69\x73\x61\x62\154\145\x64\56\40\x43\x61\x6e\156\x6f\x74\40\x66\145\164\x63\x68\x20\x6d\145\164\141\144\x61\164\141\x20\146\162\157\155\x20\x55\x52\114\x2e");
        $this->mo_saml_show_error_message();
        return;
        oL:
        $WO = filter_var(htmlspecialchars($_POST["\155\x65\164\x61\x64\x61\x74\141\137\165\x72\154"]), FILTER_SANITIZE_URL);
        $rQ = SAMLSPUtilities::mo_saml_wp_remote_call($WO, array("\163\163\x6c\x76\x65\x72\x69\x66\x79" => false), true);
        if (!$rQ) {
            goto Ai;
        }
        $eU = $rQ;
        goto vK;
        Ai:
        return;
        vK:
        if (isset($_POST["\x73\171\x6e\x63\x5f\155\145\164\141\x64\x61\x74\141"])) {
            goto C_;
        }
        delete_option("\163\141\x6d\x6c\137\155\x65\164\x61\x64\x61\164\x61\x5f\165\162\154\x5f\x66\157\162\137\x73\x79\x6e\143");
        delete_option("\x73\x61\155\x6c\x5f\155\145\164\x61\144\x61\164\x61\x5f\x73\x79\156\143\x5f\151\156\164\x65\162\x76\141\x6c");
        wp_unschedule_event(wp_next_scheduled("\155\145\164\141\144\141\x74\x61\137\x73\x79\156\143\137\x63\162\157\x6e\x5f\x61\x63\164\151\x6f\x6e"), "\x6d\x65\164\x61\x64\x61\x74\141\x5f\x73\x79\156\x63\137\143\162\157\x6e\x5f\x61\143\x74\x69\x6f\156");
        goto d5;
        C_:
        update_option("\x73\x61\155\x6c\x5f\155\145\164\141\144\141\x74\x61\x5f\165\x72\154\x5f\146\x6f\x72\x5f\163\171\x6e\x63", htmlspecialchars($_POST["\x6d\145\x74\141\x64\141\x74\x61\x5f\165\x72\x6c"]));
        update_option("\x73\x61\x6d\x6c\137\155\145\164\141\x64\x61\164\x61\x5f\x73\171\156\x63\137\151\156\x74\x65\x72\166\x61\x6c", htmlspecialchars($_POST["\163\x79\156\143\137\151\156\164\x65\162\x76\141\x6c"]));
        if (wp_next_scheduled("\155\145\x74\x61\x64\x61\164\141\x5f\x73\x79\x6e\x63\x5f\x63\x72\x6f\x6e\x5f\141\143\164\x69\157\x6e")) {
            goto iJ;
        }
        wp_schedule_event(time(), htmlspecialchars($_POST["\163\x79\x6e\143\137\x69\156\164\x65\162\166\x61\154"]), "\155\x65\164\x61\x64\141\164\141\137\x73\x79\x6e\x63\x5f\x63\162\x6f\156\x5f\141\x63\x74\151\157\156");
        iJ:
        d5:
        goto Vc;
        b4:
        $eU = @file_get_contents($_FILES["\x6d\x65\164\x61\x64\x61\x74\x61\x5f\146\x69\x6c\145"]["\x74\155\160\137\x6e\x61\155\145"]);
        Vc:
        $this->upload_metadata($eU);
        Lj:
    }
    function upload_metadata($eU)
    {
        $rB = set_error_handler(array($this, "\150\141\x6e\144\154\145\x58\155\154\105\x72\162\x6f\162"));
        $X8 = new DOMDocument();
        $X8->loadXML($eU);
        restore_error_handler();
        $HT = $X8->firstChild;
        if (!empty($HT)) {
            goto vH;
        }
        if (!empty($_FILES["\x6d\x65\164\x61\144\x61\164\141\137\x66\x69\154\x65"]["\x74\x6d\160\x5f\x6e\x61\x6d\x65"])) {
            goto Bp;
        }
        if (!empty($_POST["\x6d\145\164\x61\x64\x61\x74\141\x5f\165\x72\x6c"])) {
            goto M0;
        }
        update_option("\155\157\137\163\141\155\154\x5f\155\x65\163\x73\x61\x67\x65", "\x50\154\x65\141\x73\145\x20\x70\x72\x6f\x76\x69\x64\x65\40\141\40\166\141\154\151\x64\40\x6d\x65\x74\x61\x64\x61\164\141\40\x66\151\154\x65\x20\157\162\x20\141\40\166\141\x6c\x69\144\x20\125\x52\114\56");
        $this->mo_saml_show_error_message();
        return;
        goto lP;
        M0:
        update_option("\155\x6f\x5f\163\x61\x6d\x6c\137\x6d\145\x73\x73\141\x67\145", "\120\154\145\141\x73\x65\x20\x70\162\x6f\x76\151\x64\x65\x20\x61\x20\x76\x61\154\x69\x64\40\155\145\x74\x61\144\141\164\x61\x20\x55\122\114\x2e");
        $this->mo_saml_show_error_message();
        lP:
        goto s2;
        Bp:
        update_option("\x6d\x6f\137\163\x61\x6d\154\137\155\x65\163\x73\141\x67\x65", "\x50\154\x65\x61\163\x65\40\x70\x72\157\166\151\144\x65\40\x61\40\x76\141\154\x69\144\40\155\145\x74\141\x64\141\x74\141\x20\146\x69\x6c\x65\x2e");
        $this->mo_saml_show_error_message();
        s2:
        goto Ve;
        vH:
        $m5 = new IDPMetadataReader($X8);
        $mf = $m5->getIdentityProviders();
        if (!empty($mf)) {
            goto I7;
        }
        update_option("\155\x6f\137\163\141\155\154\137\155\145\163\163\141\147\145", "\x50\x6c\x65\x61\163\x65\x20\x70\162\157\x76\x69\x64\x65\40\x61\40\166\x61\x6c\151\144\x20\x6d\145\164\141\144\x61\x74\141\x20\x66\x69\x6c\x65\56");
        $this->mo_saml_show_error_message();
        return;
        I7:
        foreach ($mf as $k3 => $uW) {
            $td = get_option("\x73\141\x6d\154\x5f\x69\x64\145\156\164\x69\x74\171\x5f\156\141\x6d\x65");
            if (!isset($_POST["\163\141\155\154\137\151\x64\145\156\x74\x69\164\x79\x5f\155\145\x74\x61\144\x61\x74\141\137\x70\162\157\166\151\144\x65\162"])) {
                goto Vg;
            }
            $td = htmlspecialchars($_POST["\x73\x61\155\x6c\137\x69\x64\x65\156\164\x69\x74\171\137\x6d\145\164\141\x64\141\164\x61\137\160\x72\x6f\x76\151\x64\x65\x72"]);
            Vg:
            $xP = "\x48\164\164\160\122\x65\x64\x69\162\x65\x63\x74";
            $YE = '';
            if (array_key_exists("\110\124\x54\120\55\x52\145\x64\x69\x72\145\x63\x74", $uW->getLoginDetails())) {
                goto MA;
            }
            if (!array_key_exists("\x48\124\x54\120\x2d\120\117\123\x54", $uW->getLoginDetails())) {
                goto AB;
            }
            $xP = "\110\164\x74\160\x50\x6f\x73\x74";
            $YE = $uW->getLoginURL("\x48\x54\124\x50\x2d\120\117\x53\124");
            AB:
            goto dI;
            MA:
            $YE = $uW->getLoginURL("\x48\x54\x54\120\55\122\x65\144\151\x72\x65\143\x74");
            dI:
            $nq = "\110\x74\164\160\x52\145\x64\x69\x72\x65\143\164";
            $AC = '';
            if (array_key_exists("\x48\x54\x54\120\x2d\122\145\144\x69\162\145\x63\x74", $uW->getLogoutDetails())) {
                goto Iu;
            }
            if (!array_key_exists("\110\x54\124\x50\55\120\117\x53\124", $uW->getLogoutDetails())) {
                goto xm;
            }
            $nq = "\x48\164\x74\x70\120\157\x73\x74";
            $AC = $uW->getLogoutURL("\110\124\x54\x50\55\x50\x4f\x53\124");
            xm:
            goto LT;
            Iu:
            $AC = $uW->getLogoutURL("\110\x54\x54\x50\55\x52\145\144\151\x72\145\x63\x74");
            LT:
            $kH = $uW->getEntityID();
            $Ay = $uW->getSigningCertificate();
            update_option("\x73\x61\x6d\154\137\x69\144\x65\156\x74\x69\164\171\x5f\156\x61\x6d\145", $td);
            update_option("\x73\141\x6d\154\137\x6c\157\147\151\156\137\x62\151\x6e\144\151\156\x67\x5f\164\x79\160\145", $xP);
            update_option("\163\x61\155\154\137\x6c\157\x67\151\x6e\x5f\x75\162\154", $YE);
            update_option("\163\x61\x6d\x6c\137\x6c\x6f\x67\157\165\x74\137\142\151\x6e\x64\151\x6e\147\137\x74\x79\x70\x65", $nq);
            update_option("\163\x61\155\154\x5f\154\x6f\x67\x6f\165\164\x5f\x75\x72\x6c", $AC);
            update_option("\x73\x61\x6d\x6c\x5f\151\x73\163\x75\145\162", $kH);
            update_option("\x73\141\155\154\x5f\156\141\155\x65\x69\x64\x5f\x66\x6f\x72\155\141\x74", "\61\x2e\61\x3a\156\x61\155\x65\x69\x64\x2d\146\157\x72\x6d\x61\164\x3a\x75\156\163\160\145\x63\151\146\x69\145\144");
            update_option("\x73\141\155\154\137\170\65\60\71\137\143\x65\162\164\151\x66\151\143\141\x74\x65", maybe_serialize($Ay));
            goto CU;
            qZ:
        }
        CU:
        update_option("\x6d\157\137\x73\141\155\x6c\x5f\155\145\x73\x73\x61\x67\145", "\111\144\x65\x6e\x74\151\x74\x79\x20\120\162\157\x76\151\144\x65\x72\40\x64\x65\164\141\x69\x6c\163\40\163\x61\x76\145\144\40\163\165\143\143\145\x73\163\146\x75\x6c\x6c\171\x2e");
        $this->mo_saml_show_success_message();
        Ve:
    }
    function handleXmlError($CI, $d3, $Ro, $cZ)
    {
        if ($CI == E_WARNING && substr_count($d3, "\x44\x4f\x4d\104\x6f\143\165\155\x65\156\164\x3a\x3a\x6c\157\x61\144\130\x4d\114\x28\51") > 0) {
            goto aJ;
        }
        return false;
        goto gW;
        aJ:
        return;
        gW:
    }
    function mo_saml_plugin_action_links($zX)
    {
        $zX = array_merge(array("\74\x61\40\150\162\x65\x66\75\42" . esc_url(admin_url("\x61\x64\x6d\151\156\56\160\x68\x70\x3f\x70\141\x67\145\75\x6d\157\137\163\x61\155\154\137\163\145\x74\164\151\x6e\147\x73")) . "\x22\x3e" . __("\x53\145\x74\x74\x69\156\x67\163", "\x74\145\x78\x74\x64\157\155\141\x69\156") . "\74\x2f\141\76"), $zX);
        return $zX;
    }
    function checkPasswordPattern($xN)
    {
        $Y8 = "\x2f\x5e\x5b\50\x5c\167\51\x2a\50\134\41\134\100\x5c\43\134\44\x5c\45\134\136\134\x26\x5c\52\x5c\56\134\x2d\x5c\x5f\x29\52\x5d\53\x24\57";
        return !preg_match($Y8, $xN);
    }
}
new saml_mo_login();

Function Calls

None

Variables

None

Stats

MD5 143387dbdcae9065b1a026a5cbf0e9ed
Eval Count 0
Decode Time 182 ms