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: miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.  
Version: 12.16.3 
Author: miniOrange 
Author URI: http://miniorange.com/ 
*/ 
 
 
include_once dirname(__FILE__) . "/mo_login_saml_sso_widget.php"; 
require "mo-saml-class-customer.php"; 
require "mo_saml_settings_page.php"; 
require "MetadataReader.php"; 
require "certificate_utility.php"; 
class saml_mo_login 
{ 
    function __construct() 
    { 
        add_action("network_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("network_admin_notices", array($this, "mo_saml_success_message")); 
        remove_action("network_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")); 
        $pj = new mo_login_wid(); 
        add_action("wp_logout", array($pj, "mo_saml_logout")); 
        add_action("login_form", array($this, "mo_saml_modify_login_form")); 
        add_shortcode("MO_SAML_FORM", array($this, "mo_get_saml_shortcode")); 
    } 
    function mo_login_widget_saml_options() 
    { 
        global $wpdb; 
        update_site_option("mo_saml_host_name", "https://auth.miniorange.com"); 
        $O3 = get_site_option("mo_saml_host_name"); 
        $N_ = get_site_option("mo_saml_enable_cloud_broker"); 
        $Jc = get_site_option("saml_x509_certificate"); 
        if (empty($N_) && !empty($Jc)) { 
            goto RE; 
        } 
        if (!empty($N_)) { 
            goto Zw; 
        } 
        update_site_option("mo_saml_enable_cloud_broker", "false"); 
        Zw: 
        goto JP; 
        RE: 
        update_site_option("mo_saml_enable_cloud_broker", "true"); 
        JP: 
        mo_register_saml_sso(); 
    } 
    function mo_saml_success_message() 
    { 
        $tF = "error"; 
        $tj = get_site_option("mo_saml_message"); 
        echo "<div class='" . $tF . "'> <p>" . $tj . "</p></div>"; 
    } 
    function mo_saml_error_message() 
    { 
        $tF = "updated"; 
        $tj = get_site_option("mo_saml_message"); 
        echo "<div class='" . $tF . "'> <p>" . $tj . "</p></div>"; 
    } 
    public function mo_sso_saml_deactivate() 
    { 
        global $wpdb; 
        $wk = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}"); 
        $l9 = get_current_blog_id(); 
        do_action("flush_cache"); 
        foreach ($wk as $blog_id) { 
            switch_to_blog($blog_id); 
            delete_site_option("mo_saml_host_name"); 
            delete_site_option("mo_saml_new_registration"); 
            delete_site_option("mo_saml_admin_phone"); 
            delete_site_option("mo_saml_admin_password"); 
            delete_site_option("mo_saml_verify_customer"); 
            delete_site_option("mo_saml_admin_customer_key"); 
            delete_site_option("mo_saml_admin_api_key"); 
            delete_site_option("mo_saml_customer_token"); 
            delete_site_option("mo_saml_message"); 
            delete_site_option("mo_saml_registration_status"); 
            delete_site_option("mo_saml_idp_config_complete"); 
            delete_site_option("mo_saml_transactionId"); 
            hx: 
        } 
        l0: 
        switch_to_blog($l9); 
    } 
    private function mo_saml_show_success_message() 
    { 
        remove_action("network_admin_notices", array($this, "mo_saml_success_message")); 
        add_action("network_admin_notices", array($this, "mo_saml_error_message")); 
    } 
    function mo_saml_show_error_message() 
    { 
        remove_action("network_admin_notices", array($this, "mo_saml_error_message")); 
        add_action("network_admin_notices", array($this, "mo_saml_success_message")); 
    } 
    function plugin_settings_style() 
    { 
        wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.css?ver=3.6.2", __FILE__)); 
        wp_enqueue_style("mo_saml_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__)); 
    } 
    function plugin_settings_script() 
    { 
        wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.js", __FILE__)); 
        wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__)); 
    } 
    function miniorange_login_widget_saml_save_settings() 
    { 
        if (!current_user_can("manage_options")) { 
            goto iX; 
        } 
        if (!(isset($_POST["option"]) and $_POST["option"] == "login_widget_saml_save_settings")) { 
            goto ur; 
        } 
        if (mo_saml_is_curl_installed()) { 
            goto Bn; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Save Identity Provider Configuration failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Bn: 
        $EC = ''; 
        $xh = ''; 
        $vt = ''; 
        $t6 = ''; 
        $GM = ''; 
        $hP = ''; 
        $Bi = ''; 
        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"])) { 
            goto QZ; 
        } 
        if (!preg_match("/^\w*$/", $_POST["saml_identity_name"])) { 
            goto gH; 
        } 
        $EC = trim($_POST["saml_identity_name"]); 
        $vt = trim($_POST["saml_login_url"]); 
        $xh = $_POST["saml_login_binding_type"]; 
        $t6 = $_POST["saml_logout_binding_type"]; 
        if (!array_key_exists("saml_logout_url", $_POST)) { 
            goto I7; 
        } 
        $GM = trim($_POST["saml_logout_url"]); 
        I7: 
        $hP = trim($_POST["saml_issuer"]); 
        $Bi = trim($_POST["saml_x509_certificate"]); 
        goto CL; 
        gH: 
        update_site_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; 
        CL: 
        goto ll; 
        QZ: 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        ll: 
        update_site_option("saml_identity_name", $EC); 
        update_site_option("saml_login_binding_type", $xh); 
        update_site_option("saml_login_url", $vt); 
        update_site_option("saml_logout_binding_type", $t6); 
        update_site_option("saml_logout_url", $GM); 
        update_site_option("saml_issuer", $hP); 
        update_site_option("saml_x509_certificate", $Bi); 
        if (get_site_option("mo_saml_enable_cloud_broker") == "true") { 
            goto MA; 
        } 
        update_site_option("saml_x509_certificate", Utilities::sanitize_certificate($Bi)); 
        update_site_option("mo_saml_message", "Identity Provider details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        goto qH; 
        MA: 
        $DK = new Customersaml(); 
        $yj = json_decode($DK->save_external_idp_config(), true); 
        if (isset($yj["customerId"])) { 
            goto dl; 
        } 
        update_site_option("mo_saml_message", "Identity Provider details could not be saved. Please try again."); 
        $this->mo_saml_show_error_message(); 
        goto qG; 
        dl: 
        update_site_option("saml_x509_certificate", $yj["samlX509Certificate"]); 
        update_site_option("mo_saml_message", "Identity Provider details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        qG: 
        qH: 
        ur: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "login_widget_saml_attribute_mapping")) { 
            goto nJ; 
        } 
        if (mo_saml_is_curl_installed()) { 
            goto dr; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Save Attribute Mapping failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        dr: 
        update_site_option("saml_am_username", stripslashes($_POST["saml_am_username"])); 
        update_site_option("saml_am_email", stripslashes($_POST["saml_am_email"])); 
        update_site_option("saml_am_first_name", stripslashes($_POST["saml_am_first_name"])); 
        update_site_option("saml_am_last_name", stripslashes($_POST["saml_am_last_name"])); 
        update_site_option("saml_am_group_name", stripslashes($_POST["saml_am_group_name"])); 
        update_site_option("saml_am_account_matcher", stripslashes($_POST["saml_am_account_matcher"])); 
        update_site_option("saml_am_display_name", stripslashes($_POST["saml_am_display_name"])); 
        update_site_option("mo_saml_message", "Attribute Mapping details saved successfully"); 
        $this->mo_saml_show_success_message(); 
        nJ: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "login_widget_saml_role_mapping")) { 
            goto QW; 
        } 
        if (mo_saml_is_curl_installed()) { 
            goto HN; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Save Role Mapping failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        HN: 
        if (!$this->mo_saml_check_empty_or_null($_POST["role_mapping_site"])) { 
            goto qo; 
        } 
        update_site_option("mo_saml_message", "Please select a site to save role mapping"); 
        $this->mo_saml_show_error_message(); 
        return; 
        qo: 
        $V1 = $_POST["role_mapping_site"]; 
        if (!isset($_POST["saml_am_default_user_role"])) { 
            goto MB; 
        } 
        $zr = $_POST["saml_am_default_user_role"]; 
        MB: 
        if (isset($_POST["saml_am_dont_allow_unlisted_user_role"])) { 
            goto bN; 
        } 
        $SV = "unchecked"; 
        goto UQ; 
        bN: 
        $SV = "checked"; 
        $zr = "false"; 
        UQ: 
        if (isset($_POST["mo_saml_dont_create_user_if_role_not_mapped"])) { 
            goto cQ; 
        } 
        $o6 = "unchecked"; 
        goto Ny; 
        cQ: 
        $o6 = "checked"; 
        $SV = "unchecked"; 
        $zr = "false"; 
        Ny: 
        $Y6 = new WP_Roles(); 
        $Rj = $Y6->get_names(); 
        $aP = get_site_option("saml_am_role_mapping"); 
        foreach ($Rj as $Lr => $BX) { 
            $pa = "saml_am_group_attr_values_" . $Lr; 
            $aP[$V1][$Lr] = stripslashes($_POST[$pa]); 
            nB: 
        } 
        Qz: 
        $aP[$V1]["default_role"] = $zr; 
        $aP[$V1]["dont_create_user"] = $o6; 
        $aP[$V1]["dont_allow_unlisted_user"] = $SV; 
        update_site_option("saml_am_role_mapping", $aP); 
        update_site_option("mo_saml_message", "Role Mapping details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        QW: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_update_sp_base_url_option")) { 
            goto NX; 
        } 
        if (!(isset($_POST["mo_saml_sp_base_url"]) && isset($_POST["mo_saml_sp_entity_id"]))) { 
            goto Yv; 
        } 
        $mC = sanitize_text_field($_POST["mo_saml_sp_base_url"]); 
        $WE = sanitize_text_field($_POST["mo_saml_sp_entity_id"]); 
        if (!(substr($mC, -1) == "/")) { 
            goto Ku; 
        } 
        $mC = substr($mC, 0, -1); 
        Ku: 
        update_site_option("mo_saml_sp_base_url", $mC); 
        update_site_option("mo_saml_sp_entity_id", $WE); 
        Yv: 
        update_site_option("mo_saml_message", "SP Base URL updated successfully."); 
        $this->mo_saml_show_success_message(); 
        NX: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "saml_upload_metadata")) { 
            goto Dl; 
        } 
        if (function_exists("wp_handle_upload")) { 
            goto Gc; 
        } 
        require_once ABSPATH . "wp-admin/includes/file.php"; 
        Gc: 
        $this->upload_metadata(); 
        Dl: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_relay_state_option")) { 
            goto jW; 
        } 
        $Dl = sanitize_text_field($_POST["mo_saml_relay_state"]); 
        update_site_option("mo_saml_relay_state", $Dl); 
        update_site_option("mo_saml_message", "Relay State updated successfully."); 
        $this->mo_saml_show_success_message(); 
        jW: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "enable_sso_for_sites_option")) { 
            goto dF; 
        } 
        $Bh = array(); 
        if (!array_key_exists("enable_for_sites", $_POST)) { 
            goto xS; 
        } 
        $Bh = $_POST["enable_for_sites"]; 
        xS: 
        update_site_option("enable_saml_sso_for_sites", $Bh); 
        update_site_option("mo_saml_message", "Sites SSO updated successfully."); 
        $this->mo_saml_show_success_message(); 
        dF: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "saml_generate_certificate")) { 
            goto ko; 
        } 
        $ld = array("countryName" => $_POST["country"], "stateOrProvinceName" => $_POST["state"], "localityName" => $_POST["locality"], "organizationName" => $_POST["org"], "organizationalUnitName" => $_POST["org_unit"], "commonName" => $_POST["cn"], "emailAddress" => $_POST["email"]); 
        $rE = array("digest_alg" => $_POST["hash_algorithm"], "x509_extensions" => "v3_ca", "private_key_bits" => 2048, "private_key_type" => OPENSSL_KEYTYPE_RSA, "encrypt_key" => false); 
        $Ck = CertificateUtility::generate_certificate($ld, $rE, (int) $_POST["expiry_days"]); 
        $o5 = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt"; 
        $NA = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key"; 
        $SZ = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt.backup"; 
        if (file_exists($SZ)) { 
            goto A0; 
        } 
        $Ad = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key.backup"; 
        copy($o5, $SZ); 
        copy($NA, $Ad); 
        A0: 
        $FB = file_put_contents($o5, $Ck["public_key"]); 
        $FB = $FB && file_put_contents($NA, $Ck["private_key"]); 
        if ($FB) { 
            goto Ok; 
        } 
        update_site_option("mo_saml_message", "Error occured while generating the certificates. See PHP error logs and make sure have set write permission."); 
        $this->mo_saml_show_error_message(); 
        goto zB; 
        Ok: 
        update_site_option("mo_saml_message", "New certificates generated successfully."); 
        $this->mo_saml_show_success_message(); 
        zB: 
        ko: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_register_customer")) { 
            goto I6; 
        } 
        if (mo_saml_is_curl_installed()) { 
            goto u6; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Registration failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        u6: 
        $Dv = ''; 
        $EH = ''; 
        $i_ = ''; 
        $Hb = ''; 
        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 sE; 
        } 
        if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) { 
            goto NV; 
        } 
        $Dv = sanitize_email($_POST["email"]); 
        $EH = sanitize_text_field($_POST["phone"]); 
        $i_ = sanitize_text_field($_POST["password"]); 
        $Hb = sanitize_text_field($_POST["confirmPassword"]); 
        goto Mr; 
        NV: 
        update_site_option("mo_saml_message", "Choose a password with minimum length 6."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Mr: 
        goto Fx; 
        sE: 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Fx: 
        update_site_option("mo_saml_admin_email", $Dv); 
        update_site_option("mo_saml_admin_phone", $EH); 
        if (strcmp($i_, $Hb) == 0) { 
            goto k_; 
        } 
        update_site_option("mo_saml_message", "Passwords do not match."); 
        delete_site_option("mo_saml_verify_customer"); 
        $this->mo_saml_show_error_message(); 
        goto yt; 
        k_: 
        update_site_option("mo_saml_admin_password", $i_); 
        $Dv = get_site_option("mo_saml_admin_email"); 
        $FR = new CustomerSaml(); 
        $IZ = json_decode($FR->check_customer(), true); 
        if (strcasecmp($IZ["status"], "CUSTOMER_NOT_FOUND") == 0) { 
            goto RX; 
        } 
        $this->get_current_customer(); 
        goto uY; 
        RX: 
        $IZ = json_decode($FR->send_otp_token($Dv, ''), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto fm; 
        } 
        update_site_option("mo_saml_message", "There was an error in sending email. Please verify your email and try again."); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL"); 
        $this->mo_saml_show_error_message(); 
        goto Mf; 
        fm: 
        update_site_option("mo_saml_message", " A one time passcode is sent to " . get_site_option("mo_saml_admin_email") . ". Please enter the otp here to verify your email."); 
        update_site_option("mo_saml_transactionId", $IZ["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL"); 
        $this->mo_saml_show_success_message(); 
        Mf: 
        uY: 
        yt: 
        I6: 
        if (!(isset($_POST["option"]) and $_POST["option"] == "mo_saml_validate_otp")) { 
            goto G1; 
        } 
        if (mo_saml_is_curl_installed()) { 
            goto hM; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Validate OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        hM: 
        $Y3 = ''; 
        if ($this->mo_saml_check_empty_or_null($_POST["otp_token"])) { 
            goto SD; 
        } 
        $Y3 = sanitize_text_field($_POST["otp_token"]); 
        goto dS; 
        SD: 
        update_site_option("mo_saml_message", "Please enter a value in otp field."); 
        $this->mo_saml_show_error_message(); 
        return; 
        dS: 
        $FR = new CustomerSaml(); 
        $IZ = json_decode($FR->validate_otp_token(get_site_option("mo_saml_transactionId"), $Y3), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto ni; 
        } 
        update_site_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp."); 
        $this->mo_saml_show_error_message(); 
        goto iM; 
        ni: 
        $this->create_customer(); 
        iM: 
        G1: 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_verify_customer") { 
            goto wA; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_contact_us_query_option") { 
            goto E9; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_resend_otp_email") { 
            goto hH; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_resend_otp_phone") { 
            goto A1; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_go_back") { 
            goto j1; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_register_with_phone_option") { 
            goto w2; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_registered_only_access_option") { 
            goto yS; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_force_authentication_option") { 
            goto oe; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_enable_login_redirect_option") { 
            goto u0; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_enable_cloud_broker") { 
            goto SS; 
        } 
        if (isset($_POST["option"]) and $_POST["option"] == "mo_saml_allow_wp_signin_option") { 
            goto Of; 
        } 
        if (!(isset($_POST["option"]) && $_POST["option"] == "mo_saml_forgot_password_form_option")) { 
            goto iB; 
        } 
        if (mo_saml_is_curl_installed()) { 
            goto rf; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        rf: 
        $Dv = get_site_option("mo_saml_admin_email"); 
        $FR = new Customersaml(); 
        $IZ = json_decode($FR->mo_saml_forgot_password($Dv), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto eJ; 
        } 
        update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto X5; 
        eJ: 
        update_site_option("mo_saml_message", "Your password has been reset successfully. Please enter the new password sent to " . $Dv . "."); 
        $this->mo_saml_show_success_message(); 
        X5: 
        iB: 
        goto Xu; 
        Of: 
        if (array_key_exists("mo_saml_allow_wp_signin", $_POST)) { 
            goto z2; 
        } 
        $Zq = "false"; 
        goto FG; 
        z2: 
        $Zq = $_POST["mo_saml_allow_wp_signin"]; 
        FG: 
        if ($Zq == "true") { 
            goto eE; 
        } 
        update_site_option("mo_saml_allow_wp_signin", ''); 
        goto g8; 
        eE: 
        update_site_option("mo_saml_allow_wp_signin", "true"); 
        g8: 
        update_site_option("mo_saml_message", "Sign In settings updated."); 
        $this->mo_saml_show_success_message(); 
        Xu: 
        goto xa; 
        SS: 
        if (array_key_exists("mo_saml_enable_cloud_broker", $_POST)) { 
            goto b0; 
        } 
        $pi = "false"; 
        goto r1; 
        b0: 
        $pi = $_POST["mo_saml_enable_cloud_broker"]; 
        r1: 
        if ($pi == "true") { 
            goto yq; 
        } 
        update_site_option("mo_saml_enable_cloud_broker", "false"); 
        goto aC; 
        yq: 
        update_site_option("mo_saml_enable_cloud_broker", "true"); 
        aC: 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        xa: 
        goto oS; 
        u0: 
        if (mo_saml_is_sp_configured()) { 
            goto RL; 
        } 
        update_site_option("mo_saml_message", "Please complete <a href="" . add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"]) . "" />Service Provider</a> configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto Lg; 
        RL: 
        if (array_key_exists("mo_saml_enable_login_redirect", $_POST)) { 
            goto Yu; 
        } 
        $pi = "false"; 
        goto zM; 
        Yu: 
        $pi = $_POST["mo_saml_enable_login_redirect"]; 
        zM: 
        if ($pi == "true") { 
            goto nn; 
        } 
        update_site_option("mo_saml_enable_login_redirect", ''); 
        update_site_option("mo_saml_allow_wp_signin", ''); 
        goto oR1; 
        nn: 
        update_site_option("mo_saml_enable_login_redirect", "true"); 
        update_site_option("mo_saml_allow_wp_signin", "true"); 
        oR1: 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        Lg: 
        oS: 
        goto ZW; 
        oe: 
        if (mo_saml_is_sp_configured()) { 
            goto wB; 
        } 
        update_site_option("mo_saml_message", "Please complete <a href="" . add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"]) . "" />Service Provider</a> configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto bw; 
        wB: 
        if (array_key_exists("mo_saml_force_authentication", $_POST)) { 
            goto EV; 
        } 
        $pi = "false"; 
        goto VH; 
        EV: 
        $pi = $_POST["mo_saml_force_authentication"]; 
        VH: 
        if ($pi == "true") { 
            goto cY; 
        } 
        update_site_option("mo_saml_force_authentication", ''); 
        goto i_; 
        cY: 
        update_site_option("mo_saml_force_authentication", "true"); 
        i_: 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        bw: 
        ZW: 
        goto Zb; 
        yS: 
        if (mo_saml_is_sp_configured()) { 
            goto ef; 
        } 
        update_site_option("mo_saml_message", "Please complete <a href="" . add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"]) . "" />Service Provider</a> configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto St; 
        ef: 
        if (array_key_exists("mo_saml_registered_only_access", $_POST)) { 
            goto PW; 
        } 
        $pi = "false"; 
        goto ke; 
        PW: 
        $pi = $_POST["mo_saml_registered_only_access"]; 
        ke: 
        if ($pi == "true") { 
            goto cT; 
        } 
        update_site_option("mo_saml_registered_only_access", ''); 
        goto Pz; 
        cT: 
        update_site_option("mo_saml_registered_only_access", "true"); 
        Pz: 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        St: 
        Zb: 
        goto V0; 
        w2: 
        if (mo_saml_is_curl_installed()) { 
            goto wD; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        wD: 
        $EH = sanitize_text_field($_POST["phone"]); 
        $EH = str_replace(" ", '', $EH); 
        $EH = str_replace("-", '', $EH); 
        update_site_option("mo_saml_admin_phone", $EH); 
        $FR = new CustomerSaml(); 
        $IZ = json_decode($FR->send_otp_token('', $EH, FALSE, TRUE), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto aJ; 
        } 
        update_site_option("mo_saml_message", "There was an error in sending SMS. Please click on Resend OTP to try again."); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE"); 
        $this->mo_saml_show_error_message(); 
        goto X4; 
        aJ: 
        update_site_option("mo_saml_message", " A one time passcode is sent to " . get_site_option("mo_saml_admin_phone") . ". Please enter the otp here to verify your email."); 
        update_site_option("mo_saml_transactionId", $IZ["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE"); 
        $this->mo_saml_show_success_message(); 
        X4: 
        V0: 
        goto M7; 
        j1: 
        update_site_option("mo_saml_registration_status", ''); 
        update_site_option("mo_saml_verify_customer", ''); 
        delete_site_option("mo_saml_new_registration"); 
        delete_site_option("mo_saml_admin_email"); 
        delete_site_option("mo_saml_admin_phone"); 
        delete_site_option("sml_lk"); 
        delete_site_option("t_site_status"); 
        delete_site_option("site_ck_l"); 
        delete_site_option("no_sbs"); 
        delete_site_option("user_alert_email_sent"); 
        delete_site_option("license_alert_email_sent"); 
        delete_site_option("mo_saml_alert_sent_for_one"); 
        delete_site_option("mo_saml_alert_sent_for_two"); 
        delete_site_option("mo_saml_usr_lmt"); 
        M7: 
        goto lh; 
        A1: 
        if (mo_saml_is_curl_installed()) { 
            goto ZZ; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        ZZ: 
        $EH = get_site_option("mo_saml_admin_phone"); 
        $FR = new CustomerSaml(); 
        $IZ = json_decode($FR->send_otp_token('', $EH, FALSE, TRUE), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto It; 
        } 
        update_site_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again."); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE"); 
        $this->mo_saml_show_error_message(); 
        goto bP; 
        It: 
        update_site_option("mo_saml_message", " A one time passcode is sent to " . $EH . " again. Please check if you got the otp and enter it here."); 
        update_site_option("mo_saml_transactionId", $IZ["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE"); 
        $this->mo_saml_show_success_message(); 
        bP: 
        lh: 
        goto MD; 
        hH: 
        if (mo_saml_is_curl_installed()) { 
            goto sz; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Resend OTP failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        sz: 
        $Dv = get_site_option("mo_saml_admin_email"); 
        $FR = new CustomerSaml(); 
        $IZ = json_decode($FR->send_otp_token($Dv, ''), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto Ap; 
        } 
        update_site_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again."); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL"); 
        $this->mo_saml_show_error_message(); 
        goto NA; 
        Ap: 
        update_site_option("mo_saml_message", " A one time passcode is sent to " . get_site_option("mo_saml_admin_email") . " again. Please check if you got the otp and enter it here."); 
        update_site_option("mo_saml_transactionId", $IZ["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL"); 
        $this->mo_saml_show_success_message(); 
        NA: 
        MD: 
        goto Us; 
        E9: 
        if (mo_saml_is_curl_installed()) { 
            goto x1; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Query submit failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        x1: 
        $Dv = $_POST["mo_saml_contact_us_email"]; 
        $EH = $_POST["mo_saml_contact_us_phone"]; 
        $JA = $_POST["mo_saml_contact_us_query"]; 
        $FR = new CustomerSaml(); 
        if ($this->mo_saml_check_empty_or_null($Dv) || $this->mo_saml_check_empty_or_null($JA)) { 
            goto Lx; 
        } 
        $WQ = $FR->submit_contact_us($Dv, $EH, $JA); 
        if ($WQ == false) { 
            goto IS; 
        } 
        update_site_option("mo_saml_message", "Thanks for getting in touch! We shall get back to you shortly."); 
        $this->mo_saml_show_success_message(); 
        goto xP; 
        IS: 
        update_site_option("mo_saml_message", "Your query could not be submitted. Please try again."); 
        $this->mo_saml_show_error_message(); 
        xP: 
        goto Rt; 
        Lx: 
        update_site_option("mo_saml_message", "Please fill up Email and Query fields to submit your query."); 
        $this->mo_saml_show_error_message(); 
        Rt: 
        Us: 
        goto kF; 
        wA: 
        if (mo_saml_is_curl_installed()) { 
            goto Ta; 
        } 
        update_site_option("mo_saml_message", "ERROR: <a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP cURL extension</a> is not installed or disabled. Login failed."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Ta: 
        $Dv = ''; 
        $i_ = ''; 
        if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"])) { 
            goto ks; 
        } 
        $Dv = sanitize_email($_POST["email"]); 
        $i_ = sanitize_text_field($_POST["password"]); 
        goto mZ; 
        ks: 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        mZ: 
        update_site_option("mo_saml_admin_email", $Dv); 
        update_site_option("mo_saml_admin_password", $i_); 
        $FR = new Customersaml(); 
        $IZ = $FR->get_customer_key(); 
        $Pk = json_decode($IZ, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto Ui; 
        } 
        update_site_option("mo_saml_message", "Invalid username or password. Please try again."); 
        $this->mo_saml_show_error_message(); 
        goto IX; 
        Ui: 
        update_site_option("mo_saml_admin_customer_key", $Pk["id"]); 
        update_site_option("mo_saml_admin_api_key", $Pk["apiKey"]); 
        update_site_option("mo_saml_customer_token", $Pk["token"]); 
        update_site_option("mo_saml_admin_phone", $Pk["phone"]); 
        update_site_option("mo_saml_admin_password", ''); 
        update_site_option("mo_saml_message", "Customer retrieved successfully"); 
        update_site_option("mo_saml_registration_status", "Existing User"); 
        delete_site_option("mo_saml_verify_customer"); 
        if (get_site_option("sml_lk")) { 
            goto xr; 
        } 
        $this->mo_saml_show_success_message(); 
        goto Sf; 
        xr: 
        $OE = get_site_option("mo_saml_customer_token"); 
        $f1 = AESEncryption::decrypt_data(get_site_option("sml_lk"), $OE); 
        $Pp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        $IZ = json_decode($FR->mo_saml_verify_license($f1), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto Z6; 
        } 
        update_site_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_site_option("sml_lk"); 
        $this->mo_saml_show_error_message(); 
        goto g4; 
        Z6: 
        $this->mo_saml_show_success_message(); 
        g4: 
        Sf: 
        IX: 
        update_site_option("mo_saml_admin_password", ''); 
        kF: 
        if (!get_site_option("no_sbs")) { 
            goto WK; 
        } 
        $OE = get_site_option("mo_saml_customer_token"); 
        $y3 = AESEncryption::decrypt_data(get_site_option("no_sbs"), $OE); 
        if (function_exists("get_sites") && class_exists("WP_Site_Query")) { 
            goto xY; 
        } 
        $HS = count(wp_get_sites()); 
        goto TW; 
        xY: 
        $HS = count(get_sites()); 
        TW: 
        if (!($y3 < $HS)) { 
            goto gB; 
        } 
        if (get_site_option("license_alert_email_sent")) { 
            goto xe; 
        } 
        $FR = new Customersaml(); 
        $FR->mo_saml_send_alert_email_for_license($y3); 
        xe: 
        gB: 
        WK: 
        if (isset($_POST["option"]) && $_POST["option"] == "mo_saml_verify_license") { 
            goto Z7; 
        } 
        if (isset($_POST["option"]) && $_POST["option"] == "mo_saml_free_trial") { 
            goto So; 
        } 
        if (!(isset($_POST["option"]) && $_POST["option"] == "mo_saml_check_license")) { 
            goto OP; 
        } 
        $FR = new Customersaml(); 
        $IZ = json_decode($FR->check_customer_ln(), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto W4; 
        } 
        $OE = get_site_option("mo_saml_customer_token"); 
        $Pp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $Pp . "">Click here</a> to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto sp; 
        W4: 
        if (!array_key_exists("isMultiSitePluginRequested", $IZ)) { 
            goto dd; 
        } 
        $Q2 = $IZ["isMultiSitePluginRequested"]; 
        dd: 
        if (function_exists("get_sites") && class_exists("WP_Site_Query")) { 
            goto pu; 
        } 
        $HS = count(wp_get_sites()); 
        goto kV; 
        pu: 
        $HS = count(get_sites()); 
        kV: 
        if ($Q2 && array_key_exists("noOfSubSites", $IZ) && $HS <= $IZ["noOfSubSites"]) { 
            goto d5; 
        } 
        $OE = get_site_option("mo_saml_customer_token"); 
        update_site_option("site_ck_l", AESEncryption::encrypt_data("false", $OE)); 
        $Pp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_site_option("mo_saml_message", "You have not upgraded to the correct license plan. Either you have purchased for incorrect no. of sites or you have not selected multisite option while purchasing. <a href="#" onclick="getupgradelicensesform()">Click here</a> to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto Qp; 
        d5: 
        $oD = $IZ["noOfUsers"]; 
        $OE = get_site_option("mo_saml_customer_token"); 
        $me = $IZ["noOfSubSites"]; 
        if ($this->mo_saml_check_empty_or_null($oD)) { 
            goto l4; 
        } 
        update_site_option("mo_saml_usr_lmt", AESEncryption::encrypt_data($oD, $OE)); 
        l4: 
        update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $OE)); 
        update_site_option("no_sbs", AESEncryption::encrypt_data($me, $OE)); 
        $Pp = add_query_arg(array("tab" => "login"), $_SERVER["REQUEST_URI"]); 
        update_site_option("mo_saml_message", "You have successfully upgraded to premium version. <a href="" . $Pp . "">Click here</a> to activate your license."); 
        $this->mo_saml_show_success_message(); 
        Qp: 
        sp: 
        OP: 
        goto jG; 
        So: 
        if (decryptSamlElement()) { 
            goto vC; 
        } 
        $f1 = postResponse(); 
        $FR = new Customersaml(); 
        $IZ = json_decode($FR->mo_saml_verify_license($f1), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto nb; 
        } 
        if (strcasecmp($IZ["status"], "FAILED") == 0) { 
            goto nE; 
        } 
        update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto Up; 
        nE: 
        update_site_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(); 
        Up: 
        goto Zu; 
        nb: 
        $OE = get_site_option("mo_saml_customer_token"); 
        $OE = get_site_option("mo_saml_customer_token"); 
        update_site_option("t_site_status", AESEncryption::encrypt_data("true", $OE)); 
        update_site_option("mo_saml_message", "Your 5 days TRIAL is activated. You can now setup the plugin."); 
        $this->mo_saml_show_success_message(); 
        Zu: 
        goto QM; 
        vC: 
        update_site_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(); 
        QM: 
        jG: 
        goto km; 
        Z7: 
        if (!$this->mo_saml_check_empty_or_null($_POST["saml_license_key"])) { 
            goto jA; 
        } 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid license key."); 
        $this->mo_saml_show_error_message(); 
        return; 
        jA: 
        $f1 = trim($_POST["saml_license_key"]); 
        $FR = new Customersaml(); 
        $IZ = json_decode($FR->check_customer_ln(), true); 
        $Pp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto bs; 
        } 
        $OE = get_site_option("mo_saml_customer_token"); 
        $Pp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $Pp . "">Click here</a> to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto la; 
        bs: 
        if (!array_key_exists("isMultiSitePluginRequested", $IZ)) { 
            goto FA; 
        } 
        $Q2 = $IZ["isMultiSitePluginRequested"]; 
        FA: 
        if (function_exists("get_sites") && class_exists("WP_Site_Query")) { 
            goto dq; 
        } 
        $HS = count(wp_get_sites()); 
        goto lQ; 
        dq: 
        $HS = count(get_sites()); 
        lQ: 
        if ($Q2 && array_key_exists("noOfSubSites", $IZ) && $HS <= $IZ["noOfSubSites"]) { 
            goto qL; 
        } 
        update_site_option("mo_saml_message", "You have purchased the license for <b>" . $IZ["noOfSubSites"] . " sites</b>. But you have <b>" . $HS . " </b>sites in your multisite network. <a href="#" onclick="getupgradelicensesform()">Click here</a> to buy license for more sites."); 
        $this->mo_saml_show_error_message(); 
        goto rT; 
        qL: 
        $y3 = $IZ["noOfSubSites"]; 
        $oD = $IZ["noOfUsers"]; 
        $IZ = json_decode($FR->mo_saml_verify_license($f1), true); 
        if (strcasecmp($IZ["status"], "SUCCESS") == 0) { 
            goto vj; 
        } 
        if (strcasecmp($IZ["status"], "FAILED") == 0) { 
            goto ex; 
        } 
        update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto dp; 
        ex: 
        if (strcasecmp($IZ["message"], "Code has Expired") == 0) { 
            goto yR; 
        } 
        update_site_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key."); 
        goto S9; 
        yR: 
        update_site_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 <a href="#" onclick="getupgradelicensesform()" >Click here</a> to buy more."); 
        S9: 
        $this->mo_saml_show_error_message(); 
        dp: 
        goto Ye; 
        vj: 
        $OE = get_site_option("mo_saml_customer_token"); 
        if ($this->mo_saml_check_empty_or_null($oD)) { 
            goto jF; 
        } 
        update_site_option("mo_saml_usr_lmt", AESEncryption::encrypt_data($oD, $OE)); 
        jF: 
        update_site_option("sml_lk", AESEncryption::encrypt_data($f1, $OE)); 
        update_site_option("no_sbs", AESEncryption::encrypt_data($y3, $OE)); 
        update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $OE)); 
        update_site_option("t_site_status", AESEncryption::encrypt_data("false", $OE)); 
        update_site_option("mo_saml_message", "Your license is verified. You can now setup the plugin."); 
        $OE = get_site_option("mo_saml_customer_token"); 
        update_site_option("t_site_status", AESEncryption::encrypt_data("false", $OE)); 
        $this->mo_saml_show_success_message(); 
        Ye: 
        rT: 
        la: 
        km: 
        iX: 
        if (mo_saml_is_trial_active()) { 
            goto xc; 
        } 
        if (!site_check()) { 
            goto NH; 
        } 
        goto PF; 
        xc: 
        if (!decryptSamlElement()) { 
            goto xG; 
        } 
        $OE = get_site_option("mo_saml_customer_token"); 
        update_site_option("t_site_status", AESEncryption::encrypt_data("false", $OE)); 
        xG: 
        goto PF; 
        NH: 
        delete_site_option("mo_saml_enable_login_redirect"); 
        delete_site_option("mo_saml_allow_wp_signin"); 
        delete_site_option("mo_saml_registered_only_access"); 
        delete_site_option("mo_saml_force_authentication"); 
        PF: 
    } 
    function create_customer() 
    { 
        $FR = new CustomerSaml(); 
        $Pk = json_decode($FR->create_customer(), true); 
        if (strcasecmp($Pk["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) { 
            goto oY; 
        } 
        if (!(strcasecmp($Pk["status"], "SUCCESS") == 0)) { 
            goto AJ; 
        } 
        update_site_option("mo_saml_admin_customer_key", $Pk["id"]); 
        update_site_option("mo_saml_admin_api_key", $Pk["apiKey"]); 
        update_site_option("mo_saml_customer_token", $Pk["token"]); 
        update_site_option("mo_saml_admin_password", ''); 
        update_site_option("mo_saml_message", "Thank you for registering with miniorange."); 
        update_site_option("mo_saml_registration_status", ''); 
        delete_site_option("mo_saml_verify_customer"); 
        delete_site_option("mo_saml_new_registration"); 
        $this->mo_saml_show_success_message(); 
        AJ: 
        goto kn; 
        oY: 
        $this->get_current_customer(); 
        kn: 
        update_site_option("mo_saml_admin_password", ''); 
    } 
    function get_current_customer() 
    { 
        $FR = new CustomerSaml(); 
        $IZ = $FR->get_customer_key(); 
        $Pk = json_decode($IZ, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto I0; 
        } 
        update_site_option("mo_saml_message", "You already have an account with miniOrange. Please enter a valid password."); 
        update_site_option("mo_saml_verify_customer", "true"); 
        delete_site_option("mo_saml_new_registration"); 
        $this->mo_saml_show_error_message(); 
        goto y7; 
        I0: 
        update_site_option("mo_saml_admin_customer_key", $Pk["id"]); 
        update_site_option("mo_saml_admin_api_key", $Pk["apiKey"]); 
        update_site_option("mo_saml_customer_token", $Pk["token"]); 
        update_site_option("mo_saml_admin_password", ''); 
        update_site_option("mo_saml_message", "Your account has been retrieved successfully."); 
        delete_site_option("mo_saml_verify_customer"); 
        delete_site_option("mo_saml_new_registration"); 
        $this->mo_saml_show_success_message(); 
        y7: 
    } 
    public function mo_saml_check_empty_or_null($D7) 
    { 
        if (!(!isset($D7) || empty($D7))) { 
            goto ue; 
        } 
        return true; 
        ue: 
        return false; 
    } 
    function miniorange_sso_menu() 
    { 
        $U3 = 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($Dl) 
    { 
        if (!mo_saml_is_customer_license_key_verified()) { 
            goto zi; 
        } 
        if (get_site_option("mo_saml_enable_cloud_broker") == "false") { 
            goto Gz; 
        } 
        $AU = get_site_option("mo_saml_host_name") . "/moas/rest/saml/request?id=" . get_site_option("mo_saml_admin_customer_key") . "&returnurl=" . urlencode(network_site_url() . "/?option=readsamllogin&redirect_to=" . urlencode($Dl)); 
        header("Location: " . $AU); 
        die; 
        goto uP; 
        Gz: 
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) { 
            goto w8; 
        } 
        $mC = get_site_option("mo_saml_sp_base_url"); 
        if (!empty($mC)) { 
            goto Od; 
        } 
        $mC = network_site_url(); 
        Od: 
        if (!(substr($mC, -1) == "/")) { 
            goto dW; 
        } 
        $mC = substr($mC, 0, -1); 
        dW: 
        $Ua = $Dl; 
        if (!empty($Ua)) { 
            goto Pc; 
        } 
        $Ua = site_url() . "/"; 
        Pc: 
        $hI = get_site_option("saml_login_url"); 
        $LH = get_site_option("saml_login_binding_type"); 
        $qN = get_site_option("mo_saml_force_authentication"); 
        $iV = $mC . "/"; 
        $WE = get_site_option("mo_saml_sp_entity_id"); 
        if (!empty($WE)) { 
            goto lq; 
        } 
        $WE = $mC . "/wp-content/plugins/miniorange-saml-20-single-sign-on/"; 
        lq: 
        $uA = Utilities::createAuthnRequest($iV, $WE, $hI, $qN, $LH); 
        if (empty($LH) || $LH == "HttpRedirect") { 
            goto iu; 
        } 
        $lH = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key"; 
        $OK = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt"; 
        $Rx = Utilities::signXML($uA, $OK, $lH, "NameIDPolicy"); 
        Utilities::postSAMLRequest($hI, $Rx, $Ua); 
        goto Id; 
        iu: 
        $uA = "SAMLRequest=" . $uA . "&RelayState=" . urlencode($Ua) . "&SigAlg=" . urlencode(XMLSecurityKey::RSA_SHA256); 
        $sA = array("type" => "private"); 
        $OE = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $sA); 
        $VS = plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . "sp-key.key"; 
        $OE->loadKey($VS, TRUE); 
        $cv = new XMLSecurityDSig(); 
        $si = $OE->signData($uA); 
        $si = base64_encode($si); 
        $fD = $hI; 
        if (strpos($hI, "?") !== false) { 
            goto T1; 
        } 
        $fD .= "?"; 
        goto Ay; 
        T1: 
        $fD .= "&"; 
        Ay: 
        $fD .= $uA . "&Signature=" . urlencode($si); 
        header("Location: " . $fD); 
        die; 
        Id: 
        w8: 
        uP: 
        zi: 
    } 
    function mo_saml_authenticate() 
    { 
        $Qu = ''; 
        if (!isset($_REQUEST["redirect_to"])) { 
            goto zx; 
        } 
        $Qu = $_REQUEST["redirect_to"]; 
        zx: 
        if (!is_user_logged_in()) { 
            goto hu; 
        } 
        if (!empty($Qu)) { 
            goto UP; 
        } 
        header("Location: " . network_site_url()); 
        goto kL; 
        UP: 
        header("Location: " . $Qu); 
        kL: 
        die; 
        hu: 
        global $blog_id; 
        $Jk = get_site_option("enable_saml_sso_for_sites"); 
        if (!(get_site_option("mo_saml_enable_login_redirect") == "true" && (empty($Jk) || !empty($Jk) && in_array($blog_id, $Jk)))) { 
            goto k9; 
        } 
        if (isset($_GET["loggedout"]) && $_GET["loggedout"] == "true") { 
            goto y2; 
        } 
        if (get_site_option("mo_saml_allow_wp_signin") == "true") { 
            goto K6; 
        } 
        goto bX; 
        y2: 
        header("Location: " . network_site_url()); 
        die; 
        goto bX; 
        K6: 
        if (isset($_GET["saml_sso"]) && $_GET["saml_sso"] == "false" || isset($_POST["saml_sso"]) && $_POST["saml_sso"] == "false") { 
            goto KM; 
        } 
        if (isset($_REQUEST["redirect_to"])) { 
            goto V3; 
        } 
        goto td; 
        KM: 
        return; 
        goto td; 
        V3: 
        $Qu = $_REQUEST["redirect_to"]; 
        if (!(strpos($Qu, "wp-admin") !== false && strpos($Qu, "saml_sso=false") !== false)) { 
            goto uZ; 
        } 
        return; 
        uZ: 
        td: 
        bX: 
        $this->mo_saml_redirect_for_authentication($Qu); 
        k9: 
    } 
    function mo_saml_auto_redirect() 
    { 
        if (!current_user_can("read")) { 
            goto T4; 
        } 
        return; 
        T4: 
        global $blog_id; 
        $Jk = get_site_option("enable_saml_sso_for_sites"); 
        if (!(get_site_option("mo_saml_registered_only_access") == "true" && (empty($Jk) || !empty($Jk) && in_array($blog_id, $Jk)))) { 
            goto U2; 
        } 
        $Cl = $_SERVER["HTTP_HOST"]; 
        if (!(substr($Cl, -1) == "/")) { 
            goto qe; 
        } 
        $Cl = substr($Cl, 0, -1); 
        qe: 
        $nq = $_SERVER["REQUEST_URI"]; 
        if (!(substr($nq, 0, 1) == "/")) { 
            goto zL; 
        } 
        $nq = substr($nq, 1); 
        zL: 
        $Dl = "http" . (isset($_SERVER["HTTPS"]) ? "s" : '') . "://" . $Cl . "/" . $nq; 
        $this->mo_saml_redirect_for_authentication($Dl); 
        U2: 
    } 
    function mo_saml_modify_login_form() 
    { 
        echo "<input type="hidden" name="saml_sso" value="false">" . "
"; 
    } 
    function mo_get_saml_shortcode() 
    { 
        if (!is_user_logged_in()) { 
            goto jH; 
        } 
        $cO = "Hello, " . wp_get_current_user()->display_name . " | <a href=" . wp_logout_url(network_site_url()) . ">Logout</a>"; 
        goto O5; 
        jH: 
        if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) { 
            goto Ne; 
        } 
        $cO = "SP is not configured."; 
        goto fo; 
        Ne: 
        if (get_site_option("mo_saml_enable_cloud_broker") == "false") { 
            goto kU; 
        } 
        $cO = "<a href=" . get_site_option("mo_saml_host_name") . "/moas/rest/saml/request?id=" . get_site_option("mo_saml_admin_customer_key") . "&returnurl=" . urlencode(site_url() . "/?option=readsamllogin") . " />Login with " . get_site_option("saml_identity_name") . "</a>"; 
        goto Wz; 
        kU: 
        $cO = "<a href='" . site_url() . "/?option=saml_user_login' >Login with " . get_site_option("saml_identity_name") . ".</a>"; 
        Wz: 
        fo: 
        O5: 
        return $cO; 
    } 
    function upload_metadata() 
    { 
        if (!(isset($_FILES["metadata_file"]) || isset($_POST["metadata_file"]))) { 
            goto H1; 
        } 
        if (isset($_FILES["metadata_file"])) { 
            goto FU; 
        } 
        $Aa = @file_get_contents($_POST["metadata_file"]); 
        goto mV; 
        FU: 
        $Aa = @file_get_contents($_FILES["metadata_file"]["tmp_name"]); 
        mV: 
        $Ei = set_error_handler(array($this, "handleXmlError")); 
        $vs = new DOMDocument(); 
        $vs->loadXML($Aa); 
        restore_error_handler(); 
        if (!empty($vs->firstChild)) { 
            goto H6; 
        } 
        update_site_option("mo_saml_message", "Please provide a valid metadata file."); 
        $this->mo_saml_show_error_message(); 
        goto YL; 
        H6: 
        $xt = new MetadataReader($vs); 
        foreach ($xt->getIdentityProviders() as $OE => $L9) { 
            $EC = preg_match("/^[a-zA-Z0-9-\._ ]+/", $L9->getIdpName()) ? $L9->getIdpName() : "IDP"; 
            $xh = "HttpRedirect"; 
            $vt = $L9->getLoginURL("HTTP-Redirect"); 
            $t6 = "HttpRedirect"; 
            $GM = $L9->getLogoutURL("HTTP-Redirect"); 
            $hP = $L9->getEntityID(); 
            $Bi = $L9->getSigningCertificate(); 
            update_site_option("saml_identity_name", $EC); 
            update_site_option("saml_login_binding_type", $xh); 
            update_site_option("saml_login_url", $vt); 
            update_site_option("saml_logout_binding_type", $t6); 
            update_site_option("saml_logout_url", $GM); 
            update_site_option("saml_issuer", $hP); 
            update_site_option("saml_x509_certificate", Utilities::sanitize_certificate($Bi)); 
            goto UL; 
            Iv: 
        } 
        UL: 
        update_site_option("mo_saml_message", "Identity Provider details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        YL: 
        H1: 
    } 
    function handleXmlError($vr, $ec, $kT, $Uk) 
    { 
        if ($vr == E_WARNING && substr_count($ec, "DOMDocument::loadXML()") > 0) { 
            goto x6; 
        } 
        return false; 
        goto Kl; 
        x6: 
        return; 
        Kl: 
    } 
} 
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: miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider. 
Version: 12.16.3
Author: miniOrange
Author URI: http://miniorange.com/
*/


include_once dirname(__FILE__) . "\57\155\x6f\x5f\x6c\157\147\151\156\x5f\163\141\x6d\154\137\163\x73\157\137\x77\x69\x64\147\x65\164\56\x70\x68\160";
require "\x6d\157\55\x73\141\155\x6c\x2d\x63\154\x61\x73\x73\55\143\x75\x73\164\x6f\x6d\145\162\56\160\x68\x70";
require "\155\157\x5f\x73\x61\155\154\x5f\163\145\164\x74\x69\x6e\x67\163\137\160\x61\x67\145\x2e\160\150\160";
require "\115\145\x74\141\x64\141\164\141\x52\x65\x61\x64\x65\162\x2e\160\x68\160";
require "\x63\145\x72\x74\151\x66\x69\143\141\x74\x65\x5f\x75\164\151\154\151\164\x79\x2e\x70\150\x70";
class saml_mo_login
{
    function __construct()
    {
        add_action("\x6e\145\x74\x77\x6f\162\153\137\141\x64\x6d\151\x6e\x5f\155\145\x6e\165", array($this, "\x6d\151\x6e\x69\157\162\x61\x6e\x67\x65\x5f\163\x73\x6f\x5f\x6d\145\156\165"));
        add_action("\x61\144\x6d\x69\156\x5f\151\156\x69\x74", array($this, "\155\151\x6e\x69\x6f\162\141\x6e\x67\145\x5f\154\157\147\x69\156\137\167\x69\144\147\145\x74\137\163\141\155\154\x5f\163\141\166\145\137\x73\x65\x74\x74\151\156\x67\x73"));
        add_action("\x61\144\x6d\x69\x6e\x5f\x65\x6e\161\x75\145\x75\145\137\163\x63\162\151\x70\x74\163", array($this, "\x70\x6c\x75\x67\x69\x6e\137\x73\x65\164\x74\x69\x6e\x67\163\137\163\164\x79\154\x65"));
        register_deactivation_hook(__FILE__, array($this, "\155\157\137\x73\163\x6f\x5f\x73\141\155\x6c\x5f\144\145\x61\143\164\151\166\141\164\145"));
        add_action("\141\144\x6d\x69\x6e\x5f\x65\x6e\x71\165\145\165\x65\x5f\163\143\x72\x69\160\164\163", array($this, "\x70\154\x75\x67\151\156\x5f\163\145\x74\164\x69\x6e\x67\163\x5f\163\143\x72\x69\160\x74"));
        remove_action("\156\145\164\x77\x6f\162\x6b\x5f\x61\x64\155\151\156\x5f\156\157\164\151\143\x65\163", array($this, "\x6d\157\x5f\163\141\x6d\x6c\x5f\x73\165\x63\x63\145\163\163\x5f\155\x65\163\x73\141\147\145"));
        remove_action("\156\145\164\x77\x6f\162\153\x5f\141\144\x6d\151\x6e\137\156\157\164\x69\143\x65\x73", array($this, "\x6d\x6f\x5f\163\x61\155\x6c\x5f\145\162\x72\x6f\162\137\155\x65\x73\163\141\147\145"));
        add_action("\167\x70\x5f\141\165\x74\150\x65\156\x74\151\143\141\x74\145", array($this, "\x6d\157\137\163\141\155\x6c\x5f\141\x75\164\150\145\156\164\151\x63\141\x74\x65"));
        add_action("\167\160", array($this, "\x6d\x6f\137\x73\x61\x6d\x6c\137\x61\165\x74\x6f\137\x72\145\144\151\162\145\143\x74"));
        $pj = new mo_login_wid();
        add_action("\x77\x70\x5f\154\x6f\x67\x6f\165\x74", array($pj, "\x6d\157\137\x73\x61\x6d\154\137\x6c\157\x67\157\x75\164"));
        add_action("\x6c\157\x67\x69\156\x5f\146\157\x72\x6d", array($this, "\155\x6f\137\163\x61\x6d\154\137\155\157\144\x69\146\x79\137\154\157\147\x69\x6e\x5f\x66\157\162\x6d"));
        add_shortcode("\115\117\x5f\123\x41\115\114\137\x46\x4f\x52\x4d", array($this, "\x6d\157\x5f\x67\x65\164\137\x73\141\x6d\154\x5f\163\150\x6f\162\x74\x63\x6f\x64\x65"));
    }
    function mo_login_widget_saml_options()
    {
        global $wpdb;
        update_site_option("\155\x6f\x5f\163\141\155\x6c\137\x68\157\163\164\137\x6e\141\155\145", "\x68\x74\164\160\163\72\x2f\57\141\x75\164\x68\56\155\x69\156\151\157\162\141\x6e\x67\x65\x2e\143\x6f\x6d");
        $O3 = get_site_option("\x6d\x6f\x5f\163\141\155\x6c\137\x68\157\163\x74\x5f\x6e\x61\155\145");
        $N_ = get_site_option("\x6d\157\x5f\163\x61\x6d\154\x5f\145\x6e\141\x62\154\145\x5f\x63\154\157\165\144\x5f\142\x72\157\153\145\162");
        $Jc = get_site_option("\x73\141\x6d\154\137\170\x35\60\x39\x5f\143\145\x72\164\151\146\x69\x63\x61\164\145");
        if (empty($N_) && !empty($Jc)) {
            goto RE;
        }
        if (!empty($N_)) {
            goto Zw;
        }
        update_site_option("\155\157\137\x73\x61\x6d\154\137\x65\156\141\142\x6c\145\x5f\143\x6c\157\x75\144\x5f\142\x72\157\153\x65\x72", "\x66\x61\154\163\145");
        Zw:
        goto JP;
        RE:
        update_site_option("\155\157\x5f\x73\x61\x6d\x6c\x5f\x65\156\141\142\x6c\x65\137\x63\154\157\x75\x64\x5f\x62\x72\x6f\153\x65\x72", "\164\162\165\x65");
        JP:
        mo_register_saml_sso();
    }
    function mo_saml_success_message()
    {
        $tF = "\145\x72\162\157\x72";
        $tj = get_site_option("\x6d\x6f\137\x73\141\x6d\x6c\x5f\155\x65\x73\x73\x61\x67\145");
        echo "\x3c\144\x69\166\40\x63\x6c\141\x73\163\x3d\47" . $tF . "\x27\x3e\40\x3c\x70\76" . $tj . "\74\x2f\x70\76\x3c\x2f\144\x69\x76\x3e";
    }
    function mo_saml_error_message()
    {
        $tF = "\x75\160\x64\141\164\145\x64";
        $tj = get_site_option("\155\x6f\x5f\x73\141\155\x6c\137\155\x65\x73\x73\141\x67\145");
        echo "\74\144\x69\x76\x20\143\x6c\141\x73\x73\x3d\47" . $tF . "\47\76\x20\x3c\160\76" . $tj . "\x3c\57\x70\x3e\x3c\x2f\144\x69\166\x3e";
    }
    public function mo_sso_saml_deactivate()
    {
        global $wpdb;
        $wk = $wpdb->get_col("\x53\105\114\105\103\x54\40\142\x6c\157\x67\137\151\144\40\106\122\x4f\x4d\x20{$wpdb->blogs}");
        $l9 = get_current_blog_id();
        do_action("\x66\154\x75\x73\x68\x5f\143\141\143\150\x65");
        foreach ($wk as $blog_id) {
            switch_to_blog($blog_id);
            delete_site_option("\x6d\157\137\x73\x61\x6d\154\137\150\157\x73\x74\x5f\x6e\141\155\x65");
            delete_site_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\156\145\167\137\162\x65\x67\151\x73\164\162\141\164\151\x6f\156");
            delete_site_option("\x6d\x6f\137\163\x61\155\154\x5f\141\144\x6d\x69\x6e\x5f\160\150\157\x6e\x65");
            delete_site_option("\155\x6f\137\x73\x61\155\154\137\x61\144\155\151\156\137\160\141\163\x73\x77\x6f\162\x64");
            delete_site_option("\x6d\x6f\137\x73\x61\155\154\x5f\166\145\x72\151\x66\171\137\x63\x75\x73\164\x6f\x6d\145\162");
            delete_site_option("\155\x6f\x5f\x73\141\x6d\154\x5f\141\144\155\151\156\x5f\143\x75\163\164\157\155\x65\x72\137\x6b\x65\x79");
            delete_site_option("\155\157\x5f\163\141\x6d\154\x5f\x61\144\155\x69\156\137\141\160\151\137\153\x65\171");
            delete_site_option("\155\x6f\x5f\163\141\155\x6c\137\x63\x75\x73\x74\157\155\x65\162\137\x74\x6f\153\145\x6e");
            delete_site_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\x6d\145\x73\163\x61\x67\x65");
            delete_site_option("\155\157\x5f\163\x61\155\x6c\137\162\x65\x67\151\x73\164\162\x61\164\x69\157\156\137\x73\x74\x61\164\x75\163");
            delete_site_option("\155\x6f\137\x73\x61\x6d\x6c\137\x69\x64\160\137\143\x6f\156\146\x69\x67\x5f\143\x6f\x6d\x70\x6c\x65\164\x65");
            delete_site_option("\x6d\157\x5f\x73\141\x6d\154\x5f\164\x72\141\x6e\163\x61\143\164\151\x6f\156\x49\x64");
            hx:
        }
        l0:
        switch_to_blog($l9);
    }
    private function mo_saml_show_success_message()
    {
        remove_action("\x6e\x65\x74\x77\x6f\x72\x6b\137\141\144\x6d\151\x6e\x5f\156\157\x74\151\143\145\163", array($this, "\155\x6f\137\163\x61\x6d\154\137\x73\x75\143\x63\145\163\x73\137\x6d\x65\x73\x73\141\147\x65"));
        add_action("\x6e\145\x74\x77\x6f\x72\x6b\137\141\144\155\151\x6e\137\x6e\157\164\151\143\145\163", array($this, "\155\157\137\x73\x61\155\x6c\x5f\145\162\x72\x6f\x72\137\x6d\x65\x73\x73\x61\x67\145"));
    }
    function mo_saml_show_error_message()
    {
        remove_action("\x6e\x65\x74\x77\x6f\x72\153\x5f\141\144\155\151\156\137\156\157\x74\x69\x63\x65\163", array($this, "\x6d\x6f\x5f\x73\x61\155\154\x5f\x65\162\162\157\162\x5f\155\145\163\x73\x61\147\x65"));
        add_action("\156\x65\x74\167\x6f\x72\153\137\x61\144\x6d\151\156\x5f\156\157\x74\151\143\x65\163", array($this, "\x6d\157\x5f\163\x61\155\154\137\x73\x75\143\x63\x65\163\163\x5f\x6d\145\163\163\x61\x67\x65"));
    }
    function plugin_settings_style()
    {
        wp_enqueue_style("\x6d\157\x5f\x73\x61\x6d\154\x5f\141\144\x6d\x69\x6e\x5f\x73\145\x74\164\151\156\147\x73\137\163\164\171\x6c\145", plugins_url("\151\x6e\x63\x6c\165\144\145\x73\x2f\143\x73\163\x2f\163\164\x79\x6c\x65\x5f\x73\145\164\164\151\156\147\x73\x2e\x63\163\x73\77\x76\145\162\x3d\x33\x2e\66\x2e\x32", __FILE__));
        wp_enqueue_style("\x6d\157\137\163\x61\x6d\154\x5f\141\144\x6d\151\156\x5f\163\145\x74\x74\x69\x6e\147\x73\x5f\x70\150\157\x6e\x65\137\x73\164\171\x6c\x65", plugins_url("\x69\x6e\x63\154\x75\x64\145\x73\57\x63\x73\163\57\160\150\157\x6e\145\56\x63\163\x73", __FILE__));
    }
    function plugin_settings_script()
    {
        wp_enqueue_script("\155\x6f\x5f\163\141\x6d\x6c\137\141\x64\155\x69\156\137\x73\x65\164\x74\151\x6e\147\163\137\x73\143\x72\151\x70\164", plugins_url("\x69\x6e\143\154\x75\144\x65\163\x2f\152\163\57\x73\145\164\x74\151\x6e\x67\163\56\152\163", __FILE__));
        wp_enqueue_script("\155\157\137\163\141\155\x6c\x5f\141\x64\155\x69\156\x5f\x73\145\164\164\x69\156\147\x73\137\x70\150\x6f\156\145\137\163\143\x72\x69\x70\x74", plugins_url("\151\156\x63\154\165\144\x65\163\x2f\152\163\x2f\x70\x68\x6f\x6e\x65\56\x6a\x73", __FILE__));
    }
    function miniorange_login_widget_saml_save_settings()
    {
        if (!current_user_can("\155\141\x6e\x61\x67\x65\137\157\160\164\151\x6f\x6e\x73")) {
            goto iX;
        }
        if (!(isset($_POST["\x6f\x70\164\151\157\x6e"]) and $_POST["\x6f\160\164\151\157\x6e"] == "\154\x6f\147\x69\156\137\x77\x69\x64\147\x65\164\137\163\141\155\x6c\137\163\x61\x76\x65\137\x73\x65\164\164\151\x6e\x67\x73")) {
            goto ur;
        }
        if (mo_saml_is_curl_installed()) {
            goto Bn;
        }
        update_site_option("\155\x6f\137\163\141\x6d\154\137\155\145\163\163\141\x67\145", "\105\122\122\x4f\122\72\x20\x3c\141\40\x68\162\145\x66\75\x22\x68\164\x74\160\72\x2f\x2f\x70\150\160\56\156\145\164\x2f\x6d\x61\x6e\165\141\154\57\x65\x6e\57\x63\165\x72\x6c\x2e\151\x6e\x73\164\141\154\x6c\x61\164\151\157\156\56\160\x68\160\x22\40\x74\x61\162\x67\145\164\x3d\42\137\142\154\141\x6e\x6b\x22\x3e\x50\x48\120\x20\x63\x55\x52\x4c\40\x65\x78\164\x65\x6e\163\151\157\156\74\57\141\x3e\40\151\163\40\x6e\x6f\164\40\151\x6e\163\164\141\154\154\145\144\40\157\x72\x20\x64\151\163\x61\142\x6c\x65\x64\x2e\40\123\141\166\145\x20\111\144\x65\156\x74\151\164\171\x20\x50\x72\x6f\166\x69\144\x65\x72\40\x43\x6f\x6e\146\x69\x67\165\162\141\x74\151\157\x6e\x20\x66\141\151\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        Bn:
        $EC = '';
        $xh = '';
        $vt = '';
        $t6 = '';
        $GM = '';
        $hP = '';
        $Bi = '';
        if ($this->mo_saml_check_empty_or_null($_POST["\x73\141\x6d\x6c\137\151\x64\145\x6e\164\151\x74\171\137\x6e\141\x6d\145"]) || $this->mo_saml_check_empty_or_null($_POST["\163\141\155\x6c\x5f\x6c\157\x67\x69\156\x5f\165\162\x6c"]) || $this->mo_saml_check_empty_or_null($_POST["\163\x61\x6d\x6c\137\151\x73\163\x75\x65\162"])) {
            goto QZ;
        }
        if (!preg_match("\57\x5e\134\x77\x2a\44\x2f", $_POST["\163\141\155\x6c\137\x69\144\x65\156\164\x69\x74\x79\137\156\x61\x6d\145"])) {
            goto gH;
        }
        $EC = trim($_POST["\x73\x61\155\x6c\x5f\151\144\145\156\164\x69\164\x79\137\156\141\155\145"]);
        $vt = trim($_POST["\x73\x61\x6d\154\137\154\157\x67\151\156\137\x75\162\x6c"]);
        $xh = $_POST["\x73\141\x6d\x6c\137\154\157\x67\151\156\x5f\x62\x69\x6e\144\151\156\147\x5f\164\171\160\145"];
        $t6 = $_POST["\163\141\x6d\154\137\154\157\147\x6f\165\x74\137\x62\151\x6e\144\151\x6e\147\137\164\171\160\x65"];
        if (!array_key_exists("\x73\141\155\x6c\x5f\x6c\157\147\157\x75\x74\x5f\165\x72\x6c", $_POST)) {
            goto I7;
        }
        $GM = trim($_POST["\x73\x61\155\x6c\137\x6c\x6f\147\x6f\x75\x74\x5f\x75\x72\x6c"]);
        I7:
        $hP = trim($_POST["\x73\x61\155\x6c\x5f\x69\x73\x73\x75\x65\162"]);
        $Bi = trim($_POST["\x73\x61\x6d\154\137\x78\x35\x30\71\x5f\x63\145\x72\164\x69\146\x69\x63\x61\x74\145"]);
        goto CL;
        gH:
        update_site_option("\x6d\157\x5f\163\141\155\x6c\137\155\145\163\163\141\x67\145", "\120\x6c\x65\141\163\x65\x20\155\x61\x74\x63\x68\40\x74\x68\145\40\x72\x65\x71\x75\x65\163\164\x65\144\40\146\x6f\162\155\x61\x74\40\146\157\x72\x20\x49\x64\x65\x6e\164\x69\x74\x79\40\120\x72\x6f\166\151\144\x65\162\40\116\141\x6d\145\x2e\x20\117\x6e\x6c\171\x20\x61\x6c\x70\x68\x61\x62\145\x74\x73\x2c\x20\x6e\x75\155\142\145\162\x73\x20\141\156\x64\40\165\x6e\144\x65\162\x73\x63\x6f\x72\145\40\x69\163\40\x61\154\154\x6f\x77\145\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        CL:
        goto ll;
        QZ:
        update_site_option("\x6d\157\x5f\163\x61\x6d\x6c\137\x6d\145\163\163\x61\x67\x65", "\101\x6c\x6c\x20\x74\x68\145\x20\x66\151\145\x6c\x64\x73\40\x61\x72\145\x20\x72\145\x71\x75\x69\162\145\144\56\40\120\x6c\145\141\163\145\40\145\x6e\x74\145\162\40\166\141\154\x69\144\x20\x65\x6e\164\162\x69\x65\163\56");
        $this->mo_saml_show_error_message();
        return;
        ll:
        update_site_option("\x73\141\155\x6c\137\151\x64\145\156\x74\151\x74\171\x5f\156\x61\155\x65", $EC);
        update_site_option("\163\x61\x6d\x6c\137\154\157\147\151\x6e\137\x62\151\x6e\x64\151\x6e\x67\x5f\x74\x79\160\145", $xh);
        update_site_option("\163\x61\x6d\154\x5f\154\157\147\x69\156\137\165\x72\154", $vt);
        update_site_option("\x73\x61\x6d\x6c\x5f\x6c\x6f\147\157\165\x74\x5f\x62\x69\x6e\x64\151\x6e\147\137\x74\171\160\x65", $t6);
        update_site_option("\x73\141\155\154\137\154\157\x67\x6f\x75\x74\137\x75\162\x6c", $GM);
        update_site_option("\x73\141\155\154\x5f\151\x73\163\x75\145\162", $hP);
        update_site_option("\x73\141\155\x6c\137\x78\65\60\x39\137\143\x65\x72\x74\151\x66\x69\143\141\164\x65", $Bi);
        if (get_site_option("\x6d\157\137\x73\141\x6d\x6c\137\x65\x6e\141\x62\154\145\x5f\143\x6c\157\x75\x64\x5f\x62\x72\157\x6b\x65\x72") == "\164\x72\165\x65") {
            goto MA;
        }
        update_site_option("\163\141\155\x6c\x5f\170\x35\60\71\x5f\x63\x65\162\x74\x69\x66\151\143\x61\164\x65", Utilities::sanitize_certificate($Bi));
        update_site_option("\155\157\x5f\x73\x61\155\154\x5f\155\145\163\x73\x61\x67\x65", "\x49\144\x65\x6e\x74\151\164\x79\x20\120\x72\x6f\x76\151\144\145\162\40\x64\x65\164\141\x69\x6c\163\40\x73\x61\166\145\144\40\163\x75\143\143\145\x73\163\146\165\x6c\154\x79\56");
        $this->mo_saml_show_success_message();
        goto qH;
        MA:
        $DK = new Customersaml();
        $yj = json_decode($DK->save_external_idp_config(), true);
        if (isset($yj["\x63\165\163\x74\x6f\x6d\x65\162\111\144"])) {
            goto dl;
        }
        update_site_option("\155\x6f\x5f\163\141\x6d\154\x5f\x6d\x65\x73\x73\x61\x67\145", "\x49\144\145\156\x74\x69\164\x79\x20\x50\162\x6f\166\x69\144\x65\162\x20\144\x65\x74\141\151\x6c\x73\x20\143\157\x75\x6c\144\40\156\x6f\164\40\142\x65\x20\163\141\x76\x65\144\x2e\x20\x50\x6c\x65\141\x73\x65\40\x74\162\x79\x20\141\147\141\x69\x6e\56");
        $this->mo_saml_show_error_message();
        goto qG;
        dl:
        update_site_option("\x73\x61\x6d\x6c\x5f\170\x35\x30\x39\x5f\x63\x65\162\164\x69\x66\x69\x63\141\164\145", $yj["\163\141\155\154\130\65\60\71\x43\x65\x72\x74\151\x66\151\143\x61\x74\x65"]);
        update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\137\x6d\145\x73\163\141\x67\145", "\x49\144\145\156\164\x69\164\x79\x20\x50\x72\157\166\151\x64\x65\x72\40\144\145\164\141\151\154\163\40\163\x61\x76\x65\x64\40\x73\x75\x63\x63\145\163\163\146\x75\154\154\x79\x2e");
        $this->mo_saml_show_success_message();
        qG:
        qH:
        ur:
        if (!(isset($_POST["\157\160\x74\151\157\156"]) and $_POST["\x6f\x70\164\151\x6f\156"] == "\x6c\x6f\147\x69\156\x5f\x77\x69\x64\x67\x65\164\x5f\x73\x61\155\x6c\x5f\x61\x74\x74\162\151\x62\165\164\x65\x5f\155\x61\160\x70\151\x6e\147")) {
            goto nJ;
        }
        if (mo_saml_is_curl_installed()) {
            goto dr;
        }
        update_site_option("\155\x6f\137\x73\141\x6d\x6c\x5f\x6d\x65\163\x73\141\147\145", "\105\122\x52\x4f\x52\x3a\x20\74\141\x20\x68\162\145\146\x3d\42\x68\164\164\160\x3a\x2f\57\x70\x68\x70\x2e\x6e\145\x74\57\x6d\x61\x6e\x75\141\154\x2f\145\x6e\57\143\x75\162\x6c\x2e\151\156\x73\x74\141\154\x6c\141\x74\151\157\156\56\160\x68\x70\42\x20\164\x61\162\x67\145\164\75\x22\x5f\x62\154\141\x6e\x6b\42\76\120\x48\120\40\x63\x55\122\114\40\x65\x78\x74\x65\x6e\x73\151\x6f\x6e\x3c\57\x61\76\x20\151\163\40\156\x6f\x74\40\151\x6e\163\164\141\154\154\x65\x64\40\157\x72\40\x64\151\163\x61\142\x6c\145\144\x2e\40\123\141\x76\145\40\x41\164\164\x72\x69\x62\165\x74\145\x20\x4d\x61\x70\x70\x69\x6e\x67\x20\x66\x61\151\154\x65\144\56");
        $this->mo_saml_show_error_message();
        return;
        dr:
        update_site_option("\163\141\155\154\137\x61\x6d\x5f\x75\163\x65\x72\156\141\x6d\145", stripslashes($_POST["\x73\141\x6d\x6c\x5f\141\155\x5f\x75\163\x65\162\156\x61\155\145"]));
        update_site_option("\x73\141\155\x6c\x5f\x61\x6d\137\145\155\x61\151\x6c", stripslashes($_POST["\163\141\155\154\137\x61\x6d\137\x65\155\x61\151\154"]));
        update_site_option("\x73\141\x6d\154\x5f\141\x6d\x5f\x66\151\x72\x73\164\137\x6e\141\x6d\145", stripslashes($_POST["\163\141\x6d\x6c\x5f\x61\x6d\137\x66\x69\162\163\164\x5f\156\x61\155\x65"]));
        update_site_option("\x73\x61\155\154\x5f\141\155\137\154\x61\163\164\x5f\156\141\155\x65", stripslashes($_POST["\x73\141\x6d\x6c\137\x61\x6d\x5f\x6c\x61\x73\x74\x5f\x6e\x61\x6d\145"]));
        update_site_option("\x73\x61\x6d\154\137\141\x6d\137\x67\x72\157\x75\x70\x5f\x6e\x61\155\145", stripslashes($_POST["\163\x61\155\x6c\137\141\155\x5f\147\x72\x6f\165\160\x5f\x6e\141\155\x65"]));
        update_site_option("\x73\x61\155\154\x5f\x61\x6d\x5f\141\143\x63\157\165\x6e\x74\137\155\x61\x74\x63\x68\145\x72", stripslashes($_POST["\x73\141\155\154\x5f\x61\x6d\137\x61\x63\x63\x6f\165\156\164\x5f\155\141\x74\x63\x68\x65\x72"]));
        update_site_option("\x73\x61\155\154\137\x61\155\137\x64\x69\x73\160\x6c\141\x79\137\x6e\141\155\145", stripslashes($_POST["\163\141\x6d\x6c\137\x61\155\137\x64\x69\x73\160\x6c\141\171\x5f\156\x61\x6d\x65"]));
        update_site_option("\155\157\137\163\141\x6d\x6c\137\155\x65\163\x73\x61\147\x65", "\101\x74\164\162\151\142\165\x74\x65\40\115\x61\160\160\151\x6e\147\x20\x64\145\164\141\151\154\x73\40\x73\x61\x76\145\144\40\x73\x75\x63\143\x65\x73\x73\146\165\154\x6c\171");
        $this->mo_saml_show_success_message();
        nJ:
        if (!(isset($_POST["\x6f\x70\164\151\x6f\156"]) and $_POST["\157\x70\x74\x69\x6f\x6e"] == "\154\x6f\x67\151\156\x5f\167\x69\x64\147\145\x74\x5f\163\x61\155\x6c\137\x72\157\x6c\145\137\x6d\x61\x70\x70\151\156\147")) {
            goto QW;
        }
        if (mo_saml_is_curl_installed()) {
            goto HN;
        }
        update_site_option("\x6d\157\x5f\x73\141\155\x6c\137\x6d\x65\163\163\141\x67\145", "\x45\122\122\117\122\72\40\x3c\x61\40\x68\x72\x65\x66\x3d\x22\150\164\x74\160\x3a\x2f\57\160\x68\x70\56\156\145\x74\57\x6d\141\156\x75\x61\154\57\x65\156\x2f\143\165\162\154\x2e\151\156\x73\x74\x61\x6c\x6c\141\164\151\x6f\x6e\x2e\160\x68\x70\42\40\164\141\x72\x67\x65\164\75\42\137\142\x6c\x61\x6e\153\x22\x3e\x50\x48\x50\x20\143\125\x52\114\40\145\x78\164\145\x6e\x73\x69\157\x6e\x3c\x2f\x61\76\40\x69\163\40\156\x6f\x74\x20\151\x6e\163\x74\x61\154\154\145\144\40\157\x72\x20\x64\x69\x73\141\x62\x6c\x65\x64\x2e\x20\x53\141\x76\x65\40\122\x6f\154\145\40\115\x61\x70\x70\151\x6e\147\40\x66\141\x69\x6c\x65\144\56");
        $this->mo_saml_show_error_message();
        return;
        HN:
        if (!$this->mo_saml_check_empty_or_null($_POST["\162\157\154\145\x5f\155\x61\160\x70\151\x6e\147\x5f\x73\151\164\145"])) {
            goto qo;
        }
        update_site_option("\x6d\x6f\x5f\x73\x61\155\x6c\137\x6d\145\163\x73\141\x67\x65", "\x50\154\x65\141\x73\145\x20\163\x65\x6c\x65\x63\x74\x20\x61\40\163\x69\164\x65\x20\x74\157\x20\163\141\x76\145\40\x72\157\x6c\145\40\155\141\x70\x70\151\x6e\147");
        $this->mo_saml_show_error_message();
        return;
        qo:
        $V1 = $_POST["\x72\x6f\x6c\x65\x5f\155\x61\160\160\x69\156\x67\x5f\x73\151\164\x65"];
        if (!isset($_POST["\163\x61\155\154\x5f\141\x6d\x5f\x64\x65\x66\141\165\x6c\x74\137\165\163\x65\x72\x5f\162\157\x6c\145"])) {
            goto MB;
        }
        $zr = $_POST["\x73\x61\x6d\154\x5f\141\x6d\x5f\x64\x65\146\x61\x75\154\164\x5f\x75\x73\x65\x72\137\162\x6f\154\x65"];
        MB:
        if (isset($_POST["\163\141\155\154\137\x61\155\137\x64\157\156\164\137\x61\x6c\x6c\157\167\137\165\x6e\x6c\151\163\x74\145\x64\137\165\163\145\162\137\x72\x6f\154\145"])) {
            goto bN;
        }
        $SV = "\165\x6e\143\150\x65\143\153\x65\144";
        goto UQ;
        bN:
        $SV = "\143\x68\145\143\153\x65\x64";
        $zr = "\146\141\154\163\145";
        UQ:
        if (isset($_POST["\155\157\x5f\x73\141\x6d\154\x5f\x64\157\x6e\x74\x5f\x63\162\x65\141\164\145\137\165\163\x65\x72\x5f\x69\146\137\x72\x6f\x6c\x65\x5f\156\157\164\x5f\x6d\141\160\160\x65\144"])) {
            goto cQ;
        }
        $o6 = "\x75\x6e\x63\x68\145\x63\x6b\145\144";
        goto Ny;
        cQ:
        $o6 = "\143\x68\x65\x63\x6b\x65\144";
        $SV = "\165\156\143\x68\145\143\x6b\x65\x64";
        $zr = "\x66\141\154\163\x65";
        Ny:
        $Y6 = new WP_Roles();
        $Rj = $Y6->get_names();
        $aP = get_site_option("\x73\141\x6d\154\x5f\141\x6d\x5f\162\x6f\x6c\x65\x5f\x6d\x61\x70\x70\x69\156\147");
        foreach ($Rj as $Lr => $BX) {
            $pa = "\163\x61\155\154\x5f\141\155\137\147\162\157\x75\x70\x5f\x61\x74\164\x72\137\x76\x61\154\165\145\x73\x5f" . $Lr;
            $aP[$V1][$Lr] = stripslashes($_POST[$pa]);
            nB:
        }
        Qz:
        $aP[$V1]["\x64\145\146\141\165\154\164\x5f\162\157\154\x65"] = $zr;
        $aP[$V1]["\144\x6f\x6e\164\137\x63\x72\x65\x61\x74\145\x5f\x75\163\145\162"] = $o6;
        $aP[$V1]["\144\157\156\x74\137\141\x6c\x6c\x6f\x77\137\x75\x6e\154\x69\163\x74\145\x64\137\x75\x73\x65\x72"] = $SV;
        update_site_option("\x73\x61\x6d\x6c\x5f\x61\155\x5f\162\x6f\x6c\x65\137\x6d\x61\x70\160\151\156\147", $aP);
        update_site_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\155\x65\163\x73\x61\147\x65", "\122\157\154\145\x20\115\x61\x70\160\x69\156\x67\x20\x64\x65\164\141\x69\154\x73\40\x73\x61\166\145\144\40\x73\165\143\x63\145\x73\163\146\x75\x6c\x6c\171\x2e");
        $this->mo_saml_show_success_message();
        QW:
        if (!(isset($_POST["\x6f\160\164\x69\x6f\156"]) and $_POST["\157\x70\164\151\157\x6e"] == "\155\x6f\137\x73\x61\x6d\x6c\137\165\x70\144\141\x74\x65\x5f\x73\x70\137\142\141\163\145\x5f\x75\162\154\x5f\x6f\x70\x74\151\x6f\156")) {
            goto NX;
        }
        if (!(isset($_POST["\x6d\x6f\137\163\141\155\x6c\137\163\x70\x5f\x62\x61\163\x65\137\x75\x72\154"]) && isset($_POST["\x6d\157\x5f\x73\141\155\154\137\163\x70\x5f\x65\x6e\x74\x69\164\171\x5f\x69\144"]))) {
            goto Yv;
        }
        $mC = sanitize_text_field($_POST["\x6d\157\137\x73\x61\155\154\x5f\x73\160\137\142\x61\163\145\x5f\x75\x72\x6c"]);
        $WE = sanitize_text_field($_POST["\155\157\137\163\141\x6d\x6c\x5f\x73\x70\137\145\156\164\151\164\x79\137\151\x64"]);
        if (!(substr($mC, -1) == "\x2f")) {
            goto Ku;
        }
        $mC = substr($mC, 0, -1);
        Ku:
        update_site_option("\x6d\157\137\x73\x61\155\154\x5f\163\160\137\142\x61\x73\145\137\165\162\154", $mC);
        update_site_option("\x6d\157\x5f\163\x61\x6d\x6c\x5f\x73\x70\137\145\x6e\164\151\x74\x79\137\x69\144", $WE);
        Yv:
        update_site_option("\155\157\x5f\163\x61\x6d\x6c\x5f\155\145\x73\x73\x61\x67\145", "\x53\120\x20\x42\x61\x73\x65\40\x55\122\x4c\x20\x75\x70\144\x61\x74\x65\x64\x20\163\x75\x63\143\145\163\163\x66\165\154\154\x79\x2e");
        $this->mo_saml_show_success_message();
        NX:
        if (!(isset($_POST["\157\160\x74\151\157\x6e"]) and $_POST["\x6f\160\164\x69\157\x6e"] == "\163\x61\x6d\154\x5f\165\x70\154\157\x61\144\x5f\155\x65\164\141\x64\141\164\141")) {
            goto Dl;
        }
        if (function_exists("\167\x70\137\150\x61\x6e\x64\154\x65\137\165\160\154\x6f\141\x64")) {
            goto Gc;
        }
        require_once ABSPATH . "\x77\160\55\x61\144\155\x69\156\57\151\x6e\x63\154\x75\x64\x65\x73\x2f\x66\x69\154\145\x2e\160\150\160";
        Gc:
        $this->upload_metadata();
        Dl:
        if (!(isset($_POST["\x6f\x70\164\151\157\156"]) and $_POST["\x6f\x70\164\151\x6f\x6e"] == "\x6d\157\137\163\141\155\x6c\x5f\x72\145\154\x61\x79\x5f\x73\164\141\164\x65\x5f\x6f\x70\164\151\157\x6e")) {
            goto jW;
        }
        $Dl = sanitize_text_field($_POST["\155\x6f\137\x73\141\x6d\154\x5f\x72\145\154\x61\x79\137\163\x74\x61\164\145"]);
        update_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\162\145\154\141\171\x5f\163\x74\x61\164\x65", $Dl);
        update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\155\145\x73\x73\141\x67\x65", "\x52\x65\154\x61\171\40\123\x74\141\x74\145\40\165\x70\144\x61\x74\x65\144\40\x73\165\143\143\145\163\x73\x66\x75\x6c\154\171\56");
        $this->mo_saml_show_success_message();
        jW:
        if (!(isset($_POST["\157\x70\164\x69\x6f\x6e"]) and $_POST["\157\x70\x74\151\157\x6e"] == "\x65\x6e\x61\x62\x6c\145\x5f\x73\x73\x6f\137\x66\157\162\137\163\x69\164\145\x73\x5f\x6f\160\164\151\x6f\156")) {
            goto dF;
        }
        $Bh = array();
        if (!array_key_exists("\x65\x6e\x61\142\x6c\x65\137\x66\x6f\x72\137\163\151\164\x65\x73", $_POST)) {
            goto xS;
        }
        $Bh = $_POST["\x65\156\141\142\154\x65\x5f\x66\157\162\137\x73\x69\x74\145\163"];
        xS:
        update_site_option("\145\x6e\141\142\x6c\x65\x5f\163\141\155\x6c\137\163\x73\157\137\146\x6f\162\137\x73\151\x74\x65\163", $Bh);
        update_site_option("\155\157\137\163\141\x6d\x6c\137\155\145\x73\163\x61\147\145", "\x53\x69\x74\x65\163\40\x53\x53\x4f\40\x75\x70\144\141\x74\145\144\x20\163\x75\x63\143\x65\163\163\146\x75\x6c\x6c\171\x2e");
        $this->mo_saml_show_success_message();
        dF:
        if (!(isset($_POST["\157\x70\x74\151\157\156"]) and $_POST["\x6f\x70\x74\x69\x6f\x6e"] == "\163\x61\x6d\x6c\137\x67\x65\156\x65\162\x61\x74\x65\x5f\143\x65\162\x74\151\146\151\143\x61\164\x65")) {
            goto ko;
        }
        $ld = array("\143\157\165\156\x74\x72\x79\116\141\155\x65" => $_POST["\143\157\165\x6e\164\162\171"], "\x73\x74\x61\x74\145\117\162\120\x72\x6f\166\151\156\143\145\116\x61\155\x65" => $_POST["\163\x74\141\164\145"], "\154\157\x63\x61\154\x69\x74\171\x4e\x61\x6d\145" => $_POST["\154\x6f\143\x61\154\x69\164\x79"], "\x6f\162\x67\x61\156\x69\172\x61\164\151\x6f\156\x4e\141\155\145" => $_POST["\x6f\162\147"], "\157\162\x67\x61\156\x69\172\141\x74\x69\157\x6e\141\154\x55\x6e\151\x74\116\141\155\145" => $_POST["\157\x72\147\137\165\x6e\151\164"], "\x63\x6f\x6d\x6d\157\x6e\116\x61\155\145" => $_POST["\x63\x6e"], "\x65\155\x61\x69\x6c\101\x64\144\162\x65\x73\163" => $_POST["\x65\x6d\x61\151\x6c"]);
        $rE = array("\x64\151\x67\x65\163\x74\137\141\154\147" => $_POST["\150\141\163\150\137\141\x6c\x67\x6f\162\151\x74\x68\x6d"], "\170\x35\60\x39\137\145\170\164\x65\156\x73\151\x6f\156\x73" => "\166\x33\x5f\x63\x61", "\x70\162\x69\x76\141\x74\x65\x5f\x6b\145\x79\137\x62\x69\x74\163" => 2048, "\160\x72\151\x76\x61\x74\145\137\153\x65\171\x5f\x74\171\x70\x65" => OPENSSL_KEYTYPE_RSA, "\x65\156\143\x72\x79\x70\164\x5f\153\x65\171" => false);
        $Ck = CertificateUtility::generate_certificate($ld, $rE, (int) $_POST["\x65\170\x70\x69\162\x79\x5f\144\141\x79\163"]);
        $o5 = plugin_dir_path(__FILE__) . "\162\145\x73\x6f\x75\x72\x63\x65\x73" . DIRECTORY_SEPARATOR . "\163\160\55\x63\x65\162\164\x69\x66\151\143\x61\x74\145\56\143\162\164";
        $NA = plugin_dir_path(__FILE__) . "\x72\145\163\157\165\x72\x63\x65\x73" . DIRECTORY_SEPARATOR . "\x73\x70\55\x6b\x65\x79\56\x6b\145\171";
        $SZ = plugin_dir_path(__FILE__) . "\162\x65\x73\157\x75\162\143\x65\x73" . DIRECTORY_SEPARATOR . "\163\160\55\x63\x65\x72\x74\x69\x66\151\143\141\164\145\x2e\143\162\164\56\142\x61\x63\153\165\x70";
        if (file_exists($SZ)) {
            goto A0;
        }
        $Ad = plugin_dir_path(__FILE__) . "\162\145\x73\157\x75\x72\143\145\x73" . DIRECTORY_SEPARATOR . "\x73\160\x2d\153\x65\x79\56\x6b\145\x79\56\x62\141\143\153\165\160";
        copy($o5, $SZ);
        copy($NA, $Ad);
        A0:
        $FB = file_put_contents($o5, $Ck["\x70\165\142\x6c\x69\143\x5f\153\145\171"]);
        $FB = $FB && file_put_contents($NA, $Ck["\160\x72\x69\x76\x61\x74\145\x5f\x6b\145\x79"]);
        if ($FB) {
            goto Ok;
        }
        update_site_option("\155\157\137\x73\141\x6d\x6c\137\155\145\163\x73\x61\x67\x65", "\x45\162\162\x6f\x72\40\x6f\143\143\165\162\x65\x64\40\x77\150\x69\x6c\145\x20\x67\145\x6e\x65\x72\141\164\151\156\x67\x20\164\x68\145\x20\x63\x65\162\164\151\x66\x69\143\x61\164\x65\163\x2e\40\123\x65\x65\x20\120\x48\120\x20\145\162\x72\157\x72\40\154\157\147\x73\40\141\156\144\40\155\141\153\x65\40\163\x75\x72\x65\40\x68\141\x76\145\x20\x73\145\164\40\167\162\x69\164\x65\40\160\145\162\155\x69\x73\163\151\157\x6e\x2e");
        $this->mo_saml_show_error_message();
        goto zB;
        Ok:
        update_site_option("\155\x6f\x5f\x73\x61\155\x6c\137\155\x65\x73\x73\141\x67\145", "\x4e\145\167\40\x63\x65\162\164\x69\146\151\143\x61\164\145\163\x20\147\145\156\x65\x72\x61\164\x65\x64\x20\x73\x75\143\143\x65\x73\163\146\x75\x6c\154\x79\56");
        $this->mo_saml_show_success_message();
        zB:
        ko:
        if (!(isset($_POST["\157\160\164\151\x6f\x6e"]) and $_POST["\x6f\x70\x74\x69\x6f\x6e"] == "\x6d\x6f\137\163\x61\155\154\137\x72\145\147\x69\x73\x74\x65\162\137\143\x75\x73\164\x6f\155\x65\x72")) {
            goto I6;
        }
        if (mo_saml_is_curl_installed()) {
            goto u6;
        }
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\154\137\x6d\145\x73\x73\x61\x67\x65", "\105\x52\x52\117\122\72\40\x3c\141\x20\150\162\145\146\x3d\42\x68\164\164\x70\72\57\57\160\150\160\56\x6e\x65\164\57\155\x61\156\165\141\154\57\145\x6e\57\x63\165\162\154\56\x69\156\x73\164\x61\154\154\141\164\151\157\156\56\x70\x68\160\x22\x20\x74\x61\162\147\x65\164\x3d\42\x5f\x62\154\x61\156\x6b\42\x3e\120\110\x50\40\x63\x55\x52\x4c\x20\x65\x78\x74\x65\x6e\x73\151\x6f\156\x3c\57\141\76\x20\x69\163\40\x6e\157\164\40\151\x6e\x73\164\x61\x6c\x6c\x65\144\x20\x6f\162\x20\x64\x69\163\141\x62\x6c\x65\144\x2e\x20\x52\145\x67\151\x73\164\x72\x61\164\151\157\x6e\x20\146\141\151\154\145\144\56");
        $this->mo_saml_show_error_message();
        return;
        u6:
        $Dv = '';
        $EH = '';
        $i_ = '';
        $Hb = '';
        if ($this->mo_saml_check_empty_or_null($_POST["\x65\x6d\x61\x69\x6c"]) || $this->mo_saml_check_empty_or_null($_POST["\x70\x61\x73\x73\167\157\x72\144"]) || $this->mo_saml_check_empty_or_null($_POST["\x63\x6f\156\146\151\162\155\120\141\x73\x73\167\x6f\x72\x64"])) {
            goto sE;
        }
        if (strlen($_POST["\x70\x61\x73\x73\x77\x6f\x72\144"]) < 6 || strlen($_POST["\143\157\156\x66\151\x72\x6d\x50\141\163\163\x77\x6f\x72\x64"]) < 6) {
            goto NV;
        }
        $Dv = sanitize_email($_POST["\x65\155\141\151\154"]);
        $EH = sanitize_text_field($_POST["\x70\150\x6f\156\x65"]);
        $i_ = sanitize_text_field($_POST["\160\x61\163\163\x77\157\x72\x64"]);
        $Hb = sanitize_text_field($_POST["\x63\x6f\156\146\151\162\x6d\120\141\163\163\x77\157\x72\x64"]);
        goto Mr;
        NV:
        update_site_option("\x6d\x6f\x5f\163\141\155\x6c\137\155\x65\163\163\141\x67\x65", "\103\150\x6f\157\163\x65\x20\x61\40\160\x61\x73\x73\167\x6f\162\x64\x20\x77\151\x74\150\40\155\151\156\151\x6d\x75\x6d\x20\154\145\x6e\x67\164\x68\40\x36\56");
        $this->mo_saml_show_error_message();
        return;
        Mr:
        goto Fx;
        sE:
        update_site_option("\155\x6f\x5f\x73\141\x6d\154\137\x6d\x65\x73\163\141\x67\x65", "\101\x6c\x6c\x20\164\150\145\x20\146\151\145\x6c\144\163\40\141\x72\145\40\162\145\161\165\x69\162\145\x64\x2e\40\120\154\145\141\x73\145\40\145\156\164\x65\x72\x20\166\x61\x6c\151\144\40\x65\x6e\164\162\x69\x65\x73\56");
        $this->mo_saml_show_error_message();
        return;
        Fx:
        update_site_option("\155\157\x5f\x73\141\x6d\154\137\141\144\x6d\151\156\x5f\x65\x6d\x61\x69\154", $Dv);
        update_site_option("\155\157\137\163\x61\x6d\x6c\137\141\144\x6d\151\x6e\x5f\160\150\157\x6e\145", $EH);
        if (strcmp($i_, $Hb) == 0) {
            goto k_;
        }
        update_site_option("\x6d\157\137\163\141\x6d\154\x5f\x6d\145\x73\163\141\x67\x65", "\x50\x61\x73\163\167\x6f\x72\x64\x73\x20\x64\157\x20\156\157\164\x20\x6d\x61\164\x63\150\x2e");
        delete_site_option("\155\x6f\137\x73\141\155\154\x5f\166\145\x72\x69\x66\171\137\143\x75\x73\164\x6f\155\145\162");
        $this->mo_saml_show_error_message();
        goto yt;
        k_:
        update_site_option("\x6d\157\x5f\x73\141\155\154\x5f\x61\144\155\151\156\137\x70\x61\x73\x73\167\x6f\162\x64", $i_);
        $Dv = get_site_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\141\x64\155\151\156\137\x65\155\141\151\154");
        $FR = new CustomerSaml();
        $IZ = json_decode($FR->check_customer(), true);
        if (strcasecmp($IZ["\x73\164\x61\x74\x75\x73"], "\x43\x55\123\124\117\x4d\x45\x52\137\x4e\117\124\137\106\117\125\116\104") == 0) {
            goto RX;
        }
        $this->get_current_customer();
        goto uY;
        RX:
        $IZ = json_decode($FR->send_otp_token($Dv, ''), true);
        if (strcasecmp($IZ["\x73\164\141\x74\x75\x73"], "\123\x55\x43\x43\x45\123\x53") == 0) {
            goto fm;
        }
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\155\x65\x73\x73\141\x67\145", "\124\150\x65\x72\145\40\x77\x61\x73\40\141\x6e\40\145\162\162\157\162\40\151\156\x20\x73\145\x6e\x64\151\156\x67\x20\145\155\x61\151\154\56\40\x50\x6c\145\x61\163\145\x20\166\145\x72\x69\x66\171\40\171\157\x75\162\40\145\155\141\151\154\40\x61\x6e\x64\40\164\x72\x79\40\141\147\x61\x69\156\56");
        update_site_option("\x6d\157\137\163\141\x6d\x6c\137\162\x65\147\x69\163\x74\x72\141\x74\151\x6f\x6e\137\163\x74\141\164\x75\x73", "\x4d\x4f\137\117\124\120\x5f\x44\x45\114\x49\x56\105\122\105\104\x5f\106\x41\111\x4c\125\122\105\137\105\x4d\x41\x49\x4c");
        $this->mo_saml_show_error_message();
        goto Mf;
        fm:
        update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\155\145\x73\163\x61\x67\145", "\40\101\40\157\156\x65\x20\164\151\x6d\x65\40\x70\141\x73\x73\x63\x6f\144\x65\40\151\x73\x20\163\145\x6e\164\x20\164\x6f\40" . get_site_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\x61\x64\x6d\x69\x6e\137\x65\x6d\x61\151\154") . "\56\x20\x50\154\x65\141\x73\145\x20\x65\156\x74\145\162\40\x74\150\x65\40\157\x74\x70\40\x68\145\x72\145\x20\x74\x6f\x20\x76\x65\162\151\146\171\x20\x79\157\x75\162\x20\x65\155\141\x69\154\56");
        update_site_option("\x6d\157\137\x73\x61\155\154\x5f\164\x72\141\156\x73\x61\x63\164\x69\x6f\156\111\x64", $IZ["\x74\170\111\x64"]);
        update_site_option("\x6d\157\x5f\x73\141\x6d\154\x5f\162\145\x67\151\x73\x74\x72\141\164\151\x6f\x6e\x5f\163\x74\141\164\165\163", "\115\x4f\x5f\117\x54\x50\x5f\x44\x45\x4c\111\126\105\x52\105\104\x5f\x53\125\x43\x43\105\x53\x53\x5f\x45\115\101\111\114");
        $this->mo_saml_show_success_message();
        Mf:
        uY:
        yt:
        I6:
        if (!(isset($_POST["\x6f\x70\x74\x69\x6f\x6e"]) and $_POST["\157\x70\x74\151\x6f\x6e"] == "\x6d\157\137\163\x61\x6d\154\x5f\166\x61\x6c\151\144\x61\x74\145\137\x6f\x74\x70")) {
            goto G1;
        }
        if (mo_saml_is_curl_installed()) {
            goto hM;
        }
        update_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\137\x6d\145\x73\x73\x61\x67\145", "\105\x52\122\117\x52\x3a\x20\74\x61\40\x68\162\145\x66\75\42\x68\164\164\x70\x3a\57\x2f\160\150\160\56\x6e\145\164\57\x6d\x61\156\x75\x61\x6c\x2f\x65\156\x2f\x63\165\x72\x6c\56\151\x6e\163\164\x61\154\x6c\141\x74\x69\x6f\156\56\160\150\160\x22\40\x74\141\162\147\x65\164\75\x22\x5f\x62\154\141\x6e\x6b\x22\x3e\120\110\120\x20\x63\125\x52\x4c\x20\x65\170\164\145\156\x73\151\x6f\156\74\x2f\141\x3e\40\151\163\x20\x6e\157\x74\40\151\156\163\x74\x61\154\154\x65\x64\40\x6f\162\x20\x64\151\163\x61\142\x6c\x65\x64\56\40\x56\x61\x6c\x69\x64\x61\164\x65\40\x4f\124\120\x20\x66\x61\151\x6c\x65\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        hM:
        $Y3 = '';
        if ($this->mo_saml_check_empty_or_null($_POST["\x6f\x74\x70\137\164\157\x6b\145\156"])) {
            goto SD;
        }
        $Y3 = sanitize_text_field($_POST["\x6f\164\x70\x5f\164\157\x6b\145\156"]);
        goto dS;
        SD:
        update_site_option("\155\x6f\137\x73\141\x6d\x6c\x5f\155\145\163\163\141\147\145", "\x50\154\x65\141\163\x65\40\x65\x6e\164\145\x72\x20\x61\40\x76\141\x6c\165\x65\40\x69\x6e\40\x6f\x74\160\x20\146\151\x65\x6c\144\x2e");
        $this->mo_saml_show_error_message();
        return;
        dS:
        $FR = new CustomerSaml();
        $IZ = json_decode($FR->validate_otp_token(get_site_option("\155\x6f\x5f\x73\x61\x6d\154\x5f\x74\x72\x61\x6e\x73\141\143\x74\x69\x6f\x6e\111\x64"), $Y3), true);
        if (strcasecmp($IZ["\163\x74\x61\x74\x75\x73"], "\123\125\103\x43\105\123\x53") == 0) {
            goto ni;
        }
        update_site_option("\155\157\x5f\x73\141\155\x6c\137\155\x65\163\x73\141\x67\x65", "\x49\156\166\141\154\151\x64\40\157\x6e\145\x20\164\151\155\x65\40\160\x61\163\x73\x63\157\x64\145\x2e\40\x50\154\145\141\163\x65\x20\x65\x6e\x74\x65\x72\x20\x61\40\x76\x61\154\151\144\x20\x6f\164\160\x2e");
        $this->mo_saml_show_error_message();
        goto iM;
        ni:
        $this->create_customer();
        iM:
        G1:
        if (isset($_POST["\157\x70\x74\151\x6f\156"]) and $_POST["\157\160\x74\x69\x6f\156"] == "\155\157\137\163\x61\x6d\x6c\x5f\166\x65\x72\x69\146\x79\137\x63\x75\163\x74\x6f\155\x65\162") {
            goto wA;
        }
        if (isset($_POST["\x6f\160\x74\x69\x6f\x6e"]) and $_POST["\157\160\164\151\x6f\x6e"] == "\155\157\x5f\163\x61\x6d\x6c\137\143\x6f\x6e\164\141\x63\x74\x5f\165\x73\x5f\161\165\x65\162\x79\137\157\160\164\151\x6f\x6e") {
            goto E9;
        }
        if (isset($_POST["\157\x70\164\151\157\x6e"]) and $_POST["\157\x70\164\151\157\156"] == "\x6d\157\137\163\x61\x6d\x6c\x5f\x72\x65\163\x65\x6e\x64\x5f\x6f\x74\160\137\x65\155\141\151\154") {
            goto hH;
        }
        if (isset($_POST["\x6f\160\164\x69\157\x6e"]) and $_POST["\x6f\160\x74\x69\x6f\156"] == "\x6d\x6f\x5f\163\x61\155\x6c\137\162\145\x73\x65\x6e\144\x5f\x6f\x74\160\137\160\150\x6f\x6e\145") {
            goto A1;
        }
        if (isset($_POST["\157\x70\x74\x69\x6f\x6e"]) and $_POST["\x6f\160\x74\x69\157\x6e"] == "\x6d\157\x5f\x73\141\x6d\x6c\x5f\147\157\x5f\142\141\143\x6b") {
            goto j1;
        }
        if (isset($_POST["\157\160\164\151\157\x6e"]) and $_POST["\157\x70\164\x69\x6f\156"] == "\155\157\137\x73\141\155\154\137\162\145\x67\151\163\x74\x65\x72\x5f\167\x69\x74\150\137\160\150\157\156\145\137\157\160\x74\x69\157\156") {
            goto w2;
        }
        if (isset($_POST["\157\160\x74\151\x6f\x6e"]) and $_POST["\x6f\x70\x74\151\x6f\156"] == "\155\x6f\x5f\x73\x61\155\x6c\137\162\x65\x67\151\x73\164\145\x72\x65\x64\137\157\x6e\154\x79\x5f\x61\x63\x63\x65\163\x73\x5f\157\160\x74\x69\x6f\x6e") {
            goto yS;
        }
        if (isset($_POST["\157\160\164\x69\x6f\156"]) and $_POST["\157\160\x74\x69\x6f\156"] == "\155\x6f\137\x73\x61\155\154\x5f\146\x6f\162\x63\x65\x5f\x61\165\x74\150\145\x6e\x74\151\143\x61\x74\151\157\156\x5f\157\x70\x74\151\x6f\x6e") {
            goto oe;
        }
        if (isset($_POST["\157\160\164\x69\157\156"]) and $_POST["\157\160\164\151\157\x6e"] == "\155\157\137\x73\x61\x6d\154\137\145\x6e\141\x62\154\145\137\x6c\157\x67\151\x6e\x5f\162\x65\x64\151\x72\145\143\164\x5f\x6f\x70\x74\x69\157\x6e") {
            goto u0;
        }
        if (isset($_POST["\157\160\x74\x69\157\x6e"]) and $_POST["\157\160\x74\151\x6f\x6e"] == "\x6d\x6f\x5f\x73\x61\155\x6c\137\145\x6e\x61\x62\x6c\x65\137\143\154\x6f\x75\144\137\142\x72\157\x6b\145\x72") {
            goto SS;
        }
        if (isset($_POST["\x6f\160\x74\x69\x6f\156"]) and $_POST["\x6f\x70\164\x69\x6f\x6e"] == "\155\157\137\163\x61\x6d\x6c\x5f\x61\x6c\x6c\157\167\137\x77\x70\137\x73\x69\x67\x6e\151\156\137\157\160\x74\151\157\x6e") {
            goto Of;
        }
        if (!(isset($_POST["\x6f\x70\164\151\x6f\156"]) && $_POST["\157\160\x74\x69\x6f\156"] == "\x6d\157\137\163\x61\x6d\x6c\x5f\146\x6f\x72\147\157\164\x5f\160\141\163\x73\x77\x6f\162\144\x5f\146\157\x72\155\x5f\157\160\x74\151\x6f\x6e")) {
            goto iB;
        }
        if (mo_saml_is_curl_installed()) {
            goto rf;
        }
        update_site_option("\x6d\x6f\137\163\141\x6d\154\x5f\155\145\x73\163\x61\147\x65", "\105\x52\122\x4f\122\72\40\74\x61\40\150\162\x65\146\x3d\42\x68\x74\x74\160\72\x2f\x2f\x70\x68\x70\56\156\145\164\x2f\155\x61\x6e\165\141\154\57\x65\x6e\x2f\143\165\162\154\56\x69\x6e\163\164\141\x6c\154\x61\x74\151\157\156\x2e\x70\150\x70\x22\40\x74\141\162\x67\x65\164\75\x22\137\x62\154\141\156\x6b\x22\x3e\x50\110\x50\40\143\x55\x52\114\x20\x65\x78\x74\145\156\x73\151\x6f\x6e\x3c\x2f\141\76\x20\151\163\40\156\157\x74\40\x69\x6e\163\x74\141\x6c\154\x65\144\x20\x6f\162\x20\144\151\x73\x61\142\154\145\x64\56\40\122\145\x73\145\x6e\144\40\117\124\120\x20\x66\141\x69\x6c\145\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        rf:
        $Dv = get_site_option("\x6d\157\x5f\163\141\x6d\154\x5f\141\x64\155\151\156\137\145\x6d\x61\x69\154");
        $FR = new Customersaml();
        $IZ = json_decode($FR->mo_saml_forgot_password($Dv), true);
        if (strcasecmp($IZ["\x73\x74\x61\x74\x75\x73"], "\x53\125\103\x43\105\123\x53") == 0) {
            goto eJ;
        }
        update_site_option("\155\x6f\137\x73\x61\155\154\x5f\x6d\x65\x73\x73\x61\x67\x65", "\x41\156\40\x65\162\x72\157\x72\x20\157\143\143\165\162\145\x64\x20\167\x68\x69\x6c\x65\40\x70\x72\x6f\x63\x65\163\163\151\x6e\x67\40\x79\157\x75\162\x20\162\145\161\165\145\163\x74\x2e\x20\x50\x6c\145\x61\x73\x65\40\x54\162\171\40\x61\x67\141\x69\x6e\x2e");
        $this->mo_saml_show_error_message();
        goto X5;
        eJ:
        update_site_option("\x6d\157\137\163\141\155\154\x5f\x6d\145\x73\163\x61\147\x65", "\131\157\165\x72\x20\160\x61\x73\163\x77\157\162\144\40\x68\141\163\x20\142\x65\x65\156\x20\162\x65\x73\145\x74\x20\x73\165\143\143\145\163\x73\x66\165\x6c\154\x79\56\40\x50\154\145\141\x73\x65\40\145\156\164\x65\x72\40\x74\x68\x65\40\156\x65\x77\40\160\x61\163\163\167\157\x72\144\x20\163\145\156\164\x20\x74\x6f\x20" . $Dv . "\56");
        $this->mo_saml_show_success_message();
        X5:
        iB:
        goto Xu;
        Of:
        if (array_key_exists("\x6d\x6f\137\x73\x61\x6d\x6c\137\x61\x6c\x6c\157\167\x5f\167\160\137\x73\x69\147\x6e\x69\x6e", $_POST)) {
            goto z2;
        }
        $Zq = "\x66\141\x6c\163\145";
        goto FG;
        z2:
        $Zq = $_POST["\x6d\157\137\163\x61\155\154\x5f\141\154\x6c\x6f\x77\137\167\160\x5f\x73\x69\x67\x6e\151\x6e"];
        FG:
        if ($Zq == "\164\162\x75\x65") {
            goto eE;
        }
        update_site_option("\155\x6f\x5f\163\141\155\154\x5f\x61\x6c\154\157\x77\x5f\x77\160\137\x73\x69\x67\156\x69\x6e", '');
        goto g8;
        eE:
        update_site_option("\x6d\157\137\x73\141\155\x6c\x5f\141\154\154\157\167\x5f\167\160\137\163\x69\x67\x6e\151\x6e", "\164\162\165\145");
        g8:
        update_site_option("\155\x6f\x5f\163\x61\x6d\154\x5f\155\x65\x73\163\141\x67\145", "\123\151\x67\156\40\x49\x6e\40\163\x65\164\x74\151\x6e\147\x73\x20\165\x70\x64\x61\x74\x65\144\x2e");
        $this->mo_saml_show_success_message();
        Xu:
        goto xa;
        SS:
        if (array_key_exists("\155\x6f\137\x73\141\x6d\x6c\137\x65\x6e\141\142\154\145\x5f\143\154\157\165\x64\137\142\162\157\153\x65\162", $_POST)) {
            goto b0;
        }
        $pi = "\x66\x61\154\163\145";
        goto r1;
        b0:
        $pi = $_POST["\155\x6f\137\x73\141\155\154\137\145\x6e\x61\x62\154\x65\137\x63\154\x6f\165\x64\x5f\142\162\x6f\153\x65\x72"];
        r1:
        if ($pi == "\164\x72\165\145") {
            goto yq;
        }
        update_site_option("\155\157\137\x73\x61\x6d\x6c\x5f\x65\x6e\x61\x62\x6c\145\137\143\x6c\x6f\x75\x64\x5f\x62\162\x6f\x6b\145\x72", "\x66\141\154\163\145");
        goto aC;
        yq:
        update_site_option("\155\157\x5f\163\141\x6d\154\137\145\x6e\x61\x62\x6c\x65\137\x63\x6c\157\x75\144\x5f\142\x72\157\x6b\x65\162", "\x74\x72\165\x65");
        aC:
        update_site_option("\155\157\137\163\141\155\154\x5f\155\145\x73\163\141\147\145", "\x53\151\x67\156\x20\x69\x6e\x20\157\160\x74\x69\157\156\163\x20\165\160\144\x61\x74\x65\144\x2e");
        $this->mo_saml_show_success_message();
        xa:
        goto oS;
        u0:
        if (mo_saml_is_sp_configured()) {
            goto RL;
        }
        update_site_option("\155\x6f\137\163\x61\x6d\154\x5f\x6d\x65\163\163\141\147\x65", "\x50\x6c\145\141\163\x65\40\x63\x6f\155\160\154\x65\x74\145\40\x3c\x61\x20\x68\x72\x65\146\75\42" . add_query_arg(array("\x74\x61\x62" => "\163\141\x76\145"), $_SERVER["\x52\105\x51\125\x45\123\124\x5f\x55\x52\111"]) . "\42\40\x2f\76\x53\145\x72\166\x69\x63\145\40\120\162\157\x76\151\x64\x65\x72\74\x2f\141\76\40\143\x6f\x6e\x66\x69\x67\165\x72\141\x74\151\x6f\x6e\x20\146\151\x72\163\x74\56");
        $this->mo_saml_show_error_message();
        goto Lg;
        RL:
        if (array_key_exists("\x6d\157\137\163\x61\155\x6c\x5f\145\x6e\x61\142\x6c\x65\x5f\154\157\147\151\x6e\137\162\145\144\151\x72\145\x63\164", $_POST)) {
            goto Yu;
        }
        $pi = "\x66\x61\154\x73\x65";
        goto zM;
        Yu:
        $pi = $_POST["\155\157\137\163\x61\x6d\154\x5f\145\156\x61\142\154\x65\137\154\157\147\151\156\x5f\162\145\144\151\x72\x65\x63\x74"];
        zM:
        if ($pi == "\x74\162\165\145") {
            goto nn;
        }
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\145\x6e\141\x62\x6c\145\x5f\154\x6f\x67\x69\x6e\x5f\162\145\x64\151\x72\x65\143\x74", '');
        update_site_option("\155\157\x5f\163\x61\155\x6c\137\x61\x6c\x6c\157\167\x5f\x77\160\137\163\151\x67\x6e\x69\x6e", '');
        goto oR1;
        nn:
        update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\137\145\156\x61\142\x6c\x65\x5f\154\x6f\147\151\x6e\x5f\x72\145\144\x69\162\145\x63\x74", "\x74\x72\165\145");
        update_site_option("\155\157\x5f\163\141\x6d\x6c\137\x61\x6c\154\x6f\167\x5f\x77\x70\137\x73\151\x67\156\151\156", "\x74\x72\x75\x65");
        oR1:
        update_site_option("\155\x6f\137\163\141\155\154\x5f\155\x65\x73\163\x61\x67\x65", "\x53\151\x67\156\x20\x69\x6e\40\x6f\160\164\x69\x6f\156\x73\40\x75\160\x64\x61\164\x65\144\56");
        $this->mo_saml_show_success_message();
        Lg:
        oS:
        goto ZW;
        oe:
        if (mo_saml_is_sp_configured()) {
            goto wB;
        }
        update_site_option("\x6d\157\137\x73\x61\155\x6c\137\155\x65\163\x73\141\147\x65", "\x50\x6c\x65\x61\x73\x65\40\x63\157\155\x70\154\x65\164\x65\40\x3c\141\x20\150\x72\x65\x66\x3d\x22" . add_query_arg(array("\x74\x61\x62" => "\x73\x61\x76\x65"), $_SERVER["\x52\105\121\125\105\x53\x54\x5f\125\x52\111"]) . "\x22\40\x2f\x3e\123\x65\162\166\x69\x63\x65\40\x50\x72\x6f\x76\x69\144\145\x72\x3c\57\141\76\40\143\x6f\156\146\151\x67\165\162\141\x74\x69\157\156\40\146\x69\162\x73\x74\56");
        $this->mo_saml_show_error_message();
        goto bw;
        wB:
        if (array_key_exists("\155\x6f\137\163\141\x6d\154\137\x66\x6f\162\x63\x65\137\141\x75\x74\150\x65\x6e\164\151\x63\x61\164\151\x6f\156", $_POST)) {
            goto EV;
        }
        $pi = "\x66\x61\x6c\163\145";
        goto VH;
        EV:
        $pi = $_POST["\155\x6f\x5f\x73\141\x6d\x6c\137\x66\157\x72\x63\x65\x5f\141\165\164\x68\x65\156\x74\151\143\x61\164\x69\x6f\156"];
        VH:
        if ($pi == "\164\x72\x75\145") {
            goto cY;
        }
        update_site_option("\x6d\157\137\x73\141\155\x6c\x5f\146\157\x72\143\145\137\141\x75\164\x68\145\156\164\x69\143\x61\164\x69\x6f\156", '');
        goto i_;
        cY:
        update_site_option("\x6d\x6f\137\163\x61\x6d\154\x5f\146\x6f\x72\x63\x65\x5f\x61\165\x74\150\145\156\164\x69\x63\x61\x74\x69\x6f\156", "\x74\x72\x75\145");
        i_:
        update_site_option("\155\157\137\163\x61\x6d\x6c\x5f\155\145\x73\x73\x61\x67\x65", "\123\151\x67\156\x20\151\156\40\x6f\160\x74\x69\157\156\163\40\165\160\x64\141\164\x65\144\x2e");
        $this->mo_saml_show_success_message();
        bw:
        ZW:
        goto Zb;
        yS:
        if (mo_saml_is_sp_configured()) {
            goto ef;
        }
        update_site_option("\155\157\137\x73\141\155\x6c\x5f\155\145\163\163\x61\147\145", "\x50\x6c\145\x61\163\x65\x20\x63\157\155\160\154\145\164\x65\40\x3c\x61\x20\150\162\x65\146\75\42" . add_query_arg(array("\x74\141\142" => "\x73\x61\x76\x65"), $_SERVER["\122\x45\121\x55\105\x53\124\137\x55\x52\x49"]) . "\x22\x20\x2f\76\123\145\x72\x76\151\143\x65\40\x50\162\157\x76\151\144\145\x72\x3c\57\141\76\x20\143\x6f\156\x66\151\147\165\x72\x61\x74\151\x6f\x6e\40\146\151\162\x73\164\56");
        $this->mo_saml_show_error_message();
        goto St;
        ef:
        if (array_key_exists("\x6d\157\x5f\x73\x61\155\154\137\x72\x65\x67\151\x73\x74\x65\162\145\x64\137\157\156\154\171\137\x61\143\x63\x65\163\163", $_POST)) {
            goto PW;
        }
        $pi = "\x66\x61\154\x73\x65";
        goto ke;
        PW:
        $pi = $_POST["\x6d\157\x5f\x73\x61\155\154\137\x72\x65\147\x69\163\164\x65\162\145\x64\x5f\x6f\156\154\171\x5f\x61\x63\x63\145\163\163"];
        ke:
        if ($pi == "\x74\162\165\145") {
            goto cT;
        }
        update_site_option("\155\x6f\137\163\x61\155\x6c\x5f\x72\145\x67\151\x73\x74\x65\x72\x65\x64\x5f\157\156\x6c\171\x5f\141\143\x63\145\x73\163", '');
        goto Pz;
        cT:
        update_site_option("\155\157\x5f\163\141\155\x6c\x5f\x72\x65\147\151\x73\164\x65\162\x65\144\137\x6f\156\154\171\137\x61\143\143\145\x73\163", "\164\162\165\145");
        Pz:
        update_site_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x6d\x65\x73\163\141\x67\145", "\x53\151\147\x6e\40\151\156\x20\157\x70\164\151\157\x6e\163\40\x75\160\144\x61\x74\x65\144\56");
        $this->mo_saml_show_success_message();
        St:
        Zb:
        goto V0;
        w2:
        if (mo_saml_is_curl_installed()) {
            goto wD;
        }
        update_site_option("\155\157\137\x73\141\155\x6c\x5f\155\145\x73\x73\x61\147\x65", "\x45\122\122\117\122\72\40\x3c\141\x20\x68\x72\x65\x66\x3d\x22\150\x74\x74\x70\x3a\x2f\57\160\x68\x70\56\x6e\145\164\57\155\x61\156\165\141\154\57\x65\x6e\x2f\x63\165\162\x6c\56\151\156\x73\x74\141\154\x6c\141\x74\151\157\x6e\x2e\160\150\x70\x22\40\x74\x61\162\x67\x65\164\75\42\137\142\x6c\x61\x6e\153\x22\76\120\110\120\x20\143\x55\x52\114\40\145\x78\x74\145\156\163\151\157\156\74\57\141\x3e\x20\x69\163\40\156\x6f\x74\40\x69\x6e\x73\164\x61\154\154\x65\144\x20\x6f\162\40\144\x69\163\x61\x62\154\145\x64\56\40\x52\x65\x73\145\156\144\40\x4f\124\120\x20\x66\141\151\154\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        wD:
        $EH = sanitize_text_field($_POST["\160\150\157\156\x65"]);
        $EH = str_replace("\40", '', $EH);
        $EH = str_replace("\x2d", '', $EH);
        update_site_option("\155\x6f\137\163\x61\x6d\154\x5f\x61\x64\x6d\x69\156\x5f\160\150\157\x6e\145", $EH);
        $FR = new CustomerSaml();
        $IZ = json_decode($FR->send_otp_token('', $EH, FALSE, TRUE), true);
        if (strcasecmp($IZ["\x73\164\141\x74\165\x73"], "\x53\x55\x43\103\105\123\123") == 0) {
            goto aJ;
        }
        update_site_option("\x6d\157\x5f\x73\141\x6d\154\x5f\155\145\163\163\141\x67\145", "\x54\150\x65\x72\x65\x20\x77\x61\163\40\x61\x6e\x20\145\x72\x72\x6f\162\x20\x69\156\x20\163\145\x6e\144\x69\156\147\40\x53\x4d\123\x2e\x20\x50\x6c\x65\141\x73\x65\x20\x63\x6c\151\x63\153\x20\x6f\156\x20\x52\x65\x73\145\156\x64\40\x4f\x54\120\x20\x74\x6f\x20\164\x72\x79\x20\x61\x67\x61\151\x6e\x2e");
        update_site_option("\155\157\x5f\x73\141\155\x6c\x5f\162\145\147\x69\163\164\x72\141\164\x69\x6f\x6e\x5f\x73\164\141\164\x75\x73", "\x4d\x4f\137\x4f\124\x50\x5f\104\x45\114\x49\126\105\x52\x45\104\x5f\x46\101\111\x4c\125\x52\105\x5f\x50\110\117\x4e\x45");
        $this->mo_saml_show_error_message();
        goto X4;
        aJ:
        update_site_option("\x6d\157\137\163\141\155\x6c\x5f\155\x65\x73\163\141\147\x65", "\x20\x41\40\157\x6e\145\40\164\151\155\145\x20\160\x61\x73\163\143\x6f\x64\145\40\151\x73\x20\x73\x65\x6e\x74\40\164\x6f\x20" . get_site_option("\155\x6f\137\x73\x61\155\154\137\x61\144\155\151\156\137\160\x68\x6f\x6e\145") . "\x2e\40\x50\x6c\145\x61\163\x65\40\x65\156\x74\x65\x72\x20\x74\x68\145\40\x6f\x74\160\40\x68\145\162\x65\40\x74\x6f\x20\x76\145\162\151\x66\x79\x20\x79\x6f\165\162\x20\145\x6d\141\151\154\x2e");
        update_site_option("\155\157\137\163\141\155\x6c\x5f\164\x72\x61\x6e\x73\141\x63\164\x69\x6f\x6e\x49\144", $IZ["\164\170\111\x64"]);
        update_site_option("\x6d\157\x5f\x73\141\x6d\154\137\162\145\147\x69\x73\x74\x72\x61\x74\x69\x6f\x6e\x5f\x73\164\141\x74\165\163", "\115\117\x5f\117\x54\x50\137\104\105\x4c\x49\126\105\x52\x45\x44\137\123\125\103\103\105\x53\123\137\x50\x48\117\116\105");
        $this->mo_saml_show_success_message();
        X4:
        V0:
        goto M7;
        j1:
        update_site_option("\155\x6f\137\x73\141\155\x6c\137\x72\x65\x67\x69\x73\164\162\141\x74\x69\x6f\x6e\x5f\x73\x74\x61\x74\x75\x73", '');
        update_site_option("\155\x6f\137\x73\141\155\154\x5f\166\145\162\151\x66\x79\x5f\143\165\x73\164\157\x6d\x65\162", '');
        delete_site_option("\x6d\157\137\163\x61\x6d\154\x5f\156\145\x77\x5f\x72\x65\x67\x69\163\x74\162\x61\164\151\157\156");
        delete_site_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x61\x64\x6d\151\x6e\137\145\155\141\x69\154");
        delete_site_option("\x6d\x6f\137\x73\141\x6d\x6c\x5f\x61\144\x6d\151\x6e\137\160\150\x6f\156\145");
        delete_site_option("\163\x6d\154\137\x6c\x6b");
        delete_site_option("\164\x5f\163\151\164\x65\137\x73\164\x61\164\x75\163");
        delete_site_option("\x73\x69\164\x65\137\x63\153\x5f\x6c");
        delete_site_option("\x6e\157\x5f\163\142\163");
        delete_site_option("\x75\163\145\162\137\141\x6c\x65\x72\164\x5f\145\155\x61\151\154\137\x73\145\x6e\x74");
        delete_site_option("\x6c\151\x63\145\156\163\145\x5f\x61\154\145\162\x74\x5f\x65\155\x61\x69\x6c\137\163\145\x6e\164");
        delete_site_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\x61\154\x65\162\164\x5f\163\x65\x6e\164\x5f\146\x6f\162\x5f\157\x6e\145");
        delete_site_option("\x6d\x6f\137\x73\141\x6d\154\137\x61\x6c\145\x72\164\137\x73\145\x6e\164\x5f\146\x6f\x72\x5f\164\167\x6f");
        delete_site_option("\x6d\x6f\137\x73\x61\155\x6c\137\x75\163\x72\x5f\154\x6d\164");
        M7:
        goto lh;
        A1:
        if (mo_saml_is_curl_installed()) {
            goto ZZ;
        }
        update_site_option("\155\157\x5f\163\x61\155\x6c\137\x6d\145\x73\163\141\147\145", "\x45\x52\x52\x4f\122\72\x20\74\x61\40\x68\162\x65\146\x3d\42\150\x74\x74\160\x3a\x2f\x2f\x70\x68\x70\x2e\x6e\x65\164\x2f\155\x61\x6e\x75\x61\x6c\x2f\x65\x6e\57\143\x75\x72\154\56\151\156\x73\164\141\x6c\154\x61\164\151\157\156\x2e\x70\150\x70\x22\x20\164\x61\162\x67\x65\x74\x3d\42\137\x62\x6c\x61\156\153\42\x3e\x50\110\120\40\x63\125\122\x4c\x20\x65\170\x74\145\x6e\x73\x69\157\x6e\74\x2f\141\76\x20\151\163\40\x6e\157\x74\40\x69\x6e\163\164\141\x6c\154\145\144\x20\x6f\162\x20\x64\151\163\141\x62\x6c\x65\144\56\x20\122\145\163\145\156\144\x20\117\124\120\x20\x66\x61\x69\x6c\145\144\56");
        $this->mo_saml_show_error_message();
        return;
        ZZ:
        $EH = get_site_option("\155\x6f\x5f\163\x61\155\x6c\137\141\x64\x6d\x69\x6e\x5f\160\x68\157\x6e\145");
        $FR = new CustomerSaml();
        $IZ = json_decode($FR->send_otp_token('', $EH, FALSE, TRUE), true);
        if (strcasecmp($IZ["\x73\x74\141\x74\x75\x73"], "\123\125\x43\x43\105\x53\123") == 0) {
            goto It;
        }
        update_site_option("\155\x6f\x5f\163\141\155\x6c\137\155\x65\x73\163\x61\147\x65", "\124\x68\x65\x72\x65\x20\167\x61\x73\40\141\156\40\x65\162\162\157\162\x20\x69\156\40\x73\x65\x6e\x64\x69\x6e\x67\40\x65\x6d\x61\x69\154\x2e\x20\120\x6c\x65\x61\163\145\40\143\154\x69\x63\153\x20\157\x6e\40\122\145\163\145\156\144\x20\x4f\x54\120\40\x74\x6f\40\164\x72\x79\x20\x61\x67\x61\x69\x6e\56");
        update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\137\x72\145\x67\151\x73\x74\162\141\x74\151\x6f\x6e\x5f\x73\164\141\164\x75\x73", "\x4d\x4f\137\117\124\x50\x5f\104\x45\x4c\x49\126\x45\122\x45\104\137\106\101\x49\x4c\x55\x52\x45\x5f\x50\110\x4f\x4e\105");
        $this->mo_saml_show_error_message();
        goto bP;
        It:
        update_site_option("\x6d\x6f\137\163\141\155\x6c\x5f\x6d\145\163\x73\x61\147\x65", "\x20\x41\40\157\x6e\145\x20\164\151\155\x65\40\x70\141\x73\x73\x63\157\x64\145\40\151\163\x20\x73\145\156\164\40\x74\157\x20" . $EH . "\x20\141\x67\x61\151\x6e\56\x20\120\x6c\x65\x61\163\145\40\143\150\145\143\153\x20\151\146\40\171\x6f\x75\40\x67\157\x74\x20\x74\x68\145\40\157\164\x70\x20\141\x6e\x64\40\145\x6e\164\145\162\40\x69\164\x20\150\x65\162\x65\x2e");
        update_site_option("\x6d\x6f\137\x73\141\x6d\154\x5f\x74\x72\141\156\x73\141\143\164\x69\x6f\156\x49\x64", $IZ["\164\x78\x49\144"]);
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\x72\x65\147\151\163\164\x72\141\x74\151\157\x6e\137\x73\164\x61\164\x75\x73", "\115\x4f\137\x4f\124\120\x5f\x44\x45\114\111\126\105\122\105\104\137\x53\125\x43\103\x45\x53\123\137\x50\x48\x4f\116\105");
        $this->mo_saml_show_success_message();
        bP:
        lh:
        goto MD;
        hH:
        if (mo_saml_is_curl_installed()) {
            goto sz;
        }
        update_site_option("\155\157\x5f\x73\141\x6d\154\137\155\145\x73\x73\141\147\x65", "\105\x52\122\117\x52\72\40\x3c\141\x20\150\x72\x65\146\75\42\x68\x74\164\x70\72\57\57\160\150\x70\x2e\156\x65\164\57\x6d\141\156\x75\x61\154\57\145\156\x2f\143\x75\162\154\x2e\x69\x6e\163\x74\x61\154\x6c\141\164\151\x6f\156\56\x70\x68\160\x22\40\164\141\x72\147\x65\164\75\42\x5f\x62\x6c\141\x6e\153\42\76\x50\110\x50\40\x63\x55\122\114\x20\x65\170\x74\145\156\163\x69\157\x6e\x3c\57\141\76\x20\151\163\40\156\x6f\x74\40\x69\156\x73\x74\141\x6c\x6c\145\x64\40\x6f\x72\40\x64\x69\163\141\x62\x6c\145\144\x2e\40\122\145\x73\x65\x6e\144\x20\x4f\x54\120\x20\x66\x61\x69\x6c\x65\144\x2e");
        $this->mo_saml_show_error_message();
        return;
        sz:
        $Dv = get_site_option("\155\157\x5f\163\x61\155\154\137\x61\x64\155\x69\156\x5f\x65\x6d\141\x69\x6c");
        $FR = new CustomerSaml();
        $IZ = json_decode($FR->send_otp_token($Dv, ''), true);
        if (strcasecmp($IZ["\x73\x74\x61\x74\165\163"], "\x53\x55\x43\103\x45\123\123") == 0) {
            goto Ap;
        }
        update_site_option("\155\x6f\x5f\x73\141\155\154\x5f\x6d\145\x73\163\x61\147\x65", "\124\150\x65\162\x65\40\167\x61\x73\x20\x61\156\x20\145\162\162\x6f\x72\x20\151\156\40\163\145\x6e\x64\151\x6e\x67\40\x65\x6d\141\151\x6c\x2e\x20\x50\x6c\145\141\163\145\x20\x63\154\x69\x63\153\x20\157\156\x20\x52\x65\163\145\156\x64\40\117\124\120\40\x74\x6f\40\164\162\x79\40\141\147\x61\151\x6e\x2e");
        update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\137\162\145\x67\151\x73\164\162\141\x74\151\x6f\156\137\x73\164\141\164\x75\x73", "\115\117\x5f\117\124\x50\137\104\x45\114\x49\126\x45\122\105\104\x5f\x46\x41\111\114\125\x52\105\x5f\105\115\x41\111\114");
        $this->mo_saml_show_error_message();
        goto NA;
        Ap:
        update_site_option("\x6d\x6f\137\163\141\x6d\x6c\137\x6d\145\163\x73\x61\x67\145", "\40\x41\40\157\156\145\40\x74\x69\155\145\40\x70\x61\x73\x73\x63\x6f\x64\x65\x20\151\x73\40\x73\x65\156\164\x20\164\157\x20" . get_site_option("\155\x6f\x5f\163\x61\155\x6c\x5f\x61\144\x6d\151\x6e\x5f\x65\155\x61\x69\x6c") . "\40\x61\147\x61\x69\x6e\56\40\120\154\x65\141\x73\145\x20\x63\x68\x65\143\x6b\40\151\146\x20\x79\157\165\x20\x67\x6f\164\x20\164\x68\x65\40\157\x74\x70\40\141\x6e\x64\40\x65\x6e\x74\x65\x72\x20\x69\x74\40\150\145\162\145\56");
        update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\x5f\164\x72\141\156\163\x61\x63\164\x69\157\156\111\144", $IZ["\164\170\111\x64"]);
        update_site_option("\155\157\x5f\x73\141\155\154\x5f\x72\145\x67\x69\163\164\x72\141\164\151\157\156\x5f\x73\164\x61\164\165\x73", "\x4d\x4f\x5f\117\124\x50\137\104\105\x4c\111\126\105\x52\105\104\x5f\123\125\x43\x43\105\x53\123\137\x45\115\101\x49\x4c");
        $this->mo_saml_show_success_message();
        NA:
        MD:
        goto Us;
        E9:
        if (mo_saml_is_curl_installed()) {
            goto x1;
        }
        update_site_option("\155\157\x5f\163\141\155\x6c\x5f\155\145\163\163\141\x67\x65", "\x45\122\x52\x4f\122\x3a\40\74\x61\x20\150\x72\x65\x66\75\x22\x68\x74\x74\x70\72\x2f\57\x70\150\160\x2e\156\145\164\57\x6d\x61\156\x75\141\x6c\x2f\x65\x6e\x2f\143\165\x72\x6c\x2e\x69\156\x73\x74\141\154\154\x61\164\151\x6f\156\56\160\150\x70\x22\x20\x74\x61\162\x67\x65\164\x3d\42\137\142\154\141\156\x6b\42\76\120\x48\120\40\x63\x55\122\x4c\40\145\x78\x74\x65\156\x73\x69\x6f\156\x3c\57\x61\76\40\151\163\x20\156\157\164\x20\x69\x6e\163\164\141\154\154\145\144\x20\x6f\162\40\144\x69\163\x61\142\x6c\145\144\56\x20\121\x75\x65\162\x79\x20\x73\x75\x62\x6d\x69\x74\40\x66\x61\151\154\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        x1:
        $Dv = $_POST["\155\157\x5f\163\141\155\x6c\137\x63\157\x6e\x74\141\x63\x74\x5f\165\163\137\x65\155\141\151\x6c"];
        $EH = $_POST["\x6d\x6f\137\163\x61\155\154\x5f\143\157\156\x74\141\143\x74\x5f\x75\163\x5f\x70\x68\x6f\156\145"];
        $JA = $_POST["\155\157\x5f\163\141\x6d\x6c\x5f\x63\157\156\164\x61\x63\x74\x5f\x75\163\137\x71\x75\x65\162\171"];
        $FR = new CustomerSaml();
        if ($this->mo_saml_check_empty_or_null($Dv) || $this->mo_saml_check_empty_or_null($JA)) {
            goto Lx;
        }
        $WQ = $FR->submit_contact_us($Dv, $EH, $JA);
        if ($WQ == false) {
            goto IS;
        }
        update_site_option("\x6d\x6f\137\163\141\155\x6c\x5f\x6d\x65\x73\163\x61\x67\145", "\x54\x68\x61\x6e\x6b\x73\x20\146\x6f\x72\40\147\145\x74\164\x69\x6e\x67\40\151\156\x20\164\x6f\165\x63\150\x21\x20\127\145\x20\163\x68\x61\154\154\x20\147\x65\164\40\142\141\x63\153\40\164\157\40\171\x6f\165\x20\163\x68\x6f\162\164\154\171\56");
        $this->mo_saml_show_success_message();
        goto xP;
        IS:
        update_site_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x6d\145\x73\163\141\147\145", "\131\157\x75\162\x20\161\x75\x65\162\171\40\143\157\x75\x6c\144\x20\156\x6f\164\40\x62\145\40\x73\165\x62\x6d\151\164\x74\x65\x64\56\x20\120\x6c\x65\x61\163\x65\x20\x74\162\x79\40\141\x67\x61\151\156\x2e");
        $this->mo_saml_show_error_message();
        xP:
        goto Rt;
        Lx:
        update_site_option("\155\157\x5f\x73\x61\x6d\154\x5f\x6d\x65\x73\x73\x61\147\x65", "\120\154\x65\x61\x73\x65\40\x66\151\x6c\x6c\x20\165\x70\x20\105\x6d\x61\151\154\x20\x61\156\x64\40\x51\165\x65\162\171\x20\x66\151\145\x6c\x64\163\x20\x74\157\x20\163\165\142\155\151\x74\x20\x79\x6f\165\x72\40\x71\x75\145\x72\x79\x2e");
        $this->mo_saml_show_error_message();
        Rt:
        Us:
        goto kF;
        wA:
        if (mo_saml_is_curl_installed()) {
            goto Ta;
        }
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\155\145\163\x73\141\147\145", "\105\x52\x52\117\x52\72\40\74\x61\40\150\162\x65\x66\x3d\42\150\x74\x74\160\x3a\x2f\57\x70\x68\160\x2e\x6e\x65\x74\57\x6d\x61\x6e\x75\x61\154\57\x65\x6e\57\143\x75\162\x6c\56\x69\x6e\x73\164\141\154\x6c\141\164\x69\x6f\156\56\160\x68\x70\42\40\x74\141\162\147\145\164\x3d\42\x5f\x62\x6c\141\x6e\x6b\x22\76\x50\x48\120\40\x63\125\122\114\x20\145\170\164\x65\x6e\x73\151\x6f\x6e\74\57\x61\76\40\151\x73\40\x6e\x6f\164\x20\x69\x6e\163\x74\x61\x6c\154\145\144\40\x6f\x72\40\x64\151\x73\x61\x62\x6c\145\x64\x2e\40\x4c\157\x67\151\x6e\x20\146\141\x69\154\145\144\x2e");
        $this->mo_saml_show_error_message();
        return;
        Ta:
        $Dv = '';
        $i_ = '';
        if ($this->mo_saml_check_empty_or_null($_POST["\145\x6d\141\x69\154"]) || $this->mo_saml_check_empty_or_null($_POST["\x70\x61\163\163\x77\x6f\x72\144"])) {
            goto ks;
        }
        $Dv = sanitize_email($_POST["\x65\x6d\x61\x69\154"]);
        $i_ = sanitize_text_field($_POST["\x70\x61\x73\163\x77\x6f\162\x64"]);
        goto mZ;
        ks:
        update_site_option("\x6d\157\x5f\x73\x61\x6d\154\137\x6d\145\x73\163\x61\147\x65", "\x41\154\x6c\x20\x74\150\x65\x20\x66\151\145\x6c\x64\x73\x20\x61\162\x65\40\162\x65\x71\165\151\x72\x65\144\x2e\x20\x50\x6c\x65\x61\163\145\x20\x65\156\x74\x65\x72\x20\x76\141\x6c\151\144\x20\145\156\x74\x72\151\145\x73\56");
        $this->mo_saml_show_error_message();
        return;
        mZ:
        update_site_option("\x6d\157\137\x73\x61\x6d\x6c\137\x61\144\155\x69\x6e\x5f\145\155\x61\x69\154", $Dv);
        update_site_option("\155\157\137\x73\x61\155\x6c\137\141\144\x6d\x69\x6e\137\x70\x61\163\x73\x77\157\x72\144", $i_);
        $FR = new Customersaml();
        $IZ = $FR->get_customer_key();
        $Pk = json_decode($IZ, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto Ui;
        }
        update_site_option("\x6d\157\x5f\x73\141\x6d\154\x5f\x6d\145\x73\x73\x61\147\x65", "\111\156\166\141\x6c\x69\144\40\x75\163\x65\x72\x6e\x61\x6d\145\x20\157\x72\40\160\141\x73\163\167\157\x72\x64\x2e\40\120\x6c\145\141\163\145\x20\164\x72\x79\x20\141\x67\141\x69\x6e\56");
        $this->mo_saml_show_error_message();
        goto IX;
        Ui:
        update_site_option("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\141\144\x6d\x69\x6e\137\x63\x75\163\x74\x6f\155\145\x72\x5f\153\145\x79", $Pk["\x69\x64"]);
        update_site_option("\x6d\157\137\163\x61\155\154\137\x61\144\x6d\x69\x6e\137\x61\x70\151\137\x6b\x65\x79", $Pk["\141\160\151\x4b\145\171"]);
        update_site_option("\155\x6f\x5f\x73\141\x6d\x6c\137\143\x75\163\164\x6f\x6d\x65\162\x5f\164\157\153\x65\156", $Pk["\x74\x6f\153\145\x6e"]);
        update_site_option("\x6d\157\137\x73\141\x6d\154\137\141\x64\x6d\151\x6e\x5f\160\x68\x6f\156\x65", $Pk["\160\x68\157\156\x65"]);
        update_site_option("\155\157\x5f\x73\141\155\154\x5f\141\144\x6d\x69\156\137\160\x61\x73\x73\x77\157\162\x64", '');
        update_site_option("\155\157\x5f\x73\x61\155\x6c\137\x6d\145\163\x73\x61\x67\145", "\103\165\x73\164\157\x6d\145\x72\x20\x72\145\164\x72\151\x65\x76\x65\x64\x20\163\x75\143\143\x65\163\x73\x66\x75\154\154\x79");
        update_site_option("\x6d\157\137\163\x61\155\x6c\x5f\x72\145\147\x69\x73\x74\x72\x61\164\151\157\x6e\137\x73\164\x61\x74\165\163", "\105\x78\x69\x73\164\x69\x6e\x67\x20\x55\x73\x65\162");
        delete_site_option("\x6d\x6f\137\x73\141\155\x6c\137\x76\145\x72\x69\146\171\x5f\x63\x75\x73\164\157\155\x65\x72");
        if (get_site_option("\163\155\x6c\137\x6c\x6b")) {
            goto xr;
        }
        $this->mo_saml_show_success_message();
        goto Sf;
        xr:
        $OE = get_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\143\x75\163\164\157\x6d\145\x72\x5f\x74\x6f\153\x65\156");
        $f1 = AESEncryption::decrypt_data(get_site_option("\x73\x6d\154\x5f\154\153"), $OE);
        $Pp = add_query_arg(array("\x74\141\x62" => "\x6c\151\143\x65\x6e\163\x69\x6e\147"), $_SERVER["\x52\x45\121\125\x45\x53\124\137\125\x52\111"]);
        $IZ = json_decode($FR->mo_saml_verify_license($f1), true);
        if (strcasecmp($IZ["\x73\x74\x61\x74\x75\163"], "\123\x55\x43\103\105\x53\x53") == 0) {
            goto Z6;
        }
        update_site_option("\x6d\157\137\163\x61\x6d\x6c\x5f\x6d\145\163\x73\x61\x67\145", "\x4c\x69\x63\145\x6e\163\145\40\x6b\x65\x79\40\x66\157\x72\40\164\150\x69\163\40\x69\x6e\163\x74\141\156\x63\145\x20\151\163\40\151\156\143\x6f\162\162\x65\x63\164\56\x20\115\141\x6b\x65\40\163\165\162\145\x20\x79\157\x75\40\x68\x61\x76\x65\40\156\157\164\40\x74\141\x6d\x70\x65\x72\x65\144\40\167\x69\164\x68\40\151\164\40\x61\164\40\x61\x6c\154\56\40\x50\x6c\x65\141\x73\145\x20\145\x6e\164\145\x72\x20\141\x20\166\x61\x6c\x69\144\x20\x6c\x69\143\145\156\163\x65\40\x6b\x65\x79\56");
        delete_site_option("\x73\155\154\x5f\x6c\153");
        $this->mo_saml_show_error_message();
        goto g4;
        Z6:
        $this->mo_saml_show_success_message();
        g4:
        Sf:
        IX:
        update_site_option("\x6d\157\x5f\163\141\155\x6c\137\141\x64\155\x69\156\137\160\141\x73\x73\167\x6f\162\x64", '');
        kF:
        if (!get_site_option("\156\157\137\163\142\x73")) {
            goto WK;
        }
        $OE = get_site_option("\x6d\x6f\x5f\163\141\x6d\x6c\137\x63\x75\x73\x74\157\155\x65\x72\137\164\x6f\x6b\145\156");
        $y3 = AESEncryption::decrypt_data(get_site_option("\x6e\157\x5f\163\x62\x73"), $OE);
        if (function_exists("\x67\x65\x74\x5f\163\x69\x74\x65\163") && class_exists("\127\x50\137\123\x69\x74\x65\x5f\x51\x75\145\162\171")) {
            goto xY;
        }
        $HS = count(wp_get_sites());
        goto TW;
        xY:
        $HS = count(get_sites());
        TW:
        if (!($y3 < $HS)) {
            goto gB;
        }
        if (get_site_option("\154\151\143\145\156\163\x65\x5f\141\x6c\145\162\x74\x5f\x65\x6d\141\151\x6c\x5f\163\x65\x6e\x74")) {
            goto xe;
        }
        $FR = new Customersaml();
        $FR->mo_saml_send_alert_email_for_license($y3);
        xe:
        gB:
        WK:
        if (isset($_POST["\x6f\160\x74\151\157\x6e"]) && $_POST["\157\x70\164\151\x6f\156"] == "\x6d\x6f\137\163\141\155\x6c\x5f\166\x65\x72\151\146\171\x5f\154\151\x63\x65\x6e\x73\x65") {
            goto Z7;
        }
        if (isset($_POST["\157\x70\164\151\157\x6e"]) && $_POST["\157\160\164\x69\157\156"] == "\155\157\x5f\x73\141\x6d\154\x5f\x66\x72\145\145\137\x74\162\x69\x61\x6c") {
            goto So;
        }
        if (!(isset($_POST["\x6f\x70\164\151\157\156"]) && $_POST["\157\x70\164\151\x6f\156"] == "\155\157\137\163\141\155\154\x5f\x63\150\145\143\x6b\137\x6c\x69\x63\145\x6e\163\x65")) {
            goto OP;
        }
        $FR = new Customersaml();
        $IZ = json_decode($FR->check_customer_ln(), true);
        if (strcasecmp($IZ["\x73\x74\x61\x74\165\163"], "\123\125\x43\x43\105\x53\123") == 0) {
            goto W4;
        }
        $OE = get_site_option("\x6d\x6f\x5f\x73\x61\155\x6c\137\143\165\x73\164\157\x6d\145\x72\x5f\x74\157\x6b\x65\x6e");
        $Pp = add_query_arg(array("\164\x61\142" => "\154\151\143\145\156\163\151\x6e\147"), $_SERVER["\x52\x45\x51\x55\105\x53\x54\x5f\x55\122\111"]);
        update_site_option("\x6d\157\x5f\163\x61\155\x6c\x5f\x6d\145\163\x73\141\147\x65", "\x59\157\x75\x20\150\x61\166\145\40\x6e\157\164\x20\165\160\147\162\x61\x64\145\144\x20\171\145\164\56\40\x3c\x61\40\150\162\145\146\75\x22" . $Pp . "\x22\76\x43\154\x69\x63\x6b\x20\150\x65\x72\145\74\57\141\x3e\40\x74\157\40\165\x70\x67\162\x61\144\145\x20\164\x6f\40\x70\162\145\x6d\x69\x75\x6d\40\x76\x65\162\163\151\x6f\x6e\56");
        $this->mo_saml_show_error_message();
        goto sp;
        W4:
        if (!array_key_exists("\151\163\115\165\154\164\151\x53\151\164\x65\x50\154\165\147\x69\x6e\x52\x65\x71\165\145\163\164\x65\x64", $IZ)) {
            goto dd;
        }
        $Q2 = $IZ["\151\x73\x4d\x75\154\x74\x69\123\151\x74\x65\120\154\x75\x67\x69\x6e\x52\x65\x71\x75\x65\163\164\145\x64"];
        dd:
        if (function_exists("\147\x65\164\x5f\163\x69\x74\145\163") && class_exists("\x57\120\x5f\123\151\164\145\x5f\121\x75\145\162\x79")) {
            goto pu;
        }
        $HS = count(wp_get_sites());
        goto kV;
        pu:
        $HS = count(get_sites());
        kV:
        if ($Q2 && array_key_exists("\156\x6f\117\146\123\165\142\123\151\164\x65\x73", $IZ) && $HS <= $IZ["\x6e\x6f\117\146\x53\x75\x62\123\151\x74\x65\163"]) {
            goto d5;
        }
        $OE = get_site_option("\x6d\x6f\137\x73\x61\155\x6c\137\143\165\x73\164\157\155\145\162\x5f\x74\157\153\x65\156");
        update_site_option("\x73\151\164\x65\137\143\x6b\137\x6c", AESEncryption::encrypt_data("\146\x61\154\163\x65", $OE));
        $Pp = add_query_arg(array("\x74\141\142" => "\154\x69\x63\x65\x6e\x73\x69\x6e\x67"), $_SERVER["\122\x45\x51\x55\x45\x53\x54\x5f\125\x52\x49"]);
        update_site_option("\155\x6f\x5f\x73\x61\x6d\154\x5f\155\145\163\x73\x61\x67\145", "\x59\x6f\165\x20\x68\x61\166\145\x20\x6e\x6f\x74\x20\x75\160\x67\162\141\x64\145\x64\40\164\157\40\164\x68\x65\x20\143\157\162\162\145\143\x74\x20\x6c\151\143\x65\x6e\163\145\x20\160\x6c\141\156\56\40\105\x69\x74\150\x65\162\x20\x79\157\165\40\x68\141\x76\x65\40\x70\165\162\x63\150\141\x73\145\x64\x20\x66\x6f\x72\x20\x69\x6e\x63\x6f\162\162\145\x63\164\40\156\157\56\40\x6f\x66\x20\163\151\164\x65\x73\x20\157\162\40\x79\157\165\x20\150\x61\166\x65\40\x6e\x6f\x74\40\x73\x65\x6c\145\x63\164\145\144\40\x6d\x75\x6c\164\151\163\151\x74\x65\40\157\160\x74\x69\157\x6e\40\167\150\x69\x6c\x65\40\160\165\162\x63\150\141\163\x69\x6e\x67\56\x20\74\x61\40\150\162\145\x66\x3d\42\43\42\x20\157\x6e\x63\154\151\x63\x6b\75\42\147\145\164\165\160\147\162\141\144\x65\x6c\151\143\x65\x6e\x73\x65\163\x66\x6f\x72\155\50\51\x22\76\x43\154\151\143\153\40\x68\x65\162\x65\x3c\57\x61\76\x20\164\157\40\165\x70\147\162\x61\x64\145\x20\x74\x6f\x20\160\x72\x65\155\x69\x75\155\40\x76\145\x72\163\151\157\x6e\56");
        $this->mo_saml_show_error_message();
        goto Qp;
        d5:
        $oD = $IZ["\x6e\157\117\146\125\163\145\162\163"];
        $OE = get_site_option("\x6d\157\137\x73\141\x6d\154\x5f\x63\165\163\164\157\155\145\162\x5f\x74\157\153\x65\x6e");
        $me = $IZ["\x6e\x6f\x4f\146\123\x75\x62\123\151\x74\x65\x73"];
        if ($this->mo_saml_check_empty_or_null($oD)) {
            goto l4;
        }
        update_site_option("\155\x6f\137\163\141\155\154\137\165\x73\x72\137\154\155\164", AESEncryption::encrypt_data($oD, $OE));
        l4:
        update_site_option("\x73\x69\164\x65\137\x63\x6b\137\154", AESEncryption::encrypt_data("\x74\x72\x75\x65", $OE));
        update_site_option("\156\x6f\137\163\x62\163", AESEncryption::encrypt_data($me, $OE));
        $Pp = add_query_arg(array("\164\x61\x62" => "\x6c\x6f\x67\151\156"), $_SERVER["\x52\x45\121\x55\x45\x53\124\137\125\x52\x49"]);
        update_site_option("\155\157\137\163\x61\x6d\154\x5f\155\145\x73\163\141\x67\x65", "\x59\157\x75\x20\150\x61\166\x65\40\163\165\143\x63\x65\163\x73\x66\165\154\x6c\x79\x20\165\160\x67\x72\x61\144\145\x64\x20\x74\x6f\40\x70\x72\x65\155\x69\165\x6d\x20\166\145\162\163\x69\x6f\156\x2e\x20\74\x61\40\x68\162\145\x66\x3d\x22" . $Pp . "\x22\x3e\103\x6c\151\x63\x6b\x20\150\x65\162\145\x3c\x2f\x61\x3e\40\164\157\40\x61\143\x74\x69\166\141\164\x65\40\171\x6f\165\162\40\154\x69\x63\x65\x6e\x73\x65\56");
        $this->mo_saml_show_success_message();
        Qp:
        sp:
        OP:
        goto jG;
        So:
        if (decryptSamlElement()) {
            goto vC;
        }
        $f1 = postResponse();
        $FR = new Customersaml();
        $IZ = json_decode($FR->mo_saml_verify_license($f1), true);
        if (strcasecmp($IZ["\163\x74\141\x74\x75\163"], "\123\x55\x43\x43\105\x53\x53") == 0) {
            goto nb;
        }
        if (strcasecmp($IZ["\163\x74\x61\164\x75\x73"], "\x46\x41\x49\114\105\104") == 0) {
            goto nE;
        }
        update_site_option("\155\x6f\137\x73\x61\155\x6c\137\x6d\145\x73\x73\141\147\145", "\101\156\40\145\162\x72\x6f\162\40\157\x63\x63\x75\x72\x65\144\x20\167\x68\x69\154\x65\40\x70\x72\157\x63\x65\163\x73\x69\x6e\x67\x20\171\157\x75\x72\x20\162\x65\161\x75\145\163\x74\x2e\40\x50\x6c\145\x61\163\x65\x20\124\x72\x79\40\141\147\x61\151\156\x2e");
        $this->mo_saml_show_error_message();
        goto Up;
        nE:
        update_site_option("\155\x6f\137\163\x61\155\x6c\137\x6d\x65\163\163\141\x67\x65", "\x54\x68\x65\x72\145\x20\167\x61\x73\x20\141\x6e\x20\x65\162\x72\x6f\x72\40\x61\x63\x74\151\x76\141\x74\151\156\x67\40\171\x6f\x75\162\40\124\x52\111\x41\x4c\x20\x76\145\162\x73\151\157\156\56\x20\120\154\145\x61\x73\145\x20\x63\157\156\164\141\143\x74\x20\151\x6e\146\x6f\x40\x6d\151\x6e\151\157\162\x61\156\x67\x65\x2e\143\157\155\x20\146\x6f\162\x20\x67\145\x74\x74\x69\156\147\x20\156\145\167\x20\154\151\x63\145\156\163\x65\x20\x66\157\162\x20\164\x72\151\141\154\x20\x76\145\x72\x73\x69\157\156\x2e");
        $this->mo_saml_show_error_message();
        Up:
        goto Zu;
        nb:
        $OE = get_site_option("\155\157\x5f\163\x61\155\x6c\137\143\x75\163\164\x6f\x6d\x65\x72\x5f\x74\x6f\x6b\145\x6e");
        $OE = get_site_option("\155\157\137\163\141\155\x6c\x5f\143\165\163\164\x6f\155\145\x72\x5f\164\157\x6b\x65\156");
        update_site_option("\164\137\163\151\x74\145\137\x73\164\x61\x74\x75\163", AESEncryption::encrypt_data("\164\162\165\x65", $OE));
        update_site_option("\155\157\137\163\141\155\154\137\155\x65\163\163\x61\x67\145", "\131\157\x75\x72\40\x35\40\x64\141\x79\x73\40\x54\122\x49\x41\114\40\151\x73\40\x61\x63\164\151\x76\141\x74\145\144\56\x20\131\x6f\165\x20\x63\x61\x6e\x20\156\x6f\x77\x20\163\x65\164\x75\160\40\x74\x68\x65\x20\x70\154\x75\147\x69\x6e\x2e");
        $this->mo_saml_show_success_message();
        Zu:
        goto QM;
        vC:
        update_site_option("\x6d\x6f\137\163\x61\155\154\x5f\x6d\145\163\x73\x61\x67\145", "\x54\150\145\162\145\40\167\141\x73\x20\x61\x6e\x20\145\162\x72\157\x72\x20\141\143\164\x69\166\141\x74\x69\156\147\40\171\157\x75\x72\x20\x54\x52\111\x41\114\x20\166\145\162\163\151\x6f\x6e\56\40\x45\x69\x74\x68\x65\x72\x20\x79\x6f\x75\x72\40\164\162\151\141\x6c\40\x70\x65\x72\x69\157\144\x20\151\163\x20\x65\x78\x70\151\x72\x65\144\x20\x6f\162\x20\171\x6f\165\40\141\162\x65\x20\165\163\x69\x6e\x67\40\167\162\x6f\x6e\x67\x20\x74\162\x69\x61\x6c\x20\x76\x65\x72\163\151\x6f\x6e\56\40\120\154\145\141\x73\x65\x20\x63\157\156\x74\x61\143\x74\40\151\156\x66\x6f\x40\155\151\x6e\x69\157\162\x61\156\147\145\56\143\x6f\x6d\x20\146\157\x72\40\x67\145\164\164\151\x6e\x67\40\x6e\145\167\x20\x6c\151\x63\x65\x6e\x73\145\x20\146\157\x72\x20\x74\162\x69\x61\154\40\166\x65\162\163\x69\x6f\156\x2e");
        $this->mo_saml_show_error_message();
        QM:
        jG:
        goto km;
        Z7:
        if (!$this->mo_saml_check_empty_or_null($_POST["\163\x61\x6d\x6c\x5f\154\151\143\145\156\x73\145\137\153\145\x79"])) {
            goto jA;
        }
        update_site_option("\x6d\157\x5f\x73\141\155\x6c\137\x6d\145\163\163\141\x67\145", "\x41\x6c\x6c\x20\164\x68\x65\40\x66\x69\x65\154\144\x73\x20\x61\162\145\40\162\145\x71\x75\x69\x72\x65\x64\56\x20\x50\x6c\x65\x61\163\x65\40\x65\x6e\x74\x65\162\x20\166\141\x6c\x69\144\x20\x6c\151\143\145\x6e\x73\x65\x20\x6b\x65\x79\56");
        $this->mo_saml_show_error_message();
        return;
        jA:
        $f1 = trim($_POST["\163\141\x6d\154\137\x6c\x69\x63\x65\x6e\x73\145\137\x6b\145\x79"]);
        $FR = new Customersaml();
        $IZ = json_decode($FR->check_customer_ln(), true);
        $Pp = add_query_arg(array("\164\x61\x62" => "\x6c\x69\143\145\x6e\x73\151\156\147"), $_SERVER["\122\105\x51\125\x45\x53\x54\137\x55\x52\x49"]);
        if (strcasecmp($IZ["\x73\164\141\x74\165\x73"], "\x53\x55\x43\103\105\123\123") == 0) {
            goto bs;
        }
        $OE = get_site_option("\x6d\x6f\137\163\141\x6d\x6c\137\x63\165\163\x74\x6f\x6d\x65\x72\x5f\x74\x6f\x6b\x65\x6e");
        $Pp = add_query_arg(array("\164\141\x62" => "\x6c\x69\143\x65\x6e\163\151\156\x67"), $_SERVER["\122\x45\121\125\x45\123\x54\137\x55\122\111"]);
        update_site_option("\x6d\157\137\x73\x61\155\154\x5f\155\x65\163\x73\141\x67\x65", "\131\x6f\x75\40\150\x61\x76\x65\40\x6e\157\164\40\165\x70\147\162\x61\x64\x65\x64\40\171\145\164\x2e\x20\x3c\141\40\150\x72\145\x66\75\42" . $Pp . "\x22\76\x43\x6c\x69\143\x6b\x20\x68\x65\162\x65\x3c\x2f\141\x3e\40\x74\x6f\x20\x75\160\x67\162\141\144\145\40\164\157\40\x70\x72\145\155\151\165\x6d\x20\x76\145\x72\x73\151\157\156\x2e");
        $this->mo_saml_show_error_message();
        goto la;
        bs:
        if (!array_key_exists("\151\x73\x4d\165\154\164\151\123\x69\x74\x65\120\154\x75\147\x69\x6e\122\145\x71\x75\x65\163\x74\145\x64", $IZ)) {
            goto FA;
        }
        $Q2 = $IZ["\151\163\115\165\154\164\x69\123\151\164\x65\x50\x6c\x75\147\151\156\122\145\161\165\145\163\164\145\144"];
        FA:
        if (function_exists("\x67\145\164\x5f\163\x69\164\x65\x73") && class_exists("\x57\120\137\123\x69\164\145\x5f\x51\x75\145\x72\171")) {
            goto dq;
        }
        $HS = count(wp_get_sites());
        goto lQ;
        dq:
        $HS = count(get_sites());
        lQ:
        if ($Q2 && array_key_exists("\156\x6f\x4f\146\x53\x75\142\x53\x69\164\x65\x73", $IZ) && $HS <= $IZ["\156\x6f\x4f\x66\x53\165\x62\123\x69\164\x65\x73"]) {
            goto qL;
        }
        update_site_option("\155\157\137\163\141\x6d\154\137\x6d\x65\163\163\x61\x67\x65", "\x59\x6f\165\x20\x68\141\166\145\x20\x70\x75\162\x63\150\141\x73\145\144\40\164\150\145\40\154\x69\143\x65\156\163\145\40\146\x6f\x72\x20\x3c\x62\x3e" . $IZ["\x6e\x6f\x4f\146\x53\165\x62\x53\x69\164\145\x73"] . "\x20\x73\x69\x74\145\x73\x3c\x2f\x62\76\56\x20\102\x75\x74\x20\171\157\165\40\x68\x61\166\145\40\74\142\x3e" . $HS . "\x20\74\x2f\142\x3e\163\x69\164\145\x73\x20\x69\x6e\40\x79\157\x75\162\x20\155\x75\154\164\x69\163\x69\164\145\40\156\x65\x74\x77\157\162\153\x2e\x20\74\x61\40\x68\x72\145\146\x3d\42\x23\42\x20\157\156\x63\x6c\151\143\x6b\75\x22\x67\x65\x74\165\x70\147\162\141\x64\x65\154\x69\x63\145\156\163\145\x73\146\157\x72\x6d\50\x29\42\x3e\103\x6c\x69\143\x6b\x20\150\x65\x72\x65\x3c\57\x61\x3e\40\164\x6f\x20\142\165\171\40\154\x69\143\x65\156\163\145\40\146\157\x72\40\x6d\157\162\145\x20\x73\151\164\x65\x73\x2e");
        $this->mo_saml_show_error_message();
        goto rT;
        qL:
        $y3 = $IZ["\x6e\157\x4f\x66\123\165\x62\x53\151\x74\x65\x73"];
        $oD = $IZ["\x6e\x6f\117\x66\125\163\x65\x72\x73"];
        $IZ = json_decode($FR->mo_saml_verify_license($f1), true);
        if (strcasecmp($IZ["\163\164\141\x74\x75\x73"], "\x53\125\x43\103\105\x53\123") == 0) {
            goto vj;
        }
        if (strcasecmp($IZ["\x73\164\141\x74\165\x73"], "\106\101\x49\x4c\105\104") == 0) {
            goto ex;
        }
        update_site_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\155\145\x73\x73\x61\x67\145", "\101\x6e\40\145\162\162\x6f\162\40\157\x63\143\165\162\x65\144\x20\167\150\x69\x6c\145\x20\x70\162\x6f\143\145\163\163\x69\x6e\147\40\171\157\x75\x72\x20\162\x65\x71\165\145\x73\164\56\40\120\154\145\141\x73\x65\x20\124\x72\171\40\x61\147\141\x69\156\x2e");
        $this->mo_saml_show_error_message();
        goto dp;
        ex:
        if (strcasecmp($IZ["\155\x65\163\163\x61\x67\145"], "\103\157\144\145\x20\x68\141\163\40\x45\x78\x70\x69\162\x65\x64") == 0) {
            goto yR;
        }
        update_site_option("\x6d\157\x5f\x73\141\155\154\137\155\145\x73\x73\x61\147\x65", "\131\x6f\x75\x20\x68\x61\166\145\40\145\156\164\x65\162\145\144\40\x61\x6e\x20\x69\x6e\x76\141\154\x69\144\40\154\151\x63\145\x6e\163\145\x20\x6b\x65\171\56\x20\120\154\145\x61\163\145\x20\145\156\164\145\x72\40\141\x20\x76\x61\x6c\x69\144\40\154\x69\x63\x65\156\x73\145\x20\153\x65\x79\56");
        goto S9;
        yR:
        update_site_option("\x6d\157\x5f\x73\141\155\x6c\137\x6d\x65\163\x73\141\x67\x65", "\x4c\151\x63\x65\x6e\x73\x65\x20\x6b\145\171\x20\x79\x6f\165\x20\150\x61\x76\x65\40\145\x6e\164\x65\162\x65\x64\40\x68\141\x73\40\141\154\162\x65\141\x64\x79\x20\x62\x65\x65\x6e\x20\x75\163\x65\x64\x2e\x20\120\x6c\145\x61\x73\145\40\145\156\164\145\162\40\141\x20\x6b\145\171\40\x77\x68\151\143\x68\x20\x68\141\x73\x20\156\157\164\x20\142\145\145\156\x20\165\x73\x65\144\40\x62\x65\146\x6f\162\x65\x20\x6f\x6e\x20\141\156\171\x20\157\x74\150\145\x72\40\151\156\x73\164\141\156\x63\x65\x20\157\162\x20\x69\146\x20\x79\157\165\x20\x68\141\166\145\40\x65\x78\x61\165\163\164\x65\x64\40\x61\154\154\40\171\x6f\x75\x72\x20\153\x65\x79\x73\40\x74\150\x65\156\x20\x3c\x61\x20\150\x72\x65\x66\75\x22\x23\42\x20\157\156\x63\154\151\143\153\x3d\x22\147\x65\x74\165\160\x67\162\x61\144\x65\x6c\x69\143\x65\x6e\163\x65\163\x66\157\x72\x6d\50\51\42\x20\x3e\103\154\x69\x63\x6b\40\x68\x65\x72\145\x3c\57\141\76\x20\x74\x6f\x20\x62\165\x79\x20\x6d\157\162\x65\x2e");
        S9:
        $this->mo_saml_show_error_message();
        dp:
        goto Ye;
        vj:
        $OE = get_site_option("\x6d\157\x5f\163\x61\x6d\154\137\143\x75\x73\164\x6f\x6d\x65\x72\x5f\164\157\x6b\x65\156");
        if ($this->mo_saml_check_empty_or_null($oD)) {
            goto jF;
        }
        update_site_option("\155\x6f\x5f\x73\141\155\x6c\137\165\x73\162\137\154\155\164", AESEncryption::encrypt_data($oD, $OE));
        jF:
        update_site_option("\163\x6d\154\x5f\154\153", AESEncryption::encrypt_data($f1, $OE));
        update_site_option("\156\x6f\x5f\x73\142\x73", AESEncryption::encrypt_data($y3, $OE));
        update_site_option("\x73\151\x74\x65\x5f\x63\x6b\x5f\x6c", AESEncryption::encrypt_data("\x74\x72\165\145", $OE));
        update_site_option("\164\x5f\x73\x69\164\x65\x5f\x73\x74\x61\164\165\x73", AESEncryption::encrypt_data("\x66\x61\154\x73\145", $OE));
        update_site_option("\155\x6f\137\163\x61\155\154\137\155\145\163\x73\x61\147\x65", "\x59\157\165\x72\40\x6c\151\x63\145\x6e\x73\x65\40\151\x73\x20\166\145\x72\151\x66\151\145\x64\56\40\131\157\165\x20\143\x61\156\40\x6e\x6f\167\x20\x73\x65\164\165\160\40\x74\x68\145\40\x70\x6c\x75\147\151\156\x2e");
        $OE = get_site_option("\x6d\157\137\163\141\155\x6c\x5f\x63\165\163\x74\x6f\155\145\162\x5f\x74\157\153\x65\156");
        update_site_option("\x74\137\163\151\164\x65\x5f\163\x74\x61\x74\x75\163", AESEncryption::encrypt_data("\x66\141\x6c\163\x65", $OE));
        $this->mo_saml_show_success_message();
        Ye:
        rT:
        la:
        km:
        iX:
        if (mo_saml_is_trial_active()) {
            goto xc;
        }
        if (!site_check()) {
            goto NH;
        }
        goto PF;
        xc:
        if (!decryptSamlElement()) {
            goto xG;
        }
        $OE = get_site_option("\x6d\x6f\x5f\x73\141\x6d\154\137\x63\165\163\x74\x6f\155\145\162\x5f\164\x6f\153\x65\156");
        update_site_option("\164\137\x73\151\164\145\137\x73\164\141\164\165\163", AESEncryption::encrypt_data("\146\141\x6c\x73\x65", $OE));
        xG:
        goto PF;
        NH:
        delete_site_option("\x6d\157\137\163\x61\x6d\154\137\145\x6e\x61\142\154\x65\x5f\x6c\157\x67\151\156\137\162\x65\144\x69\162\x65\x63\x74");
        delete_site_option("\x6d\157\137\x73\x61\155\x6c\137\141\154\154\x6f\167\x5f\167\160\x5f\163\x69\147\x6e\151\x6e");
        delete_site_option("\x6d\x6f\x5f\163\141\x6d\x6c\x5f\162\x65\x67\x69\163\x74\x65\x72\145\x64\x5f\x6f\x6e\154\x79\x5f\x61\x63\x63\145\163\x73");
        delete_site_option("\155\157\137\x73\x61\155\154\x5f\x66\x6f\162\143\x65\x5f\141\x75\x74\150\145\156\x74\151\143\x61\164\x69\x6f\x6e");
        PF:
    }
    function create_customer()
    {
        $FR = new CustomerSaml();
        $Pk = json_decode($FR->create_customer(), true);
        if (strcasecmp($Pk["\x73\164\141\164\x75\x73"], "\x43\x55\x53\124\x4f\115\105\122\137\125\123\105\122\x4e\x41\115\105\137\x41\114\x52\x45\101\x44\x59\137\x45\x58\111\123\x54\123") == 0) {
            goto oY;
        }
        if (!(strcasecmp($Pk["\163\164\141\164\x75\163"], "\x53\125\x43\x43\x45\123\123") == 0)) {
            goto AJ;
        }
        update_site_option("\155\x6f\137\x73\141\155\x6c\137\141\x64\x6d\x69\x6e\x5f\x63\x75\163\x74\x6f\155\x65\162\137\153\145\x79", $Pk["\x69\144"]);
        update_site_option("\155\x6f\x5f\163\x61\x6d\154\137\x61\x64\x6d\151\x6e\137\x61\x70\151\x5f\x6b\145\171", $Pk["\141\160\151\113\145\171"]);
        update_site_option("\x6d\157\137\x73\x61\x6d\154\137\143\165\x73\x74\x6f\x6d\145\x72\x5f\164\x6f\x6b\x65\156", $Pk["\164\157\153\x65\156"]);
        update_site_option("\155\x6f\137\x73\141\155\x6c\137\x61\x64\155\151\x6e\137\160\x61\x73\163\x77\x6f\162\x64", '');
        update_site_option("\155\x6f\x5f\x73\141\x6d\154\x5f\x6d\x65\163\163\141\x67\x65", "\124\x68\141\x6e\x6b\40\x79\157\165\40\146\157\162\40\162\145\147\x69\x73\164\145\x72\151\156\147\x20\x77\151\164\x68\40\x6d\151\x6e\151\x6f\162\x61\x6e\x67\145\x2e");
        update_site_option("\x6d\157\137\163\141\x6d\154\137\162\145\147\x69\163\164\x72\x61\164\151\x6f\156\x5f\x73\164\141\164\165\x73", '');
        delete_site_option("\x6d\157\x5f\x73\x61\155\154\x5f\166\x65\162\x69\146\171\x5f\143\165\163\x74\x6f\155\145\x72");
        delete_site_option("\x6d\x6f\137\163\141\155\x6c\137\x6e\x65\x77\137\x72\145\147\x69\163\164\162\x61\164\x69\x6f\156");
        $this->mo_saml_show_success_message();
        AJ:
        goto kn;
        oY:
        $this->get_current_customer();
        kn:
        update_site_option("\x6d\x6f\137\x73\141\155\x6c\137\x61\144\x6d\151\x6e\137\160\x61\x73\163\x77\157\x72\144", '');
    }
    function get_current_customer()
    {
        $FR = new CustomerSaml();
        $IZ = $FR->get_customer_key();
        $Pk = json_decode($IZ, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto I0;
        }
        update_site_option("\155\x6f\137\x73\x61\155\x6c\137\155\x65\163\x73\141\147\x65", "\131\157\x75\x20\141\154\x72\x65\x61\144\x79\40\150\141\166\x65\x20\x61\156\x20\141\x63\x63\157\165\156\x74\40\x77\x69\164\150\40\155\x69\156\x69\x4f\x72\141\x6e\147\145\56\x20\120\x6c\145\141\163\145\x20\145\156\x74\x65\x72\x20\141\40\166\141\x6c\x69\x64\40\160\141\x73\163\x77\x6f\x72\144\x2e");
        update_site_option("\x6d\157\137\x73\x61\x6d\154\137\x76\145\x72\151\146\x79\x5f\143\x75\x73\x74\x6f\155\145\162", "\x74\x72\165\145");
        delete_site_option("\155\157\x5f\x73\x61\x6d\x6c\x5f\156\x65\x77\137\x72\x65\147\151\x73\164\162\141\164\151\157\x6e");
        $this->mo_saml_show_error_message();
        goto y7;
        I0:
        update_site_option("\x6d\x6f\137\163\x61\x6d\154\137\141\144\x6d\x69\x6e\137\x63\x75\x73\x74\157\x6d\145\x72\x5f\153\x65\171", $Pk["\151\144"]);
        update_site_option("\155\x6f\x5f\163\141\x6d\154\x5f\x61\144\155\x69\156\x5f\x61\160\151\x5f\153\x65\x79", $Pk["\x61\x70\151\113\x65\x79"]);
        update_site_option("\155\157\137\x73\x61\155\154\x5f\143\x75\x73\164\157\x6d\x65\x72\x5f\164\x6f\153\145\156", $Pk["\164\x6f\153\145\156"]);
        update_site_option("\x6d\157\x5f\x73\141\x6d\x6c\137\x61\144\x6d\151\156\x5f\160\141\x73\163\x77\157\x72\x64", '');
        update_site_option("\155\157\x5f\x73\141\155\154\x5f\x6d\145\x73\x73\141\147\145", "\x59\x6f\165\162\x20\x61\x63\x63\x6f\165\156\164\x20\150\141\163\x20\142\x65\145\156\40\x72\145\x74\162\x69\x65\166\145\144\x20\163\165\143\x63\x65\163\163\146\x75\x6c\x6c\x79\56");
        delete_site_option("\155\157\137\163\x61\x6d\154\x5f\x76\145\x72\151\146\x79\x5f\x63\x75\x73\x74\157\155\145\x72");
        delete_site_option("\155\x6f\x5f\163\141\155\x6c\x5f\x6e\145\167\137\162\145\147\x69\x73\164\x72\x61\164\151\157\x6e");
        $this->mo_saml_show_success_message();
        y7:
    }
    public function mo_saml_check_empty_or_null($D7)
    {
        if (!(!isset($D7) || empty($D7))) {
            goto ue;
        }
        return true;
        ue:
        return false;
    }
    function miniorange_sso_menu()
    {
        $U3 = add_menu_page("\x4d\x4f\x20\x53\101\x4d\114\40\123\x65\x74\164\x69\156\x67\x73\40" . __("\103\x6f\156\146\x69\x67\165\162\x65\x20\x53\101\x4d\114\x20\x49\144\x65\x6e\x74\151\x74\x79\x20\x50\x72\157\x76\x69\144\x65\162\x20\146\x6f\x72\40\x53\x53\x4f", "\155\x6f\137\x73\x61\155\154\137\163\145\x74\x74\151\x6e\147\163"), "\155\151\156\x69\117\x72\141\156\x67\145\x20\x53\x41\x4d\114\40\x32\56\x30\40\x53\x53\117", "\141\144\155\151\x6e\151\x73\x74\162\141\x74\157\x72", "\155\x6f\137\163\x61\155\x6c\x5f\x73\145\x74\164\151\156\147\163", array($this, "\x6d\x6f\x5f\x6c\157\x67\x69\156\137\167\x69\144\147\145\164\137\163\x61\155\x6c\137\157\x70\x74\151\157\x6e\163"), plugin_dir_url(__FILE__) . "\151\155\x61\147\x65\x73\x2f\x6d\151\156\x69\157\x72\141\x6e\x67\x65\x2e\x70\156\x67");
    }
    function mo_saml_redirect_for_authentication($Dl)
    {
        if (!mo_saml_is_customer_license_key_verified()) {
            goto zi;
        }
        if (get_site_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\145\156\x61\x62\x6c\x65\x5f\143\154\157\165\144\137\x62\162\x6f\153\x65\x72") == "\146\141\x6c\163\145") {
            goto Gz;
        }
        $AU = get_site_option("\155\x6f\137\163\141\155\x6c\x5f\x68\x6f\163\x74\137\156\141\155\145") . "\57\155\x6f\141\163\x2f\x72\145\163\x74\57\163\141\155\x6c\x2f\162\x65\161\165\x65\163\x74\x3f\151\x64\75" . get_site_option("\x6d\x6f\137\x73\141\x6d\x6c\137\141\144\x6d\151\156\137\143\165\163\164\157\155\x65\162\137\153\145\171") . "\x26\x72\x65\164\165\x72\156\x75\x72\154\x3d" . urlencode(network_site_url() . "\57\77\x6f\x70\164\x69\157\x6e\75\162\x65\x61\x64\163\141\x6d\154\x6c\157\147\x69\156\46\162\x65\x64\151\x72\145\143\164\137\164\157\x3d" . urlencode($Dl));
        header("\x4c\x6f\x63\141\x74\x69\x6f\x6e\x3a\x20" . $AU);
        die;
        goto uP;
        Gz:
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
            goto w8;
        }
        $mC = get_site_option("\x6d\157\x5f\163\141\x6d\154\137\x73\x70\x5f\x62\x61\x73\145\x5f\165\x72\154");
        if (!empty($mC)) {
            goto Od;
        }
        $mC = network_site_url();
        Od:
        if (!(substr($mC, -1) == "\57")) {
            goto dW;
        }
        $mC = substr($mC, 0, -1);
        dW:
        $Ua = $Dl;
        if (!empty($Ua)) {
            goto Pc;
        }
        $Ua = site_url() . "\x2f";
        Pc:
        $hI = get_site_option("\163\x61\x6d\x6c\137\x6c\x6f\x67\151\156\137\x75\x72\x6c");
        $LH = get_site_option("\x73\x61\155\154\137\x6c\x6f\x67\151\x6e\x5f\142\x69\x6e\x64\x69\x6e\x67\x5f\164\x79\x70\145");
        $qN = get_site_option("\155\157\x5f\163\x61\155\154\137\146\157\x72\143\x65\137\141\165\x74\x68\145\156\x74\151\x63\141\164\151\157\156");
        $iV = $mC . "\x2f";
        $WE = get_site_option("\155\x6f\x5f\x73\141\x6d\x6c\x5f\x73\160\137\x65\x6e\164\x69\164\x79\x5f\151\144");
        if (!empty($WE)) {
            goto lq;
        }
        $WE = $mC . "\57\167\x70\x2d\143\x6f\x6e\x74\145\156\x74\57\160\x6c\165\x67\x69\156\x73\57\x6d\151\x6e\151\157\x72\x61\156\x67\145\x2d\x73\x61\x6d\x6c\x2d\x32\60\55\x73\151\x6e\x67\154\x65\55\x73\x69\147\x6e\55\x6f\156\x2f";
        lq:
        $uA = Utilities::createAuthnRequest($iV, $WE, $hI, $qN, $LH);
        if (empty($LH) || $LH == "\x48\164\164\160\122\x65\144\x69\162\145\143\x74") {
            goto iu;
        }
        $lH = plugin_dir_path(__FILE__) . "\162\145\163\x6f\165\x72\143\x65\x73" . DIRECTORY_SEPARATOR . "\x73\x70\55\153\x65\x79\x2e\153\x65\x79";
        $OK = plugin_dir_path(__FILE__) . "\x72\x65\163\157\x75\x72\x63\145\x73" . DIRECTORY_SEPARATOR . "\163\160\55\143\x65\162\x74\x69\x66\151\143\141\164\145\x2e\x63\x72\x74";
        $Rx = Utilities::signXML($uA, $OK, $lH, "\116\141\155\145\x49\x44\120\157\x6c\151\143\171");
        Utilities::postSAMLRequest($hI, $Rx, $Ua);
        goto Id;
        iu:
        $uA = "\x53\x41\115\114\x52\145\x71\x75\x65\163\x74\x3d" . $uA . "\46\x52\145\x6c\x61\171\123\164\141\x74\x65\x3d" . urlencode($Ua) . "\x26\x53\x69\x67\x41\x6c\x67\x3d" . urlencode(XMLSecurityKey::RSA_SHA256);
        $sA = array("\164\x79\160\145" => "\x70\162\151\x76\141\x74\x65");
        $OE = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $sA);
        $VS = plugin_dir_path(__FILE__) . "\162\x65\x73\157\165\x72\x63\145\x73" . DIRECTORY_SEPARATOR . "\x73\x70\x2d\153\145\x79\x2e\x6b\145\171";
        $OE->loadKey($VS, TRUE);
        $cv = new XMLSecurityDSig();
        $si = $OE->signData($uA);
        $si = base64_encode($si);
        $fD = $hI;
        if (strpos($hI, "\77") !== false) {
            goto T1;
        }
        $fD .= "\x3f";
        goto Ay;
        T1:
        $fD .= "\x26";
        Ay:
        $fD .= $uA . "\x26\x53\x69\147\x6e\x61\x74\x75\162\x65\75" . urlencode($si);
        header("\114\157\x63\x61\x74\151\x6f\x6e\x3a\x20" . $fD);
        die;
        Id:
        w8:
        uP:
        zi:
    }
    function mo_saml_authenticate()
    {
        $Qu = '';
        if (!isset($_REQUEST["\x72\145\x64\151\162\x65\x63\164\x5f\x74\157"])) {
            goto zx;
        }
        $Qu = $_REQUEST["\162\x65\x64\151\x72\145\143\164\x5f\x74\x6f"];
        zx:
        if (!is_user_logged_in()) {
            goto hu;
        }
        if (!empty($Qu)) {
            goto UP;
        }
        header("\x4c\x6f\143\141\x74\151\157\156\72\x20" . network_site_url());
        goto kL;
        UP:
        header("\x4c\x6f\143\x61\164\151\157\156\72\40" . $Qu);
        kL:
        die;
        hu:
        global $blog_id;
        $Jk = get_site_option("\x65\156\141\142\154\x65\137\163\x61\x6d\154\137\163\x73\157\x5f\x66\157\162\137\x73\x69\x74\x65\x73");
        if (!(get_site_option("\x6d\x6f\x5f\163\141\155\x6c\x5f\145\x6e\x61\x62\x6c\145\x5f\x6c\157\147\151\x6e\x5f\162\x65\144\x69\162\x65\143\x74") == "\164\162\165\145" && (empty($Jk) || !empty($Jk) && in_array($blog_id, $Jk)))) {
            goto k9;
        }
        if (isset($_GET["\x6c\x6f\147\x67\x65\144\x6f\165\164"]) && $_GET["\x6c\157\147\x67\x65\x64\157\165\164"] == "\164\162\165\145") {
            goto y2;
        }
        if (get_site_option("\x6d\157\137\x73\x61\x6d\x6c\x5f\141\154\154\157\x77\x5f\x77\160\x5f\x73\x69\x67\x6e\151\x6e") == "\x74\x72\x75\x65") {
            goto K6;
        }
        goto bX;
        y2:
        header("\x4c\157\x63\x61\x74\x69\x6f\156\72\40" . network_site_url());
        die;
        goto bX;
        K6:
        if (isset($_GET["\x73\141\155\154\137\163\x73\x6f"]) && $_GET["\163\x61\x6d\x6c\137\x73\x73\x6f"] == "\x66\x61\x6c\163\x65" || isset($_POST["\163\141\x6d\154\x5f\163\163\x6f"]) && $_POST["\x73\141\155\x6c\x5f\163\x73\x6f"] == "\146\x61\x6c\x73\145") {
            goto KM;
        }
        if (isset($_REQUEST["\162\145\x64\x69\x72\145\x63\x74\137\x74\157"])) {
            goto V3;
        }
        goto td;
        KM:
        return;
        goto td;
        V3:
        $Qu = $_REQUEST["\162\x65\x64\151\162\x65\x63\164\x5f\x74\x6f"];
        if (!(strpos($Qu, "\167\x70\55\x61\144\155\x69\156") !== false && strpos($Qu, "\x73\x61\155\x6c\137\163\x73\157\75\x66\x61\x6c\163\x65") !== false)) {
            goto uZ;
        }
        return;
        uZ:
        td:
        bX:
        $this->mo_saml_redirect_for_authentication($Qu);
        k9:
    }
    function mo_saml_auto_redirect()
    {
        if (!current_user_can("\x72\145\141\x64")) {
            goto T4;
        }
        return;
        T4:
        global $blog_id;
        $Jk = get_site_option("\145\156\x61\142\x6c\145\137\163\x61\155\x6c\x5f\x73\x73\157\137\x66\x6f\162\x5f\x73\x69\x74\x65\163");
        if (!(get_site_option("\x6d\x6f\137\163\x61\155\x6c\137\162\x65\x67\151\163\164\x65\162\145\144\137\x6f\156\154\171\x5f\141\143\143\x65\163\163") == "\164\x72\x75\x65" && (empty($Jk) || !empty($Jk) && in_array($blog_id, $Jk)))) {
            goto U2;
        }
        $Cl = $_SERVER["\x48\124\x54\x50\137\x48\117\123\124"];
        if (!(substr($Cl, -1) == "\57")) {
            goto qe;
        }
        $Cl = substr($Cl, 0, -1);
        qe:
        $nq = $_SERVER["\x52\105\121\125\105\123\124\137\125\122\x49"];
        if (!(substr($nq, 0, 1) == "\x2f")) {
            goto zL;
        }
        $nq = substr($nq, 1);
        zL:
        $Dl = "\150\164\x74\x70" . (isset($_SERVER["\110\124\124\x50\123"]) ? "\163" : '') . "\x3a\x2f\57" . $Cl . "\57" . $nq;
        $this->mo_saml_redirect_for_authentication($Dl);
        U2:
    }
    function mo_saml_modify_login_form()
    {
        echo "\74\151\x6e\160\165\x74\40\164\x79\160\145\75\42\x68\x69\x64\144\x65\x6e\42\40\156\141\155\x65\75\x22\x73\141\x6d\x6c\x5f\x73\x73\157\x22\x20\x76\x61\x6c\165\145\75\x22\146\x61\x6c\163\x65\42\76" . "\12";
    }
    function mo_get_saml_shortcode()
    {
        if (!is_user_logged_in()) {
            goto jH;
        }
        $cO = "\x48\145\154\154\157\x2c\x20" . wp_get_current_user()->display_name . "\x20\174\x20\74\141\40\150\x72\145\x66\x3d" . wp_logout_url(network_site_url()) . "\x3e\x4c\157\147\x6f\x75\164\x3c\57\141\x3e";
        goto O5;
        jH:
        if (mo_saml_is_sp_configured() && mo_saml_is_customer_license_key_verified()) {
            goto Ne;
        }
        $cO = "\x53\120\40\151\x73\40\x6e\157\x74\40\x63\x6f\156\x66\151\x67\x75\162\x65\144\x2e";
        goto fo;
        Ne:
        if (get_site_option("\155\x6f\137\163\141\155\154\137\x65\156\x61\x62\x6c\x65\137\x63\x6c\157\x75\144\137\x62\162\157\x6b\145\162") == "\146\141\x6c\x73\x65") {
            goto kU;
        }
        $cO = "\74\141\x20\150\162\x65\146\75" . get_site_option("\155\x6f\137\x73\141\x6d\x6c\137\x68\157\163\164\137\x6e\x61\155\x65") . "\57\155\x6f\x61\x73\57\162\x65\163\x74\57\163\141\x6d\154\x2f\x72\x65\x71\x75\145\x73\164\77\x69\x64\x3d" . get_site_option("\155\x6f\137\163\x61\155\x6c\137\141\144\155\x69\x6e\137\x63\165\x73\164\157\x6d\145\x72\137\x6b\x65\x79") . "\46\162\x65\164\x75\x72\156\165\x72\x6c\75" . urlencode(site_url() . "\x2f\77\157\160\164\151\x6f\x6e\x3d\162\x65\x61\x64\163\141\155\154\154\157\147\x69\156") . "\40\x2f\76\114\157\x67\151\x6e\x20\167\x69\x74\x68\x20" . get_site_option("\x73\141\155\154\x5f\151\x64\x65\156\x74\x69\x74\171\137\x6e\x61\155\145") . "\x3c\57\x61\x3e";
        goto Wz;
        kU:
        $cO = "\74\141\x20\x68\x72\x65\146\x3d\47" . site_url() . "\57\77\157\x70\x74\151\157\x6e\x3d\163\141\x6d\154\x5f\x75\163\x65\162\137\x6c\157\147\x69\x6e\x27\40\76\x4c\x6f\x67\151\x6e\x20\x77\151\x74\x68\x20" . get_site_option("\163\141\155\x6c\137\x69\144\145\156\164\x69\164\x79\137\x6e\x61\155\x65") . "\x2e\x3c\x2f\141\x3e";
        Wz:
        fo:
        O5:
        return $cO;
    }
    function upload_metadata()
    {
        if (!(isset($_FILES["\155\x65\164\141\x64\x61\x74\141\x5f\x66\x69\154\145"]) || isset($_POST["\x6d\x65\x74\x61\144\x61\x74\141\137\146\x69\154\145"]))) {
            goto H1;
        }
        if (isset($_FILES["\155\145\164\141\144\x61\164\141\x5f\x66\x69\x6c\x65"])) {
            goto FU;
        }
        $Aa = @file_get_contents($_POST["\155\145\164\x61\x64\141\x74\x61\x5f\x66\151\154\x65"]);
        goto mV;
        FU:
        $Aa = @file_get_contents($_FILES["\155\145\164\141\144\x61\164\141\x5f\x66\151\154\x65"]["\x74\x6d\x70\137\x6e\x61\155\145"]);
        mV:
        $Ei = set_error_handler(array($this, "\x68\x61\156\x64\154\x65\130\x6d\154\105\x72\162\x6f\162"));
        $vs = new DOMDocument();
        $vs->loadXML($Aa);
        restore_error_handler();
        if (!empty($vs->firstChild)) {
            goto H6;
        }
        update_site_option("\x6d\157\137\x73\141\x6d\x6c\137\155\x65\x73\163\x61\147\145", "\x50\x6c\x65\141\163\145\40\x70\x72\x6f\166\151\x64\x65\x20\141\x20\x76\x61\154\x69\144\x20\155\x65\164\141\144\x61\x74\x61\40\146\x69\154\145\56");
        $this->mo_saml_show_error_message();
        goto YL;
        H6:
        $xt = new MetadataReader($vs);
        foreach ($xt->getIdentityProviders() as $OE => $L9) {
            $EC = preg_match("\x2f\x5e\133\x61\x2d\x7a\101\55\132\60\x2d\71\55\134\x2e\137\x20\x5d\x2b\57", $L9->getIdpName()) ? $L9->getIdpName() : "\111\x44\x50";
            $xh = "\x48\x74\164\x70\x52\145\144\x69\x72\145\x63\164";
            $vt = $L9->getLoginURL("\110\x54\x54\x50\55\122\x65\144\151\162\145\x63\x74");
            $t6 = "\110\x74\x74\x70\x52\145\x64\151\162\145\143\x74";
            $GM = $L9->getLogoutURL("\x48\x54\124\120\x2d\x52\x65\144\151\x72\145\143\x74");
            $hP = $L9->getEntityID();
            $Bi = $L9->getSigningCertificate();
            update_site_option("\163\x61\155\x6c\x5f\x69\144\x65\x6e\164\151\x74\x79\x5f\156\141\155\145", $EC);
            update_site_option("\163\141\155\x6c\x5f\x6c\157\147\151\x6e\x5f\142\x69\156\x64\151\156\x67\x5f\164\x79\160\x65", $xh);
            update_site_option("\x73\141\x6d\154\x5f\154\x6f\147\x69\156\137\x75\162\x6c", $vt);
            update_site_option("\x73\x61\x6d\x6c\137\x6c\157\147\157\x75\x74\137\142\x69\156\144\151\x6e\x67\x5f\164\171\160\145", $t6);
            update_site_option("\163\141\155\x6c\x5f\x6c\x6f\x67\157\165\x74\137\x75\162\154", $GM);
            update_site_option("\163\141\x6d\x6c\137\151\x73\x73\165\145\x72", $hP);
            update_site_option("\x73\x61\x6d\154\137\x78\x35\60\x39\137\x63\x65\162\x74\151\146\x69\143\141\x74\x65", Utilities::sanitize_certificate($Bi));
            goto UL;
            Iv:
        }
        UL:
        update_site_option("\x6d\157\137\x73\x61\x6d\154\x5f\x6d\145\x73\x73\141\147\x65", "\111\144\145\156\164\x69\x74\x79\x20\120\162\x6f\x76\x69\144\145\162\x20\144\145\x74\x61\151\x6c\x73\40\163\x61\x76\145\x64\40\x73\165\x63\x63\145\x73\163\x66\x75\154\154\171\x2e");
        $this->mo_saml_show_success_message();
        YL:
        H1:
    }
    function handleXmlError($vr, $ec, $kT, $Uk)
    {
        if ($vr == E_WARNING && substr_count($ec, "\x44\117\x4d\x44\157\143\165\155\x65\x6e\x74\72\72\x6c\x6f\x61\144\x58\x4d\x4c\x28\51") > 0) {
            goto x6;
        }
        return false;
        goto Kl;
        x6:
        return;
        Kl:
    }
}
new saml_mo_login();

Function Calls

None

Variables

None

Stats

MD5 c0cb74dae6f51efb0f72d8256c67aba3
Eval Count 0
Decode Time 145 ms