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 /** * This file is a part of the miniorange-saml-20-single-sign-on plugin. * ..

Decoded Output download

<?php 
/** 
 * This file is a part of the miniorange-saml-20-single-sign-on plugin. 
 * 
 * @link https://plugins.miniorange.com/ 
 * @author miniOrange 
 * @package miniorange-saml-20-single-sign-on 
 */ 
/* 
Plugin Name: miniOrange SSO using SAML 2.0 
Plugin URI: https://miniorange.com/ 
Description: (Multi-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider. 
Version: 20.1.1 
Author: miniOrange 
Author URI: https://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'); 
require('mo-saml-subsite-access-denied-page.php'); 
require_once('mo-saml-plugin-version-update.php'); 
require_once plugin_dir_path( __FILE__ ) . 'lib' . DIRECTORY_SEPARATOR . 'license' . DIRECTORY_SEPARATOR . 'autoloader.php'; 
include_once 'xmlseclibs.php'; 
include_once 'MO_Sites_List.php'; 
use MOSAML\LicenseLibrary\Classes\Mo_License_Library; 
use MOSAML\LicenseLibrary\Mo_License_Service; 
use RobRichards\XMLSecLibs\XMLSecurityKey; 
use RobRichards\XMLSecLibs\XMLSecurityDSig; 
use RobRichards\XMLSecLibs\XMLSecEnc; 
class saml_mo_login 
{ 
    private $widgetObj; 
    function __construct() 
    { 
        new Mo_License_Library(); 
        add_site_option("mo_apply_role_mapping_for_sites", 0); 
        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")); 
        register_activation_hook(__FILE__, array($this, "mo_sso_saml_activate")); 
        add_action("admin_enqueue_scripts", array($this, "plugin_settings_script")); 
        add_action("login_enqueue_scripts", array($this, "mo_saml_login_enqueue_scripts")); 
        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")); 
        $this->widgetObj = new mo_login_wid(); 
        add_action("login_form", array($this, "mo_saml_modify_login_form")); 
        add_shortcode("MO_SAML_FORM", array($this, "mo_get_saml_shortcode")); 
        add_filter("cron_schedules", array($this, "myprefix_add_cron_schedule")); 
        add_action("metadata_sync_cron_action", array($this, "metadata_sync_cron_action")); 
        add_action("admin_init", array($this, "default_certificate")); 
        add_action("network_admin_plugin_action_links_" . plugin_basename(__FILE__), array($this, "mo_saml_plugin_action_links")); 
        add_filter("wpmu_users_columns", array($this, "mo_saml_custom_attr_column")); 
        add_filter("manage_users_custom_column", array($this, "mo_saml_attr_column_content"), 10, 3); 
        add_action("admin_init", "mo_saml_download"); 
        add_action("mo_saml_flush_cache", array($this, "mo_saml_flush_cache"), 9999); 
        add_action("delete_user_form", array($this, "mo_delete_users"), 10, 2); 
        global $wp_version; 
        if ((float) $wp_version < 5.5 && (float) $wp_version > 5.2) { 
            goto WV; 
        } 
        add_action("wp_logout", array($this->widgetObj, "mo_saml_logout"), 1, 1); 
        goto vB; 
        WV: 
        add_filter("logout_redirect", array($this, "mo_saml_logout_broker_with_filter"), 10, 3); 
        vB: 
        add_action("init", array($this->widgetObj, "mo_saml_logout_init")); 
    } 
    function mo_saml_logout_broker_with_filter($Xu, $wJ, $user) 
    { 
        $this->widgetObj->mo_saml_logout($user->ID); 
    } 
    function mo_delete_users($current_user, $Bb) 
    { 
        if (count($Bb) > 1) { 
            goto jJ; 
        } 
        $Yr = false; 
        goto tt; 
        jJ: 
        $Yr = true; 
        tt: 
        foreach ($Bb as $hI) { 
            $user = get_user_by("id", $hI); 
            $this->mo_delete_user($user, $Bb, $Yr); 
            f0: 
        } 
        WZ: 
    } 
    function mo_delete_user($Kh, $Bb, $Yr) 
    { 
        $a2 = get_users(); 
        $kR = $Kh->ID; 
        $wK = "<label for="reassign_user" class="screen-reader-text">" . __("Select a user") . "</label>"; 
        $wK .= "<select name="all_blogs" id="reassign_user_all" onchange="reAssignToUser(this, " . $kR . ")">"; 
        $PI = ''; 
        foreach ($a2 as $user) { 
            if (Utilities::mo_saml_in_array($user->ID, $Bb)) { 
                goto rZ; 
            } 
            $PI .= "<option value='{$user->ID}'>{$user->user_login}</option>"; 
            rZ: 
            lt: 
        } 
        B0: 
        $wK .= $PI; 
        $wK .= "</select>
"; 
        echo "        <table class="form-table" role="presentation">\xd

            <tr><th scope="row">"; 
        if (!$Yr) { 
            goto e9; 
        } 
        echo $Kh->user_login; 
        e9: 
        echo " </th><td>
                    <ul style="list-style:none;">\xd
                        <li>\xd\xa                            "; 
        printf(__("<b>Site: %s</b>"), "All Sites"); 
        echo "                        </li>\xd
                        <li><label><input type="radio" id="delete_option0All" name="deleteAll"; 
        echo $kR; 
        echo "" value="delete" checked="checked" onchange="deleteAlldata('"; 
        echo $kR; 
        echo "')" />\xd
                                "; 
        _e("Delete all content."); 
        echo "</label></li>\xd
                        <li><label><input type="radio" id="delete_option1All" name="deleteAll"; 
        echo $kR; 
        echo "" value="reassign" onchange="assignAlldata('"; 
        echo $kR; 
        echo "')"/>\xd\xa                                "; 
        _e("Attribute all content to:"); 
        echo "</label>\xd
                            "; 
        echo $wK; 
        echo "</li>
                        <li><span id="mo_delete_user_notice"; 
        echo $kR; 
        echo "" style="visibility: hidden"><br/><b>NOTE: </b>The selected user doesn't exist in the following subsites. Kindly attribute the content for the following subsites manually or select a different user.</span></li>\xd
                        <ol id="mo_subsite_list"; 
        echo $kR; 
        echo "" style="visibility: hidden">
                        </ol>\xd
                    </ul>\xd\xa                </td></tr>
        </table>
\xd\xa        <script>

\xa            function deleteAlldata(id){
                var elems = document.querySelectorAll("[name^='delete'][name$='[" + id + "]']");\xd\xa                for(elem of elems) {\xd
                    if(elem.value == "delete")
                        elem.checked = true;\xd
                }
\xa            }\xd\xa\xd\xa            function assignAlldata(id){\xd
                var elems = document.querySelectorAll("[name^='delete'][name$='[" + id + "]']");
                for(elem of elems) {
\xa                    if(elem.value == "reassign")
\xa                        elem.checked = true;
\xa                }\xd\xa            }
\xd\xa            function reAssignToUser(userSelect, userid){
\xa                flushExistingSubsiteList(userid);\xd\xa                var elems = document.querySelectorAll("[name^='blog[" + userid + "]']");
\xa                var allSites = true;\xd
                for(elem of elems) {
\xa                    if(isOptionExist(elem, userSelect.value))
                        elem.value = userSelect.value;
\xa                    else {\xd\xa                        showMoDeleteNotice(elem, userid);\xd\xa                        allSites = false;\xd
                    }\xd

                }
\xa
\xa                if(allSites) {
                    document.getElementById("mo_delete_user_notice" + userid).style.visibility = "hidden";\xd
                    document.getElementById("mo_subsite_list" + userid).style.visibility = "hidden";\xd
                }
            }\xd\xa\xd\xa            function isOptionExist(select, value){\xd\xa
                for(i = 0; i < select.length; i++){\xd\xa                    if(select.options[i].value == value)
\xa                        return true;
                }
                return false;\xd\xa            }\xd

            function showMoDeleteNotice(elem, userid){\xd
                document.getElementById("mo_delete_user_notice" + userid).style.visibility = "visible";\xd\xa                document.getElementById("mo_subsite_list" + userid).style.visibility = "visible";\xd\xa                url = getSubsiteWhereUserDoesNotExist(elem);\xd\xa                name = getSubsiteNameWhereUserDoesNotExist(elem);
\xa                addUrlToList(url, name, userid);
\xa            }
\xa
\xa            function getSubsiteWhereUserDoesNotExist(element){\xd
                subsiteUrl = element.parentElement.parentElement.firstElementChild.firstElementChild.getAttribute("href");
                return subsiteUrl;\xd
            }
\xa
\xa            function getSubsiteNameWhereUserDoesNotExist(element){\xd\xa                subsiteName = element.parentElement.parentElement.firstElementChild.firstElementChild.innerText;\xd\xa                return subsiteName;
\xa            }
\xa
\xa            function addUrlToList(url, name, userid){
\xa                var olElem = document.getElementById("mo_subsite_list" + userid);\xd\xa                var li = document.createElement("li");\xd\xa                li.appendChild(document.createTextNode(url +  "   -   " + name));
\xa                li.setAttribute("id", url);
                olElem.appendChild(li);
            }\xd\xa
\xa            function flushExistingSubsiteList(userid){\xd\xa                var olElem = document.getElementById("mo_subsite_list" + userid);
\xa                olElem.innerHTML = "";\xd
            }
\xa\xd
\xd
        </script>
\xa
\xa        "; 
    } 
    function mo_saml_flush_cache() 
    { 
        if (!(mo_saml_is_customer_registered_saml() && get_site_option("sml_lk"))) { 
            goto CQ; 
        } 
        $IV = new Customersaml(); 
        $IV->mo_saml_update_status($this); 
        CQ: 
    } 
    function default_certificate() 
    { 
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate); 
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key); 
        if (!(!get_site_option("mo_saml_current_cert") && !get_site_option("mo_saml_current_cert_private_key"))) { 
            goto k6; 
        } 
        if (get_site_option("mo_saml_cert") && get_site_option("mo_saml_cert_private_key")) { 
            goto aq; 
        } 
        update_site_option("mo_saml_current_cert", $eH); 
        update_site_option("mo_saml_current_cert_private_key", $W8); 
        goto xA; 
        aq: 
        update_site_option("mo_saml_current_cert", get_site_option("mo_saml_cert")); 
        update_site_option("mo_saml_current_cert_private_key", get_site_option("mo_saml_cert_private_key")); 
        xA: 
        k6: 
    } 
    function myprefix_add_cron_schedule($O8) 
    { 
        $O8["weekly"] = array("interval" => 604800, "display" => __("Once Weekly")); 
        $O8["monthly"] = array("interval" => 2635200, "display" => __("Once Monthly")); 
        return $O8; 
    } 
    function metadata_sync_cron_action() 
    { 
        $ua = get_site_option("saml_identity_name"); 
        $this->upload_metadata(@file_get_contents(get_site_option("saml_metadata_url_for_sync"))); 
        update_site_option("saml_identity_name", $ua); 
    } 
    function mo_login_widget_saml_options() 
    { 
        global $wpdb; 
        update_site_option("mo_saml_host_name", "https://login.xecurify.com"); 
        mo_register_saml_sso(); 
    } 
    function mo_saml_success_message() 
    { 
        $Ei = "error"; 
        $sY = get_site_option("mo_saml_message"); 
        echo "<div class='" . $Ei . "'> <p>" . $sY . "</p></div>"; 
    } 
    function mo_saml_error_message() 
    { 
        $Ei = "updated"; 
        $sY = get_site_option("mo_saml_message"); 
        echo "<div class='" . $Ei . "'> <p>" . $sY . "</p></div>"; 
    } 
    public function mo_sso_saml_deactivate() 
    { 
        do_action("mo_saml_flush_cache"); 
        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"); 
        delete_site_option("mo_saml_enable_cloud_broker"); 
    } 
    public function mo_sso_saml_activate() 
    { 
        if (is_multisite()) { 
            goto Hk; 
        } 
        echo "Unable to activate the plugin. It seems like you are trying to install the <b>multisite plugin</b> in the single-site environment. Please contact <b>[email protected]</b> for more details"; 
        exit; 
        Hk: 
        if (mo_saml_is_extension_installed("openssl")) { 
            goto Lv; 
        } 
        wp_die("PHP openssl extension is not installed or disabled,please enable it to activate the plugin."); 
        Lv: 
        add_option("Activated_Plugin", "Plugin-Slug"); 
        $this->mo_saml_migrate_configuration(); 
    } 
    function mo_saml_migrate_configuration() 
    { 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if (empty($rw)) { 
            goto k5; 
        } 
        return; 
        k5: 
        $rw["DEFAULT"] = array(); 
        $rw["DEFAULT"]["mo_saml_relay_state"] = !empty(get_site_option("mo_saml_relay_state")) ? get_site_option("mo_saml_relay_state") : ''; 
        $rw["DEFAULT"]["mo_saml_registered_only_access"] = !empty(get_site_option("mo_saml_registered_only_access")) ? get_site_option("mo_saml_registered_only_access") : ''; 
        $rw["DEFAULT"]["mo_saml_force_authentication"] = !empty(get_site_option("mo_saml_force_authentication")) ? get_site_option("mo_saml_force_authentication") : ''; 
        $rw["DEFAULT"]["mo_saml_enable_login_redirect"] = !empty(get_site_option("mo_saml_enable_login_redirect")) ? get_site_option("mo_saml_enable_login_redirect") : ''; 
        $rw["DEFAULT"]["mo_saml_allow_wp_signin"] = !empty(get_site_option("mo_saml_allow_wp_signin")) ? get_site_option("mo_saml_allow_wp_signin") : ''; 
        delete_site_option("saml_request_signed"); 
        update_site_option("saml_sso_settings", $rw); 
    } 
    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($HI) 
    { 
        if (!("toplevel_page_mo_saml_settings" != $HI && "miniorange-saml-2-0-sso_page_mo_error_codes" !== $HI)) { 
            goto kV; 
        } 
        return; 
        kV: 
        if (!empty($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing") { 
            goto kT; 
        } 
        wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all"); 
        wp_enqueue_style("mo_saml_admin_settings_style_tracker", plugins_url("includes/css/progress-tracker.css", __FILE__), array(), mo_options_plugin_constants::Version, "all"); 
        wp_enqueue_style("mo_saml_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__), array(), mo_options_plugin_constants::Version, "all"); 
        wp_enqueue_style("mo_saml_wpb-fa", plugins_url("includes/css/font-awesome.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all"); 
        wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/jquery.ui.css", __FILE__), array(), mo_options_plugin_constants::Version, "all"); 
        goto Jj; 
        kT: 
        wp_enqueue_style("mo_saml_bootstrap_css", plugins_url("includes/css/bootstrap/bootstrap.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all"); 
        wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.min.css", __FILE__), array(), mo_options_plugin_constants::Version, "all"); 
        Jj: 
    } 
    function plugin_settings_script($HI) 
    { 
        if (!("toplevel_page_mo_saml_settings" != $HI && "miniorange-saml-2-0-sso_page_mo_error_codes" !== $HI)) { 
            goto fV; 
        } 
        return; 
        fV: 
        if (!empty($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing") { 
            goto QF; 
        } 
        wp_enqueue_script("jquery"); 
        wp_enqueue_script("mo_saml_admin_settings_color_script", plugins_url("includes/js/jscolor/jscolor.js", __FILE__), array(), mo_options_plugin_constants::Version, false); 
        wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__), array(), mo_options_plugin_constants::Version, false); 
        wp_enqueue_script("mo_saml_admin_bootstrap_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false); 
        goto dB; 
        QF: 
        wp_enqueue_script("mo_saml_modernizr_script", plugins_url("includes/js/modernizr.js", __FILE__), array(), mo_options_plugin_constants::Version, false); 
        wp_enqueue_script("mo_saml_popover_script", plugins_url("includes/js/bootstrap/popper.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false); 
        wp_enqueue_script("mo_saml_bootstrap_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false); 
        dB: 
        wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.min.js", __FILE__), array(), mo_options_plugin_constants::Version, false); 
    } 
    function mo_saml_login_enqueue_scripts() 
    { 
        wp_enqueue_script("jquery"); 
    } 
    function mo_saml_activation_message() 
    { 
        $Ei = "updated"; 
        $sY = get_site_option("mo_saml_message"); 
        echo "<div class='" . $Ei . "'> <p>" . $sY . "</p></div>"; 
    } 
    function mo_saml_custom_attr_column($ZR) 
    { 
        $kS = maybe_unserialize(get_site_option("mo_saml_custom_attrs_mapping")); 
        $wV = maybe_unserialize(get_site_option("saml_show_user_attribute")); 
        $zL = 0; 
        if (!(is_array($wV) && is_array($kS))) { 
            goto NB; 
        } 
        foreach ($kS as $ns => $Hr) { 
            if (empty($ns)) { 
                goto Zj; 
            } 
            if (!Utilities::mo_saml_in_array($zL, $wV)) { 
                goto mc; 
            } 
            $ZR[$ns] = $ns; 
            mc: 
            Zj: 
            $zL++; 
            Gv: 
        } 
        Ah: 
        NB: 
        return $ZR; 
    } 
    function mo_saml_attr_column_content($ay, $qw, $o8) 
    { 
        $kS = maybe_unserialize(get_site_option("mo_saml_custom_attrs_mapping")); 
        if (!is_array($kS)) { 
            goto IH; 
        } 
        foreach ($kS as $ns => $Hr) { 
            if (!($ns === $qw)) { 
                goto YW; 
            } 
            $T0 = get_user_meta($o8, $qw, false); 
            if (empty($T0)) { 
                goto XX; 
            } 
            if (!is_array($T0[0])) { 
                goto ep; 
            } 
            $bb = ''; 
            foreach ($T0[0] as $QD) { 
                $bb = $bb . $QD; 
                if (!next($T0[0])) { 
                    goto v5; 
                } 
                $bb = $bb . " | "; 
                v5: 
                Ut: 
            } 
            uj: 
            return $bb; 
            goto tN; 
            ep: 
            return $T0[0]; 
            tN: 
            XX: 
            YW: 
            j3: 
        } 
        F_: 
        IH: 
        return $ay; 
    } 
    static function mo_check_option_admin_referer($SN) 
    { 
        return !empty($_POST["option"]) and $_POST["option"] == $SN and check_admin_referer($SN); 
    } 
    function miniorange_login_widget_saml_save_settings() 
    { 
        if (!current_user_can("manage_options")) { 
            goto mS; 
        } 
        $Bu = "false"; 
        $wZ = Mo_Saml_Admin_Referer_Options::getConstants(); 
        if (!isset($_POST["option"])) { 
            goto AD; 
        } 
        $Bu = in_array($_POST["option"], $wZ); 
        AD: 
        if (!(isset($_POST["option"]) && $Bu && !Mo_License_Service::is_customer_license_valid())) { 
            goto NT; 
        } 
        update_site_option("mo_saml_message", "Something went wrong while processing this request."); 
        $this->mo_saml_show_error_message(); 
        return; 
        NT: 
        if (!(is_admin() && get_option("Activated_Plugin") == "Plugin-Slug")) { 
            goto QM; 
        } 
        delete_option("Activated_Plugin"); 
        update_site_option("mo_saml_message", "Go to plugin <b><a href="admin.php?page=mo_saml_settings">settings</a></b> to configure SAML Single Sign On by miniOrange."); 
        add_action("network_admin_notices", array($this, "mo_saml_activation_message")); 
        QM: 
        if (!self::mo_check_option_admin_referer("login_widget_saml_save_settings")) { 
            goto LM; 
        } 
        if (mo_saml_is_extension_installed("curl")) { 
            goto BO; 
        } 
        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; 
        BO: 
        $ua = ''; 
        $EZ = ''; 
        $Z9 = ''; 
        $bY = ''; 
        $fZ = ''; 
        $nL = ''; 
        $oX = ''; 
        $NX = ''; 
        $hY = ''; 
        if (empty($_POST["saml_identity_name"]) || empty($_POST["saml_login_url"]) || empty($_POST["saml_issuer"])) { 
            goto p9; 
        } 
        if (!preg_match("/^\w*$/", $_POST["saml_identity_name"])) { 
            goto Df; 
        } 
        $ua = htmlspecialchars(trim($_POST["saml_identity_name"])); 
        $Z9 = htmlspecialchars(trim($_POST["saml_login_url"])); 
        if (!array_key_exists("saml_login_binding_type", $_POST)) { 
            goto XS; 
        } 
        $EZ = htmlspecialchars($_POST["saml_login_binding_type"]); 
        XS: 
        if (!array_key_exists("saml_logout_binding_type", $_POST)) { 
            goto p6; 
        } 
        $bY = htmlspecialchars($_POST["saml_logout_binding_type"]); 
        p6: 
        if (!array_key_exists("saml_logout_url", $_POST)) { 
            goto nP; 
        } 
        $fZ = htmlspecialchars(trim($_POST["saml_logout_url"])); 
        nP: 
        $nL = htmlspecialchars(trim($_POST["saml_issuer"])); 
        $hp = htmlspecialchars(trim($_POST["mo_saml_identity_provider_identifier_name"])); 
        $oX = maybe_unserialize($_POST["saml_x509_certificate"]); 
        $hY = htmlspecialchars($_POST["saml_nameid_format"]); 
        goto la; 
        p9: 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto la; 
        Df: 
        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; 
        la: 
        update_site_option("saml_identity_name", $ua); 
        update_site_option("saml_login_binding_type", $EZ); 
        update_site_option("saml_login_url", $Z9); 
        update_site_option("saml_logout_binding_type", $bY); 
        update_site_option("saml_logout_url", $fZ); 
        update_site_option("saml_issuer", $nL); 
        update_site_option("saml_nameid_format", $hY); 
        update_site_option("mo_saml_identity_provider_identifier_name", $hp); 
        if (!empty($_POST["saml_request_signed"])) { 
            goto yB; 
        } 
        update_site_option("saml_request_signed", "unchecked"); 
        goto ds; 
        yB: 
        update_site_option("saml_request_signed", "checked"); 
        ds: 
        foreach ($oX as $ns => $Hr) { 
            if (empty($Hr)) { 
                goto Lr; 
            } 
            $oX[$ns] = Utilities::sanitize_certificate($Hr); 
            if (@openssl_x509_read($oX[$ns])) { 
                goto oZ; 
            } 
            update_site_option("mo_saml_message", "Invalid certificate format:Please provide a valid certificate"); 
            $this->mo_saml_show_error_message(); 
            delete_site_option("saml_x509_certificate"); 
            return; 
            oZ: 
            goto r2; 
            Lr: 
            unset($oX[$ns]); 
            r2: 
            tH: 
        } 
        cA: 
        if (!empty($oX)) { 
            goto lo; 
        } 
        update_site_option("mo_saml_message", "Invalid certificate format : Please provide a certificate"); 
        $this->mo_saml_show_error_message(); 
        return; 
        lo: 
        if (!empty($_POST["saml_assertion_signed"])) { 
            goto ry; 
        } 
        update_site_option("saml_assertion_signed", "Yes"); 
        goto ed; 
        ry: 
        update_site_option("saml_assertion_signed", "checked"); 
        ed: 
        update_site_option("saml_x509_certificate", $oX); 
        if (array_key_exists("enable_iconv", $_POST)) { 
            goto Ye; 
        } 
        update_site_option("mo_saml_encoding_enabled", ''); 
        goto WX; 
        Ye: 
        update_site_option("mo_saml_encoding_enabled", "checked"); 
        WX: 
        update_site_option("mo_saml_message", "Identity Provider details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        LM: 
        if (!self::mo_check_option_admin_referer("login_widget_saml_attribute_mapping")) { 
            goto o6; 
        } 
        if (mo_saml_is_extension_installed("curl")) { 
            goto Sq; 
        } 
        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; 
        Sq: 
        update_site_option("saml_am_username", htmlspecialchars(stripslashes($_POST["saml_am_username"]))); 
        update_site_option("saml_am_email", htmlspecialchars(stripslashes($_POST["saml_am_email"]))); 
        update_site_option("saml_am_first_name", htmlspecialchars(stripslashes($_POST["saml_am_first_name"]))); 
        update_site_option("saml_am_last_name", htmlspecialchars(stripslashes($_POST["saml_am_last_name"]))); 
        update_site_option("saml_am_group_name", htmlspecialchars(stripslashes($_POST["saml_am_group_name"]))); 
        update_site_option("saml_am_display_name", htmlspecialchars(stripslashes($_POST["saml_am_display_name"]))); 
        $kS = array(); 
        $mz = array(); 
        $Gu = array(); 
        $HQ = array(); 
        if (empty($_POST["mo_saml_custom_attribute_keys"])) { 
            goto W8; 
        } 
        $mz = $_POST["mo_saml_custom_attribute_keys"]; 
        W8: 
        if (empty($_POST["mo_saml_custom_attribute_values"])) { 
            goto Pj; 
        } 
        $Gu = $_POST["mo_saml_custom_attribute_values"]; 
        Pj: 
        $o2 = count($mz); 
        if (!($o2 > 0)) { 
            goto uD; 
        } 
        $mz = array_map("htmlspecialchars", $mz); 
        $Gu = array_map("htmlspecialchars", $Gu); 
        $Ne = 0; 
        g8: 
        if (!($Ne < $o2)) { 
            goto hq; 
        } 
        if (empty($_POST["mo_saml_display_attribute_" . $Ne])) { 
            goto Aj; 
        } 
        array_push($HQ, $Ne); 
        Aj: 
        $Ne++; 
        goto g8; 
        hq: 
        uD: 
        update_site_option("saml_show_user_attribute", $HQ); 
        $kS = array_combine($mz, $Gu); 
        $kS = array_filter($kS); 
        if (!empty($kS)) { 
            goto qG; 
        } 
        $kS = get_site_option("mo_saml_custom_attrs_mapping"); 
        if (empty($kS)) { 
            goto hF; 
        } 
        delete_site_option("mo_saml_custom_attrs_mapping"); 
        hF: 
        goto ie; 
        qG: 
        update_site_option("mo_saml_custom_attrs_mapping", $kS); 
        ie: 
        update_site_option("mo_saml_message", "Attribute Mapping details saved successfully"); 
        $this->mo_saml_show_success_message(); 
        o6: 
        if (!self::mo_check_option_admin_referer("clear_attrs_list")) { 
            goto Gr; 
        } 
        delete_site_option("mo_saml_test_config_attrs"); 
        update_site_option("mo_saml_message", "Attributes list removed successfully"); 
        $this->mo_saml_show_success_message(); 
        Gr: 
        if (!self::mo_check_option_admin_referer("mo_saml_addons_message")) { 
            goto Yk; 
        } 
        update_option("mo_saml_show_addons_notice", 1); 
        Yk: 
        if (!self::mo_check_option_admin_referer("saml_form_domain_restriction_option")) { 
            goto mD; 
        } 
        $oq = !empty($_POST["mo_saml_enable_domain_restriction_login"]) ? htmlspecialchars($_POST["mo_saml_enable_domain_restriction_login"]) : ''; 
        $JN = !empty($_POST["mo_saml_allow_deny_user_with_domain"]) ? htmlspecialchars($_POST["mo_saml_allow_deny_user_with_domain"]) : "allow"; 
        $ep = !empty($_POST["saml_am_email_domains"]) ? htmlspecialchars($_POST["saml_am_email_domains"]) : ''; 
        update_site_option("mo_saml_enable_domain_restriction_login", $oq); 
        update_site_option("mo_saml_allow_deny_user_with_domain", $JN); 
        update_site_option("saml_am_email_domains", $ep); 
        update_site_option("mo_saml_message", "Domain Restriction has been saved successfully."); 
        $this->mo_saml_show_success_message(); 
        mD: 
        if (!self::mo_check_option_admin_referer("login_widget_saml_role_mapping")) { 
            goto co; 
        } 
        if (mo_saml_is_extension_installed("curl")) { 
            goto T1; 
        } 
        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; 
        T1: 
        if (isset($_POST["mo_apply_role_mapping_for_sites"]) && $_POST["mo_apply_role_mapping_for_sites"] == 0) { 
            goto QG; 
        } 
        if (isset($_POST["mo_apply_role_mapping_for_sites"]) && $_POST["mo_apply_role_mapping_for_sites"] == 1) { 
            goto Qd; 
        } 
        goto di; 
        QG: 
        if (!empty($_POST["role_mapping_site"])) { 
            goto fa; 
        } 
        update_site_option("mo_saml_message", "Please select a site to save role mapping"); 
        $this->mo_saml_show_error_message(); 
        return; 
        fa: 
        update_site_option("mo_apply_role_mapping_for_sites", 0); 
        $Rf = htmlspecialchars($_POST["role_mapping_site"]); 
        goto di; 
        Qd: 
        update_site_option("mo_apply_role_mapping_for_sites", 1); 
        $Rf = 0; 
        $ca = array(); 
        update_site_option("saml_am_role_mapping", $ca); 
        di: 
        if (empty($_POST["saml_am_default_user_role"])) { 
            goto Bf; 
        } 
        $iI = htmlspecialchars($_POST["saml_am_default_user_role"]); 
        Bf: 
        if (!empty($_POST["saml_am_dont_allow_unlisted_user_role"])) { 
            goto Ns; 
        } 
        $vU = "unchecked"; 
        goto eq; 
        Ns: 
        $vU = "checked"; 
        $iI = false; 
        eq: 
        if (!empty($_POST["mo_saml_dont_create_user_if_role_not_mapped"])) { 
            goto aN; 
        } 
        $NL = "unchecked"; 
        $B2 = "false"; 
        goto tW; 
        aN: 
        $NL = "checked"; 
        $vU = "unchecked"; 
        $iI = false; 
        tW: 
        if (!empty($_POST["mo_saml_keep_existing_users_role"])) { 
            goto r9; 
        } 
        $lW = "unchecked"; 
        goto ng; 
        r9: 
        $lW = "checked"; 
        ng: 
        if (!empty($_POST["mo_saml_dont_allow_user_tologin_create_with_given_groups"])) { 
            goto nZ; 
        } 
        $K5 = "unchecked"; 
        goto Ln; 
        nZ: 
        $K5 = "checked"; 
        Ln: 
        $S5 = ''; 
        $yS = ''; 
        if (empty($_POST["mo_saml_restrict_users_with_groups"])) { 
            goto rT; 
        } 
        $S5 = htmlspecialchars($_POST["mo_saml_restrict_users_with_groups"]); 
        rT: 
        if (empty($_POST["saml_am_group_attr_values_superadmin"])) { 
            goto Cj; 
        } 
        $yS = htmlspecialchars($_POST["saml_am_group_attr_values_superadmin"]); 
        Cj: 
        $wp_roles = new WP_Roles($Rf); 
        $tw = $wp_roles->get_names(); 
        $ca = maybe_unserialize(get_site_option("saml_am_role_mapping")); 
        foreach ($tw as $WN => $PZ) { 
            $a6 = "saml_am_group_attr_values_" . $WN; 
            $ca[$Rf][$WN] = stripslashes($_POST[$a6]); 
            EM: 
        } 
        ei: 
        $ca[$Rf]["default_role"] = $iI; 
        $ca[$Rf]["dont_create_user"] = $NL; 
        $ca[$Rf]["dont_allow_unlisted_user"] = $vU; 
        $ca[$Rf]["keep_existing_users_role"] = $lW; 
        $ca[$Rf]["mo_saml_dont_allow_user_tologin_create_with_given_groups"] = $K5; 
        $ca[$Rf]["mo_saml_restrict_users_with_groups"] = $S5; 
        $ca = array_filter($ca, "filter_empty_values"); 
        $jA = false; 
        if (!(!empty($_POST["mo_saml_disable_role_mapping"]) and $_POST["mo_saml_disable_role_mapping"] == "true")) { 
            goto pK; 
        } 
        $jA = true; 
        pK: 
        update_site_option("mo_saml_disable_role_mapping", $jA); 
        update_site_option("saml_am_role_mapping", $ca); 
        update_site_option("mo_saml_message", "Role Mapping details saved successfully."); 
        update_site_option("mo_saml_super_admin_role_mapping", $yS); 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if (!empty($rw)) { 
            goto jX; 
        } 
        $rw = array(); 
        jX: 
        $GW = "DEFAULT"; 
        if (empty($_POST["role_mapping_site"])) { 
            goto vy; 
        } 
        $GW = sanitize_text_field($_POST["role_mapping_site"]); 
        vy: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto gw; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        gw: 
        if (array_key_exists("mo_saml_subsite_access_denied", $_POST)) { 
            goto hl; 
        } 
        $vR = "false"; 
        goto RP; 
        hl: 
        $vR = sanitize_text_field($_POST["mo_saml_subsite_access_denied"]); 
        RP: 
        if ($vR == "true") { 
            goto T4; 
        } 
        $rw[$GW]["mo_saml_subsite_access_denied"] = ''; 
        goto ZZ; 
        T4: 
        $rw[$GW]["mo_saml_subsite_access_denied"] = "true"; 
        ZZ: 
        update_site_option("saml_sso_settings", $rw); 
        $this->mo_saml_show_success_message(); 
        co: 
        if (!self::mo_check_option_admin_referer("mo_saml_subsite_selection_for_role_mapping")) { 
            goto Ru; 
        } 
        $ZE = !empty($_POST["mo_apply_role_mapping_for_sites"]) ? htmlspecialchars($_POST["mo_apply_role_mapping_for_sites"]) : 0; 
        $n3 = !empty($_POST["role_mapping_site"]) ? htmlspecialchars($_POST["role_mapping_site"]) : false; 
        update_site_option("role_mapping_site", $n3); 
        update_site_option("mo_apply_role_mapping_for_sites", $ZE); 
        Ru: 
        if (!self::mo_check_option_admin_referer("mo_saml_reset_role_mapping_attributes")) { 
            goto Aw; 
        } 
        update_site_option("mo_apply_role_mapping_for_sites", 0); 
        $ca = array(); 
        update_site_option("saml_am_role_mapping", $ca); 
        update_site_option("mo_saml_super_admin_role_mapping", ''); 
        update_site_option("mo_saml_message", "Role Mapping has been reset successfully."); 
        $this->mo_saml_show_success_message(); 
        Aw: 
        if (!self::mo_check_option_admin_referer("mo_saml_reset_sso_settings_option")) { 
            goto NF; 
        } 
        $rw = array(); 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "SSO Settings has been reset successfully for all your sub-sites."); 
        $this->mo_saml_show_success_message(); 
        NF: 
        if (!(!empty($_POST["option"]) and $_POST["option"] == "mo_saml_update_sp_base_url_option")) { 
            goto jL; 
        } 
        if (!(!empty($_POST["mo_saml_sp_base_url"]) && !empty($_POST["mo_saml_sp_entity_id"]))) { 
            goto JB; 
        } 
        $fs = sanitize_text_field($_POST["mo_saml_sp_base_url"]); 
        $VQ = sanitize_text_field($_POST["mo_saml_sp_entity_id"]); 
        if (!(substr($fs, -1) == "/")) { 
            goto xx; 
        } 
        $fs = substr($fs, 0, -1); 
        xx: 
        update_site_option("mo_saml_sp_base_url", $fs); 
        update_site_option("mo_saml_sp_entity_id", $VQ); 
        JB: 
        update_site_option("mo_saml_message", "SP Base URL updated successfully."); 
        $this->mo_saml_show_success_message(); 
        jL: 
        if (!self::mo_check_option_admin_referer("saml_upload_metadata")) { 
            goto nC; 
        } 
        if (!function_exists("wp_handle_upload")) { 
            require_once ABSPATH . "wp-admin/includes/file.php"; 
        } 
        $this->upload_metadata(); 
        nC: 
        if (!self::mo_check_option_admin_referer("mo_saml_update_idp_settings_option")) { 
            goto fs; 
        } 
        if (!(!empty($_POST["mo_saml_sp_base_url"]) && !empty($_POST["mo_saml_sp_entity_id"]))) { 
            goto Dk; 
        } 
        $fs = sanitize_text_field($_POST["mo_saml_sp_base_url"]); 
        $VQ = sanitize_text_field($_POST["mo_saml_sp_entity_id"]); 
        if (!(substr($fs, -1) == "/")) { 
            goto Uv; 
        } 
        $fs = substr($fs, 0, -1); 
        Uv: 
        update_site_option("mo_saml_sp_base_url", $fs); 
        update_site_option("mo_saml_sp_entity_id", $VQ); 
        Dk: 
        update_site_option("mo_saml_message", "Settings updated successfully."); 
        $this->mo_saml_show_success_message(); 
        fs: 
        if (!self::mo_check_option_admin_referer("enable_sso_new_site_option")) { 
            goto v3; 
        } 
        if (!empty($_POST["enable_sso_new_site"]) and $_POST["enable_sso_new_site"] == "true") { 
            goto gm; 
        } 
        $Lv = "false"; 
        goto p7; 
        gm: 
        $Lv = "true"; 
        p7: 
        update_site_option("mo_saml_enable_sso_new_site", $Lv); 
        update_site_option("mo_saml_message", "Settings updated successfully."); 
        $this->mo_saml_show_success_message(); 
        v3: 
        if (!self::mo_check_option_admin_referer("upgrade_cert")) { 
            goto M_; 
        } 
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate); 
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key); 
        update_site_option("mo_saml_current_cert", $eH); 
        update_site_option("mo_saml_current_cert_private_key", $W8); 
        update_site_option("mo_saml_certificate_roll_back_available", true); 
        update_site_option("mo_saml_message", "Certificate Upgraded successfully"); 
        $this->mo_saml_show_success_message(); 
        M_: 
        if (!self::mo_check_option_admin_referer("rollback_cert")) { 
            goto i6; 
        } 
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Cert); 
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Key); 
        update_site_option("mo_saml_current_cert", $eH); 
        update_site_option("mo_saml_current_cert_private_key", $W8); 
        update_site_option("mo_saml_message", "Certificate Roll-backed successfully"); 
        delete_option("mo_saml_certificate_roll_back_available"); 
        $this->mo_saml_show_success_message(); 
        i6: 
        if (self::mo_check_option_admin_referer("add_custom_certificate")) { 
            goto Yc; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_remove_account")) { 
            goto t0; 
        } 
        if (self::mo_check_option_admin_referer("add_custom_messages")) { 
            goto BV; 
        } 
        goto IJ; 
        Yc: 
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate); 
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "resources" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key); 
        if (!empty($_POST["submit"]) and $_POST["submit"] == "Upload") { 
            goto jV; 
        } 
        if (!empty($_POST["submit"]) and $_POST["submit"] == "Reset") { 
            goto he; 
        } 
        goto C6; 
        jV: 
        if (!@openssl_x509_read($_POST["saml_public_x509_certificate"])) { 
            goto Pl; 
        } 
        if (!@openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) { 
            goto bC; 
        } 
        if (openssl_x509_read($_POST["saml_public_x509_certificate"]) && openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) { 
            goto mK; 
        } 
        goto Jc; 
        Pl: 
        update_site_option("mo_saml_message", "Invalid Certificate format. Please enter a valid certificate."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto Jc; 
        bC: 
        update_site_option("mo_saml_message", "Invalid Private Key."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto Jc; 
        mK: 
        $sm = $_POST["saml_public_x509_certificate"]; 
        $Gq = $_POST["saml_private_x509_certificate"]; 
        update_site_option("mo_saml_custom_cert", $sm); 
        update_site_option("mo_saml_custom_cert_private_key", $Gq); 
        update_site_option("mo_saml_current_cert", $sm); 
        update_site_option("mo_saml_current_cert_private_key", $Gq); 
        update_site_option("mo_saml_message", "Custom Certificate updated successfully."); 
        $this->mo_saml_show_success_message(); 
        Jc: 
        goto C6; 
        he: 
        delete_site_option("mo_saml_custom_cert"); 
        delete_site_option("mo_saml_custom_cert_private_key"); 
        update_site_option("mo_saml_current_cert", $eH); 
        update_site_option("mo_saml_current_cert_private_key", $W8); 
        update_site_option("mo_saml_message", "Reset Certificate successfully."); 
        $this->mo_saml_show_success_message(); 
        C6: 
        goto IJ; 
        t0: 
        $this->mo_sso_saml_deactivate(); 
        add_site_option("mo_saml_registration_status", "removed_account"); 
        $qp = add_query_arg(array("tab" => "login"), $_SERVER["REQUEST_URI"]); 
        header("Location: " . $qp); 
        goto IJ; 
        BV: 
        update_site_option("mo_saml_account_creation_disabled_msg", sanitize_text_field($_POST["mo_saml_account_creation_disabled_msg"])); 
        update_site_option("mo_saml_restricted_domain_error_msg", sanitize_text_field($_POST["mo_saml_restricted_domain_error_msg"])); 
        update_site_option("mo_saml_message", "Configuration has been saved successfully."); 
        $this->mo_saml_show_success_message(); 
        IJ: 
        if (!self::mo_check_option_admin_referer("manage_sso_sites")) { 
            goto KO; 
        } 
        $aX = Utilities::get_sites(); 
        $EK = Utilities::get_active_sites(); 
        $JI = false; 
        $qu = false; 
        if (!empty($_POST["enableAll"]) and $_POST["enableAll"] == "true") { 
            goto GO; 
        } 
        if (!empty($_POST["disableAll"]) and $_POST["disableAll"] == "true") { 
            goto A3; 
        } 
        goto xP; 
        GO: 
        $JI = true; 
        goto xP; 
        A3: 
        $qu = true; 
        xP: 
        foreach ($aX as $GW) { 
            $Rf = $GW->blog_id; 
            if ($JI) { 
                goto zu; 
            } 
            if ($qu) { 
                goto pd; 
            } 
            if (!empty($_POST[$Rf])) { 
                goto FU; 
            } 
            goto s7; 
            zu: 
            if (Utilities::mo_saml_in_array($Rf, $EK)) { 
                goto jS; 
            } 
            array_push($EK, $Rf); 
            jS: 
            goto s7; 
            pd: 
            $ns = array_search($Rf, $EK); 
            if (!($ns !== false)) { 
                goto eB; 
            } 
            unset($EK[$ns]); 
            eB: 
            goto s7; 
            FU: 
            if ($_POST[$Rf] == "false") { 
                goto aJ; 
            } 
            if ($_POST[$Rf] == "true") { 
                goto h7; 
            } 
            goto ku; 
            aJ: 
            $ns = array_search($Rf, $EK); 
            if (!($ns !== false)) { 
                goto Nr; 
            } 
            unset($EK[$ns]); 
            Nr: 
            goto ku; 
            h7: 
            if (Utilities::mo_saml_in_array($Rf, $EK)) { 
                goto EB; 
            } 
            array_push($EK, $Rf); 
            EB: 
            ku: 
            s7: 
            zi: 
        } 
        JM: 
        $r3 = Utilities::get_main_subsite_id(); 
        if (Utilities::mo_saml_in_array($r3, $EK)) { 
            goto Gp; 
        } 
        array_push($EK, $r3); 
        Gp: 
        update_site_option("mo_enable_sso_sites", $EK); 
        KO: 
        if (!self::mo_check_option_admin_referer("mo_saml_relay_state_option")) { 
            goto fM; 
        } 
        $Gx = esc_url_raw(filter_var($_POST["mo_saml_relay_state"], FILTER_SANITIZE_URL)); 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if ($rw) { 
            goto fS; 
        } 
        $rw = array(); 
        fS: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto UZ; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        UZ: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto jQ; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        jQ: 
        $rw[$GW]["mo_saml_relay_state"] = $Gx; 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Relay State updated successfully."); 
        $this->mo_saml_show_success_message(); 
        fM: 
        if (!self::mo_check_option_admin_referer("mo_saml_widget_option")) { 
            goto Yx; 
        } 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if ($rw) { 
            goto VH; 
        } 
        $rw = array(); 
        VH: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto kw; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        kw: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto CX; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        CX: 
        $R0 = sanitize_text_field($_POST["mo_saml_custom_login_text"]); 
        $rw[$GW]["mo_saml_custom_login_text"] = stripcslashes($R0); 
        $WL = sanitize_text_field($_POST["mo_saml_custom_greeting_text"]); 
        $rw[$GW]["mo_saml_custom_greeting_text"] = stripcslashes($WL); 
        $Y1 = htmlspecialchars(stripslashes($_POST["mo_saml_greeting_name"])); 
        $rw[$GW]["mo_saml_greeting_name"] = $Y1; 
        $CQ = sanitize_text_field($_POST["mo_saml_custom_logout_text"]); 
        $rw[$GW]["mo_saml_custom_logout_text"] = stripcslashes($CQ); 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Widget Settings updated successfully."); 
        $this->mo_saml_show_success_message(); 
        Yx: 
        if (!self::mo_check_option_admin_referer("sso_settings_site_option")) { 
            goto S3; 
        } 
        if (empty($_POST["sso_settings_site"])) { 
            goto EO; 
        } 
        update_site_option("sso_settings_site", htmlspecialchars($_POST["sso_settings_site"])); 
        EO: 
        S3: 
        if (!self::mo_check_option_admin_referer("mo_saml_register_customer")) { 
            goto US; 
        } 
        if (mo_saml_is_extension_installed("curl")) { 
            goto R9; 
        } 
        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; 
        R9: 
        $uo = ''; 
        $yG = ''; 
        $C1 = ''; 
        $wz = ''; 
        if (empty($_POST["email"]) || empty($_POST["password"]) || empty($_POST["confirmPassword"])) { 
            goto jE; 
        } 
        if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) { 
            goto Cq; 
        } 
        if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) { 
            goto TT; 
        } 
        $uo = sanitize_email($_POST["email"]); 
        if (!array_key_exists("phone", $_POST)) { 
            goto zY; 
        } 
        $yG = sanitize_text_field($_POST["phone"]); 
        zY: 
        $C1 = stripslashes(strip_tags($_POST["password"])); 
        $wz = stripslashes(strip_tags($_POST["confirmPassword"])); 
        goto yO; 
        jE: 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto yO; 
        Cq: 
        update_site_option("mo_saml_message", "Choose a password with minimum length 6."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto yO; 
        TT: 
        update_site_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.$%^&*-_) should be present."); 
        $this->mo_saml_show_error_message(); 
        return; 
        yO: 
        update_site_option("mo_saml_admin_email", $uo); 
        update_site_option("mo_saml_admin_phone", $yG); 
        if (strcmp($C1, $wz) == 0) { 
            goto Fi; 
        } 
        update_site_option("mo_saml_message", "Passwords do not match."); 
        delete_site_option("mo_saml_verify_customer"); 
        $this->mo_saml_show_error_message(); 
        goto bI; 
        Fi: 
        update_site_option("mo_saml_admin_password", $C1); 
        $uo = get_site_option("mo_saml_admin_email"); 
        $IV = new CustomerSaml(); 
        $sC = $IV->check_customer($this); 
        if ($sC) { 
            goto hk; 
        } 
        return; 
        hk: 
        $T0 = json_decode($sC, true); 
        if (strcasecmp($T0["status"], "CUSTOMER_NOT_FOUND") == 0) { 
            goto RJ; 
        } 
        $this->get_current_customer(); 
        goto t_; 
        RJ: 
        $T0 = json_decode($IV->send_otp_token($uo, '', $this), true); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto xu; 
        } 
        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 HI; 
        xu: 
        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", $T0["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL"); 
        $this->mo_saml_show_success_message(); 
        HI: 
        t_: 
        bI: 
        US: 
        if (!self::mo_check_option_admin_referer("mo_saml_validate_otp")) { 
            goto MN; 
        } 
        if (mo_saml_is_extension_installed("curl")) { 
            goto hH; 
        } 
        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; 
        hH: 
        $Pq = ''; 
        if (empty($_POST["otp_token"])) { 
            goto Il; 
        } 
        $Pq = sanitize_text_field($_POST["otp_token"]); 
        goto oj; 
        Il: 
        update_site_option("mo_saml_message", "Please enter a value in otp field."); 
        $this->mo_saml_show_error_message(); 
        return; 
        oj: 
        $IV = new CustomerSaml(); 
        $T0 = json_decode($IV->validate_otp_token(get_site_option("mo_saml_transactionId"), $Pq, $this), true); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto iD; 
        } 
        update_site_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp."); 
        $this->mo_saml_show_error_message(); 
        goto qB; 
        iD: 
        $this->create_customer(); 
        qB: 
        MN: 
        if (self::mo_check_option_admin_referer("mo_saml_verify_customer")) { 
            goto Gh; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_contact_us_query_option")) { 
            goto Ag; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_resend_otp_email")) { 
            goto dl; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_resend_otp_phone")) { 
            goto JV; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_go_back")) { 
            goto Mz; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_register_with_phone_option")) { 
            goto by; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_registered_only_access_option")) { 
            goto Zm; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_force_authentication_option")) { 
            goto aP; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_enable_login_redirect_option")) { 
            goto FK; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_redirect_to_wp_login_option")) { 
            goto XI; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_add_sso_button_wp_option")) { 
            goto E0; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_use_button_as_shortcode_option")) { 
            goto BY; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_use_button_as_widget_option")) { 
            goto zW; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_custom_button_option")) { 
            goto Ez; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_allow_wp_signin_option")) { 
            goto Z1; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_forgot_password_form_option")) { 
            goto Y7; 
        } 
        goto FE; 
        Gh: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto i_; 
        } 
        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; 
        i_: 
        $uo = ''; 
        $C1 = ''; 
        if (empty($_POST["email"]) || empty($_POST["password"])) { 
            goto GY; 
        } 
        if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) { 
            goto nD; 
        } 
        $uo = sanitize_email($_POST["email"]); 
        $C1 = stripslashes(strip_tags($_POST["password"])); 
        goto a8; 
        GY: 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid entries."); 
        $this->mo_saml_show_error_message(); 
        return; 
        goto a8; 
        nD: 
        update_site_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.$%^&*-_) should be present."); 
        $this->mo_saml_show_error_message(); 
        return; 
        a8: 
        update_site_option("mo_saml_admin_email", $uo); 
        update_site_option("mo_saml_admin_password", $C1); 
        $IV = new Customersaml(); 
        $T0 = $IV->get_customer_key($this); 
        if ($T0) { 
            goto wd; 
        } 
        return; 
        wd: 
        $AQ = json_decode($T0, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto QU; 
        } 
        update_site_option("mo_saml_message", "Invalid username or password. Please try again."); 
        $this->mo_saml_show_error_message(); 
        goto Iz; 
        QU: 
        update_site_option("mo_saml_admin_customer_key", $AQ["id"]); 
        update_site_option("mo_saml_admin_api_key", $AQ["apiKey"]); 
        update_site_option("mo_saml_customer_token", $AQ["token"]); 
        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 ef; 
        } 
        $this->mo_saml_show_success_message(); 
        goto ge; 
        ef: 
        $ns = get_site_option("mo_saml_customer_token"); 
        $UB = AESEncryption::decrypt_data(get_site_option("sml_lk"), $ns); 
        update_site_option(Mo_Saml_Options::LAST_SYNCED_TIME, time()); 
        $qp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        $sC = $IV->mo_saml_verify_license($UB, $this); 
        if ($sC) { 
            goto sD; 
        } 
        return; 
        sD: 
        $T0 = json_decode($sC, true); 
        if (is_array($T0) and strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto Td; 
        } 
        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 ZB; 
        Td: 
        $this->mo_saml_show_success_message(); 
        ZB: 
        ge: 
        Iz: 
        update_site_option("mo_saml_admin_password", ''); 
        goto FE; 
        Ag: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto Jf; 
        } 
        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; 
        Jf: 
        $uo = htmlspecialchars($_POST["mo_saml_contact_us_email"]); 
        $yG = htmlspecialchars($_POST["mo_saml_contact_us_phone"]); 
        $oi = htmlspecialchars($_POST["mo_saml_contact_us_query"]); 
        if (array_key_exists("send_plugin_config", $_POST) === true) { 
            goto yX; 
        } 
        update_site_option("send_plugin_config", "off"); 
        goto wH; 
        yX: 
        $uy = miniorange_import_export(true, true); 
        $oi .= $uy; 
        delete_site_option("send_plugin_config"); 
        wH: 
        $IV = new CustomerSaml(); 
        if (empty($uo) || empty($oi)) { 
            goto gg; 
        } 
        $Ep = $IV->submit_contact_us($uo, $yG, $oi, $this); 
        if ($Ep == false) { 
            goto J3; 
        } 
        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 kX; 
        J3: 
        update_site_option("mo_saml_message", "Your query could not be submitted. Please try again."); 
        $this->mo_saml_show_error_message(); 
        kX: 
        goto uK; 
        gg: 
        update_site_option("mo_saml_message", "Please fill up Email and Query fields to submit your query."); 
        $this->mo_saml_show_error_message(); 
        uK: 
        goto FE; 
        dl: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto Yj; 
        } 
        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; 
        Yj: 
        $uo = get_site_option("mo_saml_admin_email"); 
        $IV = new CustomerSaml(); 
        $T0 = json_decode($IV->send_otp_token($uo, '', $this), true); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto a2; 
        } 
        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 du; 
        a2: 
        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", $T0["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL"); 
        $this->mo_saml_show_success_message(); 
        du: 
        goto FE; 
        JV: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto y1; 
        } 
        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; 
        y1: 
        $yG = get_site_option("mo_saml_admin_phone"); 
        $IV = new CustomerSaml(); 
        $T0 = json_decode($IV->send_otp_token('', $yG, $this, FALSE, TRUE), true); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto A7; 
        } 
        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 Zr; 
        A7: 
        update_site_option("mo_saml_message", " A one time passcode is sent to " . $yG . " again. Please check if you got the otp and enter it here."); 
        update_site_option("mo_saml_transactionId", $T0["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE"); 
        $this->mo_saml_show_success_message(); 
        Zr: 
        goto FE; 
        Mz: 
        update_site_option("mo_saml_registration_status", ''); 
        update_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_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"); 
        goto FE; 
        by: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto R3; 
        } 
        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; 
        R3: 
        $yG = sanitize_text_field($_POST["phone"]); 
        $yG = str_replace(" ", '', $yG); 
        $yG = str_replace("-", '', $yG); 
        update_site_option("mo_saml_admin_phone", $yG); 
        $IV = new CustomerSaml(); 
        $T0 = json_decode($IV->send_otp_token('', $yG, $this, FALSE, TRUE), true); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto J5; 
        } 
        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 J9; 
        J5: 
        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", $T0["txId"]); 
        update_site_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE"); 
        $this->mo_saml_show_success_message(); 
        J9: 
        goto FE; 
        Zm: 
        if (mo_saml_is_sp_configured()) { 
            goto VD; 
        } 
        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 UM; 
        VD: 
        if (array_key_exists("mo_saml_registered_only_access", $_POST)) { 
            goto iG; 
        } 
        $Uh = "false"; 
        goto oG; 
        iG: 
        $Uh = htmlspecialchars($_POST["mo_saml_registered_only_access"]); 
        oG: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if (!empty($rw)) { 
            goto W0; 
        } 
        $rw = array(); 
        W0: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto tZ; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        tZ: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto qP; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        qP: 
        if ($Uh == "true") { 
            goto oQ; 
        } 
        $rw[$GW]["mo_saml_registered_only_access"] = ''; 
        goto QZ; 
        oQ: 
        $rw[$GW]["mo_saml_registered_only_access"] = "true"; 
        QZ: 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        UM: 
        goto FE; 
        aP: 
        if (mo_saml_is_sp_configured()) { 
            goto yM; 
        } 
        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 Ie; 
        yM: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if (!empty($rw)) { 
            goto iJ; 
        } 
        $rw = array(); 
        iJ: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto Ri; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        Ri: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto LE; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        LE: 
        if (array_key_exists("mo_saml_force_authentication", $_POST)) { 
            goto mq; 
        } 
        $Uh = "false"; 
        goto Oj; 
        mq: 
        $Uh = htmlspecialchars($_POST["mo_saml_force_authentication"]); 
        Oj: 
        if ($Uh == "true") { 
            goto HO; 
        } 
        $rw[$GW]["mo_saml_force_authentication"] = ''; 
        goto lL; 
        HO: 
        $rw[$GW]["mo_saml_force_authentication"] = "true"; 
        lL: 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        Ie: 
        goto FE; 
        FK: 
        if (mo_saml_is_sp_configured()) { 
            goto lM; 
        } 
        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 Tx; 
        lM: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if (!empty($rw)) { 
            goto oM; 
        } 
        $rw = array(); 
        oM: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto wh; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        wh: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto lN; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        lN: 
        if (array_key_exists("mo_saml_enable_login_redirect", $_POST)) { 
            goto cW; 
        } 
        $Uh = "false"; 
        goto vX; 
        cW: 
        $Uh = htmlspecialchars($_POST["mo_saml_enable_login_redirect"]); 
        vX: 
        if ($Uh == "true") { 
            goto uO; 
        } 
        $rw[$GW]["mo_saml_enable_login_redirect"] = ''; 
        $rw[$GW]["mo_saml_allow_wp_signin"] = ''; 
        goto WJ; 
        uO: 
        $rw[$GW]["mo_saml_enable_login_redirect"] = "true"; 
        $rw[$GW]["mo_saml_allow_wp_signin"] = "true"; 
        WJ: 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        Tx: 
        goto FE; 
        XI: 
        if (!mo_saml_is_sp_configured()) { 
            goto Cl; 
        } 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if ($rw) { 
            goto BH; 
        } 
        $rw = array(); 
        BH: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto Wy; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        Wy: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto kZ; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        kZ: 
        if (array_key_exists("mo_saml_redirect_to_wp_login", $_POST)) { 
            goto wG; 
        } 
        $DR = "false"; 
        goto AX; 
        wG: 
        $DR = htmlspecialchars($_POST["mo_saml_redirect_to_wp_login"]); 
        AX: 
        $rw[$GW]["mo_saml_redirect_to_wp_login"] = $DR; 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        Cl: 
        goto FE; 
        E0: 
        if (mo_saml_is_sp_configured()) { 
            goto E7; 
        } 
        update_site_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto nX; 
        E7: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if ($rw) { 
            goto g4; 
        } 
        $rw = array(); 
        g4: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto V1; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        V1: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto IR; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        IR: 
        if (array_key_exists("mo_saml_add_sso_button_wp", $_POST)) { 
            goto yz; 
        } 
        $qK = "false"; 
        goto a7; 
        yz: 
        $qK = htmlspecialchars($_POST["mo_saml_add_sso_button_wp"]); 
        a7: 
        $rw[$GW]["mo_saml_add_sso_button_wp"] = $qK; 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        nX: 
        goto FE; 
        BY: 
        if (mo_saml_is_sp_configured()) { 
            goto l_; 
        } 
        update_site_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto ZF; 
        l_: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if ($rw) { 
            goto cP; 
        } 
        $rw = array(); 
        cP: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto CS; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        CS: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto Nv; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        Nv: 
        if (array_key_exists("mo_saml_use_button_as_shortcode", $_POST)) { 
            goto y4; 
        } 
        $Uz = "false"; 
        goto l2; 
        y4: 
        $Uz = htmlspecialchars($_POST["mo_saml_use_button_as_shortcode"]); 
        l2: 
        $rw[$GW]["mo_saml_use_button_as_shortcode"] = $Uz; 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        ZF: 
        goto FE; 
        zW: 
        if (mo_saml_is_sp_configured()) { 
            goto hY; 
        } 
        update_site_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first."); 
        $this->mo_saml_show_error_message(); 
        goto q8; 
        hY: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if ($rw) { 
            goto CH; 
        } 
        $rw = array(); 
        CH: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto Vq; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        Vq: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto fy; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        fy: 
        if (array_key_exists("mo_saml_use_button_as_widget", $_POST)) { 
            goto au; 
        } 
        $Uz = "false"; 
        goto A0; 
        au: 
        $Uz = htmlspecialchars($_POST["mo_saml_use_button_as_widget"]); 
        A0: 
        $rw[$GW]["mo_saml_use_button_as_widget"] = $Uz; 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign in options updated."); 
        $this->mo_saml_show_success_message(); 
        q8: 
        goto FE; 
        Ez: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if ($rw) { 
            goto o9; 
        } 
        $rw = array(); 
        o9: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto uJ; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        uJ: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto Xy; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        Xy: 
        $gf = ''; 
        $GC = ''; 
        $dh = ''; 
        $sp = ''; 
        $vY = ''; 
        $eQ = ''; 
        $PA = ''; 
        $DH = ''; 
        $ME = ''; 
        $lh = ''; 
        $BM = "above"; 
        if (!(array_key_exists("mo_saml_button_size", $_POST) && !empty($_POST["mo_saml_button_size"]))) { 
            goto pp; 
        } 
        $dh = htmlspecialchars($_POST["mo_saml_button_size"]); 
        pp: 
        if (!(array_key_exists("mo_saml_button_width", $_POST) && !empty($_POST["mo_saml_button_width"]))) { 
            goto MV; 
        } 
        $sp = htmlspecialchars($_POST["mo_saml_button_width"]); 
        MV: 
        if (!(array_key_exists("mo_saml_button_height", $_POST) && !empty($_POST["mo_saml_button_height"]))) { 
            goto Np; 
        } 
        $vY = htmlspecialchars($_POST["mo_saml_button_height"]); 
        Np: 
        if (!(array_key_exists("mo_saml_button_curve", $_POST) && !empty($_POST["mo_saml_button_curve"]))) { 
            goto oA; 
        } 
        $eQ = htmlspecialchars($_POST["mo_saml_button_curve"]); 
        oA: 
        if (!array_key_exists("mo_saml_button_color", $_POST)) { 
            goto DQ; 
        } 
        $PA = htmlspecialchars($_POST["mo_saml_button_color"]); 
        DQ: 
        if (!array_key_exists("mo_saml_button_theme", $_POST)) { 
            goto Za; 
        } 
        $gf = htmlspecialchars($_POST["mo_saml_button_theme"]); 
        Za: 
        if (!array_key_exists("mo_saml_button_text", $_POST)) { 
            goto vc; 
        } 
        $DH = htmlspecialchars($_POST["mo_saml_button_text"]); 
        if (!(empty($DH) || $DH == "##IDP##")) { 
            goto Z3; 
        } 
        $DH = "##IDP##"; 
        Z3: 
        $m9 = get_site_option("saml_identity_name"); 
        $DH = str_replace("##IDP##", $m9, $DH); 
        vc: 
        if (!array_key_exists("mo_saml_font_color", $_POST)) { 
            goto yN; 
        } 
        $ME = htmlspecialchars($_POST["mo_saml_font_color"]); 
        yN: 
        if (!array_key_exists("mo_saml_font_size", $_POST)) { 
            goto d9; 
        } 
        $lh = htmlspecialchars($_POST["mo_saml_font_size"]); 
        d9: 
        if (!array_key_exists("sso_button_login_form_position", $_POST)) { 
            goto ys; 
        } 
        $BM = htmlspecialchars($_POST["sso_button_login_form_position"]); 
        ys: 
        $rw[$GW]["mo_saml_button_theme"] = $gf; 
        $rw[$GW]["mo_saml_button_size"] = $dh; 
        $rw[$GW]["mo_saml_button_width"] = $sp; 
        $rw[$GW]["mo_saml_button_height"] = $vY; 
        $rw[$GW]["mo_saml_button_curve"] = $eQ; 
        $rw[$GW]["mo_saml_button_color"] = $PA; 
        $rw[$GW]["mo_saml_button_text"] = $DH; 
        $rw[$GW]["mo_saml_font_color"] = $ME; 
        $rw[$GW]["mo_saml_font_size"] = $lh; 
        $rw[$GW]["sso_button_login_form_position"] = $BM; 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign In settings updated."); 
        $this->mo_saml_show_success_message(); 
        goto FE; 
        Z1: 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        if (!empty($rw)) { 
            goto aW; 
        } 
        $rw = array(); 
        aW: 
        $GW = "DEFAULT"; 
        if (empty($_POST["site"])) { 
            goto xi; 
        } 
        $GW = htmlspecialchars($_POST["site"]); 
        xi: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto xs; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        xs: 
        $Ze = "false"; 
        if (array_key_exists("mo_saml_allow_wp_signin", $_POST)) { 
            goto qH; 
        } 
        $ZG = "false"; 
        goto IK; 
        qH: 
        $ZG = htmlspecialchars($_POST["mo_saml_allow_wp_signin"]); 
        IK: 
        if ($ZG == "true") { 
            goto Cy; 
        } 
        $rw[$GW]["mo_saml_allow_wp_signin"] = ''; 
        goto SK; 
        Cy: 
        $rw[$GW]["mo_saml_allow_wp_signin"] = "true"; 
        if (!array_key_exists("mo_saml_backdoor_url", $_POST)) { 
            goto sd; 
        } 
        $Ze = htmlspecialchars(trim($_POST["mo_saml_backdoor_url"])); 
        sd: 
        SK: 
        $rw[$GW]["mo_saml_backdoor_url"] = $Ze; 
        update_site_option("saml_sso_settings", $rw); 
        update_site_option("mo_saml_message", "Sign In settings updated."); 
        $this->mo_saml_show_success_message(); 
        goto FE; 
        Y7: 
        if (mo_saml_is_extension_installed("curl")) { 
            goto Dy; 
        } 
        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; 
        Dy: 
        $uo = get_site_option("mo_saml_admin_email"); 
        $IV = new Customersaml(); 
        $T0 = json_decode($IV->mo_saml_forgot_password($uo, $this), true); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto ES; 
        } 
        update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto oK; 
        ES: 
        update_site_option("mo_saml_message", "Your password has been reset successfully. Please enter the new password sent to " . $uo . "."); 
        $this->mo_saml_show_success_message(); 
        oK: 
        FE: 
        if (!get_site_option("no_sbs")) { 
            goto M4; 
        } 
        $ns = get_site_option("mo_saml_customer_token"); 
        $O2 = AESEncryption::decrypt_data(get_site_option("no_sbs"), $ns); 
        $tV = count(Utilities::get_sites()); 
        if (!($O2 < $tV)) { 
            goto n8; 
        } 
        if (get_site_option("license_alert_email_sent")) { 
            goto Y2; 
        } 
        $IV = new Customersaml(); 
        $IV->mo_saml_send_alert_email_for_license($O2, $this); 
        Y2: 
        n8: 
        M4: 
        if (self::mo_check_option_admin_referer("mo_saml_verify_license")) { 
            goto S5; 
        } 
        if (self::mo_check_option_admin_referer("mo_saml_check_license")) { 
            goto q7; 
        } 
        goto s5; 
        S5: 
        if (!empty($_POST["saml_license_key"])) { 
            goto Ya; 
        } 
        update_site_option("mo_saml_message", "All the fields are required. Please enter valid license key."); 
        $this->mo_saml_show_error_message(); 
        return; 
        Ya: 
        $UB = trim($_POST["saml_license_key"]); 
        $IV = new Customersaml(); 
        $sC = $IV->check_customer_ln($this); 
        if ($sC) { 
            goto dL; 
        } 
        return; 
        dL: 
        $T0 = json_decode($sC, true); 
        if (!(is_array($T0) && array_key_exists("licenseExpiry", $T0) && !empty($T0["licenseExpiry"]))) { 
            goto VO; 
        } 
        $bN = $T0["licenseExpiry"]; 
        VO: 
        $qp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto rb; 
        } 
        $ns = get_site_option("mo_saml_customer_token"); 
        $qp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $qp . "">Click here</a> to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto mk; 
        rb: 
        if (empty($T0["isMultiSitePluginRequested"])) { 
            goto K_; 
        } 
        $N_ = $T0["isMultiSitePluginRequested"]; 
        K_: 
        $tV = count(Utilities::get_sites()); 
        if ($N_ && !empty($T0["noOfSubSites"]) && $tV <= $T0["noOfSubSites"]) { 
            goto v0; 
        } 
        $O2 = $T0["noOfSubSites"]; 
        $ns = get_site_option("mo_saml_customer_token"); 
        update_site_option("no_sbs", AESEncryption::encrypt_data($O2, $ns)); 
        update_site_option("sml_lk", AESEncryption::encrypt_data($UB, $ns)); 
        update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $ns)); 
        update_site_option("mo_saml_message", "You have purchased the license for <b>" . $T0["noOfSubSites"] . " sites</b>. But you have <b>" . $tV . " </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 BF; 
        v0: 
        $O2 = $T0["noOfSubSites"]; 
        $ns = get_site_option("mo_saml_customer_token"); 
        if (empty($T0["noOfUsers"])) { 
            goto lC; 
        } 
        $x6 = $T0["noOfUsers"]; 
        lC: 
        $sC = $IV->mo_saml_verify_license($UB, $this); 
        if ($sC) { 
            goto xR; 
        } 
        return; 
        xR: 
        $T0 = json_decode($sC, true); 
        if (is_array($T0) && !empty($T0["status"]) && strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto Wr; 
        } 
        if (is_array($T0) && !empty($T0["status"]) && strcasecmp($T0["status"], "FAILED") == 0) { 
            goto i1; 
        } 
        update_site_option("mo_saml_message", "An error occured while processing your request. Please Try again."); 
        $this->mo_saml_show_error_message(); 
        goto z0; 
        Wr: 
        if (empty($T0["noOfUsers"])) { 
            goto wQ; 
        } 
        update_site_option("mo_saml_usr_lmt", AESEncryption::encrypt_data($x6, $ns)); 
        wQ: 
        update_site_option("sml_lk", AESEncryption::encrypt_data($UB, $ns)); 
        if (empty($bN)) { 
            goto qd; 
        } 
        Mo_License_Service::update_license_expiry($bN); 
        qd: 
        update_site_option("no_sbs", AESEncryption::encrypt_data($O2, $ns)); 
        update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $ns)); 
        update_site_option("t_site_status", AESEncryption::encrypt_data("false", $ns)); 
        update_site_option("mo_saml_message", "Your license is verified. You can now setup the plugin."); 
        update_site_option(Mo_Saml_Options::LAST_SYNCED_TIME, time()); 
        $ns = get_site_option("mo_saml_customer_token"); 
        update_site_option("t_site_status", AESEncryption::encrypt_data("false", $ns)); 
        $this->mo_saml_show_success_message(); 
        goto z0; 
        i1: 
        if (strcasecmp($T0["message"], "Code has Expired") == 0) { 
            goto hh; 
        } 
        update_site_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key."); 
        goto no; 
        hh: 
        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."); 
        no: 
        $this->mo_saml_show_error_message(); 
        z0: 
        BF: 
        mk: 
        goto s5; 
        q7: 
        $IV = new Customersaml(); 
        $sC = $IV->check_customer_ln($this); 
        if ($sC) { 
            goto em; 
        } 
        return; 
        em: 
        $T0 = json_decode($sC, true); 
        if (strcasecmp($T0["status"], "SUCCESS") == 0) { 
            goto BA; 
        } 
        $ns = get_site_option("mo_saml_customer_token"); 
        $qp = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]); 
        update_site_option("mo_saml_message", "You have not upgraded yet. <a href="" . $qp . "">Click here</a> to upgrade to premium version."); 
        $this->mo_saml_show_error_message(); 
        goto Y3; 
        BA: 
        if (empty($T0["isMultiSitePluginRequested"])) { 
            goto vT; 
        } 
        $N_ = $T0["isMultiSitePluginRequested"]; 
        vT: 
        $tV = count(Utilities::get_sites()); 
        if ($N_ && !empty($T0["noOfSubSites"]) && $tV <= $T0["noOfSubSites"]) { 
            goto lP; 
        } 
        $ns = get_site_option("mo_saml_customer_token"); 
        if (empty($ba)) { 
            goto lW; 
        } 
        update_site_option("no_sbs", AESEncryption::encrypt_data($ba, $ns)); 
        lW: 
        update_site_option("site_ck_l", AESEncryption::encrypt_data("false", $ns)); 
        $qp = 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 OB; 
        lP: 
        $ns = get_site_option("mo_saml_customer_token"); 
        $ba = $T0["noOfSubSites"]; 
        if (empty($T0["licenseExpiry"])) { 
            goto x3; 
        } 
        $SA = $this->mo_saml_parse_expiry_date($T0["licenseExpiry"]); 
        Mo_License_Service::update_license_expiry($T0["licenseExpiry"]); 
        update_site_option("mo_saml_license_expiry_date", $SA); 
        update_site_option("mo_saml_sle", $this->is_license_expired($T0["licenseExpiry"])); 
        x3: 
        update_site_option("site_ck_l", AESEncryption::encrypt_data("true", $ns)); 
        update_site_option(Mo_Saml_Options::LAST_SYNCED_TIME, time()); 
        update_site_option("no_sbs", AESEncryption::encrypt_data($ba, $ns)); 
        $qp = add_query_arg(array("tab" => "login"), $_SERVER["REQUEST_URI"]); 
        update_site_option("mo_saml_message", "You have successfully synced your license."); 
        $this->mo_saml_show_success_message(); 
        OB: 
        Y3: 
        s5: 
        if (!(!empty($_REQUEST["update"]) && "added" == $_REQUEST["update"] && get_site_option("mo_saml_enable_sso_new_site") == "true")) { 
            goto Vh; 
        } 
        $Qu = !empty($_REQUEST["blog[domain]"]) ? $_REQUEST["blog[domain]"] : ''; 
        if (empty($_REQUEST["id"])) { 
            goto YQ; 
        } 
        $Rf = $_REQUEST["id"]; 
        YQ: 
        if (empty($Rf)) { 
            goto gx; 
        } 
        $EK = Utilities::get_active_sites(); 
        if (Utilities::mo_saml_in_array($Rf, $EK)) { 
            goto iS; 
        } 
        array_push($EK, $Rf); 
        iS: 
        update_site_option("mo_enable_sso_sites", $EK); 
        gx: 
        Vh: 
        mS: 
    } 
    function create_customer() 
    { 
        $IV = new CustomerSaml(); 
        $AQ = json_decode($IV->create_customer($this), true); 
        if (strcasecmp($AQ["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) { 
            goto u4; 
        } 
        if (strcasecmp($AQ["status"], "SUCCESS") == 0) { 
            goto GJ; 
        } 
        goto w_; 
        u4: 
        $this->get_current_customer(); 
        goto w_; 
        GJ: 
        update_site_option("mo_saml_admin_customer_key", $AQ["id"]); 
        update_site_option("mo_saml_admin_api_key", $AQ["apiKey"]); 
        update_site_option("mo_saml_customer_token", $AQ["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(); 
        w_: 
        update_site_option("mo_saml_admin_password", ''); 
    } 
    function get_current_customer() 
    { 
        $IV = new CustomerSaml(); 
        $T0 = $IV->get_customer_key($this); 
        if ($T0) { 
            goto k0; 
        } 
        return; 
        k0: 
        $AQ = json_decode($T0, true); 
        if (json_last_error() == JSON_ERROR_NONE) { 
            goto L5; 
        } 
        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 ua; 
        L5: 
        update_site_option("mo_saml_admin_customer_key", $AQ["id"]); 
        update_site_option("mo_saml_admin_api_key", $AQ["apiKey"]); 
        update_site_option("mo_saml_customer_token", $AQ["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(); 
        ua: 
    } 
    function miniorange_sso_menu() 
    { 
        $HI = 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"); 
        if (!Mo_License_Service::is_customer_license_valid(false, false)) { 
            goto ly; 
        } 
        add_submenu_page("mo_saml_settings", "miniOrange SAML 2.0 SSO", __("<div id="mo_saml_addons_submenu">Add-Ons</div>", "miniorange-saml-20-single-sign-on"), "manage_options", "mo_saml_settings&tab=add-ons", array($this, "mo_login_widget_saml_options")); 
        ly: 
        add_submenu_page("mo_saml_settings", "Error Codes", "Error Codes", "administrator", "mo_error_codes", array("Mo_Saml_Error_Codes_View", "mo_saml_get_error_codes_view")); 
    } 
    function mo_saml_redirect_for_authentication($Gx) 
    { 
        if (!Mo_License_Service::is_customer_license_valid()) { 
            goto Eu; 
        } 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        $rT = Utilities::get_active_sites(); 
        $GW = get_current_blog_id(); 
        if (Utilities::mo_saml_in_array($GW, $rT)) { 
            goto Fo; 
        } 
        return; 
        Fo: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto f4; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        f4: 
        if (!empty($rw[$GW]["mo_saml_registered_only_access"]) && $rw[$GW]["mo_saml_registered_only_access"] == "true" || !empty($rw[$GW]["mo_saml_enable_login_redirect"]) && $rw[$GW]["mo_saml_enable_login_redirect"] == "true") { 
            goto b1; 
        } 
        if (!empty($rw[$GW]["mo_saml_redirect_to_wp_login"]) and $rw[$GW]["mo_saml_redirect_to_wp_login"] == "true") { 
            goto Dx; 
        } 
        goto ag; 
        b1: 
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) { 
            goto qm; 
        } 
        $fs = get_site_option("mo_saml_sp_base_url"); 
        if (!empty($fs)) { 
            goto sM; 
        } 
        $fs = get_network_site_url(); 
        sM: 
        if (empty($rw[$GW]["mo_saml_relay_state"])) { 
            goto KP; 
        } 
        $Gx = $rw[$GW]["mo_saml_relay_state"]; 
        KP: 
        $rt = $Gx; 
        $Mu = get_site_option("saml_login_url"); 
        $Vh = !empty(get_site_option("saml_login_binding_type")) ? get_site_option("saml_login_binding_type") : "HttpPost"; 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        $GW = get_current_blog_id(); 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto OY; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        OY: 
        if (!empty($rw[$GW]["mo_saml_force_authentication"])) { 
            goto f2; 
        } 
        $cF = ''; 
        goto Xm; 
        f2: 
        $cF = $rw[$GW]["mo_saml_force_authentication"]; 
        Xm: 
        $lR = $fs . "/"; 
        $VQ = get_site_option("mo_saml_sp_entity_id"); 
        $hY = get_site_option("saml_nameid_format"); 
        if (!empty($hY)) { 
            goto mU; 
        } 
        $hY = "1.1:nameid-format:unspecified"; 
        mU: 
        if (!empty($VQ)) { 
            goto q5; 
        } 
        $VQ = $fs . "/wp-content/plugins/miniorange-saml-20-single-sign-on/"; 
        q5: 
        $mb = Utilities::createAuthnRequest($lR, $VQ, $Mu, $cF, $Vh, $hY); 
        $rt = mo_saml_relaystate_url($rt); 
        if ($Vh == "HttpRedirect") { 
            goto lF; 
        } 
        if (!(get_site_option("saml_request_signed") == "unchecked")) { 
            goto JU; 
        } 
        $E2 = base64_encode($mb); 
        Utilities::postSAMLRequest($Mu, $E2, $rt); 
        exit; 
        JU: 
        $at = ''; 
        $Wv = ''; 
        $E2 = Utilities::signXML($mb, "NameIDPolicy"); 
        Utilities::postSAMLRequest($Mu, $E2, $rt); 
        goto hv; 
        lF: 
        $Ox = htmlspecialchars_decode($Mu); 
        if (strpos($Mu, "?") !== false) { 
            goto UG; 
        } 
        $Ox .= "?"; 
        goto gp; 
        UG: 
        $Ox .= "&"; 
        gp: 
        if (!(get_site_option("saml_request_signed") == "unchecked")) { 
            goto U4; 
        } 
        $Ox .= "SAMLRequest=" . $mb . "&RelayState=" . urlencode($rt); 
        header("Location: " . $Ox); 
        exit; 
        U4: 
        $mb = "SAMLRequest=" . $mb . "&RelayState=" . urlencode($rt) . "&SigAlg=" . urlencode(XMLSecurityKey::RSA_SHA256); 
        $HH = array("type" => "private"); 
        $ns = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $HH); 
        $KH = get_site_option("mo_saml_current_cert_private_key"); 
        $ns->loadKey($KH, FALSE); 
        $TI = new XMLSecurityDSig(); 
        $Pw = $ns->signData($mb); 
        $Pw = base64_encode($Pw); 
        $Ox .= $mb . "&Signature=" . urlencode($Pw); 
        header("Location: " . $Ox); 
        exit; 
        hv: 
        qm: 
        goto ag; 
        Dx: 
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) { 
            goto cO; 
        } 
        $qp = get_site_url($GW) . "/wp-login.php"; 
        if (empty($Gx)) { 
            goto TL; 
        } 
        $qp = $qp . "?redirect_to=" . urlencode($Gx) . "&reauth=1"; 
        TL: 
        header("Location: " . $qp); 
        exit; 
        cO: 
        ag: 
        Eu: 
    } 
    function mo_saml_authenticate() 
    { 
        $Xu = ''; 
        if (empty($_REQUEST["redirect_to"])) { 
            goto vp; 
        } 
        $Xu = $_REQUEST["redirect_to"]; 
        vp: 
        if (!is_user_logged_in()) { 
            goto Fr; 
        } 
        if (!empty($Xu)) { 
            goto v_; 
        } 
        $qp = saml_get_current_page_url(); 
        if (!(strpos($qp, "wp-login.php") !== false)) { 
            goto HF; 
        } 
        $qp = str_replace("wp-login.php", '', $qp); 
        if (!filter_var($qp, FILTER_VALIDATE_URL)) { 
            goto ne; 
        } 
        header("Location: " . $qp); 
        exit; 
        ne: 
        HF: 
        goto Yo; 
        v_: 
        header("Location: " . $Xu); 
        exit; 
        Yo: 
        Fr: 
        global $blog_id; 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        $GW = get_current_blog_id(); 
        $rT = Utilities::get_active_sites(); 
        if (Utilities::mo_saml_in_array($GW, $rT)) { 
            goto nf; 
        } 
        return; 
        nf: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto uN; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        uN: 
        if (!(!empty($rw[$GW]["mo_saml_enable_login_redirect"]) and $rw[$GW]["mo_saml_enable_login_redirect"] == "true")) { 
            goto de; 
        } 
        if (Mo_License_Service::is_customer_license_valid()) { 
            goto OO; 
        } 
        return; 
        OO: 
        $iZ = !empty($rw[$GW]["mo_saml_backdoor_url"]) ? trim($rw[$GW]["mo_saml_backdoor_url"]) : "false"; 
        if (!empty($_GET["loggedout"]) && $_GET["loggedout"] == "true") { 
            goto xf; 
        } 
        if (!empty($rw[$GW]["mo_saml_allow_wp_signin"]) and $rw[$GW]["mo_saml_allow_wp_signin"] == "true") { 
            goto KG; 
        } 
        goto lz; 
        xf: 
        header("Location: " . get_network_site_url()); 
        exit; 
        goto lz; 
        KG: 
        if (!empty($_GET["saml_sso"]) && $_GET["saml_sso"] == $iZ || !empty($_POST["saml_sso"]) && $_POST["saml_sso"] == $iZ) { 
            goto UD; 
        } 
        if (!empty($_REQUEST["redirect_to"])) { 
            goto oh; 
        } 
        goto fz; 
        UD: 
        return; 
        goto fz; 
        oh: 
        $Xu = $_REQUEST["redirect_to"]; 
        if (!(strpos($Xu, "wp-admin") !== false && strpos($Xu, "saml_sso=" . $iZ) !== false)) { 
            goto cC; 
        } 
        return; 
        cC: 
        fz: 
        lz: 
        if (!empty($Xu)) { 
            goto Ot; 
        } 
        $Xu = saml_get_current_page_url(); 
        Ot: 
        $this->mo_saml_redirect_for_authentication($Xu); 
        de: 
    } 
    function mo_saml_auto_redirect() 
    { 
        if (!current_user_can("read")) { 
            goto d2; 
        } 
        return; 
        d2: 
        global $blog_id; 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        $GW = get_current_blog_id(); 
        $rT = Utilities::get_active_sites(); 
        if (Utilities::mo_saml_in_array($GW, $rT)) { 
            goto Q2; 
        } 
        return; 
        Q2: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto Qs; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        Qs: 
        if (is_user_logged_in() && !empty($rw[$GW]["mo_saml_subsite_access_denied"])) { 
            goto Z8; 
        } 
        if (!((!empty($rw[$GW]["mo_saml_registered_only_access"]) and $rw[$GW]["mo_saml_registered_only_access"] == "true") || (!empty($rw[$GW]["mo_saml_redirect_to_wp_login"]) and $rw[$GW]["mo_saml_redirect_to_wp_login"] == "true"))) { 
            goto N5; 
        } 
        $j5 = $_SERVER["HTTP_HOST"]; 
        if (!(substr($j5, -1) == "/")) { 
            goto kn; 
        } 
        $j5 = substr($j5, 0, -1); 
        kn: 
        $Cg = $_SERVER["REQUEST_URI"]; 
        if (!(substr($Cg, 0, 1) == "/")) { 
            goto tY; 
        } 
        $Cg = substr($Cg, 1); 
        tY: 
        $Gx = "http" . (!empty($_SERVER["HTTPS"]) ? "s" : '') . "://" . $j5 . "/" . $Cg; 
        $this->mo_saml_redirect_for_authentication($Gx); 
        N5: 
        goto hf; 
        Z8: 
        global $current_user; 
        if (is_user_member_of_blog($current_user->ID)) { 
            goto pC; 
        } 
        $this->mo_saml_admin_page_access_denied(); 
        pC: 
        hf: 
    } 
    function mo_saml_modify_login_form() 
    { 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        $GW = get_current_blog_id(); 
        $rT = Utilities::get_active_sites(); 
        if (Utilities::mo_saml_in_array($GW, $rT)) { 
            goto wW; 
        } 
        return; 
        wW: 
        if (!(!Mo_License_Service::is_customer_license_valid() || !mo_saml_is_sp_configured())) { 
            goto jm; 
        } 
        return; 
        jm: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto A8; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        A8: 
        $iZ = !empty($rw[$GW]["mo_saml_backdoor_url"]) ? trim($rw[$GW]["mo_saml_backdoor_url"]) : "false"; 
        echo "<input type="hidden" name="saml_sso" value="" . $iZ . "">" . "\xa"; 
        if (!(!empty($rw[$GW]["mo_saml_add_sso_button_wp"]) and $rw[$GW]["mo_saml_add_sso_button_wp"] == "true")) { 
            goto CP; 
        } 
        $this->mo_saml_add_sso_button(); 
        CP: 
    } 
    function mo_saml_add_sso_button() 
    { 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        $GW = get_current_blog_id(); 
        $rT = Utilities::get_active_sites(); 
        if (Utilities::mo_saml_in_array($GW, $rT)) { 
            goto LC; 
        } 
        return; 
        LC: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto Qm; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        Qm: 
        if (is_user_logged_in()) { 
            goto GUu; 
        } 
        $fs = home_url(); 
        $TD = !empty($rw[$GW]["mo_saml_button_width"]) ? $rw[$GW]["mo_saml_button_width"] : "100"; 
        $ng = !empty($rw[$GW]["mo_saml_button_height"]) ? $rw[$GW]["mo_saml_button_height"] : "50"; 
        $QT = !empty($rw[$GW]["mo_saml_button_size"]) ? $rw[$GW]["mo_saml_button_size"] : "50"; 
        $zY = !empty($rw[$GW]["mo_saml_button_curve"]) ? $rw[$GW]["mo_saml_button_curve"] : "5"; 
        $Pm = !empty($rw[$GW]["mo_saml_button_color"]) ? $rw[$GW]["mo_saml_button_color"] : "0085ba"; 
        $rg = !empty($rw[$GW]["mo_saml_button_theme"]) ? $rw[$GW]["mo_saml_button_theme"] : "longbutton"; 
        $nh = !empty($rw[$GW]["mo_saml_button_text"]) ? $rw[$GW]["mo_saml_button_text"] : (get_site_option("saml_identity_name") ? get_site_option("saml_identity_name") : "Login"); 
        $i8 = !empty($rw[$GW]["mo_saml_font_color"]) ? $rw[$GW]["mo_saml_font_color"] : "ffffff"; 
        $SY = !empty($rw[$GW]["mo_saml_font_size"]) ? $rw[$GW]["mo_saml_font_size"] : "20"; 
        $BM = !empty($rw[$GW]["sso_button_login_form_position"]) ? $rw[$GW]["sso_button_login_form_position"] : "above"; 
        $fm = "<input type="button" name="mo_saml_wp_sso_button" value="" . $nh . "" style=""; 
        $a9 = "cursor:pointer;"; 
        if ($rg == "longbutton") { 
            goto pN9; 
        } 
        if ($rg == "circle") { 
            goto D3g; 
        } 
        if ($rg == "oval") { 
            goto X6d; 
        } 
        if ($rg == "square") { 
            goto dgs; 
        } 
        goto mYU; 
        D3g: 
        $a9 = $a9 . "width:" . $QT . "px;"; 
        $a9 = $a9 . "height:" . $QT . "px;"; 
        $a9 = $a9 . "border-radius:999px;"; 
        goto mYU; 
        X6d: 
        $a9 = $a9 . "width:" . $QT . "px;"; 
        $a9 = $a9 . "height:" . $QT . "px;"; 
        $a9 = $a9 . "border-radius:5px;"; 
        goto mYU; 
        dgs: 
        $a9 = $a9 . "width:" . $QT . "px;"; 
        $a9 = $a9 . "height:" . $QT . "px;"; 
        $a9 = $a9 . "border-radius:0px;"; 
        $a9 = $a9 . "padding:0px;"; 
        mYU: 
        goto DEj; 
        pN9: 
        $a9 = $a9 . "width:" . $TD . "px;"; 
        $a9 = $a9 . "height:" . $ng . "px;"; 
        $a9 = $a9 . "border-radius:" . $zY . "px;"; 
        DEj: 
        $a9 = $a9 . "background-color:#" . $Pm . ";"; 
        $a9 = $a9 . "border-color:transparent;"; 
        $a9 = $a9 . "color:#" . $i8 . ";"; 
        $a9 = $a9 . "font-size:" . $SY . "px;"; 
        $fm = $fm . $a9 . ""/>"; 
        $Xu = urlencode(saml_get_current_page_url()); 
        if (empty($_GET["redirect_to"])) { 
            goto LFL; 
        } 
        $Xu = urlencode($_GET["redirect_to"]); 
        LFL: 
        $eu = "<a href="" . $fs . "/?option=saml_user_login&redirect_to=" . $Xu . "" style="text-decoration:none">" . $fm . "</a>"; 
        $eu = "<div style="padding-bottom:10px;">" . $eu . "</div>"; 
        if ($BM == "above") { 
            goto M5w; 
        } 
        $eu = "<div id="sso_button" style="text-align:center"><div style="padding:5px;font-size:14px;"><b>OR</b></div>" . $eu . "</div><br/>"; 
        goto zaj; 
        M5w: 
        $eu = "<div id="sso_button" style="text-align:center">" . $eu . "<div style="padding:5px;font-size:14px;"><b>OR</b></div></div><br/>"; 
        $eu = $eu . "<script>\xd\xa	\x9		var $element = jQuery("#user_login");\xd\xa\x9\x9\x9\x9jQuery("#sso_button").insertBefore(jQuery("label[for='"+$element.attr('id')+"']"));\xd\xa			\x9</script>"; 
        zaj: 
        echo $eu; 
        GUu: 
    } 
    function mo_get_saml_shortcode() 
    { 
        $rw = maybe_unserialize(get_site_option("saml_sso_settings")); 
        $GW = get_current_blog_id(); 
        $rT = Utilities::get_active_sites(); 
        if (Utilities::mo_saml_in_array($GW, $rT)) { 
            goto jsS; 
        } 
        return; 
        jsS: 
        if (!(!Mo_License_Service::is_customer_license_valid() || !mo_saml_is_sp_configured())) { 
            goto En4; 
        } 
        return; 
        En4: 
        if (!(empty($rw[$GW]) && !empty($rw["DEFAULT"]))) { 
            goto BPc; 
        } 
        $rw[$GW] = $rw["DEFAULT"]; 
        BPc: 
        if (!is_user_logged_in()) { 
            goto OuQ; 
        } 
        $current_user = wp_get_current_user(); 
        $WL = "Hello,"; 
        if (empty($rw[$GW]["mo_saml_custom_greeting_text"])) { 
            goto vRN; 
        } 
        $WL = $rw[$GW]["mo_saml_custom_greeting_text"]; 
        vRN: 
        $Y1 = ''; 
        if (empty($rw[$GW]["mo_saml_greeting_name"])) { 
            goto Nlj; 
        } 
        switch ($rw[$GW]["mo_saml_greeting_name"]) { 
            case "USERNAME": 
                $Y1 = $current_user->user_login; 
                goto l2Y; 
            case "EMAIL": 
                $Y1 = $current_user->user_email; 
                goto l2Y; 
            case "FNAME": 
                $Y1 = $current_user->user_firstname; 
                goto l2Y; 
            case "LNAME": 
                $Y1 = $current_user->user_lastname; 
                goto l2Y; 
            case "FNAME_LNAME": 
                $Y1 = $current_user->user_firstname . " " . $current_user->user_lastname; 
                goto l2Y; 
            case "LNAME_FNAME": 
                $Y1 = $current_user->user_lastname . " " . $current_user->user_firstname; 
                goto l2Y; 
            default: 
                $Y1 = $current_user->user_login; 
        } 
        yd0: 
        l2Y: 
        Nlj: 
        if (!empty(trim($Y1))) { 
            goto JGD; 
        } 
        $Y1 = $current_user->user_login; 
        JGD: 
        $NQ = $WL . " " . $Y1; 
        $gl = "Logout"; 
        if (empty($rw[$GW]["mo_saml_custom_logout_text"])) { 
            goto Wnl; 
        } 
        $gl = $rw[$GW]["mo_saml_custom_logout_text"]; 
        Wnl: 
        $eu = $NQ . " | <a href="" . wp_logout_url(home_url()) . "" title="logout" >" . $gl . "</a></li>"; 
        goto OxA; 
        OuQ: 
        $fs = get_site_option("mo_saml_sp_base_url"); 
        if (!empty($fs)) { 
            goto zYw; 
        } 
        $fs = home_url(); 
        zYw: 
        $ni = "Login with " . get_site_option("saml_identity_name"); 
        if (empty($rw[$GW]["mo_saml_custom_login_text"])) { 
            goto Prz; 
        } 
        $ni = $rw[$GW]["mo_saml_custom_login_text"]; 
        Prz: 
        $m9 = get_site_option("saml_identity_name"); 
        $ni = str_replace("##IDP##", $m9, $ni); 
        $Uz = false; 
        if (!(!empty($rw[$GW]["mo_saml_use_button_as_shortcode"]) and $rw[$GW]["mo_saml_use_button_as_shortcode"] == "true")) { 
            goto L8s; 
        } 
        $Uz = true; 
        L8s: 
        if (!$Uz) { 
            goto aWx; 
        } 
        $TD = !empty($rw[$GW]["mo_saml_button_width"]) ? $rw[$GW]["mo_saml_button_width"] : "100"; 
        $ng = !empty($rw[$GW]["mo_saml_button_height"]) ? $rw[$GW]["mo_saml_button_height"] : "50"; 
        $QT = !empty($rw[$GW]["mo_saml_button_size"]) ? $rw[$GW]["mo_saml_button_size"] : "50"; 
        $zY = !empty($rw[$GW]["mo_saml_button_curve"]) ? $rw[$GW]["mo_saml_button_curve"] : "5"; 
        $Pm = !empty($rw[$GW]["mo_saml_button_color"]) ? $rw[$GW]["mo_saml_button_color"] : "0085ba"; 
        $rg = !empty($rw[$GW]["mo_saml_button_theme"]) ? $rw[$GW]["mo_saml_button_theme"] : "longbutton"; 
        $nh = !empty($rw[$GW]["mo_saml_button_text"]) ? $rw[$GW]["mo_saml_button_text"] : (get_site_option("saml_identity_name") ? get_site_option("saml_identity_name") : "Login"); 
        $i8 = !empty($rw[$GW]["mo_saml_font_color"]) ? $rw[$GW]["mo_saml_font_color"] : "ffffff"; 
        $iC = !empty($rw[$GW]["mo_saml_font_size"]) ? $rw[$GW]["mo_saml_font_size"] : "20"; 
        $ni = "<input type="button" name="mo_saml_wp_sso_button" value="" . $nh . "" style=""; 
        $a9 = ''; 
        if ($rg == "longbutton") { 
            goto heu; 
        } 
        if ($rg == "circle") { 
            goto fRI; 
        } 
        if ($rg == "oval") { 
            goto gwu; 
        } 
        if ($rg == "square") { 
            goto qOv; 
        } 
        goto kGq; 
        fRI: 
        $a9 = $a9 . "width:" . $QT . "px;"; 
        $a9 = $a9 . "height:" . $QT . "px;"; 
        $a9 = $a9 . "border-radius:999px;"; 
        goto kGq; 
        gwu: 
        $a9 = $a9 . "width:" . $QT . "px;"; 
        $a9 = $a9 . "height:" . $QT . "px;"; 
        $a9 = $a9 . "border-radius:5px;"; 
        goto kGq; 
        qOv: 
        $a9 = $a9 . "width:" . $QT . "px;"; 
        $a9 = $a9 . "height:" . $QT . "px;"; 
        $a9 = $a9 . "border-radius:0px;"; 
        kGq: 
        goto CIb; 
        heu: 
        $a9 = $a9 . "width:" . $TD . "px;"; 
        $a9 = $a9 . "height:" . $ng . "px;"; 
        $a9 = $a9 . "border-radius:" . $zY . "px;"; 
        CIb: 
        $a9 = $a9 . "background-color:#" . $Pm . ";"; 
        $a9 = $a9 . "border-color:transparent;"; 
        $a9 = $a9 . "color:#" . $i8 . ";"; 
        $a9 = $a9 . "font-size:" . $iC . "px;"; 
        $a9 = $a9 . "padding:0px;"; 
        $ni = $ni . $a9 . ""/>"; 
        aWx: 
        $Xu = urlencode(saml_get_current_page_url()); 
        $eu = "<a href="" . $fs . "/?option=saml_user_login&redirect_to=" . $Xu . """; 
        if (!$Uz) { 
            goto wYb; 
        } 
        $eu = $eu . "style="text-decoration:none;""; 
        wYb: 
        $eu = $eu . ">" . $ni . "</a>"; 
        OxA: 
        return $eu; 
    } 
    function upload_metadata() 
    { 
        if (!(!empty($_FILES["metadata_file"]) || !empty($_POST["metadata_url"]))) { 
            goto qCj; 
        } 
        if (!empty($_FILES["metadata_file"]["tmp_name"])) { 
            goto e0a; 
        } 
        if (mo_saml_is_extension_installed("curl")) { 
            goto hID; 
        } 
        update_option("mo_saml_message", "PHP cURL extension is not installed or disabled. Cannot fetch metadata from URL."); 
        $this->mo_saml_show_error_message(); 
        return; 
        hID: 
        $qp = filter_var(htmlspecialchars($_POST["metadata_url"]), FILTER_SANITIZE_URL); 
        $uk = Utilities::mo_saml_wp_remote_call($qp, $this, array("sslverify" => false), true); 
        if ($uk) { 
            goto LdR; 
        } 
        update_site_option("mo_saml_message", "Please provide a valid metadata URL."); 
        return; 
        LdR: 
        if (!is_null($uk)) { 
            goto UDr; 
        } 
        $Rq = null; 
        goto Wf4; 
        UDr: 
        $Rq = $uk; 
        Wf4: 
        if (!empty($_POST["sync_metadata"])) { 
            goto tY6; 
        } 
        delete_site_option("saml_metadata_url_for_sync"); 
        delete_site_option("saml_metadata_sync_interval"); 
        wp_unschedule_event(wp_next_scheduled("metadata_sync_cron_action"), "metadata_sync_cron_action"); 
        goto we2; 
        tY6: 
        update_site_option("saml_metadata_url_for_sync", htmlspecialchars($_POST["metadata_url"])); 
        update_site_option("saml_metadata_sync_interval", htmlspecialchars($_POST["sync_interval"])); 
        if (wp_next_scheduled("metadata_sync_cron_action")) { 
            goto J5m; 
        } 
        wp_schedule_event(time(), htmlspecialchars($_POST["sync_interval"]), "metadata_sync_cron_action"); 
        J5m: 
        we2: 
        goto SQC; 
        e0a: 
        $Rq = @file_get_contents($_FILES["metadata_file"]["tmp_name"]); 
        SQC: 
        $lb = set_error_handler(array($this, "handleXmlError")); 
        $G7 = new DOMDocument(); 
        $G7->loadXML($Rq); 
        restore_error_handler(); 
        if (!empty($G7->firstChild)) { 
            goto P0Y; 
        } 
        if (!empty($_POST["upload_metadata"])) { 
            goto mqu; 
        } 
        update_site_option("mo_saml_message", "Please provide a valid metadata URL."); 
        goto sFr; 
        mqu: 
        update_site_option("mo_saml_message", "Please provide a valid metadata file."); 
        sFr: 
        $this->mo_saml_show_error_message(); 
        goto ny9; 
        P0Y: 
        $qg = new MetadataReader($G7); 
        foreach ($qg->getIdentityProviders() as $ns => $NW) { 
            $ua = $_POST["saml_identity_provider_name"]; 
            if (!("0" === $ua)) { 
                goto nuQ; 
            } 
            update_site_option("mo_saml_message", "'0' is not allowed as <b>Identity Provider Name</b>. Enter a valid name."); 
            $this->mo_saml_show_error_message(); 
            return; 
            nuQ: 
            $EZ = "HttpRedirect"; 
            $Z9 = ''; 
            $jC = $NW->getLoginDetails(); 
            if (!empty($jC["HTTP-Redirect"])) { 
                goto zbU; 
            } 
            if (!empty($jC["HTTP-POST"])) { 
                goto t0z; 
            } 
            goto rE5; 
            zbU: 
            $Z9 = $NW->getLoginURL("HTTP-Redirect"); 
            goto rE5; 
            t0z: 
            $EZ = "HttpPost"; 
            $Z9 = $NW->getLoginURL("HTTP-POST"); 
            rE5: 
            $bY = "HttpRedirect"; 
            $fZ = ''; 
            $EX = $NW->getLogoutDetails(); 
            if (!empty($EX["HTTP-Redirect"])) { 
                goto R8n; 
            } 
            if (!empty($EX["HTTP-POST"])) { 
                goto q74; 
            } 
            goto Ysy; 
            R8n: 
            $fZ = $NW->getLogoutURL("HTTP-Redirect"); 
            goto Ysy; 
            q74: 
            $bY = "HttpPost"; 
            $fZ = $NW->getLogoutURL("HTTP-POST"); 
            Ysy: 
            $nL = $NW->getEntityID(); 
            $oX = $NW->getSigningCertificate(); 
            update_site_option("saml_identity_name", $ua); 
            update_site_option("saml_login_binding_type", $EZ); 
            update_site_option("saml_login_url", $Z9); 
            update_site_option("saml_logout_binding_type", $bY); 
            update_site_option("saml_logout_url", $fZ); 
            update_site_option("saml_issuer", $nL); 
            update_site_option("saml_nameid_format", "1.1:nameid-format:unspecified"); 
            $oX = is_array($oX) ? $oX : array(0 => $oX); 
            $oX; 
            foreach ($oX as $ns => $Hr) { 
                $oX[$ns] = Utilities::sanitize_certificate($Hr); 
                f6z: 
            } 
            kK_: 
            update_site_option("saml_x509_certificate", $oX); 
            goto rQm; 
            YR_: 
        } 
        rQm: 
        update_site_option("mo_saml_message", "Identity Provider details saved successfully."); 
        $this->mo_saml_show_success_message(); 
        ny9: 
        qCj: 
    } 
    function handleXmlError($Td, $T1, $k2, $ww) 
    { 
        if ($Td == E_WARNING && substr_count($T1, "DOMDocument::loadXML()") > 0) { 
            goto DDI; 
        } 
        return false; 
        goto hxP; 
        DDI: 
        return; 
        hxP: 
    } 
    function mo_saml_admin_page_access_denied() 
    { 
        $SE = get_blogs_of_user(get_current_user_id()); 
        if (!wp_list_filter($SE, array("userblog_id" => get_current_blog_id()))) { 
            goto BmC; 
        } 
        return; 
        BmC: 
        $nJ = get_bloginfo("name"); 
        if (!empty($SE)) { 
            goto XyV; 
        } 
        $ay = "You attempted to access the " . $nJ . " site, but you do not currently have privileges on this site. If you believe you should be able to access the " . $nJ . " site, please contact your network administrator."; 
        mo_saml_subsite_access_denied_page($ay); 
        exit; 
        XyV: 
        $ay = "<p>You attempted to access the " . $nJ . " site, but you do not currently have privileges on this site. If you believe you should be able to access the " . $nJ . " site, please contact your network administrator.</p>"; 
        $ay .= "<p>If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.</p>"; 
        $ay .= "<h3>Your Sites</h3>"; 
        $ay .= "<table>"; 
        foreach ($SE as $LQ) { 
            $ay .= "<tr>"; 
            $ay .= "<td>" . $LQ->blogname . "</td>"; 
            $ay .= "<td><a href="" . esc_url(get_admin_url($LQ->userblog_id)) . "">Visit Dashboard</a> | <a href="" . esc_url(get_home_url($LQ->userblog_id)) . "">View Site</a></td>"; 
            $ay .= "</tr>"; 
            Wbs: 
        } 
        OKt: 
        $ay .= "</table>"; 
        mo_saml_subsite_access_denied_page($ay); 
        exit; 
    } 
    function mo_saml_plugin_action_links($MI) 
    { 
        $MI = array_merge(array("<a href="" . esc_url(network_admin_url("admin.php?page=mo_saml_settings")) . "">" . __("Settings", "textdomain") . "</a>"), $MI); 
        return $MI; 
    } 
    function mo_saml_parse_expiry_date($t1) 
    { 
        $pA = new DateTime($t1); 
        $w7 = $pA->getTimestamp(); 
        return date("F j, Y", $w7); 
    } 
    function is_license_expired($bN) 
    { 
        $pA = new DateTime($bN); 
        $Q6 = new DateTime(); 
        if ($Q6 > $pA) { 
            goto pSg; 
        } 
        return false; 
        goto Zyi; 
        pSg: 
        return true; 
        Zyi: 
    } 
    function checkPasswordPattern($C1) 
    { 
        $Gr = "/^[(\w)*(\!\@\#\$\%\^\&\*\.\-\_)*]+$/"; 
        return !preg_match($Gr, $C1); 
    } 
} 
new saml_mo_login(); 
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * This file is a part of the miniorange-saml-20-single-sign-on plugin.
 *
 * @link https://plugins.miniorange.com/
 * @author miniOrange
 * @package miniorange-saml-20-single-sign-on
 */
/*
Plugin Name: miniOrange SSO using SAML 2.0
Plugin URI: https://miniorange.com/
Description: (Multi-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 20.1.1
Author: miniOrange
Author URI: https://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');
require('mo-saml-subsite-access-denied-page.php');
require_once('mo-saml-plugin-version-update.php');
require_once plugin_dir_path( __FILE__ ) . 'lib' . DIRECTORY_SEPARATOR . 'license' . DIRECTORY_SEPARATOR . 'autoloader.php';
include_once 'xmlseclibs.php';
include_once 'MO_Sites_List.php';
use MOSAML\LicenseLibrary\Classes\Mo_License_Library;
use MOSAML\LicenseLibrary\Mo_License_Service;
use RobRichards\XMLSecLibs\XMLSecurityKey;
use RobRichards\XMLSecLibs\XMLSecurityDSig;
use RobRichards\XMLSecLibs\XMLSecEnc;
class saml_mo_login
{
    private $widgetObj;
    function __construct()
    {
        new Mo_License_Library();
        add_site_option("\x6d\157\x5f\141\x70\x70\x6c\171\137\x72\x6f\x6c\x65\137\155\141\x70\160\151\156\x67\x5f\x66\157\162\137\163\x69\x74\x65\x73", 0);
        add_action("\x6e\145\164\167\157\x72\x6b\x5f\x61\144\x6d\151\x6e\x5f\x6d\145\x6e\165", array($this, "\155\151\x6e\x69\157\x72\141\156\x67\x65\x5f\163\163\157\x5f\x6d\x65\156\165"));
        add_action("\141\144\155\151\x6e\137\x69\x6e\x69\x74", array($this, "\x6d\151\156\x69\157\162\x61\x6e\x67\145\137\154\157\x67\151\x6e\137\167\x69\x64\x67\x65\164\137\163\x61\x6d\154\x5f\x73\x61\x76\x65\x5f\x73\145\x74\164\151\x6e\147\163"));
        add_action("\x61\x64\155\x69\156\137\x65\x6e\x71\165\145\x75\145\137\163\x63\162\x69\160\x74\x73", array($this, "\x70\x6c\165\147\x69\156\137\x73\x65\x74\x74\151\x6e\x67\163\137\163\164\171\x6c\x65"));
        register_deactivation_hook(__FILE__, array($this, "\155\x6f\x5f\163\163\157\137\163\x61\155\154\137\144\145\x61\143\x74\x69\x76\141\x74\x65"));
        register_activation_hook(__FILE__, array($this, "\155\x6f\137\163\163\x6f\137\x73\x61\x6d\154\137\141\143\x74\151\x76\x61\164\145"));
        add_action("\x61\x64\155\151\156\137\145\x6e\161\x75\x65\x75\x65\137\163\143\x72\151\x70\164\163", array($this, "\x70\154\x75\147\x69\156\137\x73\145\164\x74\x69\156\x67\x73\137\163\x63\162\151\x70\164"));
        add_action("\x6c\x6f\x67\151\156\137\x65\156\161\x75\145\x75\145\137\163\143\x72\151\160\164\x73", array($this, "\155\x6f\137\x73\141\155\154\137\x6c\157\x67\151\156\x5f\145\x6e\x71\x75\x65\x75\145\137\163\x63\x72\151\x70\164\163"));
        remove_action("\x6e\x65\x74\167\157\x72\153\137\141\144\x6d\x69\x6e\x5f\156\157\x74\151\x63\x65\x73", array($this, "\x6d\x6f\x5f\x73\141\155\154\x5f\x73\x75\x63\x63\145\163\x73\137\155\145\163\163\x61\147\145"));
        remove_action("\156\145\164\167\157\162\153\137\141\144\155\151\x6e\137\x6e\x6f\x74\x69\143\145\163", array($this, "\x6d\x6f\137\163\x61\x6d\154\137\x65\162\x72\x6f\162\137\x6d\x65\x73\163\141\x67\x65"));
        add_action("\x77\160\x5f\141\165\x74\150\x65\156\164\151\x63\141\x74\145", array($this, "\155\157\137\163\141\x6d\154\x5f\141\165\x74\150\x65\x6e\164\151\x63\x61\164\x65"));
        add_action("\x77\x70", array($this, "\x6d\x6f\137\x73\141\x6d\x6c\137\141\165\164\x6f\x5f\162\145\144\151\x72\145\x63\164"));
        $this->widgetObj = new mo_login_wid();
        add_action("\x6c\157\147\x69\x6e\137\146\157\x72\x6d", array($this, "\x6d\157\137\x73\141\155\154\137\155\157\x64\x69\146\171\x5f\154\157\147\151\156\x5f\146\157\x72\x6d"));
        add_shortcode("\115\x4f\x5f\x53\101\115\114\x5f\106\117\122\115", array($this, "\x6d\157\x5f\147\x65\164\137\163\141\x6d\154\x5f\x73\150\x6f\x72\x74\x63\x6f\x64\145"));
        add_filter("\x63\162\157\x6e\137\x73\x63\x68\145\144\165\x6c\145\x73", array($this, "\155\171\160\x72\145\146\151\x78\x5f\141\144\x64\137\x63\162\157\x6e\x5f\x73\x63\x68\145\144\x75\154\145"));
        add_action("\155\145\x74\x61\x64\x61\164\x61\x5f\x73\171\x6e\143\137\x63\162\x6f\x6e\x5f\141\x63\x74\151\x6f\x6e", array($this, "\155\x65\164\141\x64\141\164\141\137\163\x79\x6e\x63\137\x63\x72\157\156\x5f\141\x63\164\x69\x6f\156"));
        add_action("\x61\x64\155\151\156\x5f\x69\x6e\151\164", array($this, "\144\145\146\x61\x75\154\x74\x5f\143\145\162\164\x69\x66\x69\x63\141\164\x65"));
        add_action("\x6e\x65\164\x77\157\x72\153\x5f\141\x64\x6d\x69\x6e\x5f\160\154\165\147\151\156\137\x61\x63\x74\151\157\156\x5f\154\x69\x6e\153\x73\x5f" . plugin_basename(__FILE__), array($this, "\155\157\137\x73\x61\x6d\154\137\160\x6c\x75\x67\151\156\137\x61\143\x74\x69\157\x6e\x5f\x6c\x69\156\153\163"));
        add_filter("\167\160\x6d\x75\137\x75\x73\x65\x72\x73\x5f\x63\157\x6c\x75\x6d\x6e\163", array($this, "\x6d\157\x5f\x73\141\155\x6c\x5f\143\x75\x73\164\x6f\155\x5f\x61\x74\164\162\x5f\143\157\x6c\165\155\x6e"));
        add_filter("\155\x61\x6e\x61\147\x65\137\165\163\145\162\163\x5f\x63\165\x73\164\157\x6d\x5f\x63\157\x6c\x75\155\156", array($this, "\x6d\157\x5f\163\x61\x6d\154\137\x61\x74\x74\x72\x5f\x63\157\x6c\165\155\x6e\x5f\143\x6f\x6e\164\x65\156\x74"), 10, 3);
        add_action("\x61\x64\x6d\x69\156\x5f\x69\x6e\x69\x74", "\x6d\x6f\137\x73\141\155\x6c\x5f\144\x6f\167\x6e\x6c\157\141\144");
        add_action("\x6d\x6f\137\163\x61\x6d\154\x5f\x66\154\x75\x73\x68\137\x63\141\x63\150\x65", array($this, "\155\157\x5f\x73\141\x6d\x6c\137\146\x6c\165\x73\150\137\143\141\x63\x68\x65"), 9999);
        add_action("\x64\145\x6c\145\164\145\x5f\165\x73\145\162\x5f\x66\157\x72\155", array($this, "\x6d\x6f\x5f\x64\145\154\145\164\x65\137\165\163\x65\162\x73"), 10, 2);
        global $wp_version;
        if ((float) $wp_version < 5.5 && (float) $wp_version > 5.2) {
            goto WV;
        }
        add_action("\167\160\137\154\157\147\157\x75\164", array($this->widgetObj, "\x6d\x6f\x5f\x73\141\155\x6c\137\154\157\x67\x6f\165\x74"), 1, 1);
        goto vB;
        WV:
        add_filter("\x6c\157\147\157\x75\x74\137\162\x65\144\x69\162\145\143\x74", array($this, "\x6d\x6f\137\x73\x61\155\x6c\137\154\157\147\157\165\164\137\142\x72\x6f\153\x65\162\137\x77\151\164\x68\137\146\x69\x6c\164\145\162"), 10, 3);
        vB:
        add_action("\151\156\x69\164", array($this->widgetObj, "\155\x6f\x5f\163\141\x6d\154\137\x6c\x6f\x67\x6f\x75\x74\137\x69\x6e\x69\164"));
    }
    function mo_saml_logout_broker_with_filter($Xu, $wJ, $user)
    {
        $this->widgetObj->mo_saml_logout($user->ID);
    }
    function mo_delete_users($current_user, $Bb)
    {
        if (count($Bb) > 1) {
            goto jJ;
        }
        $Yr = false;
        goto tt;
        jJ:
        $Yr = true;
        tt:
        foreach ($Bb as $hI) {
            $user = get_user_by("\151\x64", $hI);
            $this->mo_delete_user($user, $Bb, $Yr);
            f0:
        }
        WZ:
    }
    function mo_delete_user($Kh, $Bb, $Yr)
    {
        $a2 = get_users();
        $kR = $Kh->ID;
        $wK = "\74\154\x61\142\x65\x6c\x20\x66\157\162\75\x22\162\145\x61\163\163\151\147\x6e\137\x75\x73\145\x72\42\40\143\154\x61\x73\x73\x3d\42\163\x63\x72\x65\145\x6e\x2d\x72\145\141\x64\x65\x72\55\164\145\170\x74\42\76" . __("\123\x65\x6c\145\143\x74\x20\141\x20\165\163\x65\x72") . "\x3c\57\154\141\x62\x65\x6c\x3e";
        $wK .= "\74\163\x65\x6c\x65\143\164\x20\156\x61\155\145\x3d\x22\141\x6c\x6c\x5f\x62\x6c\157\147\163\42\40\151\144\x3d\x22\x72\145\x61\x73\x73\x69\147\x6e\x5f\165\163\x65\x72\x5f\x61\154\x6c\42\40\x6f\156\x63\x68\141\156\x67\145\x3d\x22\x72\x65\x41\x73\x73\151\x67\156\x54\x6f\125\x73\145\x72\x28\x74\150\151\163\x2c\x20" . $kR . "\51\42\x3e";
        $PI = '';
        foreach ($a2 as $user) {
            if (Utilities::mo_saml_in_array($user->ID, $Bb)) {
                goto rZ;
            }
            $PI .= "\74\157\160\164\151\x6f\x6e\40\x76\x61\154\165\x65\75\x27{$user->ID}\x27\76{$user->user_login}\x3c\57\157\160\x74\151\157\x6e\x3e";
            rZ:
            lt:
        }
        B0:
        $wK .= $PI;
        $wK .= "\74\57\x73\145\154\145\143\164\76\12";
        echo "\40\40\x20\40\x20\x20\x20\40\x3c\x74\x61\x62\x6c\x65\x20\143\154\x61\x73\x73\x3d\42\x66\x6f\x72\155\x2d\164\x61\x62\154\145\42\40\x72\x6f\x6c\145\x3d\x22\160\162\145\163\x65\156\x74\141\x74\x69\157\156\x22\x3e\xd\12\15\12\x20\40\x20\40\x20\40\40\x20\40\40\x20\40\x3c\x74\x72\76\x3c\x74\x68\x20\163\x63\x6f\x70\145\x3d\42\162\x6f\167\x22\76";
        if (!$Yr) {
            goto e9;
        }
        echo $Kh->user_login;
        e9:
        echo "\40\74\57\x74\150\76\74\164\144\76\15\12\40\40\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x3c\165\x6c\x20\x73\x74\171\154\145\75\x22\x6c\151\163\x74\x2d\x73\164\171\x6c\x65\x3a\156\x6f\x6e\x65\x3b\x22\x3e\xd\12\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\40\x20\40\x20\x3c\x6c\x69\x3e\xd\xa\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\40\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20";
        printf(__("\x3c\142\x3e\123\x69\164\145\x3a\40\45\163\x3c\57\142\76"), "\x41\154\x6c\x20\123\151\x74\x65\163");
        echo "\40\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\40\74\57\x6c\x69\x3e\xd\12\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\40\40\74\x6c\x69\76\x3c\154\141\142\x65\154\76\74\x69\x6e\160\165\x74\40\x74\x79\160\x65\x3d\x22\162\141\144\x69\x6f\x22\40\x69\x64\75\x22\144\145\154\145\x74\x65\x5f\157\160\164\151\157\156\60\x41\x6c\x6c\x22\40\156\141\x6d\x65\75\x22\x64\x65\154\x65\164\145\101\x6c\x6c";
        echo $kR;
        echo "\x22\40\x76\x61\154\165\145\x3d\42\x64\x65\154\x65\164\x65\x22\40\x63\150\145\143\x6b\x65\144\x3d\42\x63\x68\145\x63\153\x65\x64\42\40\x6f\156\x63\150\141\x6e\x67\x65\75\x22\x64\x65\154\x65\x74\145\x41\154\x6c\144\x61\x74\x61\x28\47";
        echo $kR;
        echo "\47\x29\42\x20\x2f\76\xd\12\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40";
        _e("\x44\x65\154\x65\x74\x65\40\x61\x6c\154\x20\x63\x6f\156\164\x65\156\x74\56");
        echo "\74\57\x6c\141\142\x65\x6c\x3e\x3c\57\154\151\x3e\xd\12\40\40\40\40\40\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\40\40\x20\40\x20\x20\x20\x3c\154\151\x3e\74\x6c\141\x62\145\x6c\76\74\x69\156\160\x75\164\40\x74\x79\x70\145\x3d\x22\162\141\x64\151\157\x22\x20\151\x64\75\42\x64\x65\x6c\x65\x74\x65\x5f\157\x70\164\x69\x6f\156\61\x41\154\154\42\40\x6e\141\x6d\145\x3d\42\x64\145\154\145\x74\x65\x41\x6c\154";
        echo $kR;
        echo "\x22\x20\x76\141\154\x75\x65\75\x22\162\145\x61\163\x73\151\x67\x6e\42\40\x6f\x6e\x63\x68\141\x6e\147\145\x3d\x22\141\x73\x73\x69\x67\156\x41\x6c\x6c\x64\141\x74\141\50\47";
        echo $kR;
        echo "\x27\51\x22\x2f\76\xd\xa\40\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\x20\40\x20\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20";
        _e("\101\x74\x74\x72\151\142\165\164\x65\40\141\x6c\154\x20\143\x6f\x6e\x74\145\156\x74\40\x74\157\x3a");
        echo "\74\x2f\x6c\x61\x62\x65\x6c\x3e\xd\12\x20\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\40\40\x20\40\x20\40\x20\40\x20\x20\x20\40\40\x20\40";
        echo $wK;
        echo "\74\x2f\x6c\x69\76\15\12\40\x20\x20\x20\40\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\74\154\x69\76\x3c\x73\x70\141\x6e\40\151\x64\x3d\42\155\157\137\x64\x65\x6c\145\x74\x65\x5f\165\163\145\x72\x5f\x6e\157\164\151\x63\x65";
        echo $kR;
        echo "\x22\40\x73\x74\171\x6c\x65\75\42\x76\x69\x73\151\142\151\154\x69\164\171\x3a\x20\x68\x69\x64\x64\x65\x6e\42\x3e\x3c\142\x72\57\x3e\74\142\76\116\x4f\x54\105\x3a\x20\x3c\57\x62\76\x54\150\x65\40\163\145\x6c\145\x63\x74\145\144\40\165\163\x65\x72\x20\144\x6f\x65\163\156\47\x74\x20\145\170\151\x73\164\40\x69\x6e\x20\164\x68\145\x20\x66\x6f\x6c\154\157\167\151\156\x67\40\163\165\142\x73\x69\x74\145\x73\56\x20\113\x69\156\144\154\171\40\141\164\164\162\151\142\165\x74\145\x20\x74\x68\145\x20\x63\157\x6e\164\145\156\x74\40\x66\157\162\x20\x74\x68\145\x20\x66\157\x6c\x6c\x6f\167\151\156\x67\40\163\165\x62\163\x69\x74\145\163\x20\155\x61\x6e\x75\141\x6c\x6c\x79\40\x6f\x72\x20\163\x65\154\x65\x63\164\x20\x61\40\x64\151\x66\x66\x65\162\x65\156\x74\x20\x75\163\145\x72\x2e\x3c\x2f\x73\160\141\x6e\76\74\57\x6c\x69\76\xd\12\x20\x20\40\40\40\40\x20\40\40\x20\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x3c\157\154\x20\x69\x64\75\42\x6d\x6f\137\x73\165\x62\163\151\164\145\137\x6c\151\163\x74";
        echo $kR;
        echo "\x22\40\163\x74\x79\154\145\x3d\x22\x76\x69\x73\151\x62\x69\154\151\164\x79\x3a\x20\x68\x69\144\x64\145\156\42\x3e\15\12\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\x20\74\x2f\157\x6c\x3e\xd\12\x20\40\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x3c\57\x75\x6c\x3e\xd\xa\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x3c\57\164\x64\x3e\x3c\57\x74\162\76\15\12\40\x20\x20\x20\40\40\40\x20\x3c\57\x74\x61\142\154\x65\x3e\15\12\xd\xa\x20\40\40\x20\40\x20\40\40\x3c\163\x63\162\x69\160\164\x3e\15\12\15\xa\x20\x20\40\x20\40\x20\40\x20\x20\40\40\40\146\165\x6e\x63\164\x69\157\x6e\x20\x64\145\x6c\x65\x74\145\x41\x6c\x6c\144\141\x74\141\x28\x69\x64\51\x7b\15\12\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\x76\141\162\40\x65\x6c\x65\x6d\x73\x20\75\40\x64\157\143\x75\x6d\x65\156\x74\56\161\x75\x65\162\x79\x53\145\x6c\145\x63\164\x6f\162\x41\154\154\x28\42\133\156\141\x6d\145\136\x3d\x27\144\x65\x6c\x65\164\x65\47\x5d\133\156\x61\x6d\x65\x24\x3d\x27\x5b\42\x20\x2b\x20\x69\x64\x20\x2b\40\x22\135\x27\x5d\42\x29\x3b\xd\xa\x20\x20\40\x20\x20\x20\40\40\40\x20\40\x20\x20\40\40\40\x66\x6f\162\50\145\x6c\145\x6d\x20\x6f\146\x20\145\x6c\145\155\163\x29\x20\173\xd\12\40\40\40\40\40\40\40\40\40\40\40\40\x20\40\x20\40\40\40\40\x20\x69\146\50\x65\x6c\x65\x6d\56\166\141\x6c\165\145\x20\75\x3d\x20\x22\x64\145\x6c\145\164\145\42\x29\15\12\x20\x20\x20\40\40\40\40\40\40\40\x20\40\x20\40\x20\x20\40\40\40\40\40\40\x20\x20\x65\154\x65\155\x2e\x63\x68\145\143\153\x65\144\40\75\40\164\162\x75\x65\73\xd\12\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\40\175\15\xa\x20\40\x20\x20\40\x20\40\40\40\40\40\40\x7d\xd\xa\xd\xa\40\40\40\40\40\40\x20\x20\40\40\40\40\146\165\x6e\x63\164\151\157\x6e\x20\x61\x73\x73\151\x67\156\101\x6c\x6c\144\141\164\x61\x28\x69\144\51\x7b\xd\12\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\40\40\40\166\x61\162\40\145\x6c\145\155\163\40\x3d\40\x64\157\143\165\155\145\x6e\x74\x2e\161\x75\x65\x72\x79\x53\x65\x6c\145\143\164\157\162\101\154\x6c\x28\x22\x5b\x6e\141\x6d\x65\x5e\75\x27\144\x65\154\145\x74\145\47\135\133\156\141\155\x65\x24\75\x27\x5b\42\x20\x2b\x20\151\x64\40\x2b\40\42\x5d\47\135\42\x29\73\15\12\x20\x20\x20\x20\40\40\40\40\40\40\40\40\x20\x20\x20\x20\146\x6f\162\50\x65\154\145\155\x20\x6f\x66\x20\145\x6c\x65\155\x73\x29\x20\173\15\xa\x20\x20\40\40\40\40\40\x20\x20\40\x20\40\40\x20\40\40\40\x20\x20\40\x69\146\x28\145\154\145\155\56\166\x61\x6c\165\x65\x20\x3d\x3d\x20\x22\x72\145\141\x73\x73\151\147\156\x22\x29\15\xa\x20\40\x20\40\x20\40\40\40\40\x20\40\x20\40\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\x65\154\145\x6d\x2e\143\150\x65\143\153\x65\x64\x20\75\x20\164\x72\165\x65\x3b\15\xa\40\x20\40\x20\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\175\xd\xa\40\40\40\x20\x20\40\x20\x20\40\40\x20\x20\x7d\15\12\xd\xa\x20\x20\40\40\40\40\x20\40\40\40\x20\40\x66\165\156\x63\x74\x69\157\156\40\x72\x65\x41\x73\x73\151\147\x6e\x54\157\x55\163\145\x72\x28\165\163\x65\x72\x53\145\x6c\x65\x63\164\x2c\x20\165\163\x65\x72\x69\144\x29\173\15\xa\40\x20\40\x20\x20\40\x20\40\x20\40\x20\40\x20\40\x20\40\x66\x6c\x75\163\150\105\x78\151\x73\164\151\156\x67\x53\x75\142\x73\x69\164\145\x4c\151\x73\164\50\165\x73\x65\162\151\144\51\x3b\xd\xa\x20\40\40\x20\40\40\x20\x20\40\40\40\40\40\x20\40\40\x76\x61\x72\40\145\154\145\155\163\40\x3d\x20\x64\x6f\143\165\155\x65\x6e\164\56\161\x75\x65\162\x79\x53\x65\x6c\x65\143\164\157\x72\x41\154\x6c\x28\x22\133\x6e\x61\155\145\136\x3d\x27\142\154\157\x67\x5b\42\40\x2b\40\165\x73\145\162\151\x64\x20\53\40\x22\x5d\x27\x5d\42\x29\x3b\15\xa\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x76\141\x72\x20\141\x6c\x6c\123\151\x74\x65\163\x20\75\x20\164\x72\x75\x65\73\xd\12\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\x66\x6f\162\x28\x65\x6c\145\x6d\x20\x6f\146\40\145\x6c\x65\155\163\x29\40\x7b\15\xa\x20\40\40\40\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x69\x66\x28\x69\163\117\160\x74\x69\157\156\x45\x78\151\x73\x74\x28\x65\x6c\145\x6d\x2c\40\165\x73\145\x72\x53\145\x6c\145\x63\164\56\x76\141\x6c\165\x65\x29\51\15\12\x20\40\x20\x20\40\x20\40\40\40\x20\x20\40\40\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\145\154\145\x6d\56\x76\141\x6c\x75\145\x20\75\40\165\163\145\162\123\145\154\x65\143\164\56\x76\x61\x6c\x75\145\73\15\xa\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x65\154\x73\145\x20\173\xd\xa\x20\40\x20\x20\40\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\40\40\40\x20\x20\40\x20\163\x68\157\167\x4d\x6f\x44\x65\154\x65\164\145\116\157\x74\x69\x63\145\x28\x65\154\x65\x6d\54\x20\165\x73\x65\x72\151\x64\x29\73\xd\xa\x20\40\x20\x20\40\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\40\40\40\40\x20\x61\154\154\x53\x69\x74\x65\x73\x20\75\40\x66\141\x6c\163\145\73\xd\12\x20\40\x20\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\40\40\40\x20\40\175\xd\12\15\12\40\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\175\15\xa\15\xa\40\x20\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\151\x66\50\x61\x6c\154\x53\x69\x74\x65\x73\x29\x20\x7b\15\12\x20\40\40\x20\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\x64\x6f\x63\165\155\x65\156\x74\56\147\145\x74\x45\x6c\145\155\x65\x6e\164\102\x79\x49\144\50\42\x6d\157\x5f\144\145\x6c\145\164\145\x5f\x75\x73\x65\162\x5f\156\157\164\x69\x63\x65\42\x20\x2b\40\x75\163\x65\x72\x69\x64\51\x2e\163\164\x79\154\x65\56\x76\x69\163\x69\142\x69\154\x69\164\x79\x20\75\40\x22\x68\151\144\144\x65\156\x22\73\xd\12\40\40\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\144\157\143\165\x6d\x65\156\x74\56\147\145\164\105\154\145\x6d\145\x6e\164\x42\171\x49\144\50\42\x6d\157\x5f\163\x75\142\x73\151\164\145\137\154\x69\x73\164\x22\x20\x2b\x20\165\163\x65\162\151\x64\51\56\163\x74\171\x6c\x65\x2e\x76\151\163\151\142\x69\154\x69\164\x79\40\75\40\42\150\x69\x64\x64\145\156\x22\73\xd\12\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\40\x20\x20\175\15\12\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\175\xd\xa\xd\xa\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x66\x75\156\143\x74\151\157\x6e\x20\151\163\117\x70\x74\151\157\x6e\x45\170\x69\x73\164\50\163\145\154\x65\x63\164\54\x20\x76\141\154\165\145\x29\173\xd\xa\15\12\40\40\x20\x20\x20\x20\40\40\40\x20\40\40\40\40\40\40\146\157\x72\x28\151\40\75\x20\60\73\x20\x69\40\x3c\x20\163\145\154\x65\143\164\56\154\145\x6e\147\x74\150\73\40\x69\53\x2b\x29\173\xd\xa\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\151\x66\x28\163\x65\x6c\x65\143\x74\x2e\157\160\164\151\x6f\x6e\163\133\151\x5d\56\x76\141\x6c\165\145\40\75\75\40\166\141\x6c\x75\145\x29\15\xa\x20\x20\40\40\40\40\40\40\40\x20\x20\x20\x20\40\40\40\40\40\40\x20\40\x20\40\40\x72\x65\164\165\x72\156\40\164\x72\x75\145\73\15\12\40\x20\40\40\40\40\40\40\40\40\40\x20\40\x20\x20\40\x7d\15\12\x20\x20\40\x20\40\40\40\40\40\x20\40\40\x20\40\x20\x20\x72\145\x74\x75\x72\x6e\40\x66\x61\154\x73\x65\73\xd\xa\40\x20\x20\40\40\x20\x20\40\x20\40\40\x20\x7d\xd\12\15\12\40\40\40\x20\40\x20\40\40\x20\x20\x20\40\146\165\156\143\x74\x69\x6f\x6e\x20\163\150\x6f\x77\x4d\x6f\x44\145\x6c\x65\x74\x65\116\157\x74\x69\x63\145\x28\x65\x6c\145\x6d\54\x20\x75\x73\145\x72\151\144\x29\x7b\xd\12\x20\40\40\40\40\40\40\x20\40\40\x20\40\x20\40\x20\x20\x64\x6f\x63\x75\x6d\145\156\x74\x2e\x67\x65\164\105\154\145\155\x65\156\164\102\171\x49\x64\50\42\155\x6f\137\144\145\154\x65\x74\x65\x5f\165\163\145\x72\137\x6e\x6f\164\x69\x63\145\42\x20\x2b\x20\x75\163\x65\162\x69\x64\x29\56\163\x74\171\154\x65\56\x76\151\163\x69\142\151\154\151\x74\171\40\x3d\x20\x22\166\x69\163\151\x62\154\x65\x22\x3b\xd\xa\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\144\157\x63\x75\x6d\x65\x6e\164\56\147\x65\164\105\x6c\x65\155\x65\156\x74\102\x79\111\x64\50\42\x6d\157\x5f\163\x75\x62\163\x69\x74\x65\137\x6c\x69\x73\x74\42\40\53\x20\x75\163\145\x72\151\144\51\56\163\164\171\x6c\x65\56\x76\x69\x73\151\x62\x69\154\x69\x74\x79\x20\x3d\40\x22\x76\x69\x73\151\142\154\x65\42\x3b\xd\xa\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\40\165\x72\154\40\x3d\x20\147\145\x74\123\x75\142\x73\x69\164\x65\x57\x68\145\x72\x65\125\163\x65\162\104\x6f\145\163\116\157\164\105\170\151\x73\164\x28\x65\154\x65\x6d\x29\73\xd\xa\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\156\x61\155\145\x20\x3d\x20\147\x65\164\x53\165\142\163\151\x74\x65\x4e\x61\x6d\x65\x57\150\x65\x72\145\x55\x73\x65\162\x44\x6f\x65\x73\116\157\164\105\170\151\163\x74\50\145\154\x65\155\x29\x3b\15\xa\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\40\141\144\144\125\x72\x6c\124\157\x4c\x69\x73\x74\x28\165\x72\154\x2c\40\x6e\x61\155\145\x2c\40\x75\x73\145\162\x69\144\x29\73\15\xa\40\x20\40\x20\40\40\40\40\x20\40\40\x20\175\15\xa\15\xa\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\146\x75\x6e\143\x74\x69\157\156\40\147\145\164\x53\165\142\163\151\164\x65\x57\x68\x65\162\x65\125\x73\x65\162\x44\157\145\x73\x4e\157\164\x45\x78\x69\163\x74\x28\145\x6c\x65\x6d\145\156\x74\x29\x7b\xd\12\x20\40\x20\40\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\163\x75\142\x73\151\x74\145\x55\x72\154\x20\75\x20\145\154\145\x6d\145\156\x74\56\160\141\x72\x65\x6e\x74\105\x6c\x65\155\145\x6e\x74\56\x70\x61\x72\145\156\x74\x45\x6c\x65\155\x65\x6e\x74\56\x66\x69\x72\163\x74\105\154\145\155\x65\x6e\x74\x43\x68\x69\x6c\144\56\x66\x69\162\x73\164\105\x6c\x65\155\x65\156\164\103\150\x69\154\x64\56\147\145\x74\x41\164\x74\162\151\x62\165\x74\145\x28\42\150\x72\x65\146\x22\51\x3b\15\12\x20\40\40\x20\x20\x20\x20\40\40\x20\40\40\x20\40\x20\40\x72\x65\x74\x75\x72\x6e\x20\163\165\142\163\151\164\145\x55\x72\154\x3b\xd\12\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\175\15\xa\15\xa\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x66\x75\x6e\x63\164\151\x6f\x6e\40\147\145\164\x53\x75\x62\163\x69\164\145\116\x61\155\x65\127\x68\x65\162\145\x55\x73\145\x72\104\157\145\x73\116\157\x74\x45\x78\151\163\164\50\145\154\x65\x6d\x65\156\x74\51\x7b\xd\xa\x20\40\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x73\x75\142\163\x69\x74\145\x4e\141\x6d\x65\x20\x3d\40\x65\154\145\155\x65\x6e\164\56\160\141\x72\145\156\164\x45\154\x65\155\145\x6e\x74\x2e\160\x61\x72\x65\156\164\x45\x6c\x65\x6d\x65\156\164\x2e\146\x69\162\x73\164\x45\x6c\x65\155\145\x6e\x74\x43\150\x69\x6c\144\56\146\x69\162\x73\x74\105\154\145\x6d\x65\156\x74\103\x68\x69\x6c\x64\x2e\x69\156\x6e\x65\x72\x54\x65\x78\164\x3b\xd\xa\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\162\145\x74\x75\x72\156\x20\x73\165\x62\x73\x69\x74\x65\x4e\141\x6d\x65\x3b\15\xa\40\x20\x20\x20\40\x20\40\40\x20\40\40\40\x7d\15\xa\15\xa\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\x66\x75\156\x63\x74\x69\x6f\156\40\141\x64\x64\x55\162\154\x54\x6f\x4c\151\163\x74\x28\165\162\x6c\54\40\x6e\x61\x6d\145\54\40\x75\x73\145\162\x69\144\x29\173\15\xa\40\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\40\40\x76\141\x72\x20\x6f\154\105\x6c\145\155\40\x3d\x20\x64\x6f\x63\165\155\145\x6e\164\56\147\x65\x74\105\154\145\155\145\x6e\164\102\x79\111\x64\50\x22\x6d\157\137\x73\x75\142\x73\151\164\x65\x5f\154\151\163\x74\x22\x20\53\x20\165\163\x65\162\x69\x64\x29\73\xd\xa\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x76\x61\x72\x20\154\151\40\x3d\40\144\157\x63\165\x6d\x65\156\x74\x2e\x63\x72\145\141\164\x65\105\154\145\x6d\145\156\164\x28\x22\x6c\151\x22\x29\73\xd\xa\40\40\40\40\40\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\x6c\151\x2e\x61\x70\x70\x65\x6e\x64\103\150\151\154\144\50\144\x6f\143\165\155\x65\x6e\x74\56\x63\162\x65\141\x74\145\x54\145\170\x74\x4e\157\x64\145\50\x75\162\154\40\x2b\x20\x20\42\40\40\x20\55\40\40\x20\x22\40\53\x20\x6e\141\x6d\145\x29\51\x3b\15\xa\40\40\40\x20\x20\x20\40\x20\40\40\x20\40\x20\40\40\40\x6c\151\56\x73\x65\x74\x41\x74\x74\x72\151\142\x75\x74\x65\50\42\x69\144\42\54\40\165\162\154\x29\73\15\12\40\40\40\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\157\x6c\105\x6c\x65\155\x2e\141\160\x70\x65\x6e\144\103\x68\x69\x6c\x64\50\154\x69\51\x3b\15\12\x20\x20\x20\40\40\40\40\40\x20\x20\x20\40\x7d\xd\xa\15\xa\40\40\40\40\40\40\x20\40\40\40\x20\x20\146\x75\156\143\164\x69\x6f\x6e\40\x66\154\165\x73\x68\105\x78\151\163\x74\151\156\x67\123\165\x62\163\x69\164\x65\114\151\163\x74\x28\x75\163\x65\x72\x69\144\51\173\xd\xa\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\40\40\166\141\162\40\x6f\x6c\105\154\x65\x6d\x20\75\x20\144\157\143\165\x6d\x65\x6e\164\x2e\147\145\x74\105\154\x65\x6d\x65\156\x74\102\171\111\x64\50\x22\x6d\x6f\x5f\163\165\142\x73\x69\164\145\137\154\151\163\164\42\x20\x2b\40\165\x73\145\162\151\144\51\73\15\xa\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\157\154\x45\154\x65\x6d\56\x69\x6e\x6e\x65\x72\110\124\115\x4c\40\x3d\40\42\x22\73\xd\12\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x20\x7d\15\xa\xd\12\xd\12\40\40\40\40\40\40\40\x20\74\57\x73\143\x72\151\x70\164\x3e\15\xa\15\xa\x20\40\40\x20\x20\40\40\x20";
    }
    function mo_saml_flush_cache()
    {
        if (!(mo_saml_is_customer_registered_saml() && get_site_option("\x73\155\x6c\137\154\153"))) {
            goto CQ;
        }
        $IV = new Customersaml();
        $IV->mo_saml_update_status($this);
        CQ:
    }
    function default_certificate()
    {
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "\x72\x65\x73\x6f\165\162\143\x65\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "\x72\x65\163\x6f\x75\162\x63\145\x73" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
        if (!(!get_site_option("\x6d\157\137\163\x61\155\x6c\137\x63\165\x72\162\145\x6e\164\137\143\x65\x72\x74") && !get_site_option("\155\x6f\137\x73\x61\155\154\137\x63\165\162\x72\145\156\x74\137\x63\145\162\164\x5f\160\x72\x69\166\x61\x74\145\x5f\153\145\x79"))) {
            goto k6;
        }
        if (get_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\x63\x65\162\x74") && get_site_option("\155\x6f\137\163\141\x6d\154\x5f\x63\x65\162\164\137\x70\x72\151\166\141\x74\x65\x5f\153\145\x79")) {
            goto aq;
        }
        update_site_option("\x6d\157\x5f\x73\141\x6d\154\x5f\x63\165\x72\162\x65\156\164\137\x63\x65\x72\x74", $eH);
        update_site_option("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\x63\x75\x72\x72\x65\156\164\137\143\x65\162\164\x5f\160\162\x69\x76\141\164\145\137\x6b\x65\x79", $W8);
        goto xA;
        aq:
        update_site_option("\155\157\x5f\163\x61\155\x6c\137\143\165\162\162\145\x6e\164\137\143\145\x72\164", get_site_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\143\x65\x72\x74"));
        update_site_option("\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\x63\165\162\162\145\156\x74\137\143\145\x72\x74\x5f\160\162\x69\166\x61\x74\145\x5f\x6b\145\171", get_site_option("\155\x6f\137\x73\x61\155\x6c\x5f\x63\x65\x72\164\x5f\160\162\x69\x76\141\164\145\x5f\153\145\x79"));
        xA:
        k6:
    }
    function myprefix_add_cron_schedule($O8)
    {
        $O8["\x77\x65\145\153\x6c\171"] = array("\x69\x6e\x74\145\162\x76\141\154" => 604800, "\x64\151\163\x70\154\x61\x79" => __("\117\156\x63\145\40\127\x65\145\x6b\x6c\171"));
        $O8["\155\157\x6e\x74\150\154\171"] = array("\x69\x6e\x74\145\162\x76\x61\x6c" => 2635200, "\144\151\x73\x70\x6c\x61\x79" => __("\x4f\156\x63\x65\x20\x4d\157\x6e\164\150\154\x79"));
        return $O8;
    }
    function metadata_sync_cron_action()
    {
        $ua = get_site_option("\x73\x61\155\x6c\137\151\144\145\156\x74\x69\x74\x79\x5f\156\x61\x6d\x65");
        $this->upload_metadata(@file_get_contents(get_site_option("\163\x61\x6d\x6c\137\155\145\164\x61\x64\141\x74\141\x5f\165\x72\x6c\x5f\146\x6f\162\x5f\x73\171\156\x63")));
        update_site_option("\163\141\x6d\x6c\137\x69\x64\145\156\x74\x69\x74\x79\137\156\x61\x6d\145", $ua);
    }
    function mo_login_widget_saml_options()
    {
        global $wpdb;
        update_site_option("\x6d\x6f\137\x73\141\x6d\154\x5f\x68\x6f\163\164\x5f\156\141\155\145", "\x68\164\164\160\x73\72\57\57\x6c\x6f\147\151\156\56\x78\145\x63\x75\x72\x69\x66\171\x2e\143\157\155");
        mo_register_saml_sso();
    }
    function mo_saml_success_message()
    {
        $Ei = "\x65\162\x72\x6f\x72";
        $sY = get_site_option("\155\157\x5f\x73\x61\155\154\x5f\155\x65\x73\x73\141\147\145");
        echo "\74\x64\151\166\x20\143\x6c\x61\163\x73\75\47" . $Ei . "\47\x3e\x20\x3c\x70\76" . $sY . "\x3c\x2f\160\76\x3c\x2f\x64\151\x76\76";
    }
    function mo_saml_error_message()
    {
        $Ei = "\x75\160\144\141\164\145\144";
        $sY = get_site_option("\155\x6f\x5f\x73\x61\155\x6c\137\155\145\163\x73\141\x67\145");
        echo "\x3c\x64\x69\x76\x20\x63\154\141\x73\x73\75\x27" . $Ei . "\x27\76\x20\x3c\x70\76" . $sY . "\x3c\57\x70\x3e\x3c\x2f\144\x69\166\76";
    }
    public function mo_sso_saml_deactivate()
    {
        do_action("\155\x6f\x5f\x73\x61\x6d\x6c\137\146\154\165\163\x68\137\143\x61\x63\150\145");
        delete_site_option("\155\x6f\137\163\141\x6d\154\137\150\157\163\x74\137\x6e\x61\155\x65");
        delete_site_option("\155\x6f\x5f\163\x61\x6d\x6c\137\x6e\x65\167\137\x72\x65\x67\x69\163\164\162\x61\x74\x69\157\156");
        delete_site_option("\x6d\x6f\137\163\141\155\x6c\x5f\x61\144\x6d\x69\x6e\137\160\150\x6f\x6e\x65");
        delete_site_option("\155\x6f\137\163\141\155\x6c\x5f\x61\144\155\151\x6e\x5f\x70\141\163\x73\167\157\162\x64");
        delete_site_option("\155\157\137\x73\141\155\x6c\137\x76\x65\162\151\x66\x79\137\x63\x75\163\x74\x6f\x6d\x65\162");
        delete_site_option("\x6d\x6f\137\x73\x61\155\154\x5f\x61\144\155\151\156\x5f\143\x75\x73\164\x6f\155\x65\x72\137\153\145\171");
        delete_site_option("\x6d\x6f\x5f\163\x61\x6d\154\x5f\x61\x64\155\151\156\137\x61\160\151\x5f\153\x65\x79");
        delete_site_option("\155\157\x5f\x73\x61\x6d\154\137\143\x75\163\164\x6f\x6d\145\162\137\x74\157\153\145\x6e");
        delete_site_option("\x6d\x6f\x5f\163\141\x6d\x6c\x5f\x6d\x65\163\x73\141\147\145");
        delete_site_option("\x6d\157\137\163\x61\x6d\154\137\x72\x65\147\151\163\164\x72\x61\164\151\157\156\x5f\163\164\x61\164\165\163");
        delete_site_option("\155\x6f\x5f\163\141\x6d\x6c\x5f\151\x64\160\137\x63\157\156\146\151\x67\x5f\x63\x6f\155\x70\x6c\145\164\145");
        delete_site_option("\155\157\137\x73\x61\x6d\x6c\x5f\164\x72\141\x6e\x73\141\x63\164\151\157\x6e\111\144");
        delete_site_option("\x6d\x6f\x5f\163\141\155\x6c\x5f\x65\x6e\141\142\154\x65\x5f\x63\154\x6f\x75\144\137\x62\x72\157\153\x65\162");
    }
    public function mo_sso_saml_activate()
    {
        if (is_multisite()) {
            goto Hk;
        }
        echo "\125\156\141\142\x6c\145\x20\x74\157\x20\x61\x63\x74\151\166\x61\x74\x65\40\164\x68\x65\x20\160\x6c\x75\147\x69\156\56\x20\x49\164\40\x73\145\x65\x6d\163\x20\x6c\x69\153\x65\x20\x79\x6f\x75\40\141\162\145\x20\x74\162\171\151\x6e\147\40\164\157\x20\151\156\163\x74\x61\154\154\x20\164\150\145\x20\74\142\x3e\x6d\x75\154\164\151\163\x69\164\145\x20\x70\154\165\147\151\x6e\74\x2f\142\76\x20\151\156\40\164\150\x65\x20\163\x69\156\147\x6c\x65\55\x73\151\x74\x65\40\145\x6e\x76\x69\162\157\x6e\x6d\145\x6e\x74\x2e\x20\120\154\x65\141\163\145\40\143\157\156\x74\x61\143\x74\40\74\142\x3e\163\x61\155\154\x73\165\160\x70\157\162\164\100\x78\145\x63\165\162\x69\x66\x79\x2e\x63\x6f\x6d\x3c\57\142\76\x20\146\157\x72\40\x6d\157\x72\145\40\144\145\x74\141\x69\154\163";
        exit;
        Hk:
        if (mo_saml_is_extension_installed("\157\160\x65\x6e\163\x73\154")) {
            goto Lv;
        }
        wp_die("\120\x48\120\x20\157\x70\145\156\163\163\x6c\x20\145\170\164\145\156\x73\x69\x6f\156\40\151\x73\40\156\157\x74\40\x69\156\163\164\x61\x6c\154\145\144\40\x6f\162\x20\144\x69\163\x61\x62\154\x65\144\54\x70\154\145\x61\163\145\40\x65\156\141\x62\x6c\145\x20\151\x74\40\x74\157\x20\x61\143\x74\151\x76\x61\x74\145\40\x74\150\145\40\x70\154\165\147\151\156\56");
        Lv:
        add_option("\x41\x63\x74\151\x76\x61\164\145\144\x5f\x50\154\165\147\151\x6e", "\x50\154\165\147\151\x6e\x2d\123\x6c\165\x67");
        $this->mo_saml_migrate_configuration();
    }
    function mo_saml_migrate_configuration()
    {
        $rw = maybe_unserialize(get_site_option("\x73\x61\155\154\137\163\x73\157\x5f\163\x65\164\x74\151\156\147\163"));
        if (empty($rw)) {
            goto k5;
        }
        return;
        k5:
        $rw["\104\105\x46\x41\x55\x4c\x54"] = array();
        $rw["\x44\x45\x46\x41\x55\114\124"]["\x6d\157\x5f\x73\141\155\x6c\x5f\x72\145\154\141\171\137\163\164\x61\x74\145"] = !empty(get_site_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\162\x65\x6c\141\x79\x5f\163\164\x61\164\x65")) ? get_site_option("\155\x6f\x5f\163\x61\155\154\x5f\x72\145\154\x61\x79\x5f\x73\164\141\164\x65") : '';
        $rw["\104\x45\106\x41\x55\x4c\x54"]["\155\157\x5f\163\141\155\154\137\162\145\x67\x69\163\x74\145\x72\x65\144\x5f\157\x6e\x6c\x79\137\141\143\143\145\163\x73"] = !empty(get_site_option("\x6d\157\x5f\163\x61\x6d\154\137\162\145\x67\151\163\164\145\162\145\144\137\157\x6e\x6c\x79\x5f\x61\143\x63\x65\x73\163")) ? get_site_option("\155\157\x5f\x73\x61\155\x6c\x5f\162\x65\147\151\x73\x74\145\162\x65\x64\x5f\157\156\154\171\137\141\143\x63\145\x73\163") : '';
        $rw["\104\105\x46\x41\x55\x4c\x54"]["\155\157\137\x73\141\155\154\137\146\x6f\x72\143\145\137\x61\165\x74\150\145\x6e\x74\151\x63\141\164\151\x6f\x6e"] = !empty(get_site_option("\155\x6f\x5f\x73\x61\155\154\x5f\x66\x6f\162\x63\x65\x5f\141\165\x74\x68\x65\156\x74\151\143\x61\x74\x69\157\x6e")) ? get_site_option("\x6d\157\137\x73\x61\155\154\x5f\x66\157\x72\x63\x65\137\141\165\164\150\145\156\164\151\x63\141\164\x69\x6f\x6e") : '';
        $rw["\x44\x45\106\x41\x55\x4c\124"]["\155\157\x5f\x73\x61\x6d\x6c\x5f\x65\156\x61\142\154\145\x5f\x6c\157\x67\x69\x6e\x5f\162\x65\x64\x69\x72\145\x63\164"] = !empty(get_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\145\x6e\141\142\x6c\145\x5f\x6c\157\147\151\x6e\x5f\162\x65\144\x69\162\145\143\164")) ? get_site_option("\155\x6f\x5f\x73\x61\155\154\137\145\156\141\x62\x6c\145\x5f\x6c\157\147\x69\156\x5f\162\x65\x64\x69\x72\145\143\x74") : '';
        $rw["\104\105\x46\x41\x55\114\x54"]["\155\x6f\x5f\x73\141\155\154\137\141\154\154\x6f\167\137\x77\160\137\x73\151\147\x6e\x69\156"] = !empty(get_site_option("\155\157\x5f\x73\141\155\x6c\137\141\x6c\154\157\167\x5f\x77\160\137\163\x69\x67\x6e\151\156")) ? get_site_option("\155\157\137\x73\141\x6d\154\137\x61\x6c\x6c\x6f\167\x5f\x77\160\x5f\163\151\x67\x6e\151\x6e") : '';
        delete_site_option("\x73\x61\x6d\x6c\137\x72\145\x71\165\145\163\x74\x5f\163\x69\x67\156\x65\x64");
        update_site_option("\x73\141\155\x6c\137\x73\x73\157\137\163\145\x74\164\x69\x6e\147\163", $rw);
    }
    function mo_saml_show_success_message()
    {
        remove_action("\156\x65\164\167\157\x72\153\137\141\x64\155\151\x6e\137\156\x6f\164\x69\143\x65\163", array($this, "\155\x6f\x5f\x73\141\155\154\x5f\x73\165\143\x63\145\x73\163\137\155\145\x73\x73\x61\147\x65"));
        add_action("\x6e\145\x74\167\x6f\x72\153\137\141\x64\155\151\156\x5f\156\x6f\x74\x69\x63\x65\163", array($this, "\155\157\x5f\x73\x61\155\154\x5f\145\162\x72\x6f\x72\x5f\155\145\x73\x73\x61\x67\x65"));
    }
    function mo_saml_show_error_message()
    {
        remove_action("\156\x65\164\x77\157\162\x6b\x5f\141\144\x6d\151\x6e\x5f\156\x6f\164\x69\x63\x65\x73", array($this, "\x6d\x6f\137\x73\141\x6d\154\137\145\x72\x72\157\x72\137\155\x65\x73\x73\141\147\145"));
        add_action("\x6e\145\164\x77\x6f\x72\153\137\141\144\x6d\x69\x6e\x5f\x6e\x6f\164\x69\x63\x65\x73", array($this, "\155\x6f\137\x73\141\155\154\137\163\165\143\143\145\163\x73\137\155\x65\163\163\x61\x67\145"));
    }
    function plugin_settings_style($HI)
    {
        if (!("\x74\157\160\154\145\x76\x65\154\137\x70\x61\x67\145\137\x6d\x6f\137\x73\141\155\x6c\137\163\x65\x74\164\151\x6e\147\x73" != $HI && "\155\x69\156\x69\157\x72\x61\x6e\147\145\x2d\163\x61\155\x6c\55\x32\x2d\x30\55\163\163\x6f\137\x70\141\147\x65\x5f\x6d\157\137\145\x72\x72\157\x72\137\x63\x6f\x64\145\x73" !== $HI)) {
            goto kV;
        }
        return;
        kV:
        if (!empty($_REQUEST["\x74\141\142"]) && $_REQUEST["\x74\141\142"] == "\154\x69\x63\145\x6e\x73\151\156\147") {
            goto kT;
        }
        wp_enqueue_style("\155\x6f\x5f\x73\141\155\154\137\141\144\x6d\151\x6e\137\x73\x65\164\x74\151\156\147\163\x5f\x73\164\171\x6c\x65", plugins_url("\x69\156\143\154\x75\x64\x65\x73\57\143\163\x73\57\x73\164\x79\x6c\145\137\163\145\164\164\151\156\x67\x73\56\155\x69\x6e\56\143\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\x6c");
        wp_enqueue_style("\x6d\157\137\x73\141\155\x6c\x5f\x61\x64\155\151\156\137\x73\x65\164\164\151\156\147\163\x5f\163\x74\x79\154\x65\x5f\x74\162\141\x63\153\x65\162", plugins_url("\151\x6e\143\x6c\165\x64\x65\x73\57\x63\163\x73\x2f\160\x72\157\147\x72\x65\163\163\55\x74\162\141\x63\x6b\145\x72\x2e\x63\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\154");
        wp_enqueue_style("\x6d\157\x5f\163\x61\x6d\x6c\x5f\141\144\155\x69\156\137\x73\145\164\x74\151\156\x67\163\137\160\150\157\x6e\x65\x5f\163\164\x79\x6c\x65", plugins_url("\x69\156\143\x6c\x75\x64\x65\x73\57\143\x73\163\x2f\x70\x68\x6f\156\x65\x2e\x63\163\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\x6c");
        wp_enqueue_style("\x6d\157\x5f\163\x61\x6d\154\137\x77\x70\x62\x2d\146\x61", plugins_url("\x69\156\143\x6c\x75\x64\145\x73\x2f\x63\x73\163\x2f\x66\x6f\156\164\55\141\167\145\163\x6f\155\145\56\x6d\151\x6e\56\x63\x73\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\x6c\154");
        wp_enqueue_style("\x6d\x6f\137\x73\141\155\154\x5f\x61\x64\155\x69\156\x5f\x73\x65\x74\x74\151\x6e\147\163\137\163\x74\171\154\x65", plugins_url("\151\x6e\x63\x6c\x75\x64\145\163\x2f\x63\x73\x73\57\x6a\161\165\x65\162\171\x2e\165\151\56\x63\163\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\154");
        goto Jj;
        kT:
        wp_enqueue_style("\x6d\157\x5f\163\x61\x6d\154\137\x62\157\x6f\164\x73\164\162\141\160\137\143\x73\x73", plugins_url("\x69\x6e\x63\x6c\165\x64\145\163\x2f\143\163\163\57\x62\x6f\x6f\x74\163\164\x72\141\x70\x2f\x62\157\157\x74\x73\164\162\141\160\x2e\155\x69\156\56\x63\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\154");
        wp_enqueue_style("\155\157\x5f\x73\141\x6d\x6c\x5f\x61\144\155\151\x6e\137\x73\145\x74\164\x69\156\147\x73\137\163\x74\171\154\145", plugins_url("\151\156\143\154\165\144\145\163\57\143\x73\x73\57\x73\164\x79\154\145\137\x73\x65\x74\x74\x69\x6e\147\x73\56\155\151\156\x2e\x63\163\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\154");
        Jj:
    }
    function plugin_settings_script($HI)
    {
        if (!("\164\157\x70\x6c\145\166\x65\x6c\137\x70\x61\147\x65\x5f\155\x6f\x5f\x73\x61\155\x6c\137\x73\145\x74\164\x69\156\x67\x73" != $HI && "\155\x69\156\151\157\x72\141\x6e\x67\145\55\163\x61\155\x6c\55\x32\55\60\55\x73\163\157\137\x70\x61\x67\x65\x5f\x6d\157\x5f\145\162\x72\x6f\162\137\x63\x6f\x64\145\163" !== $HI)) {
            goto fV;
        }
        return;
        fV:
        if (!empty($_REQUEST["\164\x61\142"]) && $_REQUEST["\164\x61\x62"] == "\x6c\151\143\x65\x6e\x73\151\x6e\147") {
            goto QF;
        }
        wp_enqueue_script("\152\161\165\x65\x72\x79");
        wp_enqueue_script("\x6d\x6f\137\x73\141\x6d\x6c\137\141\144\155\x69\x6e\x5f\x73\x65\164\164\151\x6e\x67\163\137\x63\157\154\x6f\162\x5f\163\143\162\x69\x70\x74", plugins_url("\x69\156\143\x6c\x75\144\145\163\57\152\x73\57\x6a\x73\143\157\x6c\157\162\57\x6a\x73\143\x6f\154\x6f\162\x2e\152\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\x6d\157\x5f\163\141\155\x6c\137\x61\x64\x6d\151\x6e\137\x73\x65\164\x74\x69\x6e\147\x73\137\x70\150\x6f\x6e\x65\x5f\163\x63\x72\x69\160\x74", plugins_url("\151\156\x63\x6c\165\144\x65\x73\57\152\163\x2f\x70\150\x6f\x6e\145\56\x6a\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\x6d\157\137\x73\141\155\x6c\x5f\141\x64\x6d\151\x6e\137\142\x6f\x6f\164\x73\x74\162\x61\160\x5f\x73\143\162\x69\160\164", plugins_url("\x69\x6e\x63\x6c\165\x64\145\163\57\152\x73\57\x62\x6f\157\164\x73\x74\x72\x61\x70\x2f\x62\157\x6f\164\163\164\x72\x61\160\x2e\155\151\156\56\152\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        goto dB;
        QF:
        wp_enqueue_script("\x6d\x6f\x5f\163\141\155\x6c\137\155\x6f\144\145\162\x6e\x69\172\162\137\163\143\162\151\x70\164", plugins_url("\151\156\143\x6c\165\x64\145\163\x2f\x6a\x73\x2f\x6d\157\x64\x65\162\x6e\151\172\x72\x2e\152\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\x6d\x6f\137\x73\141\x6d\x6c\x5f\160\157\160\157\166\145\x72\137\163\143\162\151\160\164", plugins_url("\151\x6e\143\x6c\x75\x64\x65\x73\x2f\x6a\163\x2f\x62\x6f\157\x74\163\x74\x72\141\x70\57\160\x6f\x70\x70\x65\x72\56\155\x69\x6e\x2e\x6a\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\x6d\157\x5f\x73\x61\x6d\154\137\x62\157\x6f\164\x73\x74\x72\141\160\x5f\x73\143\162\x69\160\164", plugins_url("\151\x6e\143\154\165\x64\145\x73\57\152\163\x2f\x62\157\x6f\164\163\164\x72\x61\160\57\x62\x6f\x6f\164\x73\164\x72\x61\x70\x2e\x6d\151\156\56\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        dB:
        wp_enqueue_script("\x6d\157\x5f\163\141\155\154\x5f\x61\x64\155\x69\x6e\137\163\x65\x74\x74\x69\x6e\x67\x73\x5f\x73\x63\162\151\x70\x74", plugins_url("\x69\156\143\154\x75\x64\145\x73\x2f\x6a\163\x2f\x73\x65\x74\164\x69\x6e\147\163\56\155\151\156\x2e\x6a\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
    }
    function mo_saml_login_enqueue_scripts()
    {
        wp_enqueue_script("\152\161\x75\145\162\x79");
    }
    function mo_saml_activation_message()
    {
        $Ei = "\165\160\144\141\164\x65\x64";
        $sY = get_site_option("\155\157\x5f\163\x61\x6d\x6c\x5f\155\145\163\163\141\x67\145");
        echo "\74\x64\151\x76\40\x63\154\x61\x73\x73\x3d\47" . $Ei . "\x27\x3e\40\74\160\76" . $sY . "\x3c\x2f\160\x3e\74\x2f\144\151\166\x3e";
    }
    function mo_saml_custom_attr_column($ZR)
    {
        $kS = maybe_unserialize(get_site_option("\x6d\157\x5f\163\x61\x6d\154\137\x63\x75\x73\164\x6f\x6d\x5f\141\164\164\x72\x73\137\x6d\141\x70\160\151\156\147"));
        $wV = maybe_unserialize(get_site_option("\163\x61\155\x6c\137\x73\150\157\x77\137\165\x73\145\162\137\141\x74\164\162\151\142\165\x74\145"));
        $zL = 0;
        if (!(is_array($wV) && is_array($kS))) {
            goto NB;
        }
        foreach ($kS as $ns => $Hr) {
            if (empty($ns)) {
                goto Zj;
            }
            if (!Utilities::mo_saml_in_array($zL, $wV)) {
                goto mc;
            }
            $ZR[$ns] = $ns;
            mc:
            Zj:
            $zL++;
            Gv:
        }
        Ah:
        NB:
        return $ZR;
    }
    function mo_saml_attr_column_content($ay, $qw, $o8)
    {
        $kS = maybe_unserialize(get_site_option("\155\157\x5f\x73\x61\x6d\154\x5f\x63\165\x73\164\157\x6d\137\x61\x74\x74\162\163\137\x6d\141\x70\x70\151\156\147"));
        if (!is_array($kS)) {
            goto IH;
        }
        foreach ($kS as $ns => $Hr) {
            if (!($ns === $qw)) {
                goto YW;
            }
            $T0 = get_user_meta($o8, $qw, false);
            if (empty($T0)) {
                goto XX;
            }
            if (!is_array($T0[0])) {
                goto ep;
            }
            $bb = '';
            foreach ($T0[0] as $QD) {
                $bb = $bb . $QD;
                if (!next($T0[0])) {
                    goto v5;
                }
                $bb = $bb . "\x20\x7c\40";
                v5:
                Ut:
            }
            uj:
            return $bb;
            goto tN;
            ep:
            return $T0[0];
            tN:
            XX:
            YW:
            j3:
        }
        F_:
        IH:
        return $ay;
    }
    static function mo_check_option_admin_referer($SN)
    {
        return !empty($_POST["\157\x70\x74\x69\157\x6e"]) and $_POST["\x6f\160\x74\151\157\156"] == $SN and check_admin_referer($SN);
    }
    function miniorange_login_widget_saml_save_settings()
    {
        if (!current_user_can("\155\x61\x6e\x61\x67\x65\137\157\160\x74\151\157\x6e\163")) {
            goto mS;
        }
        $Bu = "\x66\x61\x6c\163\145";
        $wZ = Mo_Saml_Admin_Referer_Options::getConstants();
        if (!isset($_POST["\157\x70\x74\x69\x6f\x6e"])) {
            goto AD;
        }
        $Bu = in_array($_POST["\x6f\x70\164\151\157\x6e"], $wZ);
        AD:
        if (!(isset($_POST["\157\160\x74\x69\157\156"]) && $Bu && !Mo_License_Service::is_customer_license_valid())) {
            goto NT;
        }
        update_site_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x6d\145\163\163\141\x67\x65", "\123\157\155\x65\164\150\x69\x6e\x67\x20\x77\x65\156\x74\40\167\x72\x6f\156\x67\x20\167\x68\x69\154\145\40\160\162\157\143\x65\163\163\151\x6e\x67\40\164\x68\x69\x73\x20\162\145\161\165\x65\x73\164\x2e");
        $this->mo_saml_show_error_message();
        return;
        NT:
        if (!(is_admin() && get_option("\x41\x63\164\151\x76\x61\164\x65\144\x5f\120\154\165\x67\x69\156") == "\x50\x6c\x75\x67\151\x6e\x2d\x53\x6c\165\147")) {
            goto QM;
        }
        delete_option("\x41\143\x74\x69\166\141\x74\145\x64\x5f\x50\x6c\x75\147\x69\156");
        update_site_option("\155\x6f\x5f\x73\141\155\154\137\155\145\x73\x73\x61\147\145", "\x47\157\x20\164\157\40\160\154\x75\147\x69\x6e\40\x3c\x62\x3e\x3c\x61\x20\x68\x72\x65\x66\75\42\x61\x64\x6d\x69\156\x2e\x70\x68\x70\x3f\160\141\x67\145\75\155\x6f\x5f\x73\x61\155\x6c\x5f\x73\x65\164\x74\x69\156\147\163\x22\76\x73\x65\164\x74\x69\156\x67\x73\x3c\x2f\141\x3e\x3c\57\x62\x3e\40\x74\157\40\x63\x6f\x6e\146\151\x67\165\x72\145\40\x53\x41\x4d\x4c\x20\123\x69\156\147\x6c\145\x20\123\151\x67\x6e\x20\117\x6e\40\142\x79\x20\155\x69\x6e\151\x4f\x72\x61\156\147\145\x2e");
        add_action("\x6e\145\164\167\x6f\162\x6b\137\141\x64\155\x69\156\137\x6e\x6f\164\151\143\x65\x73", array($this, "\155\157\137\x73\141\x6d\154\137\x61\143\164\x69\x76\x61\x74\151\x6f\156\137\x6d\x65\x73\x73\141\147\145"));
        QM:
        if (!self::mo_check_option_admin_referer("\154\157\147\x69\156\137\x77\x69\x64\x67\145\164\x5f\163\141\155\154\x5f\163\141\166\x65\x5f\163\145\x74\x74\x69\156\147\x73")) {
            goto LM;
        }
        if (mo_saml_is_extension_installed("\x63\x75\162\154")) {
            goto BO;
        }
        update_site_option("\x6d\x6f\137\163\141\x6d\154\137\155\145\x73\163\141\147\x65", "\x45\x52\122\117\122\x3a\40\x3c\x61\x20\x68\x72\145\x66\x3d\42\150\x74\x74\160\x3a\x2f\57\160\x68\x70\56\x6e\145\164\x2f\155\141\156\165\141\x6c\x2f\x65\156\x2f\x63\x75\x72\154\56\151\x6e\163\164\x61\154\154\x61\164\151\157\156\56\160\150\160\42\40\164\x61\x72\x67\145\164\x3d\42\x5f\142\x6c\x61\x6e\153\x22\76\120\110\120\40\143\x55\122\114\40\x65\170\x74\145\156\x73\x69\x6f\x6e\74\x2f\x61\76\40\x69\163\40\x6e\x6f\x74\x20\x69\156\163\x74\x61\154\x6c\x65\x64\x20\157\x72\40\x64\x69\x73\x61\x62\154\x65\144\x2e\40\123\141\x76\x65\40\111\x64\145\x6e\164\x69\164\x79\x20\x50\162\x6f\x76\x69\x64\145\162\x20\103\x6f\x6e\x66\151\147\165\162\x61\x74\x69\157\156\x20\x66\x61\x69\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        BO:
        $ua = '';
        $EZ = '';
        $Z9 = '';
        $bY = '';
        $fZ = '';
        $nL = '';
        $oX = '';
        $NX = '';
        $hY = '';
        if (empty($_POST["\x73\x61\x6d\x6c\137\x69\144\x65\156\164\x69\x74\171\x5f\156\x61\x6d\145"]) || empty($_POST["\163\141\155\154\x5f\x6c\157\x67\x69\156\x5f\x75\x72\154"]) || empty($_POST["\x73\x61\x6d\154\x5f\151\x73\x73\x75\x65\162"])) {
            goto p9;
        }
        if (!preg_match("\57\x5e\x5c\x77\52\x24\57", $_POST["\x73\141\155\154\x5f\151\x64\x65\x6e\x74\151\x74\x79\137\156\141\155\x65"])) {
            goto Df;
        }
        $ua = htmlspecialchars(trim($_POST["\x73\141\x6d\154\x5f\x69\x64\x65\156\164\x69\164\171\x5f\x6e\x61\x6d\145"]));
        $Z9 = htmlspecialchars(trim($_POST["\163\141\x6d\154\137\154\x6f\147\x69\156\x5f\x75\162\154"]));
        if (!array_key_exists("\163\141\x6d\x6c\x5f\154\x6f\147\x69\156\x5f\142\151\156\144\151\156\147\137\164\171\x70\x65", $_POST)) {
            goto XS;
        }
        $EZ = htmlspecialchars($_POST["\163\x61\x6d\154\137\x6c\157\x67\151\156\137\x62\151\x6e\144\x69\x6e\x67\137\164\x79\x70\x65"]);
        XS:
        if (!array_key_exists("\163\x61\x6d\x6c\x5f\154\x6f\x67\x6f\165\164\x5f\x62\151\x6e\x64\151\x6e\x67\137\x74\x79\x70\x65", $_POST)) {
            goto p6;
        }
        $bY = htmlspecialchars($_POST["\163\141\x6d\154\137\x6c\x6f\147\157\165\164\x5f\x62\x69\156\144\151\156\147\137\x74\171\x70\x65"]);
        p6:
        if (!array_key_exists("\163\141\155\154\x5f\154\157\x67\x6f\x75\x74\137\x75\x72\x6c", $_POST)) {
            goto nP;
        }
        $fZ = htmlspecialchars(trim($_POST["\163\x61\x6d\x6c\x5f\x6c\157\147\157\165\x74\x5f\x75\162\x6c"]));
        nP:
        $nL = htmlspecialchars(trim($_POST["\163\x61\155\x6c\137\x69\163\163\165\145\162"]));
        $hp = htmlspecialchars(trim($_POST["\x6d\x6f\x5f\163\x61\x6d\154\137\x69\x64\145\156\164\151\164\171\137\160\x72\x6f\166\151\144\x65\162\137\x69\x64\145\156\x74\151\146\151\145\162\137\156\141\155\x65"]));
        $oX = maybe_unserialize($_POST["\163\x61\155\x6c\x5f\x78\x35\x30\71\x5f\x63\x65\x72\164\151\146\151\143\x61\x74\145"]);
        $hY = htmlspecialchars($_POST["\x73\141\155\x6c\x5f\156\x61\x6d\x65\x69\x64\137\x66\157\162\x6d\141\164"]);
        goto la;
        p9:
        update_site_option("\155\x6f\137\x73\x61\155\154\x5f\155\145\163\x73\x61\x67\x65", "\101\x6c\x6c\x20\164\150\145\x20\x66\151\x65\154\x64\x73\x20\141\x72\x65\40\x72\x65\161\x75\151\x72\145\144\56\x20\x50\154\x65\141\x73\145\x20\145\x6e\164\x65\x72\x20\x76\141\154\x69\x64\40\x65\156\x74\162\151\145\x73\56");
        $this->mo_saml_show_error_message();
        return;
        goto la;
        Df:
        update_site_option("\155\x6f\137\x73\141\x6d\x6c\x5f\x6d\x65\x73\163\x61\x67\x65", "\x50\x6c\x65\141\x73\x65\40\x6d\x61\x74\x63\150\x20\x74\x68\145\x20\162\x65\161\x75\x65\163\x74\x65\144\x20\146\x6f\162\x6d\x61\164\40\146\x6f\x72\40\x49\144\x65\156\x74\x69\x74\x79\x20\x50\162\157\166\x69\144\x65\162\40\116\141\x6d\x65\x2e\40\x4f\156\x6c\x79\x20\x61\x6c\160\x68\x61\142\x65\x74\163\x2c\x20\156\165\x6d\142\x65\x72\163\40\141\x6e\144\40\165\x6e\x64\x65\162\x73\x63\157\x72\145\x20\x69\163\x20\x61\x6c\x6c\x6f\167\x65\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        la:
        update_site_option("\163\141\155\x6c\x5f\151\144\x65\156\164\x69\164\171\137\x6e\x61\x6d\x65", $ua);
        update_site_option("\163\141\x6d\154\x5f\x6c\x6f\x67\151\x6e\137\142\151\x6e\x64\151\x6e\x67\137\x74\x79\x70\x65", $EZ);
        update_site_option("\163\141\155\154\x5f\x6c\157\147\151\x6e\137\165\x72\x6c", $Z9);
        update_site_option("\163\141\x6d\154\137\154\x6f\147\x6f\165\164\x5f\x62\151\156\144\x69\156\147\137\x74\171\x70\x65", $bY);
        update_site_option("\163\x61\x6d\154\137\154\x6f\x67\157\165\x74\137\165\162\x6c", $fZ);
        update_site_option("\x73\141\155\x6c\x5f\x69\x73\163\165\145\x72", $nL);
        update_site_option("\163\x61\x6d\x6c\137\x6e\x61\x6d\145\151\144\x5f\x66\x6f\162\x6d\141\164", $hY);
        update_site_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\151\144\145\156\x74\x69\x74\x79\x5f\160\x72\157\166\x69\x64\x65\162\137\x69\x64\145\x6e\164\151\146\x69\145\x72\137\x6e\x61\155\145", $hp);
        if (!empty($_POST["\163\141\x6d\154\137\x72\145\161\165\x65\x73\164\137\x73\x69\147\156\x65\x64"])) {
            goto yB;
        }
        update_site_option("\x73\141\x6d\x6c\x5f\x72\145\x71\x75\x65\x73\164\137\x73\x69\147\x6e\145\144", "\x75\x6e\143\x68\x65\143\153\x65\x64");
        goto ds;
        yB:
        update_site_option("\163\141\155\x6c\137\x72\x65\161\x75\145\163\x74\137\163\151\147\x6e\145\144", "\143\x68\145\143\153\x65\x64");
        ds:
        foreach ($oX as $ns => $Hr) {
            if (empty($Hr)) {
                goto Lr;
            }
            $oX[$ns] = Utilities::sanitize_certificate($Hr);
            if (@openssl_x509_read($oX[$ns])) {
                goto oZ;
            }
            update_site_option("\155\157\137\x73\x61\x6d\x6c\x5f\x6d\145\163\x73\141\x67\145", "\111\x6e\x76\x61\154\151\x64\x20\x63\x65\x72\x74\x69\146\x69\x63\141\164\145\x20\x66\157\x72\155\x61\x74\x3a\120\154\145\x61\163\x65\40\160\162\157\166\151\144\145\x20\x61\x20\x76\141\x6c\x69\x64\40\143\x65\162\164\x69\146\151\x63\x61\164\145");
            $this->mo_saml_show_error_message();
            delete_site_option("\163\141\x6d\154\137\170\x35\60\x39\137\x63\145\x72\x74\x69\146\151\x63\x61\164\145");
            return;
            oZ:
            goto r2;
            Lr:
            unset($oX[$ns]);
            r2:
            tH:
        }
        cA:
        if (!empty($oX)) {
            goto lo;
        }
        update_site_option("\x6d\x6f\x5f\163\141\x6d\154\137\155\145\x73\163\x61\147\145", "\x49\156\166\141\x6c\151\x64\40\143\145\162\x74\151\x66\x69\x63\x61\164\145\x20\146\x6f\x72\155\x61\164\x20\72\40\x50\x6c\145\141\163\x65\x20\x70\162\157\166\x69\x64\145\x20\141\x20\x63\145\162\x74\151\x66\151\143\141\x74\145");
        $this->mo_saml_show_error_message();
        return;
        lo:
        if (!empty($_POST["\163\141\155\x6c\x5f\141\x73\163\x65\x72\164\151\x6f\156\137\x73\x69\x67\156\145\x64"])) {
            goto ry;
        }
        update_site_option("\x73\141\155\x6c\137\x61\x73\163\145\x72\x74\x69\x6f\x6e\137\x73\151\x67\156\x65\144", "\131\145\x73");
        goto ed;
        ry:
        update_site_option("\163\141\x6d\x6c\137\x61\x73\163\145\162\164\x69\x6f\156\137\x73\151\147\x6e\145\x64", "\143\150\x65\143\153\x65\144");
        ed:
        update_site_option("\x73\x61\155\x6c\x5f\x78\65\60\x39\137\x63\145\x72\x74\x69\146\x69\x63\141\164\145", $oX);
        if (array_key_exists("\145\156\141\x62\154\x65\x5f\x69\143\157\x6e\x76", $_POST)) {
            goto Ye;
        }
        update_site_option("\x6d\x6f\137\163\x61\155\x6c\137\145\156\143\157\x64\x69\x6e\147\x5f\145\156\x61\x62\x6c\x65\x64", '');
        goto WX;
        Ye:
        update_site_option("\155\x6f\137\163\x61\x6d\154\x5f\145\x6e\x63\x6f\144\151\x6e\x67\137\145\156\141\x62\154\145\x64", "\x63\x68\x65\143\153\145\x64");
        WX:
        update_site_option("\x6d\x6f\137\163\x61\x6d\154\x5f\155\x65\163\x73\141\147\x65", "\x49\x64\x65\x6e\164\x69\x74\x79\40\x50\x72\157\x76\x69\x64\x65\x72\40\x64\145\x74\x61\x69\x6c\x73\40\x73\x61\x76\145\x64\x20\163\165\x63\x63\145\x73\x73\x66\x75\x6c\x6c\171\x2e");
        $this->mo_saml_show_success_message();
        LM:
        if (!self::mo_check_option_admin_referer("\154\157\147\x69\x6e\137\167\x69\144\147\x65\x74\x5f\x73\x61\x6d\154\x5f\141\x74\164\x72\151\x62\x75\164\x65\x5f\x6d\141\160\x70\x69\156\x67")) {
            goto o6;
        }
        if (mo_saml_is_extension_installed("\x63\165\x72\154")) {
            goto Sq;
        }
        update_site_option("\155\157\x5f\x73\141\x6d\x6c\137\x6d\145\163\x73\x61\147\x65", "\x45\122\x52\117\x52\72\40\74\x61\x20\x68\162\x65\146\75\42\x68\x74\164\x70\72\x2f\x2f\x70\150\x70\x2e\x6e\145\x74\57\155\x61\x6e\165\141\x6c\x2f\x65\x6e\x2f\143\165\x72\x6c\56\151\156\163\x74\x61\x6c\154\141\x74\x69\x6f\x6e\x2e\160\x68\x70\42\40\x74\x61\162\x67\x65\164\75\x22\137\x62\x6c\141\x6e\153\42\76\x50\110\x50\x20\x63\x55\x52\114\x20\x65\x78\164\145\x6e\163\x69\x6f\156\74\57\x61\76\x20\x69\163\40\x6e\157\164\x20\151\156\163\164\x61\x6c\154\x65\144\40\157\162\40\x64\x69\x73\141\142\154\x65\x64\56\40\123\x61\x76\x65\x20\101\164\x74\162\151\142\165\x74\x65\40\x4d\141\160\x70\x69\156\147\40\146\x61\151\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        Sq:
        update_site_option("\x73\141\155\154\137\141\x6d\137\165\x73\x65\162\156\141\x6d\145", htmlspecialchars(stripslashes($_POST["\x73\141\x6d\154\137\x61\x6d\x5f\x75\163\x65\x72\156\141\x6d\145"])));
        update_site_option("\x73\141\155\154\137\141\x6d\x5f\x65\155\x61\151\x6c", htmlspecialchars(stripslashes($_POST["\163\x61\155\154\x5f\141\155\137\x65\155\x61\x69\154"])));
        update_site_option("\163\141\x6d\x6c\x5f\141\155\x5f\x66\x69\x72\163\164\137\156\141\x6d\145", htmlspecialchars(stripslashes($_POST["\163\141\x6d\x6c\137\x61\155\x5f\x66\x69\x72\x73\164\x5f\156\x61\155\x65"])));
        update_site_option("\x73\141\x6d\x6c\x5f\x61\155\x5f\x6c\141\163\164\137\x6e\141\x6d\145", htmlspecialchars(stripslashes($_POST["\163\x61\x6d\x6c\137\141\155\x5f\x6c\141\163\164\137\156\x61\155\x65"])));
        update_site_option("\x73\x61\x6d\x6c\x5f\x61\x6d\x5f\x67\x72\157\165\x70\x5f\x6e\141\x6d\145", htmlspecialchars(stripslashes($_POST["\163\x61\x6d\154\x5f\141\x6d\137\147\162\157\165\x70\x5f\156\x61\x6d\x65"])));
        update_site_option("\x73\141\x6d\154\137\x61\155\137\x64\x69\163\x70\x6c\141\x79\x5f\x6e\x61\x6d\145", htmlspecialchars(stripslashes($_POST["\x73\141\155\x6c\137\x61\155\x5f\x64\x69\163\x70\154\x61\171\x5f\x6e\x61\x6d\x65"])));
        $kS = array();
        $mz = array();
        $Gu = array();
        $HQ = array();
        if (empty($_POST["\155\157\x5f\163\141\155\154\x5f\x63\x75\x73\164\157\x6d\137\141\164\x74\x72\x69\142\165\x74\145\137\153\x65\171\x73"])) {
            goto W8;
        }
        $mz = $_POST["\x6d\x6f\x5f\163\x61\x6d\154\137\x63\165\x73\164\157\155\137\141\x74\164\x72\x69\142\165\164\145\x5f\x6b\x65\x79\x73"];
        W8:
        if (empty($_POST["\155\157\x5f\x73\x61\155\154\x5f\x63\165\x73\164\157\x6d\137\x61\x74\164\x72\151\x62\x75\164\x65\137\x76\x61\154\x75\145\163"])) {
            goto Pj;
        }
        $Gu = $_POST["\x6d\157\137\x73\141\x6d\x6c\137\x63\x75\x73\x74\x6f\x6d\x5f\x61\164\164\162\151\142\x75\164\145\x5f\x76\x61\154\165\145\163"];
        Pj:
        $o2 = count($mz);
        if (!($o2 > 0)) {
            goto uD;
        }
        $mz = array_map("\x68\x74\155\x6c\163\160\x65\143\x69\x61\x6c\143\x68\141\x72\x73", $mz);
        $Gu = array_map("\x68\164\x6d\154\x73\x70\x65\143\x69\141\x6c\x63\x68\x61\162\x73", $Gu);
        $Ne = 0;
        g8:
        if (!($Ne < $o2)) {
            goto hq;
        }
        if (empty($_POST["\155\x6f\137\163\141\155\x6c\x5f\x64\151\163\x70\x6c\141\171\137\x61\164\164\162\x69\x62\x75\164\x65\x5f" . $Ne])) {
            goto Aj;
        }
        array_push($HQ, $Ne);
        Aj:
        $Ne++;
        goto g8;
        hq:
        uD:
        update_site_option("\x73\x61\155\154\x5f\x73\150\157\x77\x5f\165\x73\145\162\x5f\x61\164\x74\x72\151\142\165\164\x65", $HQ);
        $kS = array_combine($mz, $Gu);
        $kS = array_filter($kS);
        if (!empty($kS)) {
            goto qG;
        }
        $kS = get_site_option("\155\157\137\163\x61\x6d\x6c\x5f\143\x75\x73\x74\x6f\155\137\x61\x74\164\162\x73\x5f\x6d\x61\160\160\151\156\147");
        if (empty($kS)) {
            goto hF;
        }
        delete_site_option("\155\157\137\x73\x61\155\154\137\143\x75\x73\164\x6f\155\x5f\141\x74\164\162\163\x5f\155\141\160\x70\x69\x6e\x67");
        hF:
        goto ie;
        qG:
        update_site_option("\155\x6f\137\163\141\x6d\154\x5f\143\165\163\x74\157\x6d\137\141\164\x74\162\x73\137\155\x61\x70\160\151\156\147", $kS);
        ie:
        update_site_option("\x6d\x6f\137\x73\141\x6d\x6c\137\x6d\x65\163\x73\x61\x67\x65", "\101\x74\x74\162\x69\142\165\x74\145\40\x4d\141\x70\160\151\x6e\x67\40\144\x65\164\x61\x69\x6c\163\40\x73\x61\x76\x65\x64\40\163\165\x63\x63\x65\163\x73\x66\x75\x6c\154\171");
        $this->mo_saml_show_success_message();
        o6:
        if (!self::mo_check_option_admin_referer("\x63\154\x65\x61\x72\x5f\141\164\164\162\x73\137\154\x69\163\164")) {
            goto Gr;
        }
        delete_site_option("\x6d\157\x5f\x73\x61\155\154\x5f\164\x65\163\164\137\x63\x6f\156\146\151\x67\137\141\x74\x74\x72\x73");
        update_site_option("\155\157\x5f\163\141\155\x6c\x5f\155\x65\x73\x73\x61\147\x65", "\x41\x74\164\x72\151\142\x75\164\x65\x73\x20\154\x69\x73\x74\x20\x72\145\155\157\x76\145\x64\x20\x73\x75\143\143\145\x73\163\146\165\x6c\154\x79");
        $this->mo_saml_show_success_message();
        Gr:
        if (!self::mo_check_option_admin_referer("\155\x6f\137\163\x61\x6d\154\x5f\141\x64\144\x6f\156\163\x5f\x6d\x65\163\x73\141\x67\145")) {
            goto Yk;
        }
        update_option("\x6d\157\137\x73\x61\155\154\137\x73\x68\x6f\x77\x5f\x61\144\144\x6f\x6e\163\137\x6e\157\164\151\143\x65", 1);
        Yk:
        if (!self::mo_check_option_admin_referer("\163\141\x6d\154\137\146\x6f\162\x6d\x5f\144\x6f\155\x61\151\156\x5f\162\145\163\x74\x72\151\x63\x74\151\157\156\137\157\160\164\151\157\156")) {
            goto mD;
        }
        $oq = !empty($_POST["\x6d\157\137\x73\141\155\154\137\145\156\x61\x62\x6c\145\137\x64\x6f\155\x61\x69\156\137\x72\x65\x73\164\x72\151\143\x74\x69\157\x6e\x5f\154\x6f\x67\151\156"]) ? htmlspecialchars($_POST["\155\x6f\x5f\163\141\155\154\137\x65\x6e\x61\142\154\145\x5f\144\x6f\x6d\141\151\156\x5f\162\x65\x73\x74\162\x69\x63\x74\151\157\x6e\137\154\157\147\x69\156"]) : '';
        $JN = !empty($_POST["\x6d\x6f\137\163\x61\x6d\x6c\x5f\141\154\x6c\x6f\167\x5f\144\145\x6e\171\137\165\x73\145\162\x5f\x77\151\x74\x68\137\144\157\x6d\141\151\x6e"]) ? htmlspecialchars($_POST["\x6d\157\137\x73\x61\x6d\154\x5f\141\x6c\154\157\x77\137\x64\x65\x6e\x79\137\165\x73\145\x72\137\167\151\164\x68\137\x64\157\155\141\x69\156"]) : "\141\154\154\157\167";
        $ep = !empty($_POST["\x73\141\x6d\154\137\x61\155\x5f\x65\x6d\141\x69\154\x5f\144\x6f\155\x61\x69\156\163"]) ? htmlspecialchars($_POST["\163\x61\x6d\154\x5f\141\x6d\x5f\x65\155\141\x69\x6c\137\144\x6f\155\141\151\x6e\x73"]) : '';
        update_site_option("\x6d\157\137\163\x61\155\x6c\x5f\145\x6e\x61\x62\x6c\145\137\x64\157\x6d\x61\x69\156\137\162\x65\x73\x74\162\151\143\x74\x69\157\156\x5f\x6c\157\x67\x69\x6e", $oq);
        update_site_option("\x6d\x6f\137\163\141\155\x6c\137\x61\x6c\x6c\x6f\x77\137\x64\145\156\x79\137\x75\x73\x65\162\x5f\167\151\164\150\x5f\144\157\x6d\141\151\156", $JN);
        update_site_option("\x73\141\x6d\154\137\x61\x6d\x5f\x65\155\x61\x69\154\x5f\144\x6f\x6d\x61\151\156\x73", $ep);
        update_site_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\155\x65\x73\x73\141\147\x65", "\104\x6f\155\141\151\x6e\40\122\145\163\164\162\151\x63\164\151\x6f\156\x20\x68\x61\x73\40\142\x65\145\156\x20\163\x61\x76\145\x64\40\x73\x75\143\x63\145\x73\x73\146\165\x6c\154\x79\56");
        $this->mo_saml_show_success_message();
        mD:
        if (!self::mo_check_option_admin_referer("\154\157\147\x69\x6e\x5f\167\151\x64\147\x65\164\137\163\141\x6d\154\x5f\162\157\x6c\x65\137\x6d\x61\x70\x70\151\156\x67")) {
            goto co;
        }
        if (mo_saml_is_extension_installed("\x63\x75\162\154")) {
            goto T1;
        }
        update_site_option("\155\x6f\137\x73\x61\x6d\154\137\x6d\145\163\163\141\147\x65", "\x45\x52\122\117\x52\72\40\74\x61\x20\x68\162\145\x66\75\42\x68\x74\164\160\72\57\x2f\x70\150\x70\x2e\156\x65\x74\57\155\141\x6e\x75\141\x6c\x2f\x65\x6e\x2f\143\165\x72\154\56\151\x6e\163\x74\141\154\x6c\141\164\151\x6f\x6e\x2e\x70\x68\160\x22\40\164\141\162\x67\x65\x74\x3d\x22\x5f\142\154\x61\x6e\153\x22\x3e\120\110\120\40\143\x55\x52\114\40\x65\170\x74\145\x6e\163\x69\x6f\x6e\x3c\x2f\x61\x3e\40\151\x73\x20\x6e\x6f\164\x20\x69\x6e\163\x74\x61\154\x6c\x65\x64\40\x6f\162\40\x64\151\163\x61\x62\x6c\145\x64\x2e\40\x53\x61\x76\145\40\122\x6f\154\x65\40\x4d\x61\160\x70\x69\x6e\x67\40\x66\141\x69\x6c\145\144\x2e");
        $this->mo_saml_show_error_message();
        return;
        T1:
        if (isset($_POST["\x6d\x6f\137\141\160\160\154\171\x5f\x72\x6f\154\x65\x5f\x6d\x61\x70\160\151\156\x67\137\x66\x6f\162\137\163\x69\x74\x65\163"]) && $_POST["\155\157\137\141\160\x70\x6c\x79\x5f\162\157\x6c\145\137\x6d\141\x70\160\151\x6e\x67\137\146\157\162\137\163\151\x74\145\x73"] == 0) {
            goto QG;
        }
        if (isset($_POST["\155\x6f\137\x61\160\160\x6c\171\x5f\x72\157\x6c\145\137\155\141\x70\x70\x69\x6e\147\137\146\157\162\137\x73\x69\164\145\x73"]) && $_POST["\x6d\x6f\137\x61\160\160\x6c\171\137\162\x6f\154\x65\137\155\141\160\x70\151\x6e\x67\137\146\x6f\x72\137\163\151\164\145\163"] == 1) {
            goto Qd;
        }
        goto di;
        QG:
        if (!empty($_POST["\162\157\154\145\x5f\x6d\141\x70\160\x69\x6e\147\x5f\x73\151\164\x65"])) {
            goto fa;
        }
        update_site_option("\x6d\157\137\163\x61\x6d\154\x5f\x6d\x65\163\163\141\147\145", "\120\x6c\145\141\x73\x65\x20\x73\145\x6c\x65\143\x74\40\141\40\x73\x69\x74\145\x20\164\157\x20\x73\x61\x76\x65\40\162\157\154\145\x20\155\x61\160\160\x69\156\147");
        $this->mo_saml_show_error_message();
        return;
        fa:
        update_site_option("\x6d\157\137\x61\160\x70\x6c\171\x5f\x72\x6f\154\145\x5f\155\x61\x70\160\x69\x6e\147\137\146\x6f\162\137\x73\151\164\145\163", 0);
        $Rf = htmlspecialchars($_POST["\162\x6f\x6c\145\137\x6d\x61\160\160\151\x6e\x67\137\x73\151\x74\x65"]);
        goto di;
        Qd:
        update_site_option("\155\157\137\141\160\160\x6c\x79\x5f\x72\x6f\x6c\145\137\x6d\x61\160\x70\151\156\x67\x5f\146\x6f\x72\137\163\151\164\145\x73", 1);
        $Rf = 0;
        $ca = array();
        update_site_option("\163\141\x6d\154\x5f\141\x6d\137\162\x6f\154\x65\x5f\x6d\x61\160\x70\x69\x6e\147", $ca);
        di:
        if (empty($_POST["\x73\x61\x6d\x6c\x5f\x61\155\x5f\x64\145\x66\141\165\x6c\164\137\165\163\x65\162\137\x72\x6f\154\x65"])) {
            goto Bf;
        }
        $iI = htmlspecialchars($_POST["\163\x61\x6d\154\137\141\x6d\137\144\145\x66\x61\x75\x6c\164\x5f\x75\x73\x65\x72\x5f\x72\x6f\x6c\145"]);
        Bf:
        if (!empty($_POST["\x73\141\155\154\137\141\x6d\x5f\x64\157\x6e\164\x5f\x61\x6c\x6c\157\x77\137\165\x6e\x6c\151\163\164\145\144\137\165\163\x65\x72\137\162\157\154\145"])) {
            goto Ns;
        }
        $vU = "\x75\156\143\x68\x65\143\153\x65\x64";
        goto eq;
        Ns:
        $vU = "\x63\150\145\143\153\x65\x64";
        $iI = false;
        eq:
        if (!empty($_POST["\x6d\x6f\137\163\141\x6d\154\137\144\157\156\x74\x5f\143\162\145\141\164\x65\137\x75\163\x65\x72\137\151\146\137\162\157\x6c\x65\137\156\x6f\164\x5f\x6d\141\x70\160\x65\x64"])) {
            goto aN;
        }
        $NL = "\x75\156\x63\150\145\143\x6b\145\x64";
        $B2 = "\x66\141\154\x73\x65";
        goto tW;
        aN:
        $NL = "\143\x68\x65\x63\x6b\145\x64";
        $vU = "\165\156\143\150\x65\143\153\x65\144";
        $iI = false;
        tW:
        if (!empty($_POST["\155\x6f\x5f\163\x61\x6d\154\137\153\x65\145\160\x5f\145\170\151\x73\x74\151\x6e\147\137\x75\163\x65\162\163\137\x72\x6f\x6c\145"])) {
            goto r9;
        }
        $lW = "\165\156\x63\x68\x65\x63\x6b\145\144";
        goto ng;
        r9:
        $lW = "\143\150\x65\143\153\145\144";
        ng:
        if (!empty($_POST["\155\x6f\137\x73\141\x6d\x6c\x5f\x64\x6f\156\164\137\141\x6c\x6c\x6f\167\137\165\163\145\x72\137\164\x6f\x6c\x6f\x67\151\156\x5f\x63\x72\145\x61\x74\x65\x5f\167\x69\x74\150\137\147\x69\166\145\x6e\x5f\x67\x72\157\165\160\163"])) {
            goto nZ;
        }
        $K5 = "\x75\156\x63\x68\145\143\x6b\145\144";
        goto Ln;
        nZ:
        $K5 = "\143\150\x65\143\x6b\x65\x64";
        Ln:
        $S5 = '';
        $yS = '';
        if (empty($_POST["\x6d\x6f\137\163\141\155\154\137\x72\x65\163\x74\x72\151\x63\x74\x5f\165\163\x65\162\163\137\x77\x69\164\150\137\x67\162\157\x75\160\163"])) {
            goto rT;
        }
        $S5 = htmlspecialchars($_POST["\155\x6f\x5f\163\x61\155\154\137\x72\x65\163\x74\x72\x69\143\164\x5f\x75\163\145\162\163\x5f\167\x69\x74\x68\x5f\x67\162\157\x75\x70\x73"]);
        rT:
        if (empty($_POST["\x73\x61\x6d\x6c\x5f\x61\x6d\137\x67\162\157\x75\x70\x5f\x61\x74\x74\x72\x5f\x76\141\x6c\x75\145\x73\x5f\163\x75\160\x65\x72\141\144\x6d\x69\156"])) {
            goto Cj;
        }
        $yS = htmlspecialchars($_POST["\x73\141\x6d\x6c\137\141\x6d\137\x67\162\x6f\x75\x70\x5f\x61\x74\164\162\137\x76\x61\x6c\x75\x65\x73\137\163\165\x70\145\x72\141\144\155\151\156"]);
        Cj:
        $wp_roles = new WP_Roles($Rf);
        $tw = $wp_roles->get_names();
        $ca = maybe_unserialize(get_site_option("\x73\x61\x6d\154\137\x61\155\137\162\157\x6c\x65\x5f\x6d\141\x70\x70\x69\156\147"));
        foreach ($tw as $WN => $PZ) {
            $a6 = "\x73\141\x6d\154\x5f\141\x6d\137\147\x72\x6f\x75\x70\x5f\141\164\164\162\x5f\166\141\x6c\165\x65\163\x5f" . $WN;
            $ca[$Rf][$WN] = stripslashes($_POST[$a6]);
            EM:
        }
        ei:
        $ca[$Rf]["\144\x65\x66\x61\x75\x6c\x74\137\162\x6f\x6c\x65"] = $iI;
        $ca[$Rf]["\144\157\156\x74\137\x63\x72\145\141\164\x65\137\165\163\145\162"] = $NL;
        $ca[$Rf]["\144\157\156\x74\137\141\x6c\x6c\x6f\x77\x5f\x75\x6e\154\151\x73\164\145\x64\137\165\163\145\x72"] = $vU;
        $ca[$Rf]["\x6b\x65\145\160\137\x65\x78\x69\x73\164\151\x6e\147\x5f\165\163\x65\162\163\137\162\x6f\154\145"] = $lW;
        $ca[$Rf]["\x6d\x6f\137\163\x61\x6d\x6c\137\x64\157\156\164\137\141\x6c\154\x6f\x77\x5f\165\163\145\162\137\x74\x6f\154\157\x67\151\x6e\137\x63\162\x65\x61\164\x65\137\x77\151\164\x68\137\147\x69\x76\x65\x6e\x5f\x67\162\157\165\x70\x73"] = $K5;
        $ca[$Rf]["\x6d\157\x5f\163\141\155\154\137\162\x65\x73\x74\162\151\x63\164\x5f\x75\163\145\162\163\137\167\x69\x74\150\x5f\x67\x72\x6f\165\x70\163"] = $S5;
        $ca = array_filter($ca, "\146\x69\154\x74\x65\162\137\x65\155\x70\164\171\x5f\x76\x61\154\x75\x65\163");
        $jA = false;
        if (!(!empty($_POST["\x6d\157\x5f\x73\x61\x6d\x6c\137\x64\151\x73\141\142\154\145\137\x72\157\154\145\x5f\x6d\141\160\x70\151\156\147"]) and $_POST["\x6d\157\x5f\x73\x61\x6d\154\x5f\144\151\163\141\142\x6c\x65\x5f\x72\157\x6c\x65\137\155\141\x70\x70\151\156\147"] == "\164\x72\x75\145")) {
            goto pK;
        }
        $jA = true;
        pK:
        update_site_option("\x6d\x6f\137\163\141\x6d\x6c\137\x64\x69\163\x61\142\x6c\x65\x5f\x72\157\154\145\137\155\141\x70\x70\151\x6e\x67", $jA);
        update_site_option("\x73\x61\155\x6c\137\x61\155\x5f\x72\157\x6c\x65\137\x6d\141\x70\x70\151\156\147", $ca);
        update_site_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\155\145\x73\163\x61\x67\x65", "\122\157\154\x65\40\115\x61\x70\160\151\x6e\147\40\x64\145\x74\x61\x69\154\x73\40\x73\141\x76\145\144\40\163\165\x63\x63\x65\x73\x73\146\x75\x6c\x6c\x79\x2e");
        update_site_option("\x6d\157\x5f\x73\x61\x6d\154\137\163\165\160\x65\x72\137\x61\144\x6d\x69\x6e\137\x72\x6f\154\145\137\x6d\x61\160\160\x69\x6e\147", $yS);
        $rw = maybe_unserialize(get_site_option("\x73\x61\155\x6c\x5f\163\163\157\x5f\x73\145\164\164\151\156\147\163"));
        if (!empty($rw)) {
            goto jX;
        }
        $rw = array();
        jX:
        $GW = "\104\105\106\x41\x55\114\124";
        if (empty($_POST["\162\157\x6c\145\x5f\x6d\141\160\x70\151\x6e\x67\137\x73\151\164\x65"])) {
            goto vy;
        }
        $GW = sanitize_text_field($_POST["\162\157\154\x65\137\x6d\x61\160\160\x69\156\147\137\163\x69\164\145"]);
        vy:
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\x46\x41\125\114\124"]))) {
            goto gw;
        }
        $rw[$GW] = $rw["\x44\105\x46\x41\125\x4c\x54"];
        gw:
        if (array_key_exists("\155\157\x5f\163\x61\x6d\154\137\x73\x75\142\163\151\x74\x65\137\x61\143\143\x65\163\x73\x5f\x64\x65\156\151\145\144", $_POST)) {
            goto hl;
        }
        $vR = "\x66\141\154\x73\145";
        goto RP;
        hl:
        $vR = sanitize_text_field($_POST["\155\x6f\137\163\x61\155\154\137\163\x75\x62\163\151\164\145\x5f\x61\143\143\145\x73\x73\x5f\144\x65\x6e\151\145\144"]);
        RP:
        if ($vR == "\x74\162\165\145") {
            goto T4;
        }
        $rw[$GW]["\x6d\x6f\137\x73\x61\x6d\x6c\137\163\x75\142\163\151\164\145\x5f\141\143\143\x65\x73\163\x5f\144\x65\x6e\x69\145\144"] = '';
        goto ZZ;
        T4:
        $rw[$GW]["\155\157\137\163\141\155\x6c\x5f\163\x75\142\x73\x69\164\145\x5f\141\143\x63\x65\x73\x73\137\144\x65\x6e\x69\145\144"] = "\164\x72\165\x65";
        ZZ:
        update_site_option("\x73\141\x6d\x6c\x5f\163\x73\x6f\x5f\x73\x65\x74\x74\x69\156\147\x73", $rw);
        $this->mo_saml_show_success_message();
        co:
        if (!self::mo_check_option_admin_referer("\x6d\x6f\x5f\x73\141\155\x6c\x5f\x73\165\x62\x73\x69\x74\x65\x5f\163\x65\154\145\x63\164\151\x6f\x6e\137\146\157\162\137\x72\157\154\x65\x5f\155\141\160\x70\x69\156\x67")) {
            goto Ru;
        }
        $ZE = !empty($_POST["\x6d\157\x5f\141\x70\160\x6c\x79\137\162\x6f\x6c\x65\137\x6d\x61\160\160\151\156\147\137\x66\x6f\162\x5f\x73\151\164\x65\x73"]) ? htmlspecialchars($_POST["\x6d\157\137\x61\x70\x70\154\171\x5f\162\157\x6c\x65\x5f\155\141\160\x70\x69\x6e\x67\x5f\146\x6f\162\137\163\151\x74\x65\163"]) : 0;
        $n3 = !empty($_POST["\162\157\154\145\x5f\x6d\141\160\160\x69\156\147\x5f\x73\x69\x74\145"]) ? htmlspecialchars($_POST["\x72\x6f\x6c\145\137\x6d\141\160\160\151\156\147\137\163\x69\164\x65"]) : false;
        update_site_option("\162\157\x6c\x65\137\155\x61\160\x70\151\x6e\x67\137\163\x69\164\x65", $n3);
        update_site_option("\155\x6f\137\x61\160\160\154\x79\x5f\162\x6f\x6c\145\x5f\155\141\160\x70\151\x6e\147\137\x66\x6f\162\x5f\163\x69\164\145\x73", $ZE);
        Ru:
        if (!self::mo_check_option_admin_referer("\155\157\x5f\163\x61\x6d\x6c\137\162\x65\x73\145\164\x5f\162\157\154\145\x5f\155\x61\x70\160\x69\x6e\x67\x5f\141\x74\x74\x72\x69\142\x75\164\x65\163")) {
            goto Aw;
        }
        update_site_option("\x6d\157\x5f\x61\x70\160\x6c\x79\x5f\x72\157\x6c\145\137\x6d\x61\x70\x70\x69\156\x67\137\x66\157\162\x5f\163\151\164\145\163", 0);
        $ca = array();
        update_site_option("\x73\x61\x6d\154\137\x61\x6d\x5f\162\x6f\x6c\145\137\155\x61\160\x70\x69\x6e\147", $ca);
        update_site_option("\x6d\157\137\163\x61\x6d\x6c\x5f\163\165\x70\x65\162\137\x61\144\x6d\151\156\x5f\162\x6f\x6c\145\137\x6d\141\x70\x70\151\156\147", '');
        update_site_option("\x6d\157\137\163\141\155\154\x5f\155\145\163\163\x61\x67\145", "\x52\x6f\154\x65\x20\115\x61\x70\x70\151\156\x67\x20\150\141\163\x20\142\145\x65\x6e\x20\162\x65\x73\145\x74\40\x73\x75\x63\143\x65\x73\163\x66\165\154\154\x79\56");
        $this->mo_saml_show_success_message();
        Aw:
        if (!self::mo_check_option_admin_referer("\155\x6f\x5f\x73\x61\x6d\154\137\x72\145\x73\x65\164\x5f\163\x73\157\137\163\x65\x74\x74\151\x6e\x67\163\x5f\157\x70\x74\x69\x6f\x6e")) {
            goto NF;
        }
        $rw = array();
        update_site_option("\x73\x61\x6d\154\x5f\163\163\157\137\x73\145\x74\164\151\x6e\147\x73", $rw);
        update_site_option("\155\157\137\163\141\x6d\154\x5f\x6d\145\x73\163\141\147\x65", "\x53\x53\117\x20\x53\x65\164\164\151\156\x67\x73\x20\150\x61\x73\x20\x62\x65\145\x6e\40\x72\x65\x73\145\x74\40\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6c\154\171\x20\146\157\162\x20\141\x6c\x6c\40\x79\157\x75\x72\x20\163\x75\142\x2d\163\x69\164\145\163\x2e");
        $this->mo_saml_show_success_message();
        NF:
        if (!(!empty($_POST["\x6f\160\x74\x69\x6f\156"]) and $_POST["\157\x70\x74\151\157\156"] == "\155\157\x5f\x73\141\155\x6c\137\165\x70\x64\141\164\145\137\163\x70\x5f\142\141\x73\x65\137\x75\162\154\x5f\157\x70\164\x69\x6f\156")) {
            goto jL;
        }
        if (!(!empty($_POST["\155\157\x5f\163\x61\x6d\x6c\137\163\x70\x5f\x62\x61\163\x65\137\x75\x72\154"]) && !empty($_POST["\x6d\x6f\137\x73\141\155\154\x5f\163\x70\137\x65\156\x74\x69\x74\x79\137\x69\x64"]))) {
            goto JB;
        }
        $fs = sanitize_text_field($_POST["\155\x6f\137\163\x61\155\x6c\137\163\x70\137\142\x61\x73\145\137\x75\x72\x6c"]);
        $VQ = sanitize_text_field($_POST["\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\163\160\137\x65\156\x74\x69\x74\x79\x5f\151\x64"]);
        if (!(substr($fs, -1) == "\57")) {
            goto xx;
        }
        $fs = substr($fs, 0, -1);
        xx:
        update_site_option("\155\157\x5f\x73\141\x6d\154\137\x73\160\137\142\141\163\x65\137\165\162\x6c", $fs);
        update_site_option("\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\163\x70\137\145\156\x74\x69\x74\171\137\151\x64", $VQ);
        JB:
        update_site_option("\155\157\137\163\x61\x6d\x6c\137\x6d\x65\163\x73\x61\x67\x65", "\x53\x50\40\102\141\x73\x65\x20\x55\122\x4c\40\165\x70\x64\141\x74\x65\144\x20\163\x75\143\143\145\x73\163\146\165\154\154\x79\56");
        $this->mo_saml_show_success_message();
        jL:
        if (!self::mo_check_option_admin_referer("\x73\x61\x6d\x6c\137\x75\160\x6c\x6f\x61\x64\x5f\155\145\x74\x61\x64\x61\x74\x61")) {
            goto nC;
        }
        if (!function_exists("\x77\160\137\150\x61\x6e\144\154\x65\x5f\165\160\x6c\157\x61\144")) {
            require_once ABSPATH . "\x77\x70\x2d\141\x64\155\151\x6e\x2f\x69\156\x63\x6c\x75\144\145\163\x2f\x66\x69\x6c\145\x2e\x70\x68\160";
        }
        $this->upload_metadata();
        nC:
        if (!self::mo_check_option_admin_referer("\x6d\x6f\x5f\163\141\155\154\x5f\x75\160\144\141\x74\x65\x5f\151\144\x70\x5f\163\145\x74\164\151\156\147\x73\137\157\x70\x74\151\157\x6e")) {
            goto fs;
        }
        if (!(!empty($_POST["\155\157\x5f\x73\x61\155\154\137\163\x70\x5f\142\x61\x73\145\137\x75\162\x6c"]) && !empty($_POST["\155\x6f\137\163\141\155\154\x5f\163\160\137\x65\x6e\164\x69\164\171\x5f\x69\x64"]))) {
            goto Dk;
        }
        $fs = sanitize_text_field($_POST["\155\157\x5f\x73\141\x6d\154\x5f\163\160\x5f\x62\141\163\x65\x5f\165\x72\x6c"]);
        $VQ = sanitize_text_field($_POST["\x6d\x6f\137\163\x61\155\154\137\x73\160\x5f\145\156\164\151\164\x79\137\x69\144"]);
        if (!(substr($fs, -1) == "\57")) {
            goto Uv;
        }
        $fs = substr($fs, 0, -1);
        Uv:
        update_site_option("\155\157\x5f\x73\x61\155\154\137\163\160\137\142\141\163\145\x5f\x75\162\154", $fs);
        update_site_option("\155\x6f\x5f\x73\x61\x6d\154\137\163\160\x5f\145\156\164\151\164\x79\137\x69\x64", $VQ);
        Dk:
        update_site_option("\x6d\157\x5f\x73\x61\x6d\154\x5f\155\x65\163\x73\141\147\x65", "\x53\x65\x74\x74\151\x6e\x67\163\40\165\160\x64\141\164\x65\144\40\x73\x75\143\x63\x65\x73\x73\x66\165\154\x6c\171\56");
        $this->mo_saml_show_success_message();
        fs:
        if (!self::mo_check_option_admin_referer("\x65\156\x61\142\x6c\145\137\163\163\157\x5f\x6e\x65\x77\137\163\151\x74\x65\137\157\x70\x74\x69\x6f\x6e")) {
            goto v3;
        }
        if (!empty($_POST["\145\x6e\x61\x62\154\x65\x5f\163\163\x6f\x5f\156\x65\167\x5f\x73\151\x74\145"]) and $_POST["\x65\x6e\x61\142\154\145\137\x73\x73\157\x5f\x6e\x65\167\137\163\151\x74\145"] == "\164\x72\x75\x65") {
            goto gm;
        }
        $Lv = "\146\x61\x6c\163\145";
        goto p7;
        gm:
        $Lv = "\x74\162\165\x65";
        p7:
        update_site_option("\155\157\137\163\141\x6d\x6c\x5f\145\156\x61\142\154\x65\x5f\x73\163\157\137\156\x65\x77\137\163\x69\x74\x65", $Lv);
        update_site_option("\155\x6f\137\x73\141\x6d\154\x5f\155\x65\x73\x73\141\x67\x65", "\x53\145\164\164\151\156\x67\163\40\x75\x70\x64\141\x74\145\144\40\163\x75\143\143\x65\x73\x73\146\x75\x6c\154\171\56");
        $this->mo_saml_show_success_message();
        v3:
        if (!self::mo_check_option_admin_referer("\x75\160\x67\162\x61\144\x65\x5f\143\x65\162\x74")) {
            goto M_;
        }
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "\x72\x65\x73\x6f\165\x72\x63\x65\x73" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "\x72\145\163\157\165\162\143\145\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
        update_site_option("\x6d\157\137\163\x61\155\154\x5f\x63\165\x72\x72\x65\156\164\137\143\145\x72\x74", $eH);
        update_site_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\x63\x75\162\162\x65\x6e\x74\x5f\143\x65\162\x74\x5f\160\162\x69\x76\141\x74\x65\x5f\x6b\x65\x79", $W8);
        update_site_option("\155\157\x5f\x73\141\x6d\154\x5f\x63\145\x72\x74\x69\146\151\143\x61\x74\145\137\x72\157\154\154\x5f\x62\x61\143\x6b\x5f\x61\166\x61\x69\154\x61\142\154\x65", true);
        update_site_option("\155\x6f\137\163\x61\155\x6c\137\155\145\163\x73\141\x67\145", "\x43\x65\162\164\x69\x66\151\x63\141\x74\145\40\x55\160\147\x72\x61\144\145\x64\40\163\x75\x63\x63\x65\163\x73\146\x75\x6c\x6c\x79");
        $this->mo_saml_show_success_message();
        M_:
        if (!self::mo_check_option_admin_referer("\x72\x6f\x6c\154\x62\141\143\153\137\143\145\x72\164")) {
            goto i6;
        }
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "\x72\x65\x73\x6f\x75\x72\143\145\x73" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Cert);
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "\x72\x65\163\157\165\x72\143\x65\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Rollback_Public_Key);
        update_site_option("\155\x6f\x5f\163\x61\x6d\154\137\x63\x75\162\162\x65\156\x74\137\143\145\x72\164", $eH);
        update_site_option("\x6d\157\137\163\141\x6d\154\137\143\165\x72\x72\x65\156\x74\x5f\x63\x65\x72\x74\137\x70\162\x69\x76\141\x74\x65\x5f\x6b\145\x79", $W8);
        update_site_option("\155\157\x5f\x73\141\155\x6c\137\x6d\x65\163\x73\141\147\x65", "\x43\x65\x72\x74\151\x66\x69\143\x61\x74\145\40\x52\157\x6c\154\x2d\x62\141\143\153\145\144\x20\x73\165\x63\143\145\x73\163\x66\165\x6c\x6c\171");
        delete_option("\155\157\x5f\x73\x61\x6d\154\137\x63\x65\162\164\x69\x66\151\143\x61\x74\145\x5f\162\x6f\x6c\154\x5f\x62\x61\x63\153\137\141\166\141\x69\154\x61\x62\154\145");
        $this->mo_saml_show_success_message();
        i6:
        if (self::mo_check_option_admin_referer("\x61\x64\144\x5f\143\165\x73\164\157\155\137\143\145\x72\x74\x69\146\151\x63\x61\164\145")) {
            goto Yc;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\137\163\x61\x6d\x6c\137\x72\x65\x6d\157\x76\x65\x5f\x61\143\143\157\165\x6e\164")) {
            goto t0;
        }
        if (self::mo_check_option_admin_referer("\141\144\144\137\143\x75\x73\164\x6f\x6d\137\x6d\x65\163\163\141\147\145\163")) {
            goto BV;
        }
        goto IJ;
        Yc:
        $eH = file_get_contents(plugin_dir_path(__FILE__) . "\162\x65\x73\157\165\162\x63\x65\163" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Public_Certificate);
        $W8 = file_get_contents(plugin_dir_path(__FILE__) . "\162\x65\x73\x6f\165\x72\143\x65\x73" . DIRECTORY_SEPARATOR . mo_options_enum_default_sp_certificate::SP_Private_Key);
        if (!empty($_POST["\163\x75\142\x6d\151\x74"]) and $_POST["\x73\165\142\x6d\151\164"] == "\125\x70\154\x6f\x61\144") {
            goto jV;
        }
        if (!empty($_POST["\163\x75\142\x6d\x69\164"]) and $_POST["\x73\165\x62\155\x69\164"] == "\x52\145\163\145\164") {
            goto he;
        }
        goto C6;
        jV:
        if (!@openssl_x509_read($_POST["\163\x61\x6d\x6c\x5f\x70\165\142\x6c\x69\143\x5f\x78\x35\x30\x39\137\143\x65\x72\x74\x69\146\151\x63\141\x74\145"])) {
            goto Pl;
        }
        if (!@openssl_x509_check_private_key($_POST["\163\141\155\x6c\x5f\x70\165\142\154\151\x63\137\170\x35\60\71\137\143\145\162\164\x69\146\151\143\x61\x74\x65"], $_POST["\163\141\x6d\x6c\137\x70\162\151\x76\141\x74\x65\137\170\x35\60\x39\137\143\145\x72\164\151\146\151\143\x61\x74\145"])) {
            goto bC;
        }
        if (openssl_x509_read($_POST["\163\x61\155\154\137\x70\165\x62\x6c\x69\143\137\170\65\60\71\x5f\x63\145\162\x74\151\x66\151\143\x61\x74\145"]) && openssl_x509_check_private_key($_POST["\x73\141\x6d\154\137\160\165\x62\x6c\x69\x63\137\x78\x35\x30\x39\x5f\143\x65\162\x74\x69\x66\x69\143\x61\164\x65"], $_POST["\x73\141\155\154\x5f\160\162\x69\x76\x61\x74\145\137\x78\x35\x30\71\137\x63\145\162\164\151\146\151\x63\x61\x74\145"])) {
            goto mK;
        }
        goto Jc;
        Pl:
        update_site_option("\x6d\157\x5f\x73\141\155\154\137\155\x65\x73\163\x61\147\145", "\x49\x6e\x76\x61\x6c\x69\x64\x20\x43\145\x72\164\x69\146\x69\143\141\x74\x65\40\146\157\x72\155\x61\164\56\40\120\x6c\145\x61\163\x65\40\145\156\x74\x65\x72\40\x61\x20\166\141\154\151\x64\x20\143\x65\162\164\x69\146\151\143\x61\164\145\56");
        $this->mo_saml_show_error_message();
        return;
        goto Jc;
        bC:
        update_site_option("\x6d\x6f\137\163\141\x6d\x6c\137\155\145\163\x73\141\147\x65", "\111\156\x76\x61\154\151\144\40\120\x72\x69\166\141\x74\x65\x20\x4b\145\171\56");
        $this->mo_saml_show_error_message();
        return;
        goto Jc;
        mK:
        $sm = $_POST["\x73\x61\155\x6c\137\160\165\x62\x6c\151\143\137\170\65\x30\71\x5f\x63\x65\162\164\x69\x66\151\x63\141\x74\145"];
        $Gq = $_POST["\x73\141\155\x6c\x5f\x70\x72\x69\166\141\x74\145\x5f\170\x35\60\x39\x5f\143\x65\162\164\151\146\151\x63\141\x74\x65"];
        update_site_option("\155\x6f\137\163\x61\155\x6c\137\x63\x75\163\x74\157\155\137\x63\145\x72\164", $sm);
        update_site_option("\x6d\157\137\163\x61\155\154\x5f\143\x75\163\164\157\x6d\137\x63\145\162\x74\137\160\x72\151\x76\141\164\145\137\x6b\145\x79", $Gq);
        update_site_option("\x6d\157\137\x73\x61\x6d\x6c\x5f\x63\165\x72\x72\x65\156\x74\x5f\x63\145\x72\x74", $sm);
        update_site_option("\x6d\x6f\x5f\163\141\x6d\x6c\x5f\x63\165\162\x72\x65\156\x74\x5f\143\145\162\164\x5f\160\x72\x69\x76\141\164\x65\x5f\x6b\145\x79", $Gq);
        update_site_option("\155\157\137\163\x61\x6d\154\x5f\155\145\163\163\x61\147\x65", "\103\x75\x73\x74\x6f\155\x20\103\145\162\x74\151\x66\x69\143\x61\164\x65\x20\165\x70\x64\141\164\x65\x64\40\x73\x75\x63\143\145\163\163\x66\x75\154\154\171\x2e");
        $this->mo_saml_show_success_message();
        Jc:
        goto C6;
        he:
        delete_site_option("\155\x6f\x5f\163\x61\x6d\154\137\x63\x75\163\164\157\x6d\x5f\x63\145\x72\x74");
        delete_site_option("\x6d\x6f\137\x73\x61\155\x6c\137\143\165\x73\x74\157\155\x5f\x63\x65\x72\x74\137\160\162\151\x76\x61\164\x65\137\153\145\171");
        update_site_option("\x6d\x6f\x5f\163\x61\x6d\154\x5f\143\165\162\x72\x65\156\164\x5f\143\145\162\164", $eH);
        update_site_option("\x6d\157\137\163\141\155\x6c\137\x63\165\x72\162\x65\x6e\x74\137\143\x65\162\164\137\x70\162\x69\x76\x61\164\x65\x5f\x6b\x65\171", $W8);
        update_site_option("\155\x6f\x5f\163\x61\155\154\x5f\x6d\x65\163\163\x61\x67\x65", "\122\x65\163\x65\x74\40\103\x65\162\x74\151\146\151\143\141\x74\145\40\x73\165\x63\x63\x65\163\x73\x66\165\154\x6c\x79\56");
        $this->mo_saml_show_success_message();
        C6:
        goto IJ;
        t0:
        $this->mo_sso_saml_deactivate();
        add_site_option("\155\157\x5f\163\141\x6d\x6c\137\x72\x65\147\151\163\x74\x72\141\x74\x69\157\156\137\x73\164\x61\164\165\163", "\x72\145\155\157\x76\145\x64\137\141\143\143\157\165\x6e\x74");
        $qp = add_query_arg(array("\164\x61\142" => "\154\x6f\x67\x69\x6e"), $_SERVER["\x52\x45\x51\125\x45\123\x54\137\x55\x52\x49"]);
        header("\x4c\x6f\143\x61\x74\151\157\x6e\72\x20" . $qp);
        goto IJ;
        BV:
        update_site_option("\x6d\x6f\137\163\141\155\154\137\141\x63\x63\157\x75\156\164\137\143\162\x65\x61\164\x69\x6f\156\137\x64\151\163\141\x62\x6c\145\x64\137\x6d\x73\147", sanitize_text_field($_POST["\155\x6f\137\163\141\155\154\137\x61\143\143\157\165\156\x74\x5f\x63\x72\145\141\x74\x69\157\x6e\x5f\144\151\x73\x61\x62\x6c\145\144\137\155\163\x67"]));
        update_site_option("\155\157\x5f\163\141\155\154\x5f\162\145\x73\164\162\151\x63\x74\145\x64\x5f\x64\x6f\x6d\x61\151\x6e\x5f\x65\162\162\157\x72\137\155\x73\x67", sanitize_text_field($_POST["\155\x6f\137\x73\x61\x6d\x6c\137\x72\x65\163\164\162\151\x63\x74\145\144\x5f\x64\157\155\x61\x69\156\x5f\x65\162\x72\x6f\162\137\x6d\x73\147"]));
        update_site_option("\x6d\x6f\137\163\141\155\x6c\137\x6d\x65\x73\x73\x61\147\145", "\x43\x6f\156\146\x69\147\x75\162\141\x74\151\157\x6e\40\x68\141\x73\x20\142\x65\x65\x6e\40\x73\141\166\x65\144\40\163\165\143\143\x65\x73\x73\x66\165\x6c\x6c\x79\x2e");
        $this->mo_saml_show_success_message();
        IJ:
        if (!self::mo_check_option_admin_referer("\155\141\x6e\141\147\145\x5f\x73\163\x6f\x5f\x73\x69\164\145\x73")) {
            goto KO;
        }
        $aX = Utilities::get_sites();
        $EK = Utilities::get_active_sites();
        $JI = false;
        $qu = false;
        if (!empty($_POST["\x65\156\x61\x62\154\145\101\154\x6c"]) and $_POST["\x65\x6e\141\x62\154\x65\x41\154\x6c"] == "\x74\162\x75\x65") {
            goto GO;
        }
        if (!empty($_POST["\x64\x69\x73\x61\x62\x6c\x65\101\x6c\x6c"]) and $_POST["\144\x69\163\x61\x62\x6c\x65\101\154\x6c"] == "\164\162\165\x65") {
            goto A3;
        }
        goto xP;
        GO:
        $JI = true;
        goto xP;
        A3:
        $qu = true;
        xP:
        foreach ($aX as $GW) {
            $Rf = $GW->blog_id;
            if ($JI) {
                goto zu;
            }
            if ($qu) {
                goto pd;
            }
            if (!empty($_POST[$Rf])) {
                goto FU;
            }
            goto s7;
            zu:
            if (Utilities::mo_saml_in_array($Rf, $EK)) {
                goto jS;
            }
            array_push($EK, $Rf);
            jS:
            goto s7;
            pd:
            $ns = array_search($Rf, $EK);
            if (!($ns !== false)) {
                goto eB;
            }
            unset($EK[$ns]);
            eB:
            goto s7;
            FU:
            if ($_POST[$Rf] == "\146\141\x6c\x73\x65") {
                goto aJ;
            }
            if ($_POST[$Rf] == "\x74\x72\x75\145") {
                goto h7;
            }
            goto ku;
            aJ:
            $ns = array_search($Rf, $EK);
            if (!($ns !== false)) {
                goto Nr;
            }
            unset($EK[$ns]);
            Nr:
            goto ku;
            h7:
            if (Utilities::mo_saml_in_array($Rf, $EK)) {
                goto EB;
            }
            array_push($EK, $Rf);
            EB:
            ku:
            s7:
            zi:
        }
        JM:
        $r3 = Utilities::get_main_subsite_id();
        if (Utilities::mo_saml_in_array($r3, $EK)) {
            goto Gp;
        }
        array_push($EK, $r3);
        Gp:
        update_site_option("\155\x6f\137\145\x6e\x61\142\154\145\137\163\x73\x6f\137\x73\x69\164\145\163", $EK);
        KO:
        if (!self::mo_check_option_admin_referer("\155\x6f\x5f\x73\x61\155\154\x5f\162\145\154\x61\171\x5f\163\164\x61\164\x65\137\157\x70\164\x69\157\156")) {
            goto fM;
        }
        $Gx = esc_url_raw(filter_var($_POST["\x6d\x6f\137\163\141\155\154\x5f\162\x65\x6c\x61\x79\137\163\x74\141\164\145"], FILTER_SANITIZE_URL));
        $rw = maybe_unserialize(get_site_option("\163\x61\x6d\x6c\x5f\x73\x73\157\x5f\x73\145\164\164\151\156\x67\x73"));
        if ($rw) {
            goto fS;
        }
        $rw = array();
        fS:
        $GW = "\104\x45\106\x41\x55\x4c\124";
        if (empty($_POST["\163\151\x74\145"])) {
            goto UZ;
        }
        $GW = htmlspecialchars($_POST["\x73\x69\x74\x65"]);
        UZ:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\105\x46\101\x55\114\124"]))) {
            goto jQ;
        }
        $rw[$GW] = $rw["\104\105\x46\101\x55\x4c\x54"];
        jQ:
        $rw[$GW]["\155\157\137\x73\x61\155\x6c\x5f\162\x65\154\141\x79\137\163\x74\141\164\x65"] = $Gx;
        update_site_option("\163\x61\155\x6c\137\x73\x73\x6f\137\163\145\164\x74\151\x6e\147\x73", $rw);
        update_site_option("\x6d\157\137\163\141\155\x6c\137\x6d\x65\x73\163\x61\x67\x65", "\122\x65\154\x61\x79\x20\x53\x74\x61\164\x65\40\x75\160\144\x61\164\x65\144\x20\x73\165\x63\143\x65\x73\163\x66\165\154\x6c\171\56");
        $this->mo_saml_show_success_message();
        fM:
        if (!self::mo_check_option_admin_referer("\x6d\157\x5f\x73\141\x6d\x6c\137\x77\x69\144\147\145\x74\x5f\157\x70\164\x69\157\156")) {
            goto Yx;
        }
        $rw = maybe_unserialize(get_site_option("\163\x61\155\154\137\x73\163\x6f\137\163\x65\164\x74\151\x6e\147\163"));
        if ($rw) {
            goto VH;
        }
        $rw = array();
        VH:
        $GW = "\104\x45\106\101\x55\x4c\124";
        if (empty($_POST["\163\x69\x74\x65"])) {
            goto kw;
        }
        $GW = htmlspecialchars($_POST["\x73\x69\x74\145"]);
        kw:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\105\x46\101\125\114\124"]))) {
            goto CX;
        }
        $rw[$GW] = $rw["\x44\105\106\x41\125\x4c\x54"];
        CX:
        $R0 = sanitize_text_field($_POST["\x6d\x6f\x5f\x73\x61\155\154\137\143\x75\x73\164\157\155\x5f\154\x6f\147\x69\x6e\x5f\x74\x65\170\164"]);
        $rw[$GW]["\x6d\157\x5f\163\x61\155\x6c\x5f\x63\x75\163\x74\x6f\155\x5f\x6c\157\x67\151\156\137\164\x65\x78\x74"] = stripcslashes($R0);
        $WL = sanitize_text_field($_POST["\155\157\137\163\141\x6d\154\137\x63\x75\163\x74\x6f\x6d\137\x67\162\x65\145\x74\x69\156\x67\x5f\164\145\170\164"]);
        $rw[$GW]["\155\x6f\137\163\x61\x6d\154\137\x63\165\163\x74\157\x6d\x5f\x67\x72\x65\x65\x74\151\x6e\x67\137\x74\x65\170\x74"] = stripcslashes($WL);
        $Y1 = htmlspecialchars(stripslashes($_POST["\x6d\157\x5f\x73\141\155\x6c\137\x67\x72\x65\145\x74\151\156\x67\137\x6e\x61\155\x65"]));
        $rw[$GW]["\x6d\157\137\x73\141\155\x6c\x5f\147\x72\145\x65\x74\x69\x6e\x67\137\156\141\155\x65"] = $Y1;
        $CQ = sanitize_text_field($_POST["\155\157\137\163\141\x6d\154\137\x63\165\163\164\x6f\x6d\x5f\154\157\x67\157\x75\164\137\164\145\x78\164"]);
        $rw[$GW]["\155\157\x5f\x73\141\155\x6c\x5f\143\x75\163\x74\157\x6d\x5f\154\157\x67\x6f\165\164\137\x74\x65\x78\164"] = stripcslashes($CQ);
        update_site_option("\163\141\x6d\154\x5f\163\163\x6f\137\x73\x65\x74\164\x69\156\147\163", $rw);
        update_site_option("\155\x6f\x5f\x73\141\155\154\x5f\155\x65\x73\x73\x61\x67\x65", "\127\x69\x64\147\x65\x74\40\123\145\164\164\151\156\147\163\x20\x75\x70\144\141\164\x65\x64\40\x73\x75\x63\143\145\163\x73\x66\x75\154\154\171\x2e");
        $this->mo_saml_show_success_message();
        Yx:
        if (!self::mo_check_option_admin_referer("\x73\x73\x6f\137\x73\x65\164\x74\151\x6e\x67\x73\137\x73\151\164\x65\137\x6f\160\x74\151\157\156")) {
            goto S3;
        }
        if (empty($_POST["\163\x73\157\137\x73\x65\x74\x74\x69\156\x67\163\x5f\163\151\x74\x65"])) {
            goto EO;
        }
        update_site_option("\x73\163\x6f\x5f\163\145\164\164\x69\156\147\163\137\x73\x69\x74\x65", htmlspecialchars($_POST["\x73\x73\x6f\x5f\x73\145\164\x74\151\156\x67\x73\137\163\151\164\145"]));
        EO:
        S3:
        if (!self::mo_check_option_admin_referer("\155\x6f\137\163\x61\x6d\154\x5f\162\145\147\151\163\164\x65\162\x5f\x63\165\163\x74\157\155\x65\x72")) {
            goto US;
        }
        if (mo_saml_is_extension_installed("\x63\x75\x72\154")) {
            goto R9;
        }
        update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\137\155\145\163\163\141\147\x65", "\105\x52\122\117\122\x3a\x20\74\141\x20\150\162\x65\146\x3d\42\150\164\164\160\72\x2f\x2f\160\150\x70\56\156\x65\164\x2f\x6d\x61\x6e\165\x61\154\x2f\145\156\57\143\165\x72\x6c\56\151\156\163\x74\x61\154\x6c\141\x74\x69\157\156\56\x70\x68\160\42\x20\x74\x61\162\x67\145\164\75\42\137\142\x6c\x61\156\153\42\x3e\x50\110\x50\x20\143\125\122\x4c\40\x65\170\x74\x65\x6e\x73\x69\x6f\x6e\x3c\x2f\141\x3e\x20\x69\163\40\x6e\x6f\x74\40\x69\156\x73\x74\141\154\154\x65\x64\40\157\162\40\144\x69\163\141\142\154\145\144\56\x20\x52\x65\147\151\163\x74\162\141\164\x69\x6f\x6e\40\x66\141\151\154\x65\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        R9:
        $uo = '';
        $yG = '';
        $C1 = '';
        $wz = '';
        if (empty($_POST["\145\155\141\151\154"]) || empty($_POST["\160\141\163\x73\x77\x6f\162\x64"]) || empty($_POST["\x63\x6f\156\x66\151\162\x6d\x50\x61\163\163\x77\157\162\x64"])) {
            goto jE;
        }
        if (strlen($_POST["\x70\141\x73\x73\x77\157\x72\144"]) < 6 || strlen($_POST["\x63\157\156\146\151\162\x6d\120\x61\x73\x73\x77\157\x72\x64"]) < 6) {
            goto Cq;
        }
        if ($this->checkPasswordPattern(strip_tags($_POST["\160\141\163\x73\167\157\x72\x64"]))) {
            goto TT;
        }
        $uo = sanitize_email($_POST["\x65\x6d\141\x69\x6c"]);
        if (!array_key_exists("\160\150\x6f\x6e\x65", $_POST)) {
            goto zY;
        }
        $yG = sanitize_text_field($_POST["\160\x68\157\156\145"]);
        zY:
        $C1 = stripslashes(strip_tags($_POST["\160\141\163\x73\x77\x6f\x72\x64"]));
        $wz = stripslashes(strip_tags($_POST["\x63\x6f\x6e\146\151\x72\x6d\120\141\163\x73\x77\157\x72\144"]));
        goto yO;
        jE:
        update_site_option("\155\x6f\x5f\x73\x61\155\x6c\137\155\x65\163\163\x61\147\x65", "\101\154\x6c\40\164\x68\x65\x20\x66\x69\x65\154\144\163\x20\x61\162\x65\40\162\145\161\165\151\x72\x65\x64\x2e\x20\120\x6c\x65\141\163\145\x20\x65\x6e\164\145\162\x20\x76\141\154\151\144\x20\x65\156\x74\x72\x69\x65\163\x2e");
        $this->mo_saml_show_error_message();
        return;
        goto yO;
        Cq:
        update_site_option("\x6d\157\x5f\163\x61\155\154\x5f\155\x65\163\163\141\x67\x65", "\x43\x68\x6f\157\163\145\x20\141\40\160\141\163\x73\x77\157\162\x64\x20\167\x69\x74\150\40\x6d\151\156\151\x6d\165\x6d\40\154\x65\156\147\x74\x68\40\x36\56");
        $this->mo_saml_show_error_message();
        return;
        goto yO;
        TT:
        update_site_option("\x6d\x6f\137\163\141\155\154\x5f\155\x65\x73\163\141\x67\x65", "\x4d\151\156\x69\x6d\165\x6d\x20\66\x20\143\150\141\162\141\143\164\145\162\x73\x20\x73\150\x6f\x75\154\x64\x20\142\145\x20\160\162\145\163\145\x6e\x74\x2e\40\115\141\170\151\155\x75\155\x20\61\x35\40\x63\x68\141\162\x61\x63\x74\x65\x72\x73\40\x73\150\157\x75\154\144\x20\142\145\x20\160\162\145\x73\145\156\164\x2e\x20\x4f\156\154\171\x20\146\157\154\154\157\x77\151\x6e\x67\40\163\x79\x6d\142\157\x6c\163\x20\50\41\100\x23\56\x24\x25\136\46\x2a\x2d\137\x29\40\163\x68\157\x75\x6c\144\x20\142\145\40\160\162\145\x73\145\x6e\x74\x2e");
        $this->mo_saml_show_error_message();
        return;
        yO:
        update_site_option("\x6d\x6f\137\x73\x61\x6d\154\137\x61\144\155\x69\x6e\137\145\155\x61\151\154", $uo);
        update_site_option("\x6d\x6f\137\163\141\x6d\154\137\x61\x64\x6d\x69\x6e\x5f\160\x68\x6f\156\x65", $yG);
        if (strcmp($C1, $wz) == 0) {
            goto Fi;
        }
        update_site_option("\x6d\157\137\x73\141\155\154\137\x6d\145\x73\x73\x61\x67\145", "\120\141\163\163\x77\157\162\144\x73\40\144\x6f\40\x6e\x6f\164\40\x6d\x61\164\x63\150\x2e");
        delete_site_option("\155\x6f\137\163\141\155\x6c\137\166\x65\x72\x69\x66\171\x5f\x63\165\x73\x74\157\x6d\x65\162");
        $this->mo_saml_show_error_message();
        goto bI;
        Fi:
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\154\137\141\x64\155\151\156\137\160\141\163\163\x77\x6f\x72\x64", $C1);
        $uo = get_site_option("\155\157\x5f\x73\x61\155\x6c\x5f\x61\144\155\151\156\x5f\x65\x6d\x61\151\x6c");
        $IV = new CustomerSaml();
        $sC = $IV->check_customer($this);
        if ($sC) {
            goto hk;
        }
        return;
        hk:
        $T0 = json_decode($sC, true);
        if (strcasecmp($T0["\163\x74\141\164\x75\x73"], "\103\125\x53\124\117\115\x45\122\137\x4e\117\x54\x5f\x46\x4f\125\x4e\x44") == 0) {
            goto RJ;
        }
        $this->get_current_customer();
        goto t_;
        RJ:
        $T0 = json_decode($IV->send_otp_token($uo, '', $this), true);
        if (strcasecmp($T0["\163\x74\141\x74\165\x73"], "\x53\x55\103\103\x45\x53\x53") == 0) {
            goto xu;
        }
        update_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\155\x65\x73\x73\141\147\145", "\x54\150\145\x72\145\40\167\141\x73\x20\x61\x6e\x20\x65\x72\162\x6f\162\x20\151\x6e\x20\x73\x65\x6e\144\151\x6e\147\40\145\155\x61\151\154\x2e\40\120\x6c\x65\141\x73\x65\x20\x76\145\162\x69\146\171\x20\171\x6f\x75\162\40\145\155\x61\151\154\40\x61\x6e\x64\x20\x74\162\171\x20\141\x67\x61\x69\x6e\x2e");
        update_site_option("\x6d\157\137\163\141\155\x6c\x5f\x72\145\x67\151\x73\164\162\141\164\x69\157\156\137\163\164\141\164\x75\163", "\115\117\x5f\x4f\x54\120\x5f\104\x45\114\x49\x56\x45\x52\105\x44\x5f\106\x41\x49\x4c\125\122\105\x5f\x45\x4d\x41\111\114");
        $this->mo_saml_show_error_message();
        goto HI;
        xu:
        update_site_option("\155\x6f\137\163\141\155\x6c\x5f\155\x65\x73\x73\x61\147\145", "\x20\x41\x20\157\x6e\145\40\164\x69\155\x65\x20\160\141\x73\x73\143\157\x64\x65\40\x69\x73\x20\163\145\156\x74\40\164\x6f\40" . get_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\x61\144\x6d\x69\x6e\137\x65\155\x61\151\x6c") . "\56\40\x50\154\x65\141\163\x65\40\x65\156\164\145\x72\x20\164\150\145\40\157\x74\160\x20\x68\145\x72\x65\x20\164\x6f\40\x76\x65\x72\x69\x66\x79\40\x79\157\165\x72\x20\145\155\141\151\154\x2e");
        update_site_option("\x6d\157\137\163\141\x6d\154\137\164\162\x61\156\163\x61\x63\x74\x69\x6f\x6e\x49\x64", $T0["\x74\170\x49\144"]);
        update_site_option("\155\157\x5f\x73\141\155\154\x5f\162\x65\x67\x69\163\x74\162\x61\164\151\x6f\x6e\137\163\x74\x61\x74\x75\163", "\x4d\117\x5f\117\124\x50\x5f\x44\x45\114\111\126\x45\x52\105\x44\137\123\125\103\x43\x45\x53\123\137\105\115\x41\111\114");
        $this->mo_saml_show_success_message();
        HI:
        t_:
        bI:
        US:
        if (!self::mo_check_option_admin_referer("\x6d\157\137\163\x61\x6d\154\137\166\141\x6c\x69\144\141\164\x65\137\157\x74\x70")) {
            goto MN;
        }
        if (mo_saml_is_extension_installed("\x63\x75\162\x6c")) {
            goto hH;
        }
        update_site_option("\155\x6f\137\x73\141\155\x6c\x5f\x6d\x65\163\163\141\x67\x65", "\105\x52\x52\117\x52\x3a\x20\x3c\x61\40\x68\162\x65\146\x3d\42\150\164\x74\x70\x3a\x2f\57\x70\x68\x70\56\156\145\164\x2f\155\x61\156\x75\141\x6c\57\145\x6e\57\x63\x75\x72\x6c\x2e\151\156\163\164\141\154\154\x61\164\151\157\x6e\56\160\150\x70\x22\x20\164\x61\x72\x67\145\164\75\x22\x5f\142\x6c\x61\x6e\x6b\42\76\120\110\x50\x20\x63\125\122\x4c\40\x65\x78\164\145\156\163\151\157\156\74\x2f\141\x3e\40\151\163\x20\156\x6f\164\40\x69\156\x73\x74\141\x6c\x6c\145\x64\x20\157\x72\40\x64\x69\x73\x61\x62\154\145\x64\x2e\x20\x56\x61\x6c\151\x64\x61\164\x65\x20\x4f\x54\x50\x20\146\141\151\154\145\144\56");
        $this->mo_saml_show_error_message();
        return;
        hH:
        $Pq = '';
        if (empty($_POST["\157\164\160\x5f\164\157\153\145\156"])) {
            goto Il;
        }
        $Pq = sanitize_text_field($_POST["\157\x74\160\137\x74\x6f\x6b\x65\156"]);
        goto oj;
        Il:
        update_site_option("\155\157\x5f\163\x61\x6d\x6c\x5f\155\x65\163\163\141\x67\x65", "\x50\x6c\145\x61\163\145\x20\x65\156\164\145\162\x20\141\40\x76\x61\x6c\165\x65\40\151\156\40\x6f\164\x70\x20\x66\151\x65\x6c\x64\56");
        $this->mo_saml_show_error_message();
        return;
        oj:
        $IV = new CustomerSaml();
        $T0 = json_decode($IV->validate_otp_token(get_site_option("\x6d\157\137\163\x61\x6d\154\x5f\164\162\141\x6e\163\x61\143\x74\151\157\156\x49\144"), $Pq, $this), true);
        if (strcasecmp($T0["\163\164\141\x74\x75\x73"], "\x53\125\103\103\105\123\x53") == 0) {
            goto iD;
        }
        update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\x5f\155\145\163\x73\141\x67\145", "\x49\x6e\x76\141\x6c\151\144\40\157\x6e\145\40\x74\151\155\145\x20\160\141\163\163\143\x6f\x64\145\x2e\40\120\x6c\145\x61\163\x65\40\x65\x6e\x74\x65\162\x20\x61\x20\x76\x61\154\151\144\40\157\164\x70\56");
        $this->mo_saml_show_error_message();
        goto qB;
        iD:
        $this->create_customer();
        qB:
        MN:
        if (self::mo_check_option_admin_referer("\x6d\157\137\x73\x61\x6d\x6c\137\166\145\x72\151\x66\171\x5f\x63\165\x73\x74\x6f\x6d\145\162")) {
            goto Gh;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\x73\x61\155\154\x5f\143\157\156\x74\141\143\x74\137\165\163\137\161\165\145\x72\171\137\157\x70\x74\x69\157\156")) {
            goto Ag;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x72\145\163\x65\156\144\x5f\x6f\164\x70\137\x65\155\x61\x69\154")) {
            goto dl;
        }
        if (self::mo_check_option_admin_referer("\155\157\137\x73\x61\x6d\154\x5f\162\145\163\145\x6e\144\137\157\x74\160\137\x70\150\157\x6e\145")) {
            goto JV;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\137\163\141\x6d\154\x5f\147\x6f\137\x62\141\x63\153")) {
            goto Mz;
        }
        if (self::mo_check_option_admin_referer("\155\157\137\163\x61\155\x6c\137\162\145\147\x69\163\164\145\162\137\x77\x69\164\x68\137\x70\x68\157\x6e\x65\137\x6f\160\x74\x69\x6f\x6e")) {
            goto by;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\137\x73\141\155\154\137\162\x65\x67\151\x73\164\145\x72\x65\x64\x5f\157\156\x6c\171\x5f\141\143\143\x65\163\x73\x5f\157\160\x74\x69\157\x6e")) {
            goto Zm;
        }
        if (self::mo_check_option_admin_referer("\155\157\x5f\163\141\x6d\x6c\x5f\x66\x6f\x72\x63\x65\137\x61\x75\x74\x68\145\x6e\164\151\x63\x61\x74\x69\157\x6e\x5f\157\x70\x74\x69\x6f\156")) {
            goto aP;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\137\x73\141\x6d\154\x5f\145\x6e\x61\x62\154\145\x5f\x6c\x6f\147\x69\156\137\x72\145\144\x69\x72\145\143\x74\137\157\160\164\151\157\156")) {
            goto FK;
        }
        if (self::mo_check_option_admin_referer("\155\157\x5f\163\141\x6d\x6c\137\162\145\144\x69\162\145\143\164\137\164\x6f\x5f\167\160\137\x6c\x6f\x67\x69\156\x5f\157\160\x74\x69\x6f\x6e")) {
            goto XI;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\x73\141\155\154\137\141\144\x64\137\x73\163\x6f\137\142\165\x74\164\157\156\137\167\x70\137\157\160\x74\x69\x6f\156")) {
            goto E0;
        }
        if (self::mo_check_option_admin_referer("\155\157\x5f\x73\141\155\154\137\x75\163\145\x5f\x62\x75\164\x74\x6f\x6e\137\x61\163\137\x73\x68\157\x72\164\x63\x6f\x64\145\x5f\157\160\x74\x69\x6f\156")) {
            goto BY;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\163\141\x6d\x6c\x5f\x75\x73\x65\137\142\165\164\x74\157\x6e\x5f\141\163\x5f\x77\151\144\147\145\164\137\x6f\x70\164\151\x6f\x6e")) {
            goto zW;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\x5f\163\x61\x6d\154\137\x63\x75\x73\x74\157\155\x5f\142\x75\x74\164\x6f\x6e\x5f\157\x70\164\x69\x6f\156")) {
            goto Ez;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\x5f\x73\141\155\x6c\x5f\x61\x6c\154\x6f\167\137\167\160\x5f\x73\151\147\x6e\x69\156\x5f\157\160\164\x69\157\156")) {
            goto Z1;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\x5f\163\x61\x6d\x6c\x5f\146\157\x72\x67\157\x74\x5f\160\141\163\x73\167\157\x72\x64\x5f\x66\157\162\x6d\x5f\157\x70\x74\151\x6f\156")) {
            goto Y7;
        }
        goto FE;
        Gh:
        if (mo_saml_is_extension_installed("\x63\165\x72\154")) {
            goto i_;
        }
        update_site_option("\x6d\x6f\137\163\141\155\x6c\x5f\155\x65\x73\x73\x61\x67\145", "\105\122\122\x4f\x52\72\40\x3c\x61\x20\x68\x72\x65\146\x3d\42\150\x74\x74\160\x3a\57\x2f\x70\150\x70\56\156\145\x74\57\x6d\141\156\165\x61\x6c\x2f\x65\156\x2f\x63\x75\162\x6c\56\x69\156\x73\x74\141\x6c\154\141\x74\151\x6f\x6e\x2e\160\150\x70\42\40\x74\x61\162\x67\145\x74\x3d\42\137\142\154\x61\x6e\153\42\76\120\x48\120\40\143\x55\x52\114\40\145\170\x74\145\156\163\151\x6f\x6e\x3c\x2f\141\76\x20\x69\163\40\x6e\157\164\x20\x69\x6e\163\164\x61\154\154\x65\144\40\x6f\162\x20\x64\x69\163\141\142\x6c\145\144\56\40\114\157\x67\x69\156\x20\146\141\x69\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        i_:
        $uo = '';
        $C1 = '';
        if (empty($_POST["\x65\155\x61\x69\x6c"]) || empty($_POST["\160\141\x73\163\167\x6f\162\144"])) {
            goto GY;
        }
        if ($this->checkPasswordPattern(strip_tags($_POST["\160\x61\163\x73\167\x6f\x72\144"]))) {
            goto nD;
        }
        $uo = sanitize_email($_POST["\x65\x6d\x61\151\x6c"]);
        $C1 = stripslashes(strip_tags($_POST["\160\x61\x73\x73\x77\x6f\x72\144"]));
        goto a8;
        GY:
        update_site_option("\155\x6f\137\x73\x61\x6d\154\137\155\145\163\x73\141\x67\x65", "\x41\154\x6c\x20\x74\150\145\40\146\x69\x65\x6c\144\x73\40\x61\162\x65\40\x72\x65\x71\165\x69\162\145\144\x2e\40\120\x6c\145\141\x73\x65\40\145\x6e\164\145\162\x20\166\141\x6c\151\144\x20\x65\x6e\164\x72\x69\x65\x73\56");
        $this->mo_saml_show_error_message();
        return;
        goto a8;
        nD:
        update_site_option("\x6d\157\137\163\141\x6d\154\137\155\x65\x73\163\x61\147\x65", "\x4d\151\x6e\151\x6d\x75\x6d\x20\x36\40\143\x68\x61\162\x61\x63\x74\145\x72\x73\40\163\x68\x6f\165\154\144\40\x62\x65\40\x70\162\145\x73\145\156\x74\x2e\x20\x4d\x61\x78\x69\x6d\165\155\x20\61\x35\x20\x63\x68\x61\162\141\x63\164\x65\x72\x73\40\163\150\157\x75\x6c\144\40\142\x65\40\x70\162\x65\163\145\156\x74\x2e\40\117\x6e\154\171\40\146\x6f\x6c\154\x6f\x77\151\x6e\x67\40\x73\x79\155\142\157\154\x73\40\x28\41\100\x23\56\44\45\x5e\46\x2a\55\x5f\51\40\163\x68\x6f\165\154\144\x20\142\145\40\160\162\x65\x73\x65\156\164\56");
        $this->mo_saml_show_error_message();
        return;
        a8:
        update_site_option("\x6d\157\x5f\x73\141\155\154\x5f\141\x64\155\x69\156\x5f\145\155\141\x69\x6c", $uo);
        update_site_option("\x6d\x6f\x5f\x73\141\155\154\137\x61\x64\x6d\151\156\137\160\x61\x73\163\167\x6f\162\144", $C1);
        $IV = new Customersaml();
        $T0 = $IV->get_customer_key($this);
        if ($T0) {
            goto wd;
        }
        return;
        wd:
        $AQ = json_decode($T0, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto QU;
        }
        update_site_option("\x6d\x6f\137\163\x61\x6d\x6c\137\x6d\145\x73\163\x61\147\x65", "\111\156\x76\x61\154\151\x64\40\x75\x73\x65\162\156\141\155\x65\x20\x6f\162\40\x70\141\163\x73\x77\157\162\144\x2e\x20\x50\x6c\x65\141\163\145\40\x74\x72\171\40\x61\147\x61\151\x6e\56");
        $this->mo_saml_show_error_message();
        goto Iz;
        QU:
        update_site_option("\155\x6f\137\x73\141\155\x6c\137\141\144\x6d\x69\156\137\x63\x75\x73\164\157\155\x65\x72\x5f\x6b\x65\171", $AQ["\x69\144"]);
        update_site_option("\x6d\x6f\137\163\141\155\154\137\x61\x64\155\x69\156\137\x61\160\151\x5f\153\145\171", $AQ["\141\x70\x69\113\145\171"]);
        update_site_option("\155\x6f\137\x73\141\155\x6c\137\x63\165\163\x74\157\x6d\145\162\137\x74\x6f\153\x65\x6e", $AQ["\164\x6f\153\x65\156"]);
        update_site_option("\155\x6f\x5f\x73\x61\x6d\154\137\141\x64\x6d\x69\x6e\x5f\160\141\163\x73\x77\157\162\144", '');
        update_site_option("\155\157\x5f\x73\141\155\154\137\x6d\x65\x73\x73\141\147\x65", "\x43\165\163\x74\x6f\155\x65\162\x20\x72\x65\x74\162\151\x65\x76\145\x64\x20\x73\x75\143\x63\x65\x73\163\x66\x75\x6c\x6c\x79");
        update_site_option("\155\157\137\163\x61\155\154\137\x72\x65\x67\x69\163\x74\162\x61\164\151\x6f\156\137\163\164\x61\x74\165\x73", "\105\x78\151\x73\x74\x69\156\147\x20\x55\x73\x65\162");
        delete_site_option("\x6d\157\137\163\141\155\x6c\137\166\x65\162\151\x66\171\137\143\165\x73\x74\157\155\x65\x72");
        if (get_site_option("\x73\x6d\154\137\154\153")) {
            goto ef;
        }
        $this->mo_saml_show_success_message();
        goto ge;
        ef:
        $ns = get_site_option("\155\157\137\163\141\155\x6c\x5f\143\x75\163\164\x6f\155\145\x72\x5f\164\157\x6b\145\x6e");
        $UB = AESEncryption::decrypt_data(get_site_option("\x73\155\x6c\x5f\154\153"), $ns);
        update_site_option(Mo_Saml_Options::LAST_SYNCED_TIME, time());
        $qp = add_query_arg(array("\x74\141\142" => "\154\151\143\x65\x6e\x73\151\156\x67"), $_SERVER["\x52\x45\121\x55\x45\123\124\137\x55\x52\x49"]);
        $sC = $IV->mo_saml_verify_license($UB, $this);
        if ($sC) {
            goto sD;
        }
        return;
        sD:
        $T0 = json_decode($sC, true);
        if (is_array($T0) and strcasecmp($T0["\163\164\x61\164\x75\163"], "\x53\x55\x43\x43\105\x53\123") == 0) {
            goto Td;
        }
        update_site_option("\x6d\157\x5f\x73\141\155\x6c\x5f\x6d\x65\x73\x73\141\147\x65", "\x4c\151\143\145\156\163\x65\x20\153\145\x79\40\x66\x6f\162\x20\164\x68\151\163\40\x69\156\x73\x74\x61\x6e\143\145\x20\x69\x73\40\x69\156\x63\x6f\162\162\145\143\x74\x2e\x20\x4d\141\153\x65\x20\163\x75\x72\x65\40\171\x6f\165\40\150\141\x76\x65\x20\156\157\x74\x20\x74\141\155\x70\x65\162\x65\144\x20\167\x69\164\150\x20\151\164\40\141\x74\x20\x61\154\x6c\56\x20\120\154\145\x61\x73\x65\40\x65\x6e\164\x65\x72\x20\x61\x20\166\x61\154\x69\144\40\x6c\151\x63\x65\x6e\163\145\40\x6b\145\171\x2e");
        delete_site_option("\163\155\x6c\137\154\153");
        $this->mo_saml_show_error_message();
        goto ZB;
        Td:
        $this->mo_saml_show_success_message();
        ZB:
        ge:
        Iz:
        update_site_option("\155\157\x5f\x73\x61\155\154\x5f\141\144\155\151\156\x5f\x70\x61\163\x73\x77\157\x72\144", '');
        goto FE;
        Ag:
        if (mo_saml_is_extension_installed("\x63\165\162\154")) {
            goto Jf;
        }
        update_site_option("\155\157\x5f\163\141\x6d\x6c\137\x6d\x65\163\163\x61\147\x65", "\105\x52\122\x4f\122\72\40\74\141\40\x68\162\x65\x66\x3d\42\x68\x74\164\160\x3a\57\x2f\160\150\x70\56\x6e\145\x74\57\x6d\141\x6e\x75\141\x6c\57\x65\x6e\57\143\x75\162\x6c\x2e\151\156\x73\164\x61\154\154\141\x74\x69\157\x6e\x2e\x70\x68\160\x22\x20\164\x61\x72\x67\145\164\x3d\42\x5f\142\154\x61\x6e\153\x22\76\120\110\120\x20\x63\125\122\x4c\40\x65\x78\x74\x65\156\x73\x69\157\x6e\x3c\57\x61\x3e\x20\151\x73\40\156\x6f\164\40\151\x6e\x73\164\141\154\x6c\145\x64\40\x6f\x72\x20\144\x69\163\x61\142\154\x65\144\56\40\121\x75\145\162\x79\40\x73\x75\x62\x6d\x69\164\x20\146\x61\151\154\145\x64\56");
        $this->mo_saml_show_error_message();
        return;
        Jf:
        $uo = htmlspecialchars($_POST["\x6d\x6f\137\163\141\x6d\154\x5f\143\x6f\x6e\164\141\143\x74\x5f\165\x73\x5f\x65\155\141\151\x6c"]);
        $yG = htmlspecialchars($_POST["\155\x6f\137\163\x61\155\154\x5f\x63\157\156\x74\x61\x63\164\x5f\x75\x73\137\160\x68\157\156\x65"]);
        $oi = htmlspecialchars($_POST["\155\157\137\x73\x61\155\154\x5f\143\157\x6e\x74\141\143\x74\x5f\165\163\x5f\x71\165\145\x72\x79"]);
        if (array_key_exists("\163\145\156\144\x5f\x70\x6c\165\147\151\156\137\x63\157\x6e\x66\x69\x67", $_POST) === true) {
            goto yX;
        }
        update_site_option("\163\145\156\x64\137\160\154\165\x67\151\x6e\x5f\143\x6f\x6e\x66\151\147", "\x6f\146\146");
        goto wH;
        yX:
        $uy = miniorange_import_export(true, true);
        $oi .= $uy;
        delete_site_option("\x73\x65\156\x64\x5f\x70\x6c\x75\147\x69\x6e\x5f\143\157\156\146\x69\x67");
        wH:
        $IV = new CustomerSaml();
        if (empty($uo) || empty($oi)) {
            goto gg;
        }
        $Ep = $IV->submit_contact_us($uo, $yG, $oi, $this);
        if ($Ep == false) {
            goto J3;
        }
        update_site_option("\155\157\137\x73\x61\155\154\137\155\145\163\163\x61\x67\145", "\x54\150\141\x6e\x6b\x73\40\x66\x6f\162\40\x67\x65\164\x74\151\156\x67\40\x69\156\40\x74\157\165\143\x68\41\40\127\x65\x20\163\150\141\154\x6c\40\x67\x65\x74\x20\142\x61\143\153\x20\164\x6f\40\171\x6f\x75\x20\x73\x68\157\x72\164\154\x79\56");
        $this->mo_saml_show_success_message();
        goto kX;
        J3:
        update_site_option("\155\157\137\163\141\x6d\154\x5f\x6d\145\163\163\x61\147\145", "\131\157\165\x72\x20\161\x75\x65\x72\171\40\x63\157\165\154\x64\x20\156\157\164\x20\142\x65\x20\163\x75\x62\155\x69\164\x74\145\x64\x2e\x20\120\154\x65\141\163\145\x20\x74\162\171\40\x61\147\x61\x69\156\56");
        $this->mo_saml_show_error_message();
        kX:
        goto uK;
        gg:
        update_site_option("\x6d\157\137\x73\x61\155\154\137\155\x65\163\x73\x61\147\x65", "\120\154\145\x61\x73\145\x20\x66\151\154\x6c\x20\x75\x70\x20\105\x6d\141\151\154\40\141\x6e\x64\x20\x51\165\x65\162\x79\40\x66\x69\145\x6c\144\x73\x20\x74\157\x20\x73\x75\142\x6d\x69\x74\40\x79\157\165\162\40\161\165\145\x72\171\56");
        $this->mo_saml_show_error_message();
        uK:
        goto FE;
        dl:
        if (mo_saml_is_extension_installed("\x63\x75\x72\x6c")) {
            goto Yj;
        }
        update_site_option("\155\x6f\137\163\x61\x6d\154\x5f\155\145\x73\163\141\147\x65", "\x45\122\122\x4f\122\x3a\40\x3c\141\x20\150\162\145\x66\x3d\42\150\164\x74\x70\72\x2f\x2f\x70\x68\x70\56\x6e\145\164\x2f\155\x61\x6e\x75\x61\x6c\57\x65\x6e\x2f\x63\165\x72\154\56\x69\x6e\x73\164\141\154\x6c\141\164\x69\157\x6e\x2e\x70\x68\160\42\40\x74\141\162\x67\145\x74\x3d\x22\x5f\x62\154\x61\x6e\x6b\x22\x3e\120\x48\120\x20\x63\x55\x52\114\x20\x65\x78\164\145\156\163\151\157\x6e\x3c\x2f\x61\76\x20\x69\163\x20\x6e\x6f\x74\40\151\x6e\x73\164\141\x6c\x6c\145\144\x20\157\162\x20\144\x69\163\x61\142\x6c\145\x64\x2e\40\x52\145\x73\x65\x6e\x64\40\x4f\x54\x50\x20\x66\141\x69\x6c\145\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        Yj:
        $uo = get_site_option("\x6d\x6f\137\x73\x61\155\x6c\x5f\141\x64\x6d\151\156\137\x65\x6d\x61\x69\x6c");
        $IV = new CustomerSaml();
        $T0 = json_decode($IV->send_otp_token($uo, '', $this), true);
        if (strcasecmp($T0["\163\x74\x61\164\x75\x73"], "\123\125\x43\x43\x45\123\x53") == 0) {
            goto a2;
        }
        update_site_option("\155\157\x5f\163\141\155\x6c\137\x6d\x65\x73\163\x61\x67\145", "\124\x68\x65\x72\x65\40\x77\x61\x73\x20\x61\156\40\145\x72\162\157\x72\x20\151\x6e\40\x73\145\x6e\144\151\156\x67\x20\145\155\141\x69\154\x2e\x20\x50\154\145\141\163\x65\x20\x63\154\x69\143\153\x20\157\156\40\x52\145\x73\x65\156\x64\40\117\124\120\40\x74\157\x20\164\x72\x79\x20\x61\147\141\x69\x6e\x2e");
        update_site_option("\x6d\x6f\x5f\x73\x61\155\154\137\x72\x65\147\151\x73\x74\162\x61\164\x69\x6f\x6e\137\x73\x74\x61\164\165\x73", "\115\117\x5f\117\124\x50\x5f\104\x45\x4c\x49\x56\x45\x52\105\104\x5f\x46\101\x49\x4c\125\122\x45\137\x45\115\x41\111\x4c");
        $this->mo_saml_show_error_message();
        goto du;
        a2:
        update_site_option("\155\x6f\137\163\141\155\154\137\x6d\145\163\163\141\x67\x65", "\40\101\40\157\156\145\x20\x74\x69\x6d\x65\x20\x70\x61\163\163\143\x6f\x64\x65\x20\151\163\40\x73\x65\156\x74\x20\164\x6f\40" . get_site_option("\x6d\157\x5f\163\141\155\154\137\x61\144\155\151\156\x5f\145\155\141\151\x6c") . "\40\141\x67\141\x69\x6e\x2e\40\120\x6c\145\141\163\145\x20\x63\x68\145\143\153\40\x69\x66\x20\171\157\x75\40\147\x6f\x74\40\x74\150\x65\x20\157\x74\x70\x20\x61\156\144\40\145\156\x74\x65\x72\x20\x69\x74\40\x68\145\162\145\x2e");
        update_site_option("\155\157\x5f\163\141\155\x6c\137\164\162\141\x6e\163\141\x63\164\151\x6f\156\x49\x64", $T0["\x74\170\111\144"]);
        update_site_option("\155\x6f\137\163\141\155\x6c\137\x72\x65\x67\151\163\x74\162\141\164\151\x6f\x6e\x5f\x73\x74\x61\164\x75\163", "\115\x4f\x5f\117\x54\x50\x5f\x44\105\114\x49\126\105\x52\x45\104\x5f\x53\125\x43\103\105\123\x53\137\x45\115\101\111\x4c");
        $this->mo_saml_show_success_message();
        du:
        goto FE;
        JV:
        if (mo_saml_is_extension_installed("\143\165\x72\154")) {
            goto y1;
        }
        update_site_option("\155\157\137\x73\141\155\x6c\137\155\x65\x73\163\141\147\145", "\105\x52\x52\117\x52\x3a\40\74\141\x20\150\x72\x65\146\x3d\x22\150\164\164\160\x3a\x2f\x2f\x70\150\x70\56\x6e\145\x74\57\x6d\x61\x6e\165\141\x6c\57\145\x6e\x2f\x63\165\x72\154\56\x69\156\163\164\x61\154\154\x61\164\x69\x6f\x6e\x2e\160\150\160\42\40\x74\141\x72\147\x65\164\75\42\x5f\142\x6c\141\156\x6b\42\76\120\x48\120\40\x63\125\122\x4c\40\x65\x78\164\x65\156\163\x69\x6f\x6e\x3c\x2f\x61\x3e\40\x69\163\x20\x6e\157\x74\x20\x69\156\x73\164\141\x6c\x6c\145\x64\40\157\162\x20\144\151\x73\x61\142\x6c\x65\x64\x2e\x20\122\x65\163\145\x6e\144\40\x4f\x54\x50\40\x66\141\151\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        y1:
        $yG = get_site_option("\155\x6f\x5f\163\x61\155\x6c\x5f\x61\x64\x6d\151\156\137\x70\x68\x6f\156\145");
        $IV = new CustomerSaml();
        $T0 = json_decode($IV->send_otp_token('', $yG, $this, FALSE, TRUE), true);
        if (strcasecmp($T0["\163\x74\141\x74\x75\x73"], "\x53\125\x43\103\105\x53\123") == 0) {
            goto A7;
        }
        update_site_option("\x6d\157\137\x73\141\155\x6c\x5f\155\145\x73\x73\141\x67\x65", "\124\x68\145\162\x65\x20\x77\x61\163\40\141\x6e\x20\145\162\162\157\162\x20\151\156\x20\x73\145\156\144\151\x6e\x67\40\145\155\141\151\154\56\x20\x50\154\x65\x61\163\x65\x20\x63\154\151\x63\x6b\x20\157\156\40\122\x65\x73\x65\x6e\144\x20\x4f\124\120\x20\x74\x6f\40\164\162\x79\x20\x61\147\141\151\156\56");
        update_site_option("\155\157\137\163\x61\155\x6c\x5f\162\145\x67\x69\163\164\x72\141\x74\151\157\x6e\x5f\x73\164\x61\164\165\x73", "\x4d\117\x5f\117\124\x50\137\x44\x45\114\x49\126\x45\122\x45\x44\x5f\106\x41\x49\114\x55\x52\105\x5f\120\x48\x4f\x4e\105");
        $this->mo_saml_show_error_message();
        goto Zr;
        A7:
        update_site_option("\155\157\137\x73\141\155\154\137\x6d\145\163\163\141\x67\x65", "\x20\x41\40\x6f\156\x65\x20\164\x69\x6d\145\40\160\141\163\x73\x63\x6f\x64\x65\40\x69\x73\x20\x73\145\156\164\40\x74\x6f\x20" . $yG . "\40\141\147\141\x69\x6e\x2e\x20\120\x6c\x65\x61\x73\x65\40\143\x68\145\143\153\x20\151\146\40\x79\157\165\40\147\x6f\x74\x20\164\150\x65\40\157\x74\160\40\141\156\x64\x20\145\156\164\145\x72\x20\151\164\40\x68\145\162\145\x2e");
        update_site_option("\155\157\x5f\x73\141\155\154\x5f\164\x72\x61\156\163\141\x63\164\151\x6f\156\111\144", $T0["\164\170\111\x64"]);
        update_site_option("\x6d\157\x5f\x73\141\x6d\154\x5f\162\145\147\x69\x73\164\162\141\164\151\x6f\x6e\137\x73\164\x61\x74\x75\x73", "\115\x4f\x5f\117\x54\120\x5f\x44\x45\114\x49\x56\105\x52\105\104\x5f\123\125\x43\103\x45\x53\123\137\120\x48\x4f\x4e\105");
        $this->mo_saml_show_success_message();
        Zr:
        goto FE;
        Mz:
        update_site_option("\155\x6f\x5f\163\x61\x6d\x6c\137\x72\145\x67\151\163\x74\162\141\x74\x69\157\x6e\137\163\x74\141\x74\x75\163", '');
        update_site_option("\x6d\157\137\163\141\x6d\x6c\x5f\x76\145\x72\x69\x66\171\137\x63\x75\x73\x74\x6f\155\x65\162", '');
        delete_site_option("\155\x6f\137\163\141\155\154\x5f\141\144\155\151\156\x5f\x63\x75\x73\164\157\155\145\x72\x5f\x6b\x65\171");
        delete_site_option("\x6d\157\137\163\x61\155\154\x5f\141\144\x6d\151\x6e\x5f\x61\x70\x69\x5f\153\145\x79");
        delete_site_option("\x6d\157\x5f\x73\x61\x6d\154\137\143\x75\163\164\x6f\x6d\x65\x72\137\x74\x6f\x6b\x65\156");
        delete_site_option("\155\x6f\x5f\x73\x61\x6d\154\137\156\145\x77\x5f\x72\145\147\x69\x73\x74\162\141\x74\151\x6f\x6e");
        delete_site_option("\x6d\157\x5f\163\141\155\x6c\x5f\x61\144\155\151\x6e\x5f\x65\155\141\x69\154");
        delete_site_option("\155\x6f\x5f\x73\141\155\154\x5f\141\x64\155\x69\x6e\x5f\160\x68\x6f\x6e\x65");
        delete_site_option("\x73\x6d\x6c\137\x6c\x6b");
        delete_site_option("\164\x5f\163\151\164\145\x5f\x73\164\x61\164\x75\x73");
        delete_site_option("\163\151\x74\x65\x5f\143\153\137\154");
        delete_site_option("\x6e\x6f\137\x73\x62\x73");
        delete_site_option("\x75\x73\x65\162\x5f\x61\154\145\162\x74\137\145\x6d\141\x69\x6c\137\163\x65\156\164");
        delete_site_option("\x6c\x69\143\145\156\163\x65\x5f\x61\154\145\162\164\137\145\155\x61\151\154\137\163\x65\x6e\x74");
        delete_site_option("\155\x6f\x5f\163\x61\155\154\x5f\x61\x6c\145\x72\164\137\x73\145\156\x74\137\x66\157\162\x5f\x6f\x6e\145");
        delete_site_option("\x6d\157\137\163\141\155\154\x5f\x61\154\145\162\164\x5f\163\145\x6e\164\137\x66\x6f\162\137\164\167\157");
        delete_site_option("\155\157\137\x73\x61\155\x6c\137\x75\x73\162\137\x6c\x6d\164");
        goto FE;
        by:
        if (mo_saml_is_extension_installed("\143\x75\162\x6c")) {
            goto R3;
        }
        update_site_option("\x6d\157\x5f\163\x61\x6d\154\x5f\x6d\145\x73\163\141\147\x65", "\105\122\x52\117\122\x3a\40\74\141\x20\x68\x72\145\x66\x3d\x22\150\x74\x74\160\72\x2f\57\x70\150\160\x2e\x6e\x65\164\x2f\x6d\141\x6e\x75\141\x6c\57\x65\156\57\x63\x75\162\x6c\x2e\x69\x6e\163\164\141\154\154\x61\x74\x69\x6f\156\x2e\160\x68\160\42\40\x74\141\x72\x67\x65\x74\x3d\42\x5f\142\154\141\x6e\x6b\x22\76\x50\110\x50\x20\x63\x55\x52\x4c\x20\145\x78\164\x65\156\163\x69\157\156\x3c\x2f\x61\76\40\x69\163\x20\156\x6f\x74\x20\151\x6e\163\164\141\x6c\154\x65\x64\x20\x6f\162\40\144\151\163\141\x62\x6c\145\x64\56\x20\x52\x65\163\145\x6e\x64\40\x4f\124\x50\40\146\141\x69\x6c\145\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        R3:
        $yG = sanitize_text_field($_POST["\x70\x68\x6f\156\x65"]);
        $yG = str_replace("\x20", '', $yG);
        $yG = str_replace("\x2d", '', $yG);
        update_site_option("\x6d\x6f\x5f\163\x61\155\154\x5f\141\144\x6d\x69\156\137\160\150\157\x6e\x65", $yG);
        $IV = new CustomerSaml();
        $T0 = json_decode($IV->send_otp_token('', $yG, $this, FALSE, TRUE), true);
        if (strcasecmp($T0["\163\x74\141\164\165\163"], "\123\x55\x43\103\x45\123\123") == 0) {
            goto J5;
        }
        update_site_option("\x6d\157\137\163\x61\x6d\154\x5f\155\x65\163\x73\x61\x67\x65", "\124\150\x65\x72\145\x20\x77\141\x73\x20\x61\156\x20\x65\x72\x72\157\162\40\x69\156\40\163\145\x6e\144\151\x6e\x67\x20\123\115\x53\56\40\x50\x6c\145\141\163\145\40\x63\154\x69\x63\153\x20\x6f\x6e\x20\122\x65\163\145\156\x64\40\x4f\124\120\x20\x74\157\x20\164\162\x79\40\x61\147\141\151\156\x2e");
        update_site_option("\x6d\157\137\x73\141\x6d\x6c\137\x72\145\147\x69\163\x74\x72\x61\164\151\157\156\x5f\163\164\141\164\x75\x73", "\115\117\137\117\x54\x50\137\x44\105\114\111\126\105\122\x45\x44\x5f\106\101\111\114\x55\x52\x45\137\x50\110\x4f\x4e\105");
        $this->mo_saml_show_error_message();
        goto J9;
        J5:
        update_site_option("\x6d\x6f\137\x73\x61\155\154\x5f\x6d\145\x73\x73\x61\x67\145", "\x20\101\x20\x6f\156\x65\40\164\x69\155\145\x20\160\x61\163\163\143\x6f\144\x65\x20\x69\163\40\x73\145\x6e\164\x20\164\157\x20" . get_site_option("\x6d\157\x5f\163\x61\155\154\x5f\141\144\x6d\151\x6e\137\160\x68\x6f\156\145") . "\56\40\120\154\x65\141\x73\145\40\145\x6e\x74\x65\162\40\164\x68\x65\40\157\164\160\x20\150\x65\x72\145\40\164\x6f\40\x76\x65\162\151\146\171\x20\171\x6f\165\x72\x20\x65\x6d\x61\x69\x6c\x2e");
        update_site_option("\x6d\157\137\x73\141\155\x6c\137\164\x72\x61\156\x73\x61\143\164\151\157\x6e\x49\144", $T0["\x74\x78\x49\144"]);
        update_site_option("\155\x6f\x5f\163\141\155\x6c\137\x72\145\147\151\163\x74\162\141\164\x69\157\x6e\137\163\x74\x61\x74\165\x73", "\x4d\x4f\137\117\x54\120\137\104\105\114\x49\x56\x45\x52\105\104\137\x53\x55\x43\x43\x45\123\123\137\x50\110\x4f\x4e\105");
        $this->mo_saml_show_success_message();
        J9:
        goto FE;
        Zm:
        if (mo_saml_is_sp_configured()) {
            goto VD;
        }
        update_site_option("\x6d\x6f\137\x73\141\155\154\x5f\155\145\x73\163\141\x67\145", "\120\154\145\x61\x73\145\40\x63\157\155\160\x6c\145\x74\x65\40\74\141\40\150\162\145\x66\x3d\x22" . add_query_arg(array("\x74\x61\x62" => "\163\141\x76\x65"), $_SERVER["\122\x45\x51\x55\105\x53\124\137\x55\x52\x49"]) . "\42\x20\x2f\x3e\x53\x65\162\166\151\143\x65\x20\x50\x72\x6f\x76\x69\144\145\x72\x3c\x2f\141\x3e\x20\143\x6f\x6e\x66\x69\x67\165\x72\x61\x74\x69\x6f\156\x20\146\x69\x72\163\x74\56");
        $this->mo_saml_show_error_message();
        goto UM;
        VD:
        if (array_key_exists("\155\x6f\x5f\x73\141\x6d\154\137\162\x65\147\151\x73\x74\145\162\x65\144\x5f\x6f\156\x6c\171\137\x61\143\143\145\x73\x73", $_POST)) {
            goto iG;
        }
        $Uh = "\x66\141\154\163\x65";
        goto oG;
        iG:
        $Uh = htmlspecialchars($_POST["\x6d\x6f\x5f\x73\141\155\x6c\x5f\x72\x65\147\151\x73\x74\x65\x72\x65\144\x5f\157\x6e\x6c\171\137\x61\143\x63\x65\163\x73"]);
        oG:
        $rw = maybe_unserialize(get_site_option("\x73\141\155\154\137\x73\x73\x6f\137\163\145\164\164\151\156\x67\x73"));
        if (!empty($rw)) {
            goto W0;
        }
        $rw = array();
        W0:
        $GW = "\x44\105\106\x41\x55\x4c\124";
        if (empty($_POST["\163\x69\164\x65"])) {
            goto tZ;
        }
        $GW = htmlspecialchars($_POST["\163\x69\164\145"]);
        tZ:
        if (!(empty($rw[$GW]) && !empty($rw["\104\105\106\101\125\114\x54"]))) {
            goto qP;
        }
        $rw[$GW] = $rw["\104\x45\x46\101\125\114\x54"];
        qP:
        if ($Uh == "\164\x72\x75\145") {
            goto oQ;
        }
        $rw[$GW]["\x6d\157\137\163\x61\x6d\x6c\137\x72\145\x67\151\x73\164\145\162\145\144\x5f\x6f\x6e\x6c\x79\x5f\x61\143\x63\145\163\x73"] = '';
        goto QZ;
        oQ:
        $rw[$GW]["\155\157\x5f\163\x61\x6d\x6c\137\x72\x65\x67\x69\x73\164\x65\x72\x65\x64\137\157\156\x6c\x79\x5f\x61\x63\x63\x65\163\x73"] = "\164\162\x75\145";
        QZ:
        update_site_option("\x73\141\x6d\154\x5f\163\x73\x6f\137\x73\145\164\164\x69\156\147\163", $rw);
        update_site_option("\155\x6f\x5f\163\x61\155\154\x5f\155\x65\x73\163\x61\x67\145", "\123\151\147\x6e\x20\151\156\x20\157\160\164\151\x6f\156\163\x20\x75\x70\144\x61\164\145\144\56");
        $this->mo_saml_show_success_message();
        UM:
        goto FE;
        aP:
        if (mo_saml_is_sp_configured()) {
            goto yM;
        }
        update_site_option("\x6d\157\137\163\x61\x6d\154\137\x6d\145\x73\163\141\x67\145", "\120\154\145\141\163\145\x20\x63\157\x6d\160\x6c\145\164\x65\x20\74\x61\x20\150\162\x65\146\75\x22" . add_query_arg(array("\164\141\x62" => "\163\x61\x76\145"), $_SERVER["\x52\105\x51\125\x45\123\124\x5f\125\x52\111"]) . "\x22\x20\57\76\x53\145\x72\166\151\x63\x65\40\x50\x72\x6f\166\151\144\145\162\74\57\141\76\40\143\x6f\156\146\151\x67\165\x72\x61\164\151\x6f\156\40\146\x69\162\x73\164\56");
        $this->mo_saml_show_error_message();
        goto Ie;
        yM:
        $rw = maybe_unserialize(get_site_option("\163\141\x6d\154\137\163\x73\x6f\137\x73\145\x74\164\x69\x6e\147\x73"));
        if (!empty($rw)) {
            goto iJ;
        }
        $rw = array();
        iJ:
        $GW = "\x44\x45\x46\x41\125\114\x54";
        if (empty($_POST["\x73\x69\x74\145"])) {
            goto Ri;
        }
        $GW = htmlspecialchars($_POST["\163\151\164\x65"]);
        Ri:
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\x46\x41\125\x4c\124"]))) {
            goto LE;
        }
        $rw[$GW] = $rw["\104\105\106\101\125\114\x54"];
        LE:
        if (array_key_exists("\x6d\157\137\163\x61\x6d\x6c\137\x66\x6f\x72\143\x65\137\x61\165\x74\150\x65\x6e\164\x69\x63\141\x74\151\157\156", $_POST)) {
            goto mq;
        }
        $Uh = "\146\141\154\163\x65";
        goto Oj;
        mq:
        $Uh = htmlspecialchars($_POST["\155\x6f\x5f\163\141\155\154\137\146\157\162\143\145\137\141\165\164\150\145\156\x74\x69\x63\141\x74\151\x6f\x6e"]);
        Oj:
        if ($Uh == "\164\x72\x75\x65") {
            goto HO;
        }
        $rw[$GW]["\155\x6f\137\163\x61\x6d\154\137\x66\157\x72\x63\x65\137\x61\x75\x74\150\145\x6e\x74\x69\x63\x61\x74\151\157\156"] = '';
        goto lL;
        HO:
        $rw[$GW]["\155\157\137\163\141\x6d\154\137\146\157\162\143\145\x5f\141\165\x74\150\x65\x6e\164\151\143\141\164\x69\157\156"] = "\x74\162\165\145";
        lL:
        update_site_option("\163\141\x6d\x6c\x5f\163\x73\157\137\163\x65\x74\164\x69\156\147\163", $rw);
        update_site_option("\155\x6f\x5f\163\141\155\154\137\155\145\x73\163\x61\x67\x65", "\x53\151\147\156\40\x69\x6e\x20\157\x70\164\151\157\156\x73\40\165\x70\x64\141\x74\145\144\x2e");
        $this->mo_saml_show_success_message();
        Ie:
        goto FE;
        FK:
        if (mo_saml_is_sp_configured()) {
            goto lM;
        }
        update_site_option("\155\157\x5f\163\141\155\154\x5f\x6d\x65\163\x73\141\147\x65", "\120\154\x65\141\163\x65\x20\143\x6f\155\x70\154\x65\x74\x65\x20\74\x61\x20\150\x72\145\x66\75\x22" . add_query_arg(array("\164\141\x62" => "\x73\x61\166\x65"), $_SERVER["\x52\x45\121\125\105\x53\124\x5f\x55\122\111"]) . "\x22\40\57\76\123\145\162\x76\x69\143\x65\x20\120\162\157\x76\151\144\145\162\x3c\57\x61\x3e\40\143\x6f\156\146\x69\x67\165\162\x61\164\x69\x6f\156\x20\146\x69\162\163\164\x2e");
        $this->mo_saml_show_error_message();
        goto Tx;
        lM:
        $rw = maybe_unserialize(get_site_option("\163\x61\x6d\x6c\x5f\163\163\157\x5f\163\x65\164\x74\x69\156\147\163"));
        if (!empty($rw)) {
            goto oM;
        }
        $rw = array();
        oM:
        $GW = "\x44\105\106\x41\125\x4c\124";
        if (empty($_POST["\x73\x69\x74\x65"])) {
            goto wh;
        }
        $GW = htmlspecialchars($_POST["\163\151\x74\145"]);
        wh:
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\x46\x41\x55\x4c\x54"]))) {
            goto lN;
        }
        $rw[$GW] = $rw["\x44\x45\106\x41\125\x4c\124"];
        lN:
        if (array_key_exists("\155\157\x5f\163\141\155\154\x5f\x65\156\x61\x62\154\145\x5f\x6c\x6f\147\x69\156\x5f\162\x65\144\x69\x72\x65\x63\164", $_POST)) {
            goto cW;
        }
        $Uh = "\x66\141\x6c\x73\x65";
        goto vX;
        cW:
        $Uh = htmlspecialchars($_POST["\x6d\157\x5f\163\x61\155\x6c\137\x65\156\141\142\154\145\137\x6c\x6f\x67\x69\156\x5f\162\x65\144\151\162\x65\x63\x74"]);
        vX:
        if ($Uh == "\164\x72\165\x65") {
            goto uO;
        }
        $rw[$GW]["\x6d\157\x5f\x73\x61\x6d\x6c\137\145\x6e\141\x62\x6c\x65\137\154\x6f\x67\x69\156\137\162\x65\x64\x69\x72\145\x63\x74"] = '';
        $rw[$GW]["\x6d\157\137\163\x61\155\154\x5f\x61\154\x6c\157\x77\x5f\x77\x70\137\163\151\147\156\x69\x6e"] = '';
        goto WJ;
        uO:
        $rw[$GW]["\155\157\x5f\x73\141\x6d\x6c\137\x65\x6e\x61\142\x6c\145\x5f\154\x6f\x67\x69\156\x5f\162\x65\x64\151\x72\x65\143\164"] = "\x74\x72\x75\145";
        $rw[$GW]["\155\x6f\137\163\141\x6d\x6c\x5f\141\x6c\154\x6f\x77\137\x77\x70\137\163\151\x67\x6e\x69\x6e"] = "\x74\162\x75\x65";
        WJ:
        update_site_option("\163\x61\x6d\154\x5f\x73\163\157\137\163\x65\x74\x74\151\x6e\x67\x73", $rw);
        update_site_option("\x6d\x6f\x5f\x73\141\155\154\137\x6d\x65\163\163\x61\x67\145", "\x53\x69\147\x6e\40\151\x6e\x20\x6f\x70\164\151\x6f\x6e\x73\x20\165\x70\x64\141\x74\x65\x64\x2e");
        $this->mo_saml_show_success_message();
        Tx:
        goto FE;
        XI:
        if (!mo_saml_is_sp_configured()) {
            goto Cl;
        }
        $rw = maybe_unserialize(get_site_option("\163\x61\x6d\154\x5f\163\x73\x6f\x5f\163\x65\x74\164\x69\x6e\147\x73"));
        if ($rw) {
            goto BH;
        }
        $rw = array();
        BH:
        $GW = "\104\105\x46\x41\125\x4c\x54";
        if (empty($_POST["\163\151\x74\145"])) {
            goto Wy;
        }
        $GW = htmlspecialchars($_POST["\x73\151\x74\x65"]);
        Wy:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\105\x46\x41\125\114\124"]))) {
            goto kZ;
        }
        $rw[$GW] = $rw["\x44\x45\106\101\x55\114\x54"];
        kZ:
        if (array_key_exists("\155\x6f\x5f\x73\141\x6d\154\137\x72\145\144\151\x72\145\x63\x74\x5f\164\x6f\x5f\x77\160\137\154\x6f\x67\151\156", $_POST)) {
            goto wG;
        }
        $DR = "\146\x61\x6c\163\x65";
        goto AX;
        wG:
        $DR = htmlspecialchars($_POST["\x6d\x6f\x5f\x73\x61\155\154\137\x72\x65\x64\151\162\145\143\164\137\x74\157\x5f\167\x70\x5f\x6c\x6f\147\151\156"]);
        AX:
        $rw[$GW]["\x6d\x6f\x5f\x73\x61\x6d\x6c\137\x72\x65\x64\151\162\145\x63\x74\137\x74\157\137\167\x70\137\x6c\157\147\x69\156"] = $DR;
        update_site_option("\163\x61\x6d\x6c\137\163\163\157\137\163\145\x74\164\x69\x6e\147\163", $rw);
        update_site_option("\155\x6f\137\163\141\x6d\154\x5f\155\x65\163\x73\x61\x67\x65", "\x53\151\147\x6e\x20\x69\156\40\157\x70\x74\151\x6f\x6e\163\x20\x75\160\x64\141\x74\x65\x64\56");
        $this->mo_saml_show_success_message();
        Cl:
        goto FE;
        E0:
        if (mo_saml_is_sp_configured()) {
            goto E7;
        }
        update_site_option("\155\157\137\163\141\x6d\x6c\x5f\x6d\x65\x73\163\141\x67\x65", "\x50\154\145\141\163\145\40\x63\x6f\x6d\x70\x6c\x65\x74\x65\x20" . addLink("\123\x65\x72\166\151\x63\x65\40\120\x72\x6f\166\x69\144\x65\x72", add_query_arg(array("\164\x61\x62" => "\x73\141\166\x65"), $_SERVER["\122\105\121\125\105\123\x54\137\x55\x52\x49"])) . "\40\143\157\x6e\146\x69\x67\165\x72\141\164\x69\x6f\156\40\x66\151\162\x73\164\56");
        $this->mo_saml_show_error_message();
        goto nX;
        E7:
        $rw = maybe_unserialize(get_site_option("\163\141\x6d\x6c\x5f\163\x73\157\137\x73\145\164\x74\x69\156\147\x73"));
        if ($rw) {
            goto g4;
        }
        $rw = array();
        g4:
        $GW = "\104\x45\106\x41\125\x4c\124";
        if (empty($_POST["\163\151\x74\145"])) {
            goto V1;
        }
        $GW = htmlspecialchars($_POST["\x73\x69\x74\x65"]);
        V1:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\105\106\x41\125\114\124"]))) {
            goto IR;
        }
        $rw[$GW] = $rw["\104\105\x46\101\125\114\x54"];
        IR:
        if (array_key_exists("\155\157\137\x73\x61\x6d\154\137\x61\144\x64\x5f\x73\x73\157\x5f\x62\165\x74\164\x6f\156\137\167\x70", $_POST)) {
            goto yz;
        }
        $qK = "\146\x61\154\x73\145";
        goto a7;
        yz:
        $qK = htmlspecialchars($_POST["\x6d\x6f\x5f\x73\x61\155\154\137\x61\144\x64\x5f\x73\163\x6f\x5f\x62\x75\x74\x74\157\156\x5f\x77\160"]);
        a7:
        $rw[$GW]["\x6d\157\x5f\163\x61\x6d\x6c\x5f\141\144\x64\137\163\163\x6f\x5f\142\165\164\164\x6f\x6e\137\x77\x70"] = $qK;
        update_site_option("\163\x61\155\x6c\137\163\163\x6f\x5f\x73\145\x74\x74\x69\156\147\x73", $rw);
        update_site_option("\x6d\157\x5f\x73\141\155\154\x5f\x6d\x65\x73\x73\x61\147\145", "\123\151\147\x6e\40\151\156\40\x6f\x70\x74\x69\x6f\x6e\x73\40\x75\160\x64\x61\x74\x65\x64\56");
        $this->mo_saml_show_success_message();
        nX:
        goto FE;
        BY:
        if (mo_saml_is_sp_configured()) {
            goto l_;
        }
        update_site_option("\155\x6f\137\163\141\x6d\x6c\137\155\145\x73\163\x61\x67\145", "\x50\154\145\x61\163\145\40\143\157\x6d\x70\154\145\164\145\x20" . addLink("\123\145\x72\166\x69\x63\x65\x20\120\162\157\x76\151\x64\x65\x72", add_query_arg(array("\164\141\142" => "\163\141\166\x65"), $_SERVER["\122\x45\121\x55\x45\x53\124\x5f\125\122\111"])) . "\40\143\x6f\156\x66\151\x67\x75\x72\x61\x74\x69\157\156\x20\146\x69\x72\x73\x74\x2e");
        $this->mo_saml_show_error_message();
        goto ZF;
        l_:
        $rw = maybe_unserialize(get_site_option("\x73\x61\x6d\x6c\x5f\163\163\157\x5f\x73\x65\x74\x74\151\x6e\147\x73"));
        if ($rw) {
            goto cP;
        }
        $rw = array();
        cP:
        $GW = "\104\x45\106\101\125\x4c\x54";
        if (empty($_POST["\163\151\x74\x65"])) {
            goto CS;
        }
        $GW = htmlspecialchars($_POST["\163\x69\x74\x65"]);
        CS:
        if (!(empty($rw[$GW]) && !empty($rw["\104\105\x46\x41\125\114\124"]))) {
            goto Nv;
        }
        $rw[$GW] = $rw["\x44\x45\x46\101\125\x4c\x54"];
        Nv:
        if (array_key_exists("\155\x6f\x5f\163\141\x6d\x6c\137\165\163\145\x5f\142\x75\x74\x74\x6f\x6e\x5f\141\x73\137\x73\x68\x6f\162\x74\143\157\x64\x65", $_POST)) {
            goto y4;
        }
        $Uz = "\x66\141\154\x73\x65";
        goto l2;
        y4:
        $Uz = htmlspecialchars($_POST["\x6d\x6f\137\163\141\x6d\x6c\x5f\x75\x73\145\x5f\142\x75\164\164\157\x6e\137\141\x73\x5f\x73\150\x6f\162\x74\143\x6f\x64\145"]);
        l2:
        $rw[$GW]["\155\157\x5f\163\141\155\154\137\165\x73\145\x5f\x62\x75\x74\x74\157\x6e\x5f\141\163\137\163\x68\x6f\162\x74\143\x6f\x64\145"] = $Uz;
        update_site_option("\x73\x61\155\154\137\x73\x73\x6f\x5f\163\x65\164\164\x69\156\147\163", $rw);
        update_site_option("\155\x6f\137\163\141\x6d\154\x5f\x6d\x65\163\163\x61\147\x65", "\x53\x69\x67\156\x20\151\x6e\x20\x6f\160\x74\151\x6f\156\x73\x20\x75\160\x64\x61\x74\145\144\x2e");
        $this->mo_saml_show_success_message();
        ZF:
        goto FE;
        zW:
        if (mo_saml_is_sp_configured()) {
            goto hY;
        }
        update_site_option("\155\157\x5f\163\x61\x6d\154\137\155\145\163\x73\141\x67\x65", "\120\x6c\x65\141\x73\145\x20\143\x6f\x6d\x70\x6c\x65\164\x65\x20" . addLink("\123\x65\162\166\x69\x63\x65\40\x50\x72\x6f\166\x69\x64\x65\x72", add_query_arg(array("\164\x61\x62" => "\x73\141\166\x65"), $_SERVER["\122\105\x51\125\105\123\x54\137\x55\x52\111"])) . "\x20\x63\157\156\146\x69\147\x75\x72\x61\164\x69\x6f\156\40\x66\151\x72\163\164\56");
        $this->mo_saml_show_error_message();
        goto q8;
        hY:
        $rw = maybe_unserialize(get_site_option("\163\141\x6d\154\137\163\x73\157\x5f\163\x65\x74\x74\151\156\x67\163"));
        if ($rw) {
            goto CH;
        }
        $rw = array();
        CH:
        $GW = "\104\x45\x46\101\125\114\124";
        if (empty($_POST["\163\x69\x74\145"])) {
            goto Vq;
        }
        $GW = htmlspecialchars($_POST["\163\x69\x74\145"]);
        Vq:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\x45\106\101\125\114\x54"]))) {
            goto fy;
        }
        $rw[$GW] = $rw["\x44\105\x46\101\x55\114\124"];
        fy:
        if (array_key_exists("\x6d\157\x5f\163\141\155\x6c\x5f\165\x73\145\x5f\x62\x75\x74\x74\157\156\x5f\x61\163\x5f\167\x69\x64\x67\x65\x74", $_POST)) {
            goto au;
        }
        $Uz = "\x66\141\x6c\163\x65";
        goto A0;
        au:
        $Uz = htmlspecialchars($_POST["\x6d\157\137\x73\x61\x6d\x6c\137\165\x73\x65\137\x62\165\x74\x74\157\156\x5f\141\163\137\167\x69\x64\147\x65\x74"]);
        A0:
        $rw[$GW]["\x6d\x6f\x5f\x73\x61\x6d\x6c\137\165\x73\145\137\142\165\164\164\157\156\x5f\x61\x73\x5f\x77\x69\144\x67\x65\164"] = $Uz;
        update_site_option("\x73\x61\x6d\154\x5f\163\x73\157\137\163\145\164\164\151\156\x67\x73", $rw);
        update_site_option("\x6d\157\137\163\x61\x6d\x6c\137\x6d\x65\163\x73\x61\x67\x65", "\123\x69\147\156\x20\x69\156\40\x6f\x70\164\151\157\x6e\x73\40\x75\x70\144\x61\164\145\x64\x2e");
        $this->mo_saml_show_success_message();
        q8:
        goto FE;
        Ez:
        $rw = maybe_unserialize(get_site_option("\163\x61\x6d\x6c\x5f\x73\163\157\137\x73\x65\x74\x74\151\156\147\163"));
        if ($rw) {
            goto o9;
        }
        $rw = array();
        o9:
        $GW = "\x44\105\x46\101\x55\114\x54";
        if (empty($_POST["\163\151\164\145"])) {
            goto uJ;
        }
        $GW = htmlspecialchars($_POST["\x73\x69\164\x65"]);
        uJ:
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\106\x41\125\114\124"]))) {
            goto Xy;
        }
        $rw[$GW] = $rw["\x44\x45\x46\x41\125\x4c\x54"];
        Xy:
        $gf = '';
        $GC = '';
        $dh = '';
        $sp = '';
        $vY = '';
        $eQ = '';
        $PA = '';
        $DH = '';
        $ME = '';
        $lh = '';
        $BM = "\x61\142\x6f\x76\x65";
        if (!(array_key_exists("\155\x6f\x5f\x73\141\x6d\154\x5f\142\165\x74\164\157\156\x5f\163\x69\172\145", $_POST) && !empty($_POST["\x6d\x6f\137\x73\x61\x6d\154\137\x62\165\164\x74\x6f\156\x5f\x73\x69\172\x65"]))) {
            goto pp;
        }
        $dh = htmlspecialchars($_POST["\155\x6f\x5f\x73\x61\155\154\137\142\165\x74\164\x6f\x6e\x5f\x73\x69\x7a\x65"]);
        pp:
        if (!(array_key_exists("\155\157\x5f\163\141\155\x6c\x5f\142\x75\164\164\x6f\x6e\x5f\167\x69\x64\164\x68", $_POST) && !empty($_POST["\x6d\157\x5f\x73\x61\155\154\x5f\x62\x75\x74\164\157\x6e\137\x77\151\144\164\x68"]))) {
            goto MV;
        }
        $sp = htmlspecialchars($_POST["\155\157\137\163\x61\x6d\x6c\x5f\x62\x75\164\x74\157\x6e\x5f\x77\x69\x64\164\150"]);
        MV:
        if (!(array_key_exists("\x6d\x6f\137\x73\141\x6d\154\137\142\x75\164\164\157\156\x5f\150\x65\151\x67\x68\164", $_POST) && !empty($_POST["\155\157\x5f\163\141\155\154\x5f\142\165\x74\164\157\x6e\137\x68\x65\x69\x67\150\164"]))) {
            goto Np;
        }
        $vY = htmlspecialchars($_POST["\x6d\157\137\163\x61\x6d\154\x5f\x62\x75\x74\x74\x6f\156\137\150\x65\x69\147\150\164"]);
        Np:
        if (!(array_key_exists("\x6d\157\137\x73\x61\155\x6c\x5f\x62\x75\x74\x74\157\156\x5f\x63\165\x72\166\x65", $_POST) && !empty($_POST["\155\157\x5f\x73\141\x6d\154\137\142\165\164\x74\x6f\x6e\x5f\x63\165\162\x76\145"]))) {
            goto oA;
        }
        $eQ = htmlspecialchars($_POST["\155\x6f\x5f\x73\x61\x6d\154\137\142\165\164\164\157\x6e\137\x63\165\162\x76\145"]);
        oA:
        if (!array_key_exists("\155\157\137\163\x61\x6d\x6c\137\142\165\164\x74\x6f\156\137\143\157\x6c\x6f\x72", $_POST)) {
            goto DQ;
        }
        $PA = htmlspecialchars($_POST["\x6d\x6f\137\x73\x61\155\x6c\x5f\x62\165\x74\x74\x6f\156\137\x63\157\154\x6f\x72"]);
        DQ:
        if (!array_key_exists("\x6d\157\137\x73\x61\155\154\x5f\x62\165\164\164\x6f\x6e\137\164\150\x65\155\145", $_POST)) {
            goto Za;
        }
        $gf = htmlspecialchars($_POST["\155\157\137\x73\141\x6d\x6c\x5f\142\x75\164\x74\x6f\156\x5f\164\150\145\x6d\145"]);
        Za:
        if (!array_key_exists("\155\x6f\x5f\163\141\155\x6c\137\142\165\x74\x74\157\x6e\137\164\145\x78\164", $_POST)) {
            goto vc;
        }
        $DH = htmlspecialchars($_POST["\155\157\137\x73\x61\155\154\x5f\x62\x75\164\164\x6f\156\137\164\145\170\164"]);
        if (!(empty($DH) || $DH == "\43\x23\111\x44\120\x23\43")) {
            goto Z3;
        }
        $DH = "\x23\43\x49\104\x50\43\43";
        Z3:
        $m9 = get_site_option("\x73\141\x6d\154\137\x69\144\x65\156\x74\151\x74\x79\x5f\x6e\141\x6d\145");
        $DH = str_replace("\43\43\111\104\x50\43\43", $m9, $DH);
        vc:
        if (!array_key_exists("\155\157\x5f\163\141\155\154\x5f\x66\x6f\156\164\137\143\x6f\x6c\x6f\162", $_POST)) {
            goto yN;
        }
        $ME = htmlspecialchars($_POST["\x6d\x6f\137\x73\x61\155\x6c\137\146\157\156\x74\x5f\143\157\x6c\157\x72"]);
        yN:
        if (!array_key_exists("\x6d\x6f\137\163\141\x6d\154\x5f\x66\x6f\156\164\x5f\x73\x69\x7a\x65", $_POST)) {
            goto d9;
        }
        $lh = htmlspecialchars($_POST["\155\x6f\x5f\163\x61\155\x6c\137\146\157\156\x74\137\x73\151\x7a\145"]);
        d9:
        if (!array_key_exists("\x73\163\x6f\x5f\x62\165\164\x74\157\x6e\137\x6c\x6f\x67\x69\156\137\146\x6f\162\x6d\137\160\157\x73\x69\164\x69\x6f\156", $_POST)) {
            goto ys;
        }
        $BM = htmlspecialchars($_POST["\163\163\x6f\x5f\x62\x75\x74\164\x6f\156\x5f\154\x6f\x67\151\x6e\x5f\146\x6f\x72\155\137\x70\x6f\163\x69\x74\151\157\x6e"]);
        ys:
        $rw[$GW]["\155\x6f\x5f\x73\x61\155\x6c\137\142\x75\x74\164\x6f\x6e\x5f\164\x68\x65\155\x65"] = $gf;
        $rw[$GW]["\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x62\x75\164\164\x6f\x6e\137\x73\x69\172\x65"] = $dh;
        $rw[$GW]["\x6d\x6f\x5f\x73\141\155\154\x5f\x62\165\164\164\x6f\x6e\x5f\x77\151\x64\164\x68"] = $sp;
        $rw[$GW]["\155\x6f\x5f\163\x61\155\154\x5f\142\x75\x74\164\157\x6e\x5f\x68\145\151\147\150\x74"] = $vY;
        $rw[$GW]["\x6d\157\137\163\x61\x6d\154\x5f\142\x75\164\x74\157\x6e\137\x63\x75\x72\166\145"] = $eQ;
        $rw[$GW]["\x6d\157\x5f\x73\141\x6d\x6c\137\142\x75\x74\x74\157\156\137\143\157\x6c\x6f\x72"] = $PA;
        $rw[$GW]["\155\157\x5f\x73\x61\155\x6c\137\x62\165\164\164\x6f\x6e\x5f\164\x65\170\164"] = $DH;
        $rw[$GW]["\155\x6f\137\x73\x61\155\154\x5f\146\157\x6e\x74\x5f\143\157\x6c\x6f\x72"] = $ME;
        $rw[$GW]["\155\x6f\x5f\x73\141\x6d\x6c\137\146\157\x6e\x74\x5f\163\151\172\145"] = $lh;
        $rw[$GW]["\163\163\x6f\x5f\142\165\164\x74\157\x6e\137\x6c\157\x67\151\156\137\x66\x6f\x72\155\137\x70\157\x73\x69\x74\x69\x6f\x6e"] = $BM;
        update_site_option("\x73\141\x6d\x6c\x5f\x73\163\x6f\137\163\x65\164\x74\151\x6e\x67\163", $rw);
        update_site_option("\155\157\x5f\163\141\x6d\x6c\x5f\x6d\x65\163\x73\141\x67\145", "\123\x69\x67\x6e\x20\111\156\40\163\145\x74\x74\x69\156\147\163\40\165\160\144\x61\x74\145\144\56");
        $this->mo_saml_show_success_message();
        goto FE;
        Z1:
        $rw = maybe_unserialize(get_site_option("\x73\141\x6d\154\x5f\163\163\157\137\163\145\164\x74\x69\156\147\x73"));
        if (!empty($rw)) {
            goto aW;
        }
        $rw = array();
        aW:
        $GW = "\104\x45\106\x41\x55\114\x54";
        if (empty($_POST["\163\151\x74\x65"])) {
            goto xi;
        }
        $GW = htmlspecialchars($_POST["\163\x69\x74\145"]);
        xi:
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\106\x41\125\114\x54"]))) {
            goto xs;
        }
        $rw[$GW] = $rw["\x44\105\106\x41\x55\114\x54"];
        xs:
        $Ze = "\x66\x61\x6c\163\145";
        if (array_key_exists("\x6d\x6f\x5f\x73\141\155\x6c\137\141\x6c\154\x6f\x77\x5f\x77\160\137\163\x69\147\156\151\156", $_POST)) {
            goto qH;
        }
        $ZG = "\146\141\x6c\163\x65";
        goto IK;
        qH:
        $ZG = htmlspecialchars($_POST["\155\x6f\x5f\x73\x61\x6d\154\x5f\x61\x6c\x6c\157\x77\137\167\160\x5f\163\x69\147\156\151\x6e"]);
        IK:
        if ($ZG == "\164\x72\165\145") {
            goto Cy;
        }
        $rw[$GW]["\155\157\x5f\163\x61\155\x6c\137\x61\x6c\154\x6f\x77\x5f\x77\160\x5f\163\151\147\x6e\151\156"] = '';
        goto SK;
        Cy:
        $rw[$GW]["\155\157\137\163\x61\x6d\x6c\x5f\x61\x6c\154\x6f\167\137\167\x70\137\x73\151\147\x6e\151\x6e"] = "\164\x72\x75\145";
        if (!array_key_exists("\155\x6f\x5f\163\141\x6d\x6c\137\x62\x61\x63\x6b\x64\x6f\x6f\162\137\x75\162\x6c", $_POST)) {
            goto sd;
        }
        $Ze = htmlspecialchars(trim($_POST["\155\x6f\137\163\x61\x6d\x6c\137\x62\141\x63\x6b\144\157\x6f\x72\137\x75\162\x6c"]));
        sd:
        SK:
        $rw[$GW]["\x6d\157\137\163\141\x6d\154\x5f\142\x61\x63\x6b\144\157\x6f\x72\137\x75\x72\x6c"] = $Ze;
        update_site_option("\163\x61\x6d\x6c\137\x73\x73\157\x5f\x73\145\x74\164\x69\x6e\x67\x73", $rw);
        update_site_option("\155\157\137\163\x61\x6d\154\137\155\145\163\163\141\x67\145", "\123\151\147\x6e\40\111\156\40\163\145\x74\x74\151\x6e\x67\x73\40\x75\x70\x64\141\164\x65\x64\56");
        $this->mo_saml_show_success_message();
        goto FE;
        Y7:
        if (mo_saml_is_extension_installed("\143\x75\162\154")) {
            goto Dy;
        }
        update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\x6d\145\x73\163\x61\x67\145", "\105\122\122\117\122\72\40\74\141\40\x68\162\x65\146\x3d\x22\150\x74\164\160\72\57\57\160\150\x70\56\156\x65\x74\57\155\x61\x6e\x75\x61\154\57\x65\x6e\x2f\x63\x75\x72\154\56\151\156\x73\164\141\x6c\x6c\141\x74\x69\157\156\56\160\150\x70\x22\40\164\141\x72\x67\x65\x74\x3d\42\137\142\154\141\x6e\153\x22\x3e\x50\x48\x50\x20\143\x55\122\114\x20\145\170\164\x65\156\163\151\157\156\74\x2f\141\76\x20\151\x73\40\156\157\164\x20\x69\x6e\163\x74\x61\x6c\x6c\x65\144\x20\157\162\40\144\x69\163\x61\142\154\145\144\56\x20\122\145\163\145\x6e\144\40\x4f\x54\120\x20\146\141\x69\x6c\x65\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        Dy:
        $uo = get_site_option("\x6d\x6f\137\163\x61\155\154\137\x61\144\155\151\156\137\x65\x6d\x61\151\154");
        $IV = new Customersaml();
        $T0 = json_decode($IV->mo_saml_forgot_password($uo, $this), true);
        if (strcasecmp($T0["\x73\164\141\164\165\x73"], "\123\x55\103\103\105\123\123") == 0) {
            goto ES;
        }
        update_site_option("\155\157\137\x73\x61\155\x6c\x5f\155\145\163\163\141\147\145", "\101\156\40\145\162\162\x6f\x72\x20\157\x63\x63\165\162\x65\x64\40\167\x68\x69\x6c\x65\40\x70\162\x6f\x63\x65\x73\163\151\156\x67\40\x79\157\x75\162\40\162\145\x71\x75\x65\x73\164\56\x20\x50\x6c\145\x61\x73\145\40\x54\x72\171\40\141\147\x61\x69\156\56");
        $this->mo_saml_show_error_message();
        goto oK;
        ES:
        update_site_option("\x6d\157\137\163\x61\x6d\x6c\x5f\x6d\145\x73\x73\141\x67\145", "\x59\x6f\165\x72\40\x70\141\x73\163\x77\157\162\x64\40\150\x61\163\40\142\x65\145\156\40\162\145\x73\145\x74\40\x73\x75\143\x63\145\x73\x73\x66\x75\154\154\x79\x2e\x20\120\154\145\141\x73\145\40\x65\x6e\x74\x65\x72\x20\x74\150\145\40\156\x65\167\x20\160\x61\x73\x73\x77\x6f\x72\x64\40\x73\x65\x6e\x74\x20\164\x6f\x20" . $uo . "\56");
        $this->mo_saml_show_success_message();
        oK:
        FE:
        if (!get_site_option("\156\157\137\163\x62\163")) {
            goto M4;
        }
        $ns = get_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\x63\165\x73\164\157\155\x65\x72\x5f\164\157\153\x65\x6e");
        $O2 = AESEncryption::decrypt_data(get_site_option("\156\157\x5f\163\142\x73"), $ns);
        $tV = count(Utilities::get_sites());
        if (!($O2 < $tV)) {
            goto n8;
        }
        if (get_site_option("\154\151\x63\145\x6e\x73\x65\x5f\x61\154\145\162\164\x5f\x65\x6d\x61\151\x6c\137\x73\x65\x6e\x74")) {
            goto Y2;
        }
        $IV = new Customersaml();
        $IV->mo_saml_send_alert_email_for_license($O2, $this);
        Y2:
        n8:
        M4:
        if (self::mo_check_option_admin_referer("\155\157\x5f\163\141\155\154\137\166\145\x72\x69\146\171\137\x6c\151\143\x65\x6e\x73\145")) {
            goto S5;
        }
        if (self::mo_check_option_admin_referer("\155\x6f\x5f\163\141\155\x6c\137\x63\x68\x65\x63\153\x5f\154\151\143\145\156\163\145")) {
            goto q7;
        }
        goto s5;
        S5:
        if (!empty($_POST["\x73\x61\x6d\x6c\137\x6c\x69\x63\x65\x6e\163\x65\137\x6b\x65\171"])) {
            goto Ya;
        }
        update_site_option("\155\157\x5f\163\141\x6d\154\x5f\155\145\x73\163\x61\x67\x65", "\x41\154\x6c\x20\x74\150\145\x20\x66\x69\145\x6c\144\163\40\x61\x72\x65\x20\162\145\x71\x75\151\x72\x65\144\56\x20\120\x6c\145\141\x73\x65\40\x65\156\x74\145\162\40\166\x61\154\151\x64\40\154\x69\x63\x65\156\163\x65\x20\x6b\x65\171\x2e");
        $this->mo_saml_show_error_message();
        return;
        Ya:
        $UB = trim($_POST["\163\x61\x6d\x6c\137\x6c\151\x63\x65\x6e\x73\x65\137\x6b\145\x79"]);
        $IV = new Customersaml();
        $sC = $IV->check_customer_ln($this);
        if ($sC) {
            goto dL;
        }
        return;
        dL:
        $T0 = json_decode($sC, true);
        if (!(is_array($T0) && array_key_exists("\154\151\143\145\x6e\x73\x65\x45\170\x70\151\x72\x79", $T0) && !empty($T0["\154\151\143\x65\x6e\163\145\x45\170\x70\x69\x72\x79"]))) {
            goto VO;
        }
        $bN = $T0["\154\151\x63\145\156\163\145\105\x78\160\151\x72\171"];
        VO:
        $qp = add_query_arg(array("\x74\141\x62" => "\x6c\151\143\145\x6e\163\151\x6e\147"), $_SERVER["\122\105\121\125\105\x53\124\137\125\122\111"]);
        if (strcasecmp($T0["\x73\x74\x61\164\165\163"], "\x53\125\x43\x43\105\123\x53") == 0) {
            goto rb;
        }
        $ns = get_site_option("\x6d\x6f\x5f\163\141\155\154\x5f\143\x75\163\164\x6f\x6d\145\x72\137\164\x6f\153\145\156");
        $qp = add_query_arg(array("\x74\x61\x62" => "\154\151\x63\x65\x6e\x73\x69\156\x67"), $_SERVER["\122\105\121\125\105\x53\124\x5f\125\122\111"]);
        update_site_option("\155\157\x5f\x73\141\x6d\154\137\155\x65\x73\x73\141\147\x65", "\131\x6f\x75\x20\150\141\166\145\x20\x6e\x6f\164\40\x75\160\147\x72\x61\144\145\144\x20\171\x65\164\56\40\x3c\x61\40\150\162\x65\146\x3d\42" . $qp . "\42\76\103\154\151\143\153\x20\150\x65\x72\x65\x3c\x2f\141\76\40\x74\x6f\40\x75\x70\x67\162\141\x64\145\x20\x74\157\x20\160\162\x65\155\x69\x75\155\40\166\x65\162\163\x69\x6f\x6e\x2e");
        $this->mo_saml_show_error_message();
        goto mk;
        rb:
        if (empty($T0["\x69\x73\x4d\x75\154\164\151\x53\151\x74\x65\120\x6c\165\147\151\156\x52\x65\x71\x75\x65\x73\x74\x65\x64"])) {
            goto K_;
        }
        $N_ = $T0["\151\x73\x4d\x75\154\x74\x69\x53\x69\164\145\x50\154\165\x67\151\x6e\x52\145\161\165\145\x73\x74\x65\x64"];
        K_:
        $tV = count(Utilities::get_sites());
        if ($N_ && !empty($T0["\156\x6f\117\x66\123\165\142\123\151\x74\145\x73"]) && $tV <= $T0["\156\x6f\x4f\x66\x53\165\142\x53\x69\x74\145\x73"]) {
            goto v0;
        }
        $O2 = $T0["\156\157\x4f\146\123\165\x62\x53\151\x74\145\x73"];
        $ns = get_site_option("\x6d\x6f\x5f\x73\141\155\154\x5f\x63\x75\163\164\x6f\155\x65\162\137\164\157\153\145\x6e");
        update_site_option("\x6e\x6f\137\x73\x62\163", AESEncryption::encrypt_data($O2, $ns));
        update_site_option("\163\155\154\137\154\x6b", AESEncryption::encrypt_data($UB, $ns));
        update_site_option("\163\x69\164\x65\137\143\x6b\137\154", AESEncryption::encrypt_data("\x74\x72\165\145", $ns));
        update_site_option("\155\157\x5f\163\141\x6d\154\x5f\155\x65\163\x73\x61\147\x65", "\x59\157\x75\x20\150\141\x76\145\40\x70\x75\x72\143\x68\141\163\145\144\x20\164\x68\145\40\154\151\x63\145\156\163\145\x20\146\x6f\162\40\x3c\142\x3e" . $T0["\156\157\117\x66\123\165\x62\x53\151\164\x65\x73"] . "\x20\x73\151\164\145\x73\x3c\x2f\142\x3e\x2e\x20\102\x75\164\40\x79\157\x75\40\150\141\x76\x65\40\x3c\142\x3e" . $tV . "\x20\x3c\x2f\142\76\x73\151\164\x65\x73\40\151\156\40\x79\157\x75\x72\x20\x6d\x75\154\164\151\x73\151\164\x65\40\x6e\x65\x74\x77\x6f\162\x6b\x2e\x20\74\x61\x20\150\162\145\x66\x3d\42\43\42\40\157\x6e\143\154\151\x63\153\x3d\x22\x67\145\164\x75\x70\x67\162\141\144\145\154\x69\143\x65\x6e\x73\x65\x73\146\x6f\x72\x6d\x28\x29\x22\76\103\154\151\143\153\x20\150\x65\x72\145\x3c\x2f\141\x3e\40\x74\x6f\x20\x62\x75\x79\x20\x6c\151\x63\x65\156\163\145\x20\146\x6f\162\40\155\x6f\x72\x65\40\x73\151\x74\x65\x73\x2e");
        $this->mo_saml_show_error_message();
        goto BF;
        v0:
        $O2 = $T0["\x6e\157\117\146\123\x75\x62\123\x69\x74\x65\163"];
        $ns = get_site_option("\155\x6f\137\163\141\155\x6c\x5f\x63\x75\163\x74\x6f\155\x65\162\137\x74\157\x6b\x65\156");
        if (empty($T0["\x6e\x6f\117\146\125\163\145\162\163"])) {
            goto lC;
        }
        $x6 = $T0["\x6e\157\117\146\125\163\x65\162\163"];
        lC:
        $sC = $IV->mo_saml_verify_license($UB, $this);
        if ($sC) {
            goto xR;
        }
        return;
        xR:
        $T0 = json_decode($sC, true);
        if (is_array($T0) && !empty($T0["\163\164\x61\x74\165\163"]) && strcasecmp($T0["\163\164\x61\x74\165\x73"], "\x53\125\x43\x43\105\123\x53") == 0) {
            goto Wr;
        }
        if (is_array($T0) && !empty($T0["\163\x74\x61\x74\x75\x73"]) && strcasecmp($T0["\x73\x74\x61\164\165\163"], "\x46\x41\111\x4c\x45\104") == 0) {
            goto i1;
        }
        update_site_option("\x6d\x6f\x5f\x73\141\155\154\137\x6d\x65\163\163\x61\147\145", "\x41\156\40\x65\x72\162\x6f\162\x20\x6f\x63\x63\165\162\x65\x64\x20\x77\x68\x69\x6c\145\40\x70\x72\157\143\145\163\163\x69\156\147\40\171\157\x75\162\x20\x72\x65\x71\165\145\x73\x74\x2e\x20\120\154\145\141\163\x65\x20\124\x72\x79\x20\x61\x67\141\x69\156\56");
        $this->mo_saml_show_error_message();
        goto z0;
        Wr:
        if (empty($T0["\156\157\117\146\125\x73\x65\x72\x73"])) {
            goto wQ;
        }
        update_site_option("\155\157\x5f\163\141\x6d\x6c\137\165\163\162\x5f\x6c\x6d\164", AESEncryption::encrypt_data($x6, $ns));
        wQ:
        update_site_option("\163\x6d\154\137\154\x6b", AESEncryption::encrypt_data($UB, $ns));
        if (empty($bN)) {
            goto qd;
        }
        Mo_License_Service::update_license_expiry($bN);
        qd:
        update_site_option("\156\x6f\x5f\163\142\163", AESEncryption::encrypt_data($O2, $ns));
        update_site_option("\163\x69\x74\x65\x5f\x63\x6b\x5f\x6c", AESEncryption::encrypt_data("\164\x72\165\145", $ns));
        update_site_option("\164\137\x73\x69\x74\x65\x5f\163\164\x61\164\165\x73", AESEncryption::encrypt_data("\x66\x61\154\x73\145", $ns));
        update_site_option("\155\x6f\137\163\x61\155\x6c\137\x6d\x65\163\163\x61\x67\x65", "\x59\157\165\162\40\x6c\151\143\x65\156\x73\x65\x20\x69\x73\x20\166\x65\x72\x69\x66\x69\x65\144\x2e\x20\x59\157\165\40\x63\x61\x6e\x20\156\157\x77\x20\163\145\x74\x75\160\x20\164\x68\x65\40\x70\x6c\165\x67\151\156\x2e");
        update_site_option(Mo_Saml_Options::LAST_SYNCED_TIME, time());
        $ns = get_site_option("\x6d\x6f\137\x73\x61\155\154\x5f\143\x75\163\164\x6f\x6d\145\x72\x5f\x74\x6f\x6b\x65\156");
        update_site_option("\x74\x5f\163\151\164\x65\x5f\163\x74\x61\164\x75\163", AESEncryption::encrypt_data("\146\x61\x6c\163\145", $ns));
        $this->mo_saml_show_success_message();
        goto z0;
        i1:
        if (strcasecmp($T0["\155\x65\163\163\x61\147\x65"], "\103\x6f\x64\x65\x20\150\141\x73\x20\x45\x78\160\151\x72\145\x64") == 0) {
            goto hh;
        }
        update_site_option("\155\x6f\x5f\163\x61\x6d\154\x5f\x6d\x65\x73\163\141\x67\x65", "\x59\x6f\x75\40\x68\x61\166\x65\40\145\156\164\x65\x72\145\x64\x20\x61\x6e\40\151\x6e\x76\x61\x6c\x69\x64\x20\154\x69\x63\x65\x6e\x73\145\40\153\145\171\56\40\x50\x6c\x65\141\x73\145\40\x65\156\164\145\x72\40\x61\40\166\x61\154\x69\144\40\154\151\x63\x65\156\x73\x65\x20\153\x65\x79\56");
        goto no;
        hh:
        update_site_option("\x6d\157\137\163\141\155\x6c\x5f\x6d\x65\163\x73\x61\147\145", "\114\151\x63\145\x6e\163\145\40\x6b\145\x79\x20\x79\x6f\165\40\x68\141\x76\145\40\145\x6e\x74\145\x72\x65\144\40\150\x61\x73\x20\141\154\x72\145\141\144\x79\40\x62\145\x65\156\40\165\x73\x65\144\56\x20\x50\x6c\x65\141\x73\x65\40\145\x6e\164\145\162\40\141\x20\153\145\x79\40\x77\x68\x69\x63\x68\40\150\141\x73\x20\156\157\x74\40\x62\145\145\x6e\40\x75\163\x65\x64\x20\142\145\x66\x6f\162\145\40\x6f\x6e\40\x61\156\x79\x20\157\164\150\145\162\x20\x69\x6e\x73\x74\x61\156\x63\145\40\157\x72\x20\x69\x66\x20\x79\157\x75\40\150\x61\x76\x65\x20\x65\x78\141\165\163\164\145\x64\40\141\x6c\x6c\x20\x79\x6f\165\162\40\153\145\171\163\40\164\x68\x65\156\x20\74\x61\40\150\162\145\x66\x3d\x22\43\x22\x20\x6f\x6e\143\154\151\143\x6b\75\42\147\145\164\x75\160\x67\162\x61\144\145\154\151\x63\145\156\163\145\163\146\157\x72\155\x28\51\42\x20\x3e\103\x6c\x69\x63\x6b\x20\150\x65\162\145\x3c\57\141\x3e\x20\x74\x6f\40\x62\165\171\40\155\157\x72\x65\x2e");
        no:
        $this->mo_saml_show_error_message();
        z0:
        BF:
        mk:
        goto s5;
        q7:
        $IV = new Customersaml();
        $sC = $IV->check_customer_ln($this);
        if ($sC) {
            goto em;
        }
        return;
        em:
        $T0 = json_decode($sC, true);
        if (strcasecmp($T0["\x73\164\x61\x74\165\163"], "\x53\125\x43\103\105\x53\x53") == 0) {
            goto BA;
        }
        $ns = get_site_option("\155\x6f\x5f\163\x61\x6d\154\137\x63\x75\163\x74\157\155\x65\x72\137\164\157\x6b\x65\x6e");
        $qp = add_query_arg(array("\x74\x61\x62" => "\x6c\x69\143\x65\x6e\163\x69\x6e\x67"), $_SERVER["\x52\x45\121\125\x45\x53\124\137\x55\x52\111"]);
        update_site_option("\155\157\137\x73\141\x6d\x6c\137\155\x65\163\x73\141\x67\145", "\131\157\x75\x20\150\x61\166\x65\40\156\x6f\164\40\165\160\147\x72\x61\x64\x65\144\x20\x79\145\164\x2e\40\x3c\x61\40\150\162\x65\146\x3d\x22" . $qp . "\42\x3e\x43\154\x69\x63\153\x20\150\x65\162\145\74\x2f\x61\x3e\40\x74\157\40\165\x70\x67\162\141\x64\145\40\164\x6f\40\x70\x72\x65\155\151\165\x6d\40\166\145\x72\x73\151\x6f\156\56");
        $this->mo_saml_show_error_message();
        goto Y3;
        BA:
        if (empty($T0["\x69\x73\115\165\x6c\164\x69\x53\x69\x74\145\x50\x6c\x75\147\x69\156\122\145\161\165\x65\163\x74\145\x64"])) {
            goto vT;
        }
        $N_ = $T0["\151\x73\x4d\165\154\x74\x69\x53\151\x74\145\120\154\x75\x67\151\156\x52\145\161\x75\145\x73\164\x65\x64"];
        vT:
        $tV = count(Utilities::get_sites());
        if ($N_ && !empty($T0["\156\157\x4f\x66\123\x75\x62\123\151\x74\145\x73"]) && $tV <= $T0["\x6e\157\x4f\x66\123\165\142\x53\x69\x74\145\163"]) {
            goto lP;
        }
        $ns = get_site_option("\155\157\x5f\163\x61\x6d\154\137\143\x75\163\164\157\155\145\x72\137\x74\157\x6b\145\156");
        if (empty($ba)) {
            goto lW;
        }
        update_site_option("\x6e\x6f\x5f\163\142\163", AESEncryption::encrypt_data($ba, $ns));
        lW:
        update_site_option("\163\151\164\x65\137\143\153\x5f\x6c", AESEncryption::encrypt_data("\x66\x61\x6c\x73\x65", $ns));
        $qp = add_query_arg(array("\x74\x61\142" => "\154\x69\143\145\x6e\163\151\156\x67"), $_SERVER["\122\x45\121\125\x45\123\124\137\125\122\111"]);
        update_site_option("\155\157\137\163\x61\155\x6c\x5f\155\145\163\x73\141\147\145", "\x59\x6f\165\40\150\141\x76\x65\40\156\157\x74\x20\x75\160\x67\x72\141\x64\145\144\40\x74\157\x20\164\x68\145\x20\143\x6f\x72\162\145\143\x74\x20\x6c\151\x63\145\x6e\163\145\40\x70\154\141\x6e\x2e\x20\105\151\164\150\145\162\40\x79\x6f\x75\40\150\x61\166\145\x20\x70\x75\162\143\x68\141\163\145\x64\x20\x66\x6f\x72\40\151\156\143\x6f\x72\162\x65\x63\x74\x20\x6e\x6f\56\x20\x6f\146\x20\x73\151\164\145\163\40\x6f\162\40\x79\x6f\165\x20\150\141\166\x65\40\x6e\157\164\40\163\x65\x6c\x65\x63\x74\x65\144\40\155\165\154\x74\x69\x73\151\x74\x65\40\157\160\164\151\x6f\x6e\40\x77\150\x69\154\x65\x20\160\165\162\143\150\x61\163\151\x6e\x67\56\40\74\141\40\150\x72\145\x66\75\42\43\42\40\157\156\143\x6c\x69\143\x6b\x3d\x22\147\x65\164\165\x70\147\162\141\x64\145\154\151\143\x65\156\x73\x65\x73\x66\x6f\162\155\50\51\x22\76\103\154\x69\x63\x6b\x20\x68\145\x72\145\74\57\x61\x3e\40\164\x6f\40\x75\160\x67\x72\x61\144\x65\x20\x74\157\x20\160\162\145\x6d\x69\165\155\40\166\x65\162\x73\151\x6f\156\56");
        $this->mo_saml_show_error_message();
        goto OB;
        lP:
        $ns = get_site_option("\x6d\157\137\163\141\155\x6c\137\x63\x75\163\x74\157\x6d\145\162\x5f\164\157\153\145\156");
        $ba = $T0["\x6e\157\x4f\146\x53\x75\x62\123\x69\x74\x65\163"];
        if (empty($T0["\154\151\x63\145\156\x73\x65\x45\x78\160\x69\x72\x79"])) {
            goto x3;
        }
        $SA = $this->mo_saml_parse_expiry_date($T0["\154\151\x63\145\x6e\x73\145\x45\170\160\x69\x72\171"]);
        Mo_License_Service::update_license_expiry($T0["\154\x69\x63\x65\x6e\x73\x65\x45\x78\x70\151\162\171"]);
        update_site_option("\155\157\137\163\141\x6d\x6c\x5f\154\x69\143\x65\x6e\x73\145\x5f\x65\x78\x70\x69\x72\171\x5f\144\141\164\x65", $SA);
        update_site_option("\155\157\137\163\141\155\154\137\x73\154\x65", $this->is_license_expired($T0["\154\151\143\x65\x6e\163\x65\x45\170\160\151\162\171"]));
        x3:
        update_site_option("\x73\151\x74\145\x5f\143\153\x5f\x6c", AESEncryption::encrypt_data("\x74\x72\x75\x65", $ns));
        update_site_option(Mo_Saml_Options::LAST_SYNCED_TIME, time());
        update_site_option("\156\x6f\x5f\163\x62\x73", AESEncryption::encrypt_data($ba, $ns));
        $qp = add_query_arg(array("\164\x61\x62" => "\x6c\x6f\x67\x69\x6e"), $_SERVER["\122\105\121\125\x45\123\x54\x5f\125\x52\x49"]);
        update_site_option("\x6d\157\137\x73\141\x6d\154\x5f\x6d\145\163\163\141\x67\x65", "\x59\157\165\40\x68\141\x76\145\x20\x73\165\143\143\x65\163\163\x66\165\154\x6c\171\40\163\171\156\143\x65\144\40\x79\x6f\x75\x72\x20\154\151\143\145\x6e\163\x65\x2e");
        $this->mo_saml_show_success_message();
        OB:
        Y3:
        s5:
        if (!(!empty($_REQUEST["\165\160\144\141\164\x65"]) && "\141\x64\144\145\x64" == $_REQUEST["\165\x70\x64\141\x74\x65"] && get_site_option("\155\157\137\163\x61\x6d\x6c\137\x65\x6e\x61\142\154\x65\137\x73\163\x6f\x5f\x6e\x65\167\x5f\163\x69\164\145") == "\x74\162\x75\145")) {
            goto Vh;
        }
        $Qu = !empty($_REQUEST["\142\154\157\x67\133\144\x6f\x6d\141\151\x6e\135"]) ? $_REQUEST["\x62\154\157\147\133\144\x6f\155\x61\151\156\x5d"] : '';
        if (empty($_REQUEST["\151\x64"])) {
            goto YQ;
        }
        $Rf = $_REQUEST["\x69\144"];
        YQ:
        if (empty($Rf)) {
            goto gx;
        }
        $EK = Utilities::get_active_sites();
        if (Utilities::mo_saml_in_array($Rf, $EK)) {
            goto iS;
        }
        array_push($EK, $Rf);
        iS:
        update_site_option("\x6d\157\x5f\x65\x6e\x61\x62\x6c\145\x5f\x73\x73\x6f\x5f\163\151\x74\x65\x73", $EK);
        gx:
        Vh:
        mS:
    }
    function create_customer()
    {
        $IV = new CustomerSaml();
        $AQ = json_decode($IV->create_customer($this), true);
        if (strcasecmp($AQ["\163\164\141\164\165\163"], "\103\x55\123\124\x4f\115\x45\122\137\125\123\x45\122\x4e\101\115\105\x5f\101\114\x52\x45\101\104\131\137\105\x58\x49\x53\x54\x53") == 0) {
            goto u4;
        }
        if (strcasecmp($AQ["\163\164\141\x74\x75\x73"], "\x53\125\103\103\x45\123\x53") == 0) {
            goto GJ;
        }
        goto w_;
        u4:
        $this->get_current_customer();
        goto w_;
        GJ:
        update_site_option("\x6d\x6f\x5f\163\141\155\154\137\x61\x64\x6d\x69\156\x5f\x63\x75\x73\x74\157\155\x65\162\137\x6b\x65\171", $AQ["\151\x64"]);
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\141\144\x6d\x69\156\x5f\141\160\x69\x5f\153\145\171", $AQ["\x61\160\151\x4b\x65\x79"]);
        update_site_option("\x6d\157\x5f\x73\141\155\154\x5f\x63\165\163\164\157\x6d\x65\x72\137\x74\x6f\x6b\145\x6e", $AQ["\164\157\153\x65\156"]);
        update_site_option("\x6d\x6f\137\x73\141\x6d\154\x5f\141\144\x6d\x69\156\x5f\160\x61\x73\x73\167\x6f\x72\x64", '');
        update_site_option("\155\x6f\137\x73\141\155\x6c\137\155\x65\x73\163\x61\147\x65", "\x54\x68\x61\x6e\x6b\x20\171\x6f\165\40\146\157\x72\x20\x72\145\147\151\x73\164\x65\x72\151\x6e\x67\x20\167\x69\x74\150\40\x6d\x69\x6e\151\x6f\x72\x61\x6e\x67\x65\56");
        update_site_option("\x6d\x6f\x5f\163\141\155\154\x5f\162\145\x67\x69\163\x74\162\141\x74\151\x6f\x6e\137\163\x74\x61\x74\165\x73", '');
        delete_site_option("\x6d\x6f\x5f\x73\x61\155\x6c\137\166\x65\162\x69\x66\171\x5f\143\165\163\x74\157\155\145\162");
        delete_site_option("\x6d\x6f\137\x73\x61\155\x6c\137\x6e\x65\167\x5f\x72\145\x67\x69\x73\x74\162\x61\x74\151\157\x6e");
        $this->mo_saml_show_success_message();
        w_:
        update_site_option("\155\x6f\137\163\141\155\x6c\137\x61\x64\155\151\156\x5f\160\141\163\x73\x77\x6f\162\144", '');
    }
    function get_current_customer()
    {
        $IV = new CustomerSaml();
        $T0 = $IV->get_customer_key($this);
        if ($T0) {
            goto k0;
        }
        return;
        k0:
        $AQ = json_decode($T0, true);
        if (json_last_error() == JSON_ERROR_NONE) {
            goto L5;
        }
        update_site_option("\155\x6f\x5f\x73\x61\155\x6c\137\155\x65\x73\x73\x61\x67\x65", "\x59\x6f\165\40\141\154\162\145\x61\x64\x79\x20\x68\141\166\145\40\x61\x6e\x20\141\x63\x63\x6f\x75\x6e\x74\x20\x77\151\x74\x68\40\155\x69\x6e\151\x4f\162\x61\x6e\147\145\56\x20\120\x6c\145\141\163\x65\x20\145\156\164\145\x72\40\141\40\166\x61\x6c\151\144\x20\x70\141\x73\x73\x77\x6f\x72\x64\56");
        update_site_option("\x6d\157\x5f\163\x61\155\x6c\137\166\x65\x72\x69\146\x79\137\143\165\x73\x74\x6f\x6d\x65\162", "\164\162\x75\145");
        delete_site_option("\155\x6f\x5f\163\x61\x6d\154\137\156\145\167\137\x72\145\x67\151\163\x74\x72\x61\164\151\157\x6e");
        $this->mo_saml_show_error_message();
        goto ua;
        L5:
        update_site_option("\x6d\x6f\x5f\163\x61\155\x6c\x5f\x61\x64\155\151\x6e\137\x63\165\x73\164\x6f\155\x65\x72\137\153\x65\171", $AQ["\151\144"]);
        update_site_option("\155\x6f\137\163\x61\x6d\x6c\137\x61\x64\155\151\156\x5f\141\x70\151\137\153\145\x79", $AQ["\141\160\151\x4b\145\171"]);
        update_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\x5f\143\x75\163\x74\x6f\155\x65\162\x5f\164\157\153\x65\156", $AQ["\164\x6f\153\145\x6e"]);
        update_site_option("\155\x6f\x5f\163\x61\155\x6c\137\x61\144\155\x69\156\x5f\x70\141\163\x73\167\x6f\162\x64", '');
        update_site_option("\x6d\x6f\x5f\163\141\155\154\137\x6d\x65\163\163\141\147\x65", "\x59\x6f\165\x72\40\141\x63\143\x6f\165\x6e\x74\40\150\x61\163\x20\x62\145\x65\156\x20\x72\145\164\x72\151\x65\166\x65\x64\40\x73\165\143\143\x65\x73\163\146\165\154\x6c\x79\x2e");
        delete_site_option("\155\x6f\x5f\163\x61\155\x6c\x5f\166\x65\x72\151\x66\x79\x5f\143\x75\163\164\x6f\x6d\145\x72");
        delete_site_option("\155\x6f\137\x73\x61\x6d\154\x5f\156\145\x77\x5f\x72\145\x67\x69\163\164\x72\141\x74\x69\157\x6e");
        $this->mo_saml_show_success_message();
        ua:
    }
    function miniorange_sso_menu()
    {
        $HI = add_menu_page("\x4d\117\x20\123\101\x4d\x4c\40\x53\x65\164\164\151\x6e\147\x73\40" . __("\103\x6f\x6e\146\x69\x67\165\x72\145\x20\x53\101\x4d\x4c\x20\111\144\145\x6e\x74\x69\164\171\40\x50\162\x6f\x76\x69\144\145\162\40\x66\x6f\162\40\123\x53\x4f", "\x6d\157\x5f\x73\x61\155\154\x5f\x73\145\x74\x74\151\x6e\147\x73"), "\155\x69\156\151\117\x72\x61\x6e\x67\145\40\x53\101\x4d\114\40\62\56\60\40\x53\123\117", "\141\144\155\x69\x6e\x69\163\x74\162\141\164\x6f\162", "\x6d\x6f\x5f\163\x61\x6d\x6c\137\163\x65\164\x74\151\x6e\x67\163", array($this, "\155\157\x5f\154\157\x67\151\x6e\x5f\x77\x69\x64\147\x65\x74\137\x73\141\155\154\x5f\x6f\x70\x74\x69\157\156\x73"), plugin_dir_url(__FILE__) . "\x69\155\141\147\x65\163\x2f\155\151\156\151\157\x72\x61\x6e\147\x65\56\x70\x6e\147");
        if (!Mo_License_Service::is_customer_license_valid(false, false)) {
            goto ly;
        }
        add_submenu_page("\155\157\137\x73\141\x6d\154\137\163\x65\x74\x74\151\x6e\x67\x73", "\x6d\x69\x6e\151\117\162\x61\x6e\x67\x65\x20\x53\x41\115\x4c\x20\62\x2e\60\x20\123\x53\x4f", __("\74\x64\151\x76\40\151\x64\x3d\x22\x6d\x6f\137\163\x61\155\154\137\141\x64\144\157\156\163\x5f\163\x75\142\x6d\x65\156\165\42\76\x41\144\144\x2d\x4f\156\163\x3c\57\144\151\x76\76", "\155\x69\x6e\x69\157\162\x61\156\147\145\55\163\141\x6d\x6c\55\x32\x30\55\x73\x69\156\147\x6c\145\x2d\x73\151\x67\156\x2d\157\156"), "\x6d\x61\156\141\147\145\137\157\160\x74\151\x6f\x6e\163", "\155\x6f\137\163\x61\x6d\154\x5f\163\145\164\164\x69\x6e\x67\x73\x26\164\141\142\x3d\x61\144\144\x2d\157\x6e\163", array($this, "\155\157\137\x6c\157\147\151\x6e\x5f\167\151\x64\147\145\x74\137\163\141\155\154\x5f\x6f\x70\164\151\x6f\156\163"));
        ly:
        add_submenu_page("\155\x6f\137\163\141\155\154\137\x73\145\x74\x74\x69\156\x67\x73", "\105\x72\162\157\162\x20\103\x6f\x64\145\163", "\x45\162\x72\x6f\162\40\x43\157\144\145\163", "\141\144\155\x69\156\151\x73\x74\x72\141\x74\157\x72", "\155\x6f\x5f\145\x72\x72\157\162\x5f\143\x6f\x64\145\163", array("\x4d\x6f\137\x53\141\155\154\x5f\105\x72\x72\x6f\x72\x5f\x43\157\144\x65\163\x5f\126\151\x65\x77", "\x6d\157\137\163\x61\155\154\137\147\145\x74\137\x65\x72\162\157\162\137\x63\x6f\144\145\163\137\x76\151\145\x77"));
    }
    function mo_saml_redirect_for_authentication($Gx)
    {
        if (!Mo_License_Service::is_customer_license_valid()) {
            goto Eu;
        }
        $rw = maybe_unserialize(get_site_option("\x73\141\x6d\x6c\x5f\x73\x73\157\x5f\x73\145\x74\x74\151\156\147\163"));
        $rT = Utilities::get_active_sites();
        $GW = get_current_blog_id();
        if (Utilities::mo_saml_in_array($GW, $rT)) {
            goto Fo;
        }
        return;
        Fo:
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\x46\101\x55\x4c\124"]))) {
            goto f4;
        }
        $rw[$GW] = $rw["\x44\x45\x46\x41\x55\114\124"];
        f4:
        if (!empty($rw[$GW]["\155\157\x5f\163\141\155\154\x5f\162\x65\147\x69\163\164\145\x72\x65\144\137\157\156\154\x79\137\x61\143\143\x65\163\163"]) && $rw[$GW]["\x6d\157\137\163\x61\x6d\154\x5f\162\x65\147\151\163\164\x65\162\145\x64\137\x6f\156\154\171\x5f\x61\x63\x63\145\x73\x73"] == "\x74\162\x75\x65" || !empty($rw[$GW]["\155\157\x5f\163\x61\x6d\x6c\x5f\145\156\141\142\154\x65\137\154\157\147\151\156\137\x72\145\144\151\x72\x65\143\x74"]) && $rw[$GW]["\155\157\x5f\x73\141\x6d\x6c\x5f\x65\156\x61\142\x6c\145\x5f\x6c\157\147\151\x6e\137\162\145\144\x69\x72\145\x63\x74"] == "\x74\x72\165\145") {
            goto b1;
        }
        if (!empty($rw[$GW]["\x6d\x6f\137\x73\141\x6d\154\x5f\x72\x65\144\151\162\145\x63\x74\137\x74\157\137\167\160\137\x6c\x6f\x67\x69\x6e"]) and $rw[$GW]["\x6d\157\x5f\163\141\155\154\x5f\x72\145\x64\151\x72\x65\143\x74\x5f\164\157\137\167\160\x5f\154\x6f\x67\151\156"] == "\x74\162\165\x65") {
            goto Dx;
        }
        goto ag;
        b1:
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
            goto qm;
        }
        $fs = get_site_option("\155\x6f\x5f\x73\141\155\x6c\x5f\x73\160\x5f\142\141\x73\x65\x5f\x75\x72\154");
        if (!empty($fs)) {
            goto sM;
        }
        $fs = get_network_site_url();
        sM:
        if (empty($rw[$GW]["\x6d\x6f\137\163\x61\155\x6c\137\x72\x65\154\141\171\x5f\163\164\141\x74\x65"])) {
            goto KP;
        }
        $Gx = $rw[$GW]["\x6d\157\137\163\x61\x6d\x6c\137\162\x65\x6c\141\x79\x5f\x73\x74\141\x74\x65"];
        KP:
        $rt = $Gx;
        $Mu = get_site_option("\x73\x61\155\x6c\137\x6c\157\147\x69\156\137\165\162\154");
        $Vh = !empty(get_site_option("\x73\x61\155\x6c\137\154\157\x67\151\x6e\x5f\142\x69\156\x64\x69\x6e\x67\x5f\164\171\x70\x65")) ? get_site_option("\163\141\155\x6c\x5f\x6c\x6f\147\151\x6e\x5f\142\151\156\144\x69\156\x67\x5f\x74\x79\160\145") : "\110\164\x74\x70\x50\x6f\163\x74";
        $rw = maybe_unserialize(get_site_option("\x73\141\x6d\154\137\163\163\157\x5f\163\145\x74\x74\x69\x6e\147\163"));
        $GW = get_current_blog_id();
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\x46\x41\125\x4c\124"]))) {
            goto OY;
        }
        $rw[$GW] = $rw["\x44\x45\x46\x41\x55\x4c\124"];
        OY:
        if (!empty($rw[$GW]["\155\x6f\137\x73\141\x6d\154\x5f\x66\x6f\162\x63\x65\x5f\x61\x75\x74\150\145\x6e\x74\151\x63\x61\164\151\157\156"])) {
            goto f2;
        }
        $cF = '';
        goto Xm;
        f2:
        $cF = $rw[$GW]["\155\x6f\x5f\163\x61\155\154\x5f\x66\157\x72\143\x65\137\x61\165\164\150\x65\x6e\x74\x69\143\141\x74\x69\x6f\x6e"];
        Xm:
        $lR = $fs . "\57";
        $VQ = get_site_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\x73\160\137\x65\156\164\151\x74\171\137\x69\x64");
        $hY = get_site_option("\x73\141\155\x6c\x5f\156\x61\x6d\145\x69\x64\x5f\x66\x6f\162\x6d\141\164");
        if (!empty($hY)) {
            goto mU;
        }
        $hY = "\x31\56\x31\72\x6e\141\x6d\x65\151\x64\55\146\x6f\162\155\x61\x74\72\x75\x6e\163\x70\x65\143\x69\146\151\x65\x64";
        mU:
        if (!empty($VQ)) {
            goto q5;
        }
        $VQ = $fs . "\x2f\167\x70\x2d\x63\157\156\164\x65\x6e\164\x2f\160\x6c\x75\x67\x69\156\163\x2f\x6d\151\x6e\x69\157\x72\x61\156\x67\145\55\163\141\155\154\55\62\60\55\x73\x69\x6e\x67\x6c\145\55\163\151\x67\156\x2d\x6f\156\57";
        q5:
        $mb = Utilities::createAuthnRequest($lR, $VQ, $Mu, $cF, $Vh, $hY);
        $rt = mo_saml_relaystate_url($rt);
        if ($Vh == "\110\x74\x74\160\122\x65\144\x69\x72\145\x63\x74") {
            goto lF;
        }
        if (!(get_site_option("\x73\141\x6d\154\x5f\162\x65\x71\x75\145\163\x74\137\x73\x69\147\156\x65\144") == "\x75\156\x63\x68\x65\x63\153\x65\144")) {
            goto JU;
        }
        $E2 = base64_encode($mb);
        Utilities::postSAMLRequest($Mu, $E2, $rt);
        exit;
        JU:
        $at = '';
        $Wv = '';
        $E2 = Utilities::signXML($mb, "\116\x61\x6d\145\x49\104\x50\x6f\x6c\x69\143\171");
        Utilities::postSAMLRequest($Mu, $E2, $rt);
        goto hv;
        lF:
        $Ox = htmlspecialchars_decode($Mu);
        if (strpos($Mu, "\x3f") !== false) {
            goto UG;
        }
        $Ox .= "\77";
        goto gp;
        UG:
        $Ox .= "\x26";
        gp:
        if (!(get_site_option("\163\x61\155\x6c\137\162\x65\161\165\145\163\x74\x5f\x73\151\x67\x6e\145\144") == "\165\x6e\143\x68\145\x63\153\145\x64")) {
            goto U4;
        }
        $Ox .= "\x53\x41\x4d\114\x52\x65\161\165\x65\x73\164\75" . $mb . "\x26\122\145\154\x61\x79\x53\x74\x61\164\x65\x3d" . urlencode($rt);
        header("\114\x6f\x63\141\x74\151\157\156\x3a\40" . $Ox);
        exit;
        U4:
        $mb = "\123\x41\115\x4c\x52\x65\161\x75\x65\163\164\x3d" . $mb . "\46\122\145\x6c\141\171\x53\x74\141\x74\145\75" . urlencode($rt) . "\46\123\x69\147\x41\154\147\x3d" . urlencode(XMLSecurityKey::RSA_SHA256);
        $HH = array("\164\x79\160\145" => "\x70\162\x69\166\141\164\x65");
        $ns = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, $HH);
        $KH = get_site_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\x63\165\162\x72\145\156\x74\x5f\x63\145\x72\164\137\160\162\151\x76\141\x74\x65\x5f\153\145\171");
        $ns->loadKey($KH, FALSE);
        $TI = new XMLSecurityDSig();
        $Pw = $ns->signData($mb);
        $Pw = base64_encode($Pw);
        $Ox .= $mb . "\46\x53\x69\x67\x6e\x61\164\165\x72\x65\75" . urlencode($Pw);
        header("\114\157\x63\x61\x74\x69\x6f\156\72\40" . $Ox);
        exit;
        hv:
        qm:
        goto ag;
        Dx:
        if (!(mo_saml_is_sp_configured() && !is_user_logged_in())) {
            goto cO;
        }
        $qp = get_site_url($GW) . "\57\167\160\55\x6c\x6f\147\151\156\x2e\160\x68\160";
        if (empty($Gx)) {
            goto TL;
        }
        $qp = $qp . "\77\162\x65\144\x69\162\145\x63\164\x5f\x74\157\75" . urlencode($Gx) . "\46\162\x65\x61\x75\x74\150\x3d\61";
        TL:
        header("\114\157\143\x61\x74\x69\157\156\x3a\40" . $qp);
        exit;
        cO:
        ag:
        Eu:
    }
    function mo_saml_authenticate()
    {
        $Xu = '';
        if (empty($_REQUEST["\x72\145\144\151\x72\145\x63\x74\x5f\x74\x6f"])) {
            goto vp;
        }
        $Xu = $_REQUEST["\162\145\x64\151\162\x65\143\164\137\x74\157"];
        vp:
        if (!is_user_logged_in()) {
            goto Fr;
        }
        if (!empty($Xu)) {
            goto v_;
        }
        $qp = saml_get_current_page_url();
        if (!(strpos($qp, "\x77\160\x2d\x6c\157\147\x69\x6e\56\x70\x68\x70") !== false)) {
            goto HF;
        }
        $qp = str_replace("\167\160\x2d\154\x6f\x67\151\x6e\56\x70\150\x70", '', $qp);
        if (!filter_var($qp, FILTER_VALIDATE_URL)) {
            goto ne;
        }
        header("\114\x6f\143\141\x74\151\x6f\x6e\x3a\40" . $qp);
        exit;
        ne:
        HF:
        goto Yo;
        v_:
        header("\114\x6f\x63\x61\164\x69\x6f\156\x3a\x20" . $Xu);
        exit;
        Yo:
        Fr:
        global $blog_id;
        $rw = maybe_unserialize(get_site_option("\163\141\155\x6c\137\163\163\157\137\163\145\x74\x74\x69\x6e\x67\x73"));
        $GW = get_current_blog_id();
        $rT = Utilities::get_active_sites();
        if (Utilities::mo_saml_in_array($GW, $rT)) {
            goto nf;
        }
        return;
        nf:
        if (!(empty($rw[$GW]) && !empty($rw["\104\x45\x46\x41\125\114\124"]))) {
            goto uN;
        }
        $rw[$GW] = $rw["\x44\x45\106\101\x55\x4c\x54"];
        uN:
        if (!(!empty($rw[$GW]["\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\145\x6e\x61\x62\154\x65\137\x6c\x6f\147\x69\156\137\162\x65\144\x69\162\145\143\x74"]) and $rw[$GW]["\x6d\157\137\163\141\155\154\x5f\x65\x6e\141\x62\x6c\x65\137\x6c\157\x67\151\156\137\162\x65\144\x69\162\x65\x63\x74"] == "\164\x72\165\x65")) {
            goto de;
        }
        if (Mo_License_Service::is_customer_license_valid()) {
            goto OO;
        }
        return;
        OO:
        $iZ = !empty($rw[$GW]["\155\x6f\x5f\x73\x61\x6d\x6c\x5f\142\x61\x63\x6b\144\x6f\x6f\162\137\165\x72\154"]) ? trim($rw[$GW]["\x6d\x6f\137\163\x61\155\154\137\142\141\x63\153\x64\157\x6f\x72\137\165\x72\x6c"]) : "\x66\x61\154\163\145";
        if (!empty($_GET["\154\x6f\147\147\145\144\x6f\165\x74"]) && $_GET["\154\x6f\147\147\x65\x64\157\165\164"] == "\164\162\165\x65") {
            goto xf;
        }
        if (!empty($rw[$GW]["\155\157\x5f\163\141\155\154\x5f\141\x6c\154\x6f\167\137\x77\x70\137\x73\151\x67\156\x69\x6e"]) and $rw[$GW]["\155\157\137\163\141\x6d\154\x5f\x61\154\x6c\157\x77\x5f\x77\160\x5f\x73\151\x67\x6e\x69\156"] == "\164\x72\x75\x65") {
            goto KG;
        }
        goto lz;
        xf:
        header("\114\x6f\143\x61\x74\151\x6f\156\72\40" . get_network_site_url());
        exit;
        goto lz;
        KG:
        if (!empty($_GET["\x73\x61\155\x6c\x5f\x73\163\x6f"]) && $_GET["\x73\141\x6d\154\x5f\163\x73\157"] == $iZ || !empty($_POST["\x73\141\x6d\154\137\163\x73\x6f"]) && $_POST["\163\x61\155\x6c\x5f\163\x73\x6f"] == $iZ) {
            goto UD;
        }
        if (!empty($_REQUEST["\162\145\x64\x69\x72\145\143\x74\137\164\157"])) {
            goto oh;
        }
        goto fz;
        UD:
        return;
        goto fz;
        oh:
        $Xu = $_REQUEST["\162\145\144\x69\x72\x65\143\x74\x5f\164\157"];
        if (!(strpos($Xu, "\x77\x70\x2d\141\144\155\151\156") !== false && strpos($Xu, "\163\x61\x6d\154\x5f\163\x73\157\x3d" . $iZ) !== false)) {
            goto cC;
        }
        return;
        cC:
        fz:
        lz:
        if (!empty($Xu)) {
            goto Ot;
        }
        $Xu = saml_get_current_page_url();
        Ot:
        $this->mo_saml_redirect_for_authentication($Xu);
        de:
    }
    function mo_saml_auto_redirect()
    {
        if (!current_user_can("\162\x65\x61\144")) {
            goto d2;
        }
        return;
        d2:
        global $blog_id;
        $rw = maybe_unserialize(get_site_option("\163\141\x6d\154\x5f\x73\163\157\x5f\163\145\x74\x74\x69\x6e\147\x73"));
        $GW = get_current_blog_id();
        $rT = Utilities::get_active_sites();
        if (Utilities::mo_saml_in_array($GW, $rT)) {
            goto Q2;
        }
        return;
        Q2:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\x45\106\101\125\114\124"]))) {
            goto Qs;
        }
        $rw[$GW] = $rw["\x44\105\106\x41\x55\114\x54"];
        Qs:
        if (is_user_logged_in() && !empty($rw[$GW]["\x6d\157\x5f\x73\x61\155\154\x5f\x73\x75\x62\x73\x69\x74\145\x5f\x61\x63\x63\x65\163\x73\137\x64\x65\156\x69\x65\x64"])) {
            goto Z8;
        }
        if (!((!empty($rw[$GW]["\155\157\x5f\163\x61\x6d\x6c\x5f\x72\145\x67\x69\x73\164\x65\x72\145\x64\x5f\157\x6e\154\171\x5f\x61\x63\x63\145\163\163"]) and $rw[$GW]["\155\157\x5f\x73\x61\155\x6c\x5f\x72\x65\x67\x69\x73\x74\x65\162\145\x64\137\157\156\154\171\x5f\141\x63\x63\x65\163\163"] == "\x74\162\x75\x65") || (!empty($rw[$GW]["\x6d\157\x5f\x73\x61\155\154\x5f\162\145\144\151\162\145\143\x74\137\164\157\x5f\x77\160\x5f\154\x6f\x67\x69\156"]) and $rw[$GW]["\x6d\157\x5f\163\141\x6d\154\137\x72\x65\144\x69\x72\145\x63\x74\137\164\x6f\137\167\160\137\154\157\x67\151\156"] == "\164\x72\165\x65"))) {
            goto N5;
        }
        $j5 = $_SERVER["\110\x54\x54\x50\x5f\110\117\x53\124"];
        if (!(substr($j5, -1) == "\57")) {
            goto kn;
        }
        $j5 = substr($j5, 0, -1);
        kn:
        $Cg = $_SERVER["\x52\105\121\125\x45\123\x54\x5f\125\x52\111"];
        if (!(substr($Cg, 0, 1) == "\x2f")) {
            goto tY;
        }
        $Cg = substr($Cg, 1);
        tY:
        $Gx = "\150\x74\164\160" . (!empty($_SERVER["\110\x54\124\120\x53"]) ? "\x73" : '') . "\x3a\57\x2f" . $j5 . "\x2f" . $Cg;
        $this->mo_saml_redirect_for_authentication($Gx);
        N5:
        goto hf;
        Z8:
        global $current_user;
        if (is_user_member_of_blog($current_user->ID)) {
            goto pC;
        }
        $this->mo_saml_admin_page_access_denied();
        pC:
        hf:
    }
    function mo_saml_modify_login_form()
    {
        $rw = maybe_unserialize(get_site_option("\x73\141\155\x6c\x5f\x73\x73\157\137\163\x65\x74\164\151\x6e\147\x73"));
        $GW = get_current_blog_id();
        $rT = Utilities::get_active_sites();
        if (Utilities::mo_saml_in_array($GW, $rT)) {
            goto wW;
        }
        return;
        wW:
        if (!(!Mo_License_Service::is_customer_license_valid() || !mo_saml_is_sp_configured())) {
            goto jm;
        }
        return;
        jm:
        if (!(empty($rw[$GW]) && !empty($rw["\104\105\106\101\x55\x4c\x54"]))) {
            goto A8;
        }
        $rw[$GW] = $rw["\x44\105\106\101\125\114\x54"];
        A8:
        $iZ = !empty($rw[$GW]["\x6d\x6f\x5f\x73\141\155\154\137\142\141\x63\x6b\144\x6f\x6f\x72\x5f\x75\x72\x6c"]) ? trim($rw[$GW]["\155\x6f\x5f\x73\x61\x6d\154\137\142\x61\143\153\x64\157\x6f\x72\x5f\165\162\154"]) : "\146\141\x6c\163\x65";
        echo "\x3c\x69\156\160\x75\164\40\164\171\x70\145\x3d\42\x68\x69\144\x64\145\156\x22\x20\156\x61\x6d\145\75\42\163\x61\x6d\x6c\x5f\x73\163\157\42\40\166\141\154\x75\x65\x3d\x22" . $iZ . "\x22\x3e" . "\xa";
        if (!(!empty($rw[$GW]["\x6d\157\137\163\x61\x6d\154\x5f\141\144\x64\x5f\x73\x73\x6f\x5f\x62\x75\164\164\x6f\156\137\x77\160"]) and $rw[$GW]["\x6d\x6f\137\163\x61\x6d\154\137\141\144\144\137\163\163\x6f\137\142\165\164\x74\157\156\x5f\x77\x70"] == "\x74\162\x75\145")) {
            goto CP;
        }
        $this->mo_saml_add_sso_button();
        CP:
    }
    function mo_saml_add_sso_button()
    {
        $rw = maybe_unserialize(get_site_option("\x73\141\x6d\x6c\x5f\x73\x73\157\137\163\x65\164\x74\x69\156\147\163"));
        $GW = get_current_blog_id();
        $rT = Utilities::get_active_sites();
        if (Utilities::mo_saml_in_array($GW, $rT)) {
            goto LC;
        }
        return;
        LC:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\105\x46\101\125\114\124"]))) {
            goto Qm;
        }
        $rw[$GW] = $rw["\104\x45\106\x41\125\x4c\x54"];
        Qm:
        if (is_user_logged_in()) {
            goto GUu;
        }
        $fs = home_url();
        $TD = !empty($rw[$GW]["\x6d\157\x5f\163\141\x6d\154\x5f\x62\165\164\x74\157\x6e\x5f\167\151\144\x74\x68"]) ? $rw[$GW]["\x6d\x6f\137\x73\141\x6d\x6c\x5f\x62\x75\164\164\x6f\x6e\137\x77\151\x64\x74\x68"] : "\61\x30\60";
        $ng = !empty($rw[$GW]["\155\157\x5f\x73\141\155\154\x5f\142\165\164\x74\157\x6e\x5f\x68\x65\151\x67\x68\164"]) ? $rw[$GW]["\155\157\x5f\163\141\155\x6c\x5f\142\165\164\164\157\x6e\x5f\x68\145\151\x67\x68\x74"] : "\x35\60";
        $QT = !empty($rw[$GW]["\x6d\157\x5f\163\x61\155\154\x5f\142\165\x74\164\157\156\137\x73\x69\172\x65"]) ? $rw[$GW]["\155\x6f\137\163\x61\155\154\137\x62\165\x74\164\157\156\x5f\x73\151\x7a\145"] : "\x35\60";
        $zY = !empty($rw[$GW]["\155\157\137\163\x61\x6d\x6c\137\142\x75\x74\164\157\x6e\137\x63\165\x72\x76\145"]) ? $rw[$GW]["\155\157\137\163\x61\155\x6c\137\142\165\164\164\x6f\156\x5f\x63\165\162\x76\145"] : "\x35";
        $Pm = !empty($rw[$GW]["\x6d\x6f\x5f\x73\141\155\154\137\x62\165\164\x74\157\x6e\137\x63\x6f\x6c\157\x72"]) ? $rw[$GW]["\155\x6f\137\163\141\x6d\154\137\142\165\x74\x74\157\156\137\143\x6f\x6c\x6f\x72"] : "\60\60\x38\x35\x62\x61";
        $rg = !empty($rw[$GW]["\x6d\x6f\137\x73\141\155\154\137\x62\165\x74\x74\157\x6e\137\164\150\x65\155\x65"]) ? $rw[$GW]["\155\x6f\x5f\x73\141\155\x6c\x5f\142\x75\164\x74\x6f\156\137\164\x68\145\155\x65"] : "\x6c\x6f\x6e\x67\142\165\x74\x74\157\x6e";
        $nh = !empty($rw[$GW]["\x6d\157\x5f\x73\141\155\x6c\x5f\142\165\164\164\x6f\156\x5f\164\145\x78\x74"]) ? $rw[$GW]["\155\x6f\x5f\x73\141\155\154\137\142\x75\x74\x74\x6f\156\x5f\164\145\x78\164"] : (get_site_option("\163\141\x6d\154\137\151\144\145\156\164\151\x74\x79\137\156\141\x6d\145") ? get_site_option("\163\141\155\154\x5f\x69\x64\145\156\x74\x69\164\x79\x5f\x6e\141\x6d\145") : "\x4c\157\147\x69\156");
        $i8 = !empty($rw[$GW]["\x6d\157\x5f\163\141\x6d\154\137\x66\157\156\x74\x5f\143\x6f\154\x6f\162"]) ? $rw[$GW]["\155\157\x5f\163\x61\155\x6c\137\146\x6f\x6e\164\x5f\143\x6f\x6c\x6f\x72"] : "\x66\x66\146\x66\x66\146";
        $SY = !empty($rw[$GW]["\x6d\x6f\x5f\163\141\x6d\154\x5f\146\x6f\x6e\x74\x5f\x73\151\x7a\x65"]) ? $rw[$GW]["\155\157\137\x73\x61\155\154\x5f\146\x6f\156\x74\137\x73\x69\x7a\145"] : "\x32\x30";
        $BM = !empty($rw[$GW]["\163\163\157\137\x62\x75\164\164\157\x6e\x5f\154\x6f\x67\x69\156\x5f\146\x6f\162\155\x5f\160\x6f\x73\151\x74\151\157\156"]) ? $rw[$GW]["\x73\x73\157\x5f\142\165\164\164\x6f\156\137\154\157\x67\x69\156\x5f\x66\157\x72\x6d\x5f\x70\x6f\163\x69\x74\151\157\156"] : "\x61\x62\157\x76\x65";
        $fm = "\74\x69\x6e\x70\165\x74\40\164\x79\x70\145\x3d\x22\142\x75\164\164\157\x6e\42\40\156\x61\x6d\145\75\42\x6d\x6f\137\x73\x61\x6d\x6c\x5f\167\x70\137\x73\x73\x6f\x5f\x62\x75\x74\x74\157\156\x22\x20\166\141\x6c\165\x65\75\42" . $nh . "\x22\x20\163\164\x79\154\145\75\42";
        $a9 = "\x63\165\162\163\157\162\x3a\x70\x6f\151\156\x74\145\162\73";
        if ($rg == "\x6c\x6f\x6e\147\142\165\164\164\157\x6e") {
            goto pN9;
        }
        if ($rg == "\x63\x69\x72\143\x6c\x65") {
            goto D3g;
        }
        if ($rg == "\157\166\141\154") {
            goto X6d;
        }
        if ($rg == "\163\x71\x75\141\x72\x65") {
            goto dgs;
        }
        goto mYU;
        D3g:
        $a9 = $a9 . "\167\151\144\164\150\72" . $QT . "\160\x78\x3b";
        $a9 = $a9 . "\x68\145\151\x67\x68\x74\x3a" . $QT . "\160\170\73";
        $a9 = $a9 . "\142\157\162\x64\x65\x72\x2d\162\x61\144\151\165\x73\x3a\71\x39\x39\x70\170\x3b";
        goto mYU;
        X6d:
        $a9 = $a9 . "\x77\151\144\164\x68\72" . $QT . "\x70\x78\73";
        $a9 = $a9 . "\150\145\151\147\x68\x74\72" . $QT . "\160\170\x3b";
        $a9 = $a9 . "\x62\x6f\162\144\x65\162\x2d\x72\x61\x64\x69\x75\163\72\x35\x70\x78\73";
        goto mYU;
        dgs:
        $a9 = $a9 . "\x77\151\x64\164\x68\72" . $QT . "\x70\x78\73";
        $a9 = $a9 . "\150\145\151\147\x68\x74\72" . $QT . "\160\170\x3b";
        $a9 = $a9 . "\142\x6f\x72\x64\x65\162\x2d\x72\141\144\x69\165\163\x3a\x30\160\170\x3b";
        $a9 = $a9 . "\160\141\x64\x64\x69\156\147\72\x30\160\170\x3b";
        mYU:
        goto DEj;
        pN9:
        $a9 = $a9 . "\167\x69\144\164\150\72" . $TD . "\160\x78\73";
        $a9 = $a9 . "\x68\145\x69\x67\150\x74\72" . $ng . "\160\x78\73";
        $a9 = $a9 . "\x62\157\162\144\x65\162\55\x72\x61\144\151\165\163\72" . $zY . "\x70\170\73";
        DEj:
        $a9 = $a9 . "\142\x61\143\x6b\147\162\157\165\156\x64\x2d\143\157\154\157\162\x3a\43" . $Pm . "\73";
        $a9 = $a9 . "\x62\157\x72\144\145\162\x2d\143\x6f\154\x6f\x72\x3a\164\x72\x61\156\163\x70\141\162\145\x6e\164\73";
        $a9 = $a9 . "\143\157\x6c\157\x72\72\43" . $i8 . "\x3b";
        $a9 = $a9 . "\x66\x6f\x6e\164\x2d\x73\x69\172\x65\72" . $SY . "\160\170\x3b";
        $fm = $fm . $a9 . "\42\x2f\76";
        $Xu = urlencode(saml_get_current_page_url());
        if (empty($_GET["\x72\x65\x64\151\x72\x65\x63\164\x5f\164\x6f"])) {
            goto LFL;
        }
        $Xu = urlencode($_GET["\x72\x65\144\151\162\x65\x63\164\x5f\x74\157"]);
        LFL:
        $eu = "\74\x61\40\150\x72\145\x66\x3d\42" . $fs . "\x2f\x3f\x6f\x70\164\151\x6f\x6e\75\163\x61\155\154\137\x75\x73\x65\162\x5f\154\x6f\147\x69\156\46\162\x65\144\151\x72\145\143\x74\x5f\x74\157\x3d" . $Xu . "\42\x20\x73\164\171\x6c\x65\75\x22\x74\145\170\164\x2d\x64\x65\x63\x6f\x72\141\164\x69\157\x6e\x3a\x6e\x6f\156\145\x22\76" . $fm . "\x3c\x2f\x61\76";
        $eu = "\x3c\x64\x69\x76\x20\x73\164\x79\154\x65\75\x22\160\x61\x64\x64\x69\x6e\147\x2d\x62\x6f\x74\x74\157\155\72\61\x30\160\x78\x3b\42\76" . $eu . "\x3c\57\x64\x69\x76\x3e";
        if ($BM == "\x61\x62\157\166\x65") {
            goto M5w;
        }
        $eu = "\74\144\151\166\x20\x69\x64\75\x22\x73\163\157\x5f\142\x75\x74\x74\x6f\x6e\42\x20\x73\164\x79\154\x65\x3d\x22\x74\145\x78\164\x2d\x61\154\151\147\x6e\72\143\x65\x6e\164\x65\x72\x22\x3e\74\144\151\166\40\163\x74\171\x6c\145\x3d\x22\160\141\x64\x64\151\x6e\x67\x3a\65\160\170\x3b\x66\157\156\164\55\163\x69\x7a\145\72\61\x34\x70\x78\x3b\x22\x3e\x3c\x62\x3e\117\122\x3c\57\142\76\x3c\x2f\x64\151\x76\76" . $eu . "\74\x2f\144\x69\x76\x3e\x3c\x62\162\57\x3e";
        goto zaj;
        M5w:
        $eu = "\74\x64\151\166\x20\151\144\x3d\42\163\163\x6f\137\x62\165\x74\x74\x6f\156\42\40\x73\x74\171\x6c\x65\75\42\164\145\x78\164\x2d\141\x6c\151\147\156\72\x63\x65\156\x74\x65\162\42\76" . $eu . "\x3c\144\151\166\x20\x73\164\x79\154\145\x3d\x22\x70\x61\x64\144\151\156\x67\72\65\x70\170\x3b\146\157\156\x74\55\x73\x69\172\145\x3a\61\x34\160\170\x3b\x22\76\74\142\76\x4f\122\74\x2f\x62\76\74\x2f\144\x69\x76\76\x3c\x2f\144\151\x76\76\74\x62\x72\x2f\x3e";
        $eu = $eu . "\x3c\x73\x63\162\151\160\164\x3e\xd\xa\11\x9\11\11\x76\141\x72\x20\44\x65\154\145\x6d\x65\156\164\40\x3d\40\152\x51\x75\x65\x72\171\x28\x22\x23\x75\163\145\x72\x5f\154\157\147\151\x6e\x22\x29\x3b\xd\xa\x9\x9\x9\x9\152\x51\x75\145\x72\x79\x28\42\43\163\x73\x6f\137\142\x75\x74\x74\157\x6e\x22\x29\56\x69\156\x73\x65\162\164\x42\x65\146\x6f\162\145\x28\152\121\x75\x65\162\171\x28\x22\x6c\x61\x62\145\x6c\133\x66\x6f\162\75\47\42\x2b\x24\145\x6c\x65\155\x65\156\164\56\141\164\x74\162\50\x27\x69\144\x27\x29\x2b\42\x27\x5d\x22\51\51\73\xd\xa\11\11\11\x9\x3c\57\163\143\162\x69\x70\164\x3e";
        zaj:
        echo $eu;
        GUu:
    }
    function mo_get_saml_shortcode()
    {
        $rw = maybe_unserialize(get_site_option("\x73\141\155\x6c\137\x73\163\x6f\x5f\x73\145\x74\164\151\x6e\x67\x73"));
        $GW = get_current_blog_id();
        $rT = Utilities::get_active_sites();
        if (Utilities::mo_saml_in_array($GW, $rT)) {
            goto jsS;
        }
        return;
        jsS:
        if (!(!Mo_License_Service::is_customer_license_valid() || !mo_saml_is_sp_configured())) {
            goto En4;
        }
        return;
        En4:
        if (!(empty($rw[$GW]) && !empty($rw["\x44\x45\x46\x41\125\x4c\x54"]))) {
            goto BPc;
        }
        $rw[$GW] = $rw["\104\x45\106\x41\125\x4c\124"];
        BPc:
        if (!is_user_logged_in()) {
            goto OuQ;
        }
        $current_user = wp_get_current_user();
        $WL = "\110\x65\x6c\154\157\x2c";
        if (empty($rw[$GW]["\155\x6f\x5f\x73\x61\x6d\x6c\137\x63\165\x73\x74\x6f\x6d\137\x67\162\x65\145\164\x69\156\147\x5f\164\145\170\x74"])) {
            goto vRN;
        }
        $WL = $rw[$GW]["\155\157\137\x73\x61\x6d\154\137\x63\x75\163\164\157\155\x5f\x67\162\x65\x65\x74\x69\x6e\147\137\x74\145\170\164"];
        vRN:
        $Y1 = '';
        if (empty($rw[$GW]["\155\x6f\137\163\x61\x6d\154\137\x67\162\x65\145\x74\x69\x6e\x67\x5f\156\x61\155\x65"])) {
            goto Nlj;
        }
        switch ($rw[$GW]["\155\157\137\163\141\x6d\x6c\137\147\162\x65\145\164\151\156\147\x5f\x6e\141\155\145"]) {
            case "\x55\123\x45\122\116\101\115\x45":
                $Y1 = $current_user->user_login;
                goto l2Y;
            case "\x45\x4d\101\111\x4c":
                $Y1 = $current_user->user_email;
                goto l2Y;
            case "\106\x4e\x41\115\105":
                $Y1 = $current_user->user_firstname;
                goto l2Y;
            case "\x4c\x4e\x41\x4d\105":
                $Y1 = $current_user->user_lastname;
                goto l2Y;
            case "\106\116\101\x4d\x45\x5f\x4c\116\x41\x4d\x45":
                $Y1 = $current_user->user_firstname . "\x20" . $current_user->user_lastname;
                goto l2Y;
            case "\x4c\x4e\x41\x4d\105\137\x46\116\x41\115\105":
                $Y1 = $current_user->user_lastname . "\40" . $current_user->user_firstname;
                goto l2Y;
            default:
                $Y1 = $current_user->user_login;
        }
        yd0:
        l2Y:
        Nlj:
        if (!empty(trim($Y1))) {
            goto JGD;
        }
        $Y1 = $current_user->user_login;
        JGD:
        $NQ = $WL . "\40" . $Y1;
        $gl = "\x4c\x6f\147\x6f\x75\164";
        if (empty($rw[$GW]["\155\x6f\x5f\x73\x61\155\154\x5f\143\x75\163\164\x6f\155\x5f\x6c\x6f\x67\157\165\164\x5f\164\x65\x78\x74"])) {
            goto Wnl;
        }
        $gl = $rw[$GW]["\x6d\157\137\x73\141\155\154\137\x63\165\x73\x74\157\x6d\137\154\157\x67\157\165\164\137\x74\145\170\x74"];
        Wnl:
        $eu = $NQ . "\40\174\40\x3c\x61\40\x68\162\145\146\x3d\x22" . wp_logout_url(home_url()) . "\42\x20\164\151\164\x6c\145\75\42\x6c\157\x67\x6f\165\164\x22\40\x3e" . $gl . "\x3c\57\141\x3e\74\x2f\154\151\76";
        goto OxA;
        OuQ:
        $fs = get_site_option("\155\x6f\x5f\x73\141\155\x6c\x5f\x73\160\x5f\142\x61\163\145\x5f\165\x72\154");
        if (!empty($fs)) {
            goto zYw;
        }
        $fs = home_url();
        zYw:
        $ni = "\114\x6f\x67\151\x6e\x20\167\x69\164\150\x20" . get_site_option("\163\x61\155\154\x5f\151\x64\x65\156\x74\151\x74\x79\x5f\x6e\x61\x6d\145");
        if (empty($rw[$GW]["\155\x6f\137\163\x61\x6d\154\x5f\143\165\163\x74\x6f\155\137\x6c\x6f\x67\151\x6e\137\x74\145\x78\x74"])) {
            goto Prz;
        }
        $ni = $rw[$GW]["\x6d\157\137\163\x61\155\x6c\137\x63\165\163\164\x6f\155\137\154\x6f\x67\x69\156\137\164\x65\x78\x74"];
        Prz:
        $m9 = get_site_option("\163\141\155\154\x5f\151\x64\145\156\164\x69\x74\171\x5f\x6e\141\155\145");
        $ni = str_replace("\x23\43\x49\104\120\x23\x23", $m9, $ni);
        $Uz = false;
        if (!(!empty($rw[$GW]["\155\157\137\x73\x61\155\x6c\x5f\165\x73\x65\137\x62\x75\x74\x74\x6f\156\137\141\163\137\x73\150\157\x72\164\x63\157\x64\x65"]) and $rw[$GW]["\x6d\x6f\x5f\x73\141\x6d\154\x5f\165\x73\x65\x5f\142\165\x74\x74\157\156\x5f\x61\163\x5f\163\x68\157\162\164\143\157\144\x65"] == "\x74\x72\x75\x65")) {
            goto L8s;
        }
        $Uz = true;
        L8s:
        if (!$Uz) {
            goto aWx;
        }
        $TD = !empty($rw[$GW]["\x6d\x6f\137\x73\141\155\x6c\137\x62\x75\x74\x74\157\x6e\137\167\151\144\164\x68"]) ? $rw[$GW]["\155\x6f\137\x73\x61\155\154\x5f\142\x75\164\x74\x6f\156\x5f\167\151\144\x74\150"] : "\x31\60\60";
        $ng = !empty($rw[$GW]["\155\157\137\163\x61\x6d\x6c\x5f\x62\165\164\x74\x6f\156\137\x68\x65\151\x67\150\164"]) ? $rw[$GW]["\x6d\157\x5f\x73\141\155\x6c\137\x62\x75\x74\164\x6f\156\x5f\x68\145\151\147\x68\x74"] : "\x35\x30";
        $QT = !empty($rw[$GW]["\155\157\x5f\x73\x61\x6d\x6c\x5f\x62\165\x74\x74\157\156\x5f\x73\151\x7a\x65"]) ? $rw[$GW]["\155\x6f\x5f\163\141\155\x6c\x5f\x62\x75\x74\164\157\x6e\137\163\151\172\x65"] : "\x35\60";
        $zY = !empty($rw[$GW]["\155\x6f\137\163\141\155\x6c\137\x62\x75\x74\164\x6f\x6e\137\x63\x75\x72\x76\x65"]) ? $rw[$GW]["\x6d\157\x5f\163\x61\155\154\137\142\165\164\164\157\156\137\143\165\x72\x76\145"] : "\65";
        $Pm = !empty($rw[$GW]["\155\x6f\x5f\163\x61\155\x6c\x5f\x62\x75\164\164\x6f\x6e\137\x63\x6f\x6c\x6f\x72"]) ? $rw[$GW]["\x6d\x6f\x5f\163\x61\155\x6c\x5f\x62\x75\164\164\x6f\x6e\x5f\143\x6f\x6c\x6f\x72"] : "\60\x30\70\x35\142\x61";
        $rg = !empty($rw[$GW]["\155\157\x5f\x73\x61\x6d\154\x5f\x62\x75\x74\164\x6f\156\x5f\164\150\145\x6d\145"]) ? $rw[$GW]["\x6d\157\x5f\x73\x61\x6d\154\x5f\x62\165\164\x74\x6f\x6e\137\x74\x68\145\x6d\x65"] : "\154\157\x6e\x67\x62\x75\x74\x74\157\x6e";
        $nh = !empty($rw[$GW]["\x6d\x6f\x5f\x73\141\155\x6c\137\142\165\x74\x74\157\x6e\137\x74\x65\170\164"]) ? $rw[$GW]["\x6d\x6f\137\163\141\155\x6c\137\142\165\164\164\157\156\137\x74\145\x78\x74"] : (get_site_option("\x73\141\155\x6c\137\151\144\145\156\x74\151\x74\171\x5f\156\141\x6d\x65") ? get_site_option("\163\141\x6d\x6c\x5f\x69\144\145\156\164\x69\x74\x79\x5f\156\x61\155\145") : "\x4c\157\x67\151\156");
        $i8 = !empty($rw[$GW]["\x6d\157\x5f\x73\141\155\154\137\146\157\x6e\164\137\143\x6f\x6c\157\x72"]) ? $rw[$GW]["\x6d\x6f\x5f\163\141\x6d\154\x5f\146\x6f\x6e\164\x5f\143\157\154\157\x72"] : "\146\146\x66\x66\146\x66";
        $iC = !empty($rw[$GW]["\155\157\137\x73\x61\155\x6c\x5f\x66\157\x6e\164\x5f\163\x69\x7a\145"]) ? $rw[$GW]["\x6d\x6f\137\163\141\x6d\154\x5f\x66\157\156\164\137\163\151\172\145"] : "\62\x30";
        $ni = "\74\x69\x6e\x70\165\164\x20\x74\x79\x70\145\75\42\x62\x75\x74\x74\x6f\x6e\42\x20\156\141\155\145\75\42\x6d\157\137\163\141\155\x6c\137\x77\x70\x5f\163\163\x6f\x5f\x62\165\x74\x74\157\156\42\x20\x76\x61\x6c\x75\145\x3d\42" . $nh . "\42\40\x73\x74\x79\154\145\x3d\42";
        $a9 = '';
        if ($rg == "\154\x6f\156\x67\142\165\x74\164\157\156") {
            goto heu;
        }
        if ($rg == "\x63\x69\x72\x63\x6c\x65") {
            goto fRI;
        }
        if ($rg == "\x6f\x76\x61\154") {
            goto gwu;
        }
        if ($rg == "\x73\161\165\141\162\145") {
            goto qOv;
        }
        goto kGq;
        fRI:
        $a9 = $a9 . "\167\x69\x64\x74\150\x3a" . $QT . "\x70\170\73";
        $a9 = $a9 . "\150\145\151\x67\x68\164\72" . $QT . "\x70\170\73";
        $a9 = $a9 . "\x62\x6f\162\x64\145\162\55\x72\141\x64\151\165\x73\72\71\x39\x39\x70\170\73";
        goto kGq;
        gwu:
        $a9 = $a9 . "\x77\151\x64\164\x68\x3a" . $QT . "\x70\170\73";
        $a9 = $a9 . "\x68\145\x69\x67\150\164\72" . $QT . "\160\x78\73";
        $a9 = $a9 . "\x62\157\x72\x64\x65\162\55\x72\141\x64\x69\x75\163\72\65\x70\x78\73";
        goto kGq;
        qOv:
        $a9 = $a9 . "\x77\x69\144\x74\x68\x3a" . $QT . "\x70\x78\x3b";
        $a9 = $a9 . "\x68\x65\151\147\150\x74\x3a" . $QT . "\160\x78\73";
        $a9 = $a9 . "\x62\157\x72\x64\145\162\x2d\x72\x61\144\151\x75\x73\x3a\x30\x70\x78\x3b";
        kGq:
        goto CIb;
        heu:
        $a9 = $a9 . "\167\x69\144\164\150\72" . $TD . "\160\170\x3b";
        $a9 = $a9 . "\x68\x65\x69\147\150\164\x3a" . $ng . "\160\x78\x3b";
        $a9 = $a9 . "\142\x6f\x72\144\x65\162\x2d\162\x61\144\x69\x75\163\72" . $zY . "\160\x78\x3b";
        CIb:
        $a9 = $a9 . "\142\x61\x63\x6b\x67\162\157\165\x6e\144\55\x63\157\154\157\x72\x3a\43" . $Pm . "\73";
        $a9 = $a9 . "\x62\157\x72\144\145\162\55\143\x6f\x6c\x6f\162\x3a\164\162\141\x6e\163\x70\141\162\145\x6e\x74\x3b";
        $a9 = $a9 . "\143\157\x6c\157\162\x3a\43" . $i8 . "\73";
        $a9 = $a9 . "\x66\157\x6e\x74\55\x73\x69\x7a\x65\72" . $iC . "\160\x78\x3b";
        $a9 = $a9 . "\x70\x61\144\144\x69\x6e\147\72\x30\x70\170\x3b";
        $ni = $ni . $a9 . "\42\x2f\x3e";
        aWx:
        $Xu = urlencode(saml_get_current_page_url());
        $eu = "\74\x61\x20\x68\x72\145\x66\x3d\x22" . $fs . "\x2f\x3f\157\x70\x74\x69\x6f\156\75\x73\x61\155\x6c\x5f\x75\x73\x65\162\137\154\x6f\x67\x69\156\46\162\x65\x64\x69\162\145\143\164\137\164\157\x3d" . $Xu . "\42";
        if (!$Uz) {
            goto wYb;
        }
        $eu = $eu . "\163\164\x79\x6c\x65\75\x22\164\x65\x78\x74\x2d\x64\145\143\157\162\x61\164\x69\x6f\x6e\72\x6e\157\x6e\x65\x3b\x22";
        wYb:
        $eu = $eu . "\76" . $ni . "\x3c\57\x61\76";
        OxA:
        return $eu;
    }
    function upload_metadata()
    {
        if (!(!empty($_FILES["\x6d\145\x74\141\144\141\164\141\x5f\x66\x69\154\145"]) || !empty($_POST["\x6d\145\x74\141\144\x61\x74\141\x5f\x75\162\x6c"]))) {
            goto qCj;
        }
        if (!empty($_FILES["\x6d\145\x74\x61\x64\141\x74\141\137\x66\x69\x6c\x65"]["\164\155\x70\x5f\156\x61\155\145"])) {
            goto e0a;
        }
        if (mo_saml_is_extension_installed("\143\x75\162\x6c")) {
            goto hID;
        }
        update_option("\x6d\x6f\x5f\x73\141\155\154\137\155\145\x73\163\141\147\145", "\x50\110\120\x20\143\125\122\114\x20\x65\170\164\145\x6e\x73\x69\x6f\x6e\40\151\163\x20\156\x6f\x74\40\x69\x6e\163\164\141\154\x6c\145\x64\40\157\x72\40\144\x69\x73\x61\x62\x6c\145\x64\x2e\x20\x43\x61\156\x6e\x6f\x74\40\x66\x65\164\x63\x68\x20\155\x65\x74\x61\x64\x61\164\141\40\146\x72\157\x6d\40\125\x52\114\56");
        $this->mo_saml_show_error_message();
        return;
        hID:
        $qp = filter_var(htmlspecialchars($_POST["\155\x65\x74\x61\144\x61\x74\x61\137\x75\x72\x6c"]), FILTER_SANITIZE_URL);
        $uk = Utilities::mo_saml_wp_remote_call($qp, $this, array("\x73\163\x6c\166\145\162\x69\x66\x79" => false), true);
        if ($uk) {
            goto LdR;
        }
        update_site_option("\155\x6f\137\x73\x61\x6d\154\x5f\x6d\x65\163\163\x61\x67\145", "\x50\x6c\x65\x61\163\145\x20\160\162\157\166\151\144\145\x20\x61\x20\166\x61\154\151\144\x20\155\145\x74\x61\144\141\x74\x61\40\125\x52\114\x2e");
        return;
        LdR:
        if (!is_null($uk)) {
            goto UDr;
        }
        $Rq = null;
        goto Wf4;
        UDr:
        $Rq = $uk;
        Wf4:
        if (!empty($_POST["\163\x79\x6e\143\x5f\x6d\145\164\141\144\141\164\x61"])) {
            goto tY6;
        }
        delete_site_option("\x73\141\155\x6c\137\155\x65\x74\141\144\x61\x74\141\x5f\165\x72\154\137\146\157\x72\137\x73\171\x6e\x63");
        delete_site_option("\x73\141\155\x6c\x5f\155\x65\164\141\x64\x61\164\141\x5f\x73\x79\x6e\x63\137\151\156\x74\x65\162\x76\x61\x6c");
        wp_unschedule_event(wp_next_scheduled("\155\145\164\141\x64\141\164\141\137\163\x79\156\x63\137\143\162\x6f\156\137\x61\143\164\x69\x6f\x6e"), "\x6d\145\164\x61\144\141\164\141\x5f\x73\171\156\x63\x5f\143\162\x6f\156\x5f\x61\x63\x74\151\157\x6e");
        goto we2;
        tY6:
        update_site_option("\163\141\155\x6c\x5f\x6d\145\164\x61\x64\x61\164\141\x5f\165\162\x6c\x5f\146\157\162\x5f\x73\171\156\x63", htmlspecialchars($_POST["\155\x65\x74\141\144\x61\164\141\137\x75\162\x6c"]));
        update_site_option("\x73\x61\155\x6c\137\155\x65\164\x61\x64\x61\164\x61\137\163\x79\156\143\x5f\151\x6e\x74\x65\x72\x76\x61\154", htmlspecialchars($_POST["\163\171\x6e\x63\x5f\151\156\x74\145\x72\166\141\154"]));
        if (wp_next_scheduled("\x6d\145\164\141\144\141\x74\141\x5f\x73\171\x6e\143\x5f\x63\162\157\156\x5f\x61\143\164\x69\x6f\156")) {
            goto J5m;
        }
        wp_schedule_event(time(), htmlspecialchars($_POST["\x73\x79\x6e\x63\137\x69\x6e\164\145\162\x76\141\x6c"]), "\x6d\x65\x74\x61\x64\x61\164\141\137\x73\171\156\x63\x5f\x63\162\x6f\x6e\x5f\x61\x63\x74\151\x6f\156");
        J5m:
        we2:
        goto SQC;
        e0a:
        $Rq = @file_get_contents($_FILES["\x6d\x65\x74\141\144\x61\x74\x61\137\x66\151\154\145"]["\164\155\160\137\x6e\x61\x6d\x65"]);
        SQC:
        $lb = set_error_handler(array($this, "\x68\x61\x6e\144\x6c\x65\x58\x6d\154\105\x72\162\x6f\x72"));
        $G7 = new DOMDocument();
        $G7->loadXML($Rq);
        restore_error_handler();
        if (!empty($G7->firstChild)) {
            goto P0Y;
        }
        if (!empty($_POST["\165\160\154\157\x61\144\137\155\x65\x74\x61\144\x61\x74\x61"])) {
            goto mqu;
        }
        update_site_option("\155\x6f\137\x73\141\x6d\154\x5f\155\145\x73\x73\141\147\145", "\120\x6c\x65\141\163\x65\40\x70\x72\x6f\x76\151\144\x65\40\141\x20\x76\x61\154\x69\144\40\155\145\164\141\144\x61\164\x61\x20\125\122\x4c\x2e");
        goto sFr;
        mqu:
        update_site_option("\155\157\137\x73\x61\x6d\x6c\137\155\x65\163\x73\x61\x67\145", "\120\154\x65\x61\x73\145\x20\x70\162\157\166\x69\144\x65\40\141\x20\166\x61\x6c\151\144\x20\155\x65\164\141\x64\141\164\141\x20\146\151\154\x65\x2e");
        sFr:
        $this->mo_saml_show_error_message();
        goto ny9;
        P0Y:
        $qg = new MetadataReader($G7);
        foreach ($qg->getIdentityProviders() as $ns => $NW) {
            $ua = $_POST["\163\x61\155\x6c\x5f\151\144\x65\x6e\164\151\x74\171\x5f\x70\x72\157\166\151\144\x65\x72\137\156\x61\155\145"];
            if (!("\60" === $ua)) {
                goto nuQ;
            }
            update_site_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\x6d\x65\163\x73\x61\147\145", "\x27\x30\47\40\151\163\x20\x6e\x6f\164\x20\141\x6c\x6c\157\x77\x65\x64\40\x61\x73\x20\x3c\142\76\x49\144\x65\x6e\x74\151\164\x79\x20\120\x72\x6f\166\x69\144\x65\162\40\x4e\141\x6d\x65\x3c\57\142\76\56\40\105\x6e\x74\145\162\40\141\x20\x76\x61\x6c\151\x64\x20\156\x61\x6d\x65\x2e");
            $this->mo_saml_show_error_message();
            return;
            nuQ:
            $EZ = "\x48\x74\x74\160\x52\145\144\x69\x72\145\x63\x74";
            $Z9 = '';
            $jC = $NW->getLoginDetails();
            if (!empty($jC["\110\124\x54\x50\x2d\122\145\x64\x69\162\x65\143\164"])) {
                goto zbU;
            }
            if (!empty($jC["\x48\x54\x54\x50\x2d\120\x4f\123\x54"])) {
                goto t0z;
            }
            goto rE5;
            zbU:
            $Z9 = $NW->getLoginURL("\x48\124\124\x50\x2d\x52\x65\x64\151\x72\x65\143\164");
            goto rE5;
            t0z:
            $EZ = "\x48\x74\164\x70\120\x6f\x73\x74";
            $Z9 = $NW->getLoginURL("\x48\x54\x54\120\x2d\120\x4f\x53\x54");
            rE5:
            $bY = "\110\164\164\160\x52\145\144\x69\162\145\x63\164";
            $fZ = '';
            $EX = $NW->getLogoutDetails();
            if (!empty($EX["\x48\124\x54\120\x2d\x52\145\144\151\162\145\x63\x74"])) {
                goto R8n;
            }
            if (!empty($EX["\110\124\x54\x50\55\x50\117\x53\x54"])) {
                goto q74;
            }
            goto Ysy;
            R8n:
            $fZ = $NW->getLogoutURL("\110\x54\124\120\x2d\x52\145\x64\151\162\145\143\164");
            goto Ysy;
            q74:
            $bY = "\110\164\x74\160\120\157\163\x74";
            $fZ = $NW->getLogoutURL("\x48\124\x54\x50\55\120\x4f\x53\124");
            Ysy:
            $nL = $NW->getEntityID();
            $oX = $NW->getSigningCertificate();
            update_site_option("\163\141\x6d\x6c\137\151\x64\145\156\164\151\x74\x79\x5f\x6e\141\x6d\145", $ua);
            update_site_option("\x73\141\x6d\154\137\154\x6f\147\151\x6e\137\x62\151\156\144\x69\x6e\x67\x5f\x74\171\x70\x65", $EZ);
            update_site_option("\x73\x61\155\154\137\x6c\157\147\151\x6e\137\165\x72\x6c", $Z9);
            update_site_option("\163\141\x6d\x6c\x5f\154\157\x67\157\x75\x74\137\142\x69\x6e\x64\151\x6e\x67\x5f\164\171\x70\x65", $bY);
            update_site_option("\163\x61\155\154\137\154\x6f\147\157\165\164\137\x75\x72\x6c", $fZ);
            update_site_option("\163\x61\x6d\154\x5f\x69\x73\x73\165\145\162", $nL);
            update_site_option("\x73\x61\155\154\137\x6e\141\x6d\145\151\x64\x5f\x66\x6f\x72\x6d\x61\x74", "\x31\x2e\x31\72\156\x61\155\145\151\144\x2d\x66\x6f\x72\x6d\x61\x74\72\x75\x6e\x73\160\x65\143\x69\146\151\x65\144");
            $oX = is_array($oX) ? $oX : array(0 => $oX);
            $oX;
            foreach ($oX as $ns => $Hr) {
                $oX[$ns] = Utilities::sanitize_certificate($Hr);
                f6z:
            }
            kK_:
            update_site_option("\x73\141\x6d\x6c\x5f\170\x35\60\71\137\x63\145\162\x74\151\x66\x69\143\141\164\x65", $oX);
            goto rQm;
            YR_:
        }
        rQm:
        update_site_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\x6d\x65\x73\163\x61\147\145", "\x49\144\x65\x6e\164\151\164\171\x20\120\x72\157\166\x69\144\x65\x72\40\144\145\164\x61\x69\x6c\163\40\x73\x61\x76\145\144\40\163\x75\143\143\145\x73\x73\146\165\154\x6c\171\56");
        $this->mo_saml_show_success_message();
        ny9:
        qCj:
    }
    function handleXmlError($Td, $T1, $k2, $ww)
    {
        if ($Td == E_WARNING && substr_count($T1, "\104\117\115\x44\157\x63\x75\x6d\145\x6e\164\72\72\x6c\x6f\x61\144\x58\x4d\x4c\50\51") > 0) {
            goto DDI;
        }
        return false;
        goto hxP;
        DDI:
        return;
        hxP:
    }
    function mo_saml_admin_page_access_denied()
    {
        $SE = get_blogs_of_user(get_current_user_id());
        if (!wp_list_filter($SE, array("\165\x73\x65\162\x62\154\x6f\147\x5f\151\144" => get_current_blog_id()))) {
            goto BmC;
        }
        return;
        BmC:
        $nJ = get_bloginfo("\x6e\141\x6d\145");
        if (!empty($SE)) {
            goto XyV;
        }
        $ay = "\x59\157\x75\x20\x61\x74\x74\145\x6d\160\164\145\x64\40\x74\157\40\x61\143\143\145\x73\x73\x20\164\x68\x65\40" . $nJ . "\40\163\151\x74\145\54\x20\x62\x75\164\x20\171\157\x75\40\x64\x6f\40\156\x6f\164\x20\143\165\x72\x72\145\156\x74\x6c\x79\40\x68\x61\166\x65\40\160\162\x69\166\151\154\x65\147\145\163\x20\157\x6e\40\x74\x68\151\x73\40\x73\151\164\145\x2e\x20\x49\x66\40\171\x6f\x75\40\142\145\x6c\151\145\166\145\40\171\157\165\40\163\x68\x6f\165\x6c\x64\x20\x62\x65\40\x61\142\x6c\x65\40\164\x6f\x20\x61\x63\x63\x65\163\x73\x20\x74\x68\145\40" . $nJ . "\x20\x73\x69\x74\145\x2c\x20\160\x6c\145\x61\163\x65\40\x63\157\x6e\164\141\143\x74\x20\171\157\x75\162\x20\x6e\x65\x74\167\157\162\153\x20\x61\144\155\151\x6e\151\163\x74\162\x61\164\157\162\56";
        mo_saml_subsite_access_denied_page($ay);
        exit;
        XyV:
        $ay = "\74\x70\x3e\x59\157\165\x20\141\x74\164\x65\x6d\160\x74\x65\144\40\x74\157\40\141\143\x63\145\163\x73\40\x74\150\x65\x20" . $nJ . "\40\163\151\x74\x65\54\x20\142\x75\x74\40\171\x6f\165\x20\x64\157\x20\156\157\x74\x20\x63\x75\x72\x72\x65\156\x74\x6c\x79\40\150\x61\x76\x65\40\x70\162\151\x76\151\x6c\x65\147\145\163\x20\x6f\x6e\40\x74\x68\x69\163\x20\x73\x69\164\x65\x2e\40\x49\146\x20\171\x6f\x75\x20\142\x65\x6c\x69\x65\166\x65\40\171\157\165\40\x73\150\x6f\165\x6c\x64\40\x62\145\x20\x61\x62\154\145\40\164\x6f\x20\x61\143\x63\x65\163\163\x20\x74\150\x65\x20" . $nJ . "\x20\163\x69\x74\x65\x2c\40\160\154\145\141\x73\145\x20\143\x6f\x6e\x74\x61\143\164\40\171\x6f\165\162\40\x6e\x65\x74\167\x6f\x72\x6b\40\141\x64\155\x69\156\151\x73\x74\162\141\164\157\162\x2e\74\x2f\160\x3e";
        $ay .= "\74\160\76\x49\146\x20\171\157\165\40\162\x65\x61\143\150\145\x64\x20\x74\x68\151\163\40\163\x63\162\145\145\x6e\x20\142\171\40\141\143\x63\151\x64\145\156\164\x20\x61\x6e\x64\40\155\x65\141\x6e\x74\40\164\157\40\x76\x69\163\x69\x74\40\x6f\x6e\x65\40\x6f\x66\x20\x79\157\x75\x72\40\x6f\167\156\40\x73\151\x74\145\x73\54\40\x68\145\x72\145\40\x61\x72\x65\40\x73\x6f\155\x65\x20\x73\150\157\x72\x74\143\x75\x74\163\x20\164\157\x20\150\145\154\160\x20\x79\157\x75\40\146\151\156\x64\40\171\x6f\165\x72\40\x77\x61\171\56\74\57\x70\76";
        $ay .= "\x3c\x68\x33\x3e\131\157\165\x72\40\123\151\x74\145\x73\74\57\150\x33\76";
        $ay .= "\x3c\x74\x61\142\x6c\x65\x3e";
        foreach ($SE as $LQ) {
            $ay .= "\x3c\x74\x72\x3e";
            $ay .= "\74\164\144\76" . $LQ->blogname . "\74\57\164\144\x3e";
            $ay .= "\x3c\x74\x64\76\x3c\x61\40\x68\162\145\x66\x3d\x22" . esc_url(get_admin_url($LQ->userblog_id)) . "\42\76\x56\x69\163\151\164\x20\x44\x61\163\150\142\157\141\x72\144\x3c\x2f\x61\x3e\x20\x7c\40\x3c\141\x20\150\162\145\146\x3d\42" . esc_url(get_home_url($LQ->userblog_id)) . "\42\76\x56\151\145\x77\40\123\151\x74\x65\74\x2f\141\76\74\57\164\144\x3e";
            $ay .= "\x3c\57\x74\x72\x3e";
            Wbs:
        }
        OKt:
        $ay .= "\74\57\x74\x61\x62\154\145\x3e";
        mo_saml_subsite_access_denied_page($ay);
        exit;
    }
    function mo_saml_plugin_action_links($MI)
    {
        $MI = array_merge(array("\74\141\40\x68\x72\x65\x66\75\42" . esc_url(network_admin_url("\x61\144\x6d\x69\x6e\x2e\x70\150\x70\x3f\160\x61\147\145\75\155\x6f\x5f\163\x61\155\x6c\137\163\x65\164\x74\151\156\147\163")) . "\x22\76" . __("\123\145\x74\164\x69\156\x67\x73", "\164\x65\x78\x74\x64\x6f\155\x61\151\156") . "\x3c\x2f\141\x3e"), $MI);
        return $MI;
    }
    function mo_saml_parse_expiry_date($t1)
    {
        $pA = new DateTime($t1);
        $w7 = $pA->getTimestamp();
        return date("\106\40\152\x2c\x20\x59", $w7);
    }
    function is_license_expired($bN)
    {
        $pA = new DateTime($bN);
        $Q6 = new DateTime();
        if ($Q6 > $pA) {
            goto pSg;
        }
        return false;
        goto Zyi;
        pSg:
        return true;
        Zyi:
    }
    function checkPasswordPattern($C1)
    {
        $Gr = "\57\136\133\50\x5c\167\x29\x2a\50\134\41\x5c\100\134\x23\134\x24\x5c\x25\x5c\x5e\134\46\134\52\134\x2e\134\55\x5c\137\x29\52\135\x2b\x24\57";
        return !preg_match($Gr, $C1);
    }
}
new saml_mo_login();

Function Calls

None

Variables

None

Stats

MD5 2c55d09e76376e3e7fa3e5407fb6f7e3
Eval Count 0
Decode Time 201 ms