Japanese English

PHP deobfuscation, decryption, reconstruction tool

De-obfuscate PHP malware/viruses and tampering code on Wordpress to original readable code.

*Please note that not all obfuscation codes can be decoded.

Decoded the code below.

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



Obfuscated php code

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


include_once dirname( __FILE__ ) . '/mo_login_saml_sso_widget.php';
include_once 'xmlseclibs.php';
use \RobRichards\XMLSecLibs\XMLSecurityKey;
use \RobRichards\XMLSecLibs\XMLSecurityDSig;
use \RobRichards\XMLSecLibs\XMLSecEnc;
require('mo-saml-class-customer.php');
require('mo_saml_settings_page.php');
require('MetadataReader.php');
require('certificate_utility.php');
require('licenseutils.php');
require('LicenseUtils/LicenseDao.php');
require_once('mo-saml-plugin-version-update.php');
require_once('actions/MoSamlAdminActions.php');
class saml_mo_login
{
    private $widgetObj;
    function __construct()
    {
        new MoSamlAdminActions();
        add_action("\x61\144\155\x69\156\x5f\155\145\x6e\x75", array($this, "\155\151\x6e\151\x6f\x72\x61\x6e\147\145\137\x73\x73\157\137\x6d\145\156\x75"));
        add_action("\141\144\x6d\151\156\137\151\x6e\x69\x74", array($this, "\x6d\151\x6e\x69\x6f\162\x61\156\x67\145\x5f\154\x6f\147\x69\x6e\x5f\x77\x69\144\147\145\164\137\x73\141\x6d\x6c\x5f\x73\141\166\145\137\163\x65\164\164\151\x6e\x67\163"));
        add_action("\x61\144\x6d\151\x6e\x5f\145\x6e\x71\165\145\x75\x65\137\163\143\x72\151\160\x74\x73", array($this, "\x70\154\x75\147\x69\156\x5f\x73\145\164\x74\151\x6e\x67\x73\x5f\163\x74\x79\x6c\145"), 1);
        register_deactivation_hook(__FILE__, array($this, "\x6d\x6f\x5f\x73\163\x6f\x5f\x73\x61\x6d\154\137\x64\x65\x61\143\x74\x69\x76\141\164\x65"));
        add_action("\x61\x64\x6d\x69\x6e\137\145\156\x71\x75\145\x75\x65\x5f\x73\x63\162\151\160\164\163", array($this, "\x70\x6c\165\147\151\x6e\x5f\x73\x65\x74\164\x69\x6e\147\163\x5f\163\x63\x72\151\160\x74"), 1);
        remove_action("\x61\144\x6d\x69\156\137\156\157\x74\x69\143\145\163", array($this, "\x6d\157\x5f\x73\141\155\x6c\137\x73\165\143\143\x65\163\x73\x5f\x6d\145\x73\163\x61\147\x65"));
        remove_action("\141\144\x6d\151\x6e\137\156\157\164\151\x63\x65\x73", array($this, "\155\157\x5f\x73\141\155\154\x5f\145\x72\x72\157\162\137\x6d\x65\163\163\x61\147\x65"));
        add_action("\x77\160\x5f\x61\x75\164\150\145\x6e\x74\x69\143\141\164\145", array($this, "\155\157\x5f\163\141\x6d\x6c\137\x61\x75\164\x68\145\156\164\x69\x63\x61\x74\x65"));
        add_action("\x77\x70", array($this, "\x6d\157\x5f\x73\x61\155\x6c\x5f\x61\x75\x74\x6f\x5f\x72\145\144\x69\x72\145\143\x74"));
        $this->widgetObj = new mo_login_wid();
        add_action("\151\156\x69\164", array($this->widgetObj, "\155\157\137\x73\x61\155\x6c\137\167\151\144\x67\145\x74\137\151\156\x69\x74"));
        add_action("\141\x64\155\x69\156\x5f\151\x6e\151\x74", "\155\x6f\x5f\163\x61\155\154\x5f\x64\x6f\167\x6e\x6c\157\x61\x64");
        add_action("\x6c\x6f\147\151\x6e\x5f\145\x6e\x71\165\x65\x75\145\x5f\x73\143\x72\x69\160\164\163", array($this, "\155\x6f\137\163\141\155\154\x5f\154\x6f\147\x69\156\137\145\156\x71\x75\145\165\145\x5f\x73\143\x72\x69\x70\164\163"));
        add_action("\154\157\147\151\156\137\146\x6f\162\x6d", array($this, "\155\157\x5f\x73\x61\155\x6c\137\155\x6f\144\151\x66\171\x5f\154\157\147\x69\x6e\137\146\157\x72\x6d"));
        add_shortcode("\x4d\x4f\137\x53\x41\115\x4c\137\106\x4f\122\115", array($this, "\x6d\x6f\x5f\x67\x65\164\x5f\x73\x61\x6d\x6c\x5f\x73\150\157\162\164\x63\157\144\145"));
        add_filter("\x63\x72\x6f\x6e\137\x73\143\150\x65\144\165\x6c\145\x73", array($this, "\x6d\x79\x70\x72\145\146\x69\x78\137\141\144\x64\x5f\x63\x72\x6f\156\x5f\x73\x63\x68\x65\x64\165\154\x65"));
        add_action("\x6d\145\x74\x61\144\x61\x74\x61\137\x73\171\x6e\143\137\143\162\x6f\156\137\x61\x63\164\151\x6f\156", array($this, "\x6d\x65\164\x61\x64\141\x74\x61\x5f\163\x79\x6e\143\137\x63\x72\x6f\156\137\x61\x63\164\x69\157\x6e"));
        register_activation_hook(__FILE__, array($this, "\155\x6f\137\x73\141\155\154\x5f\x63\x68\145\143\x6b\137\157\x70\x65\156\163\163\x6c"));
        add_action("\160\x6c\x75\x67\x69\x6e\137\x61\x63\164\x69\x6f\x6e\137\154\x69\x6e\153\163\137" . plugin_basename(__FILE__), array($this, "\x6d\x6f\x5f\163\x61\x6d\154\137\160\154\165\147\x69\156\137\141\x63\164\x69\157\x6e\137\154\151\156\153\x73"));
        add_action("\141\144\x6d\x69\156\137\x69\x6e\x69\x74", array($this, "\x64\145\x66\141\165\154\164\137\143\x65\x72\x74\x69\x66\151\x63\141\x74\x65"));
        add_option("\154\143\144\x6a\153\141\x73\x6a\x64\x6b\163\141\x63\154", "\144\x65\x66\141\165\x6c\x74\x2d\143\x65\162\164\x69\x66\x69\143\x61\x74\145");
        add_filter("\155\141\x6e\x61\147\x65\137\165\x73\x65\x72\x73\137\143\x6f\x6c\x75\155\x6e\x73", array($this, "\155\157\x5f\163\141\155\154\x5f\x63\x75\163\164\x6f\x6d\x5f\x61\x74\164\x72\137\143\x6f\x6c\165\155\x6e"));
        add_filter("\x6d\141\156\x61\147\x65\x5f\165\x73\145\x72\x73\x5f\143\x75\163\x74\157\x6d\x5f\143\157\x6c\165\x6d\156", array($this, "\x6d\157\137\163\x61\x6d\154\137\x61\164\164\x72\137\143\x6f\154\165\x6d\156\x5f\143\x6f\x6e\x74\x65\x6e\x74"), 10, 3);
        global $Sy;
        if ((float) $Sy < 5.5 && (float) $Sy > 5.2) {
            goto X4;
        }
        add_action("\167\x70\x5f\154\x6f\147\x6f\x75\164", array($this->widgetObj, "\x6d\157\x5f\x73\x61\x6d\x6c\137\x6c\157\x67\157\165\164"), 1, 1);
        goto j2;
        X4:
        add_filter("\x6c\157\147\157\x75\x74\137\162\x65\144\x69\162\x65\x63\164", array($this, "\x6d\x6f\137\163\x61\x6d\x6c\137\154\x6f\x67\x6f\165\x74\x5f\142\x72\x6f\x6b\145\162\137\167\151\x74\150\x5f\146\x69\x6c\x74\145\x72"), 10, 3);
        j2:
    }
    function mo_saml_logout_broker_with_filter($PK, $qR, $user)
    {
        $this->widgetObj->mo_saml_logout($user->ID);
    }
    function default_certificate()
    {
        $zM = file_get_contents(plugin_dir_path(__FILE__) . "\162\x65\x73\157\x75\162\143\x65\163" . DIRECTORY_SEPARATOR . "\x6d\151\156\151\x6f\162\x61\156\147\145\55\163\x70\x2d\x63\145\162\x74\151\146\151\x63\141\164\145\x2e\143\162\164");
        $z_ = file_get_contents(plugin_dir_path(__FILE__) . "\162\x65\x73\157\165\162\x63\x65\163" . DIRECTORY_SEPARATOR . "\155\x69\x6e\x69\x6f\x72\x61\x6e\x67\145\55\163\x70\x2d\143\x65\x72\164\151\x66\x69\143\x61\164\145\x2d\x70\x72\151\x76\56\153\145\171");
        if (!(!get_option("\x6d\x6f\137\x73\x61\155\x6c\137\143\x75\162\x72\145\156\x74\137\x63\x65\162\x74") && !get_option("\x6d\157\x5f\x73\x61\155\x6c\x5f\x63\165\162\x72\145\156\164\x5f\x63\145\162\x74\137\x70\162\x69\166\x61\164\145\x5f\153\145\x79"))) {
            goto DH;
        }
        update_option("\x6d\157\137\x73\x61\155\154\137\x63\165\162\x72\145\156\164\137\x63\145\x72\x74", $zM);
        update_option("\155\x6f\137\163\x61\155\x6c\137\143\165\162\x72\x65\x6e\x74\x5f\x63\x65\162\164\137\160\x72\x69\x76\141\164\x65\x5f\153\145\171", $z_);
        DH:
    }
    function mo_saml_check_openssl()
    {
        if (mo_saml_is_extension_installed("\157\x70\x65\156\x73\x73\154")) {
            goto We;
        }
        wp_die("\120\110\120\x20\x6f\160\145\156\163\x73\154\40\145\x78\x74\145\x6e\163\x69\x6f\x6e\40\151\163\40\156\x6f\164\x20\151\156\163\x74\x61\x6c\154\x65\144\40\157\x72\x20\144\151\x73\x61\x62\154\145\144\x2c\x70\x6c\x65\141\x73\x65\40\x65\x6e\x61\142\x6c\145\40\x69\x74\40\164\x6f\40\141\143\x74\x69\x76\141\x74\x65\40\x74\x68\145\40\160\x6c\x75\147\151\x6e\56");
        We:
        add_option("\101\x63\x74\x69\166\x61\x74\145\144\x5f\120\x6c\x75\147\151\156", "\x50\154\165\x67\151\156\x2d\x53\154\165\x67");
    }
    function myprefix_add_cron_schedule($xx)
    {
        $xx["\x77\x65\x65\x6b\x6c\x79"] = array("\x69\156\164\x65\162\166\x61\x6c" => 604800, "\144\x69\163\160\154\141\x79" => __("\x4f\x6e\143\145\x20\x57\145\x65\153\154\171"));
        $xx["\155\x6f\156\164\x68\x6c\171"] = array("\151\156\164\145\162\x76\141\x6c" => 2635200, "\x64\151\x73\x70\154\x61\x79" => __("\x4f\156\143\x65\x20\115\157\x6e\x74\150\154\x79"));
        return $xx;
    }
    function metadata_sync_cron_action()
    {
        error_log("\155\151\156\x69\x6f\x72\x61\x6e\x67\145\40\x3a\x20\122\101\116\x20\123\x59\116\103\x20\x2d\x20" . time());
        $IC = LicenseHelper::getCurrentOption(mo_options_enum_service_provider::Identity_name);
        $this->upload_metadata(@file_get_contents(get_option("\163\141\x6d\154\x5f\155\x65\164\x61\144\x61\x74\x61\137\165\162\x6c\x5f\146\157\162\137\x73\171\x6e\x63")));
        update_option("\x73\141\x6d\154\x5f\x69\144\x65\x6e\164\151\164\x79\137\156\141\x6d\145", $IC);
    }
    function mo_login_widget_saml_options()
    {
        global $wpdb;
        update_option("\x6d\157\x5f\x73\x61\x6d\154\137\150\x6f\163\x74\x5f\x6e\x61\x6d\145", "\x68\x74\x74\160\163\72\x2f\x2f\x6c\x6f\147\151\156\56\x78\145\x63\x75\162\x69\146\x79\x2e\x63\x6f\155");
        $kA = get_option("\155\157\137\x73\141\x6d\154\137\150\x6f\x73\164\137\x6e\141\155\x65");
        mo_register_saml_sso();
    }
    public function mo_sso_saml_deactivate()
    {
        if (!is_multisite()) {
            goto Ts;
        }
        global $wpdb;
        $zJ = $wpdb->get_col("\123\x45\x4c\105\x43\124\40\x62\x6c\157\x67\137\151\144\40\x46\122\x4f\x4d\40{$wpdb->blogs}");
        $ey = get_current_blog_id();
        do_action("\155\x6f\x5f\x73\141\x6d\154\x5f\146\154\165\x73\150\137\143\141\x63\x68\145");
        foreach ($zJ as $blog_id) {
            switch_to_blog($blog_id);
            delete_option("\155\x6f\137\x73\141\x6d\154\137\x68\157\x73\164\x5f\156\x61\155\145");
            delete_option("\155\x6f\137\x73\x61\x6d\x6c\x5f\x6e\145\167\137\162\145\x67\151\163\x74\x72\x61\164\151\157\156");
            delete_option("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\x61\144\x6d\x69\156\x5f\160\150\157\x6e\145");
            delete_option("\x6d\x6f\x5f\163\141\155\x6c\137\x61\x64\x6d\x69\156\x5f\x70\141\x73\163\167\x6f\162\x64");
            delete_option("\x6d\x6f\137\163\x61\155\x6c\x5f\x76\x65\x72\x69\x66\x79\137\143\x75\x73\164\157\x6d\x65\x72");
            delete_option("\x6d\x6f\137\163\141\x6d\x6c\x5f\141\x64\x6d\151\156\x5f\143\165\163\164\x6f\x6d\x65\162\x5f\x6b\x65\x79");
            delete_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\x61\144\x6d\151\x6e\x5f\141\160\x69\x5f\x6b\145\171");
            delete_option("\155\x6f\x5f\163\141\155\x6c\137\x63\x75\x73\x74\157\x6d\x65\162\x5f\164\157\153\x65\x6e");
            delete_option("\155\x6f\x5f\x73\141\x6d\154\x5f\x6d\x65\x73\163\141\147\145");
            delete_option("\155\157\137\163\x61\155\154\x5f\x72\145\147\x69\163\x74\162\x61\164\151\x6f\x6e\x5f\163\x74\x61\x74\165\x73");
            delete_option("\155\x6f\x5f\x73\141\155\x6c\137\x69\x64\160\137\143\157\156\146\151\147\137\x63\x6f\x6d\160\x6c\x65\164\145");
            delete_option("\x6d\x6f\x5f\x73\141\155\x6c\137\164\162\x61\x6e\x73\141\x63\164\151\x6f\x6e\x49\x64");
            delete_option("\166\154\137\143\x68\145\143\153\x5f\164");
            delete_option("\x76\154\137\143\150\145\x63\x6b\137\163");
            delete_option("\x6d\157\x5f\163\x61\155\x6c\x5f\163\x68\157\167\x5f\x61\x64\144\x6f\x6e\163\137\156\x6f\164\151\x63\145");
            delete_option("\163\155\154\x5f\154\x6b");
            delete_option("\155\157\137\x73\141\155\x6c\x5f\x74\x6c\x61");
            delete_option("\155\157\x5f\163\141\155\x6c\x5f\x6c\151\143\145\x6e\x73\x65\x5f\145\x78\x70\151\x72\171\x5f\144\x61\164\x65");
            Ca:
        }
        th:
        switch_to_blog($ey);
        goto HL;
        Ts:
        do_action("\x6d\157\x5f\x73\x61\155\154\137\146\x6c\x75\x73\150\x5f\143\x61\x63\150\145");
        delete_option("\155\x6f\x5f\163\x61\x6d\x6c\137\150\157\x73\164\x5f\x6e\x61\x6d\145");
        delete_option("\155\x6f\x5f\163\141\x6d\154\x5f\x6e\145\x77\x5f\x72\x65\x67\x69\x73\164\x72\141\164\x69\157\x6e");
        delete_option("\155\157\137\x73\141\155\x6c\137\141\144\155\151\156\x5f\x70\x68\x6f\x6e\145");
        delete_option("\x6d\x6f\137\163\x61\x6d\x6c\137\141\144\x6d\x69\x6e\x5f\160\141\x73\x73\x77\157\162\x64");
        delete_option("\x6d\157\x5f\x73\x61\x6d\154\137\166\x65\162\151\x66\171\x5f\143\165\x73\164\157\155\x65\162");
        delete_option("\x6d\x6f\x5f\x73\x61\x6d\154\137\x61\x64\x6d\151\156\x5f\143\165\x73\x74\157\x6d\x65\162\137\153\x65\171");
        delete_option("\x6d\x6f\137\x73\141\x6d\154\x5f\141\x64\155\x69\x6e\137\x61\x70\151\137\153\x65\171");
        delete_option("\155\157\x5f\x73\141\x6d\x6c\x5f\143\x75\163\x74\157\155\145\162\x5f\x74\x6f\x6b\145\156");
        delete_option("\155\x6f\137\163\x61\155\154\137\155\145\163\x73\x61\x67\x65");
        delete_option("\155\157\x5f\x73\141\155\x6c\x5f\162\x65\147\x69\x73\x74\x72\141\164\x69\x6f\x6e\137\x73\x74\x61\164\x75\x73");
        delete_option("\155\157\x5f\x73\x61\155\154\137\151\144\160\x5f\x63\x6f\x6e\146\x69\147\x5f\143\157\155\160\x6c\x65\x74\145");
        delete_option("\155\x6f\137\163\x61\155\x6c\137\164\162\141\x6e\163\x61\x63\164\151\x6f\x6e\111\144");
        delete_option("\x6d\157\137\x73\x61\155\154\137\145\156\141\x62\154\145\x5f\x63\x6c\157\165\144\x5f\142\162\x6f\x6b\145\x72");
        delete_option("\x76\x6c\137\143\150\x65\x63\153\137\164");
        delete_option("\166\x6c\137\x63\x68\145\143\x6b\x5f\163");
        delete_option("\155\157\x5f\163\x61\155\x6c\x5f\x73\150\x6f\167\x5f\x61\x64\x64\x6f\x6e\x73\x5f\156\x6f\x74\151\x63\145");
        delete_option("\163\155\154\x5f\x6c\153");
        delete_option("\155\157\x5f\163\141\x6d\154\137\164\x6c\x61");
        delete_option("\155\157\137\163\141\155\154\137\x6c\x69\143\x65\156\163\145\137\145\170\x70\151\x72\x79\x5f\144\x61\x74\145");
        HL:
    }
    function djkasjdksaduwaj($wC, $K_, $k0, $uU = "\146\x61\x6c\x73\x65")
    {
        $q1 = $K_->check_customer_ln();
        if ($q1) {
            goto nk;
        }
        if (!($uU == "\164\x72\165\145")) {
            goto qR;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        qR:
        return;
        nk:
        $q1 = json_decode($q1, true);
        if (strcasecmp($q1["\163\164\x61\x74\x75\x73"], "\123\125\103\103\105\x53\x53") == 0) {
            goto t6;
        }
        $WO = get_option("\x6d\157\x5f\163\141\155\154\137\x63\165\163\164\157\155\x65\x72\137\x74\x6f\x6b\x65\156");
        update_option("\x73\x69\x74\145\x5f\143\x6b\x5f\x6c", AESEncryption::encrypt_data("\x66\141\154\x73\x65", $WO));
        if (!($uU == "\x74\x72\x75\x65")) {
            goto oC;
        }
        WP_CLI::error(mo_saml_cli_error::Not_Upgraded);
        oC:
        $of = add_query_arg(array("\x74\x61\x62" => "\154\151\143\x65\156\x73\x69\156\147"), $_SERVER["\122\105\121\125\x45\x53\x54\137\x55\x52\x49"]);
        update_option("\x6d\157\x5f\x73\x61\x6d\x6c\x5f\155\145\163\x73\x61\147\x65", "\x59\x6f\x75\x20\150\x61\166\145\x20\x6e\x6f\164\40\x75\x70\x67\x72\x61\144\145\144\x20\171\x65\x74\x2e\40" . addLink("\103\154\x69\143\153\40\x68\145\x72\145", $of) . "\40\164\x6f\40\165\x70\147\162\141\x64\x65\40\164\x6f\40\160\x72\145\155\x69\165\155\x20\x76\145\x72\163\151\x6f\156\x2e");
        SAMLSPUtilities::mo_saml_show_error_message();
        goto Kv;
        t6:
        if (empty($q1["\x6c\151\x63\145\156\163\145\105\x78\x70\151\x72\x79"])) {
            goto VQ;
        }
        update_option("\x6d\157\137\163\x61\155\154\137\154\151\143\145\156\x73\x65\137\145\170\160\x69\162\171\x5f\x64\141\164\145", $this->mo_saml_parse_expiry_date($q1["\x6c\151\143\145\156\x73\145\105\170\160\151\162\x79"]));
        if (new DateTime() > new DateTime($q1["\x6c\151\143\x65\x6e\x73\145\x45\170\160\x69\162\x79"])) {
            goto FU;
        }
        update_option("\x6d\157\x5f\163\x61\x6d\x6c\137\163\x6c\145", false);
        goto uG;
        FU:
        update_option("\x6d\157\137\x73\141\155\154\137\x73\x6c\145", true);
        uG:
        VQ:
        $q1 = json_decode($K_->mo_saml_vl($wC, false), true);
        update_option("\x76\154\137\x63\x68\x65\x63\153\x5f\164", time());
        if (!empty($q1["\x69\x73\x54\162\x69\x61\x6c"])) {
            goto Ny;
        }
        update_option("\x6d\157\137\x73\141\x6d\x6c\137\164\154\141", false);
        goto tZ;
        Ny:
        update_option("\155\157\137\163\x61\x6d\x6c\x5f\164\154\x61", $q1["\x69\163\x54\162\x69\141\x6c"]);
        update_option("\x6d\157\x5f\x73\141\155\x6c\137\154\x69\143\145\156\x73\x65\x5f\145\x78\x70\x69\162\171\137\x64\x61\164\x65", $q1["\x6c\151\x63\x65\x6e\x73\145\x45\x78\160\151\x72\171\x44\x61\x74\x65"]);
        tZ:
        if (is_array($q1) and strcasecmp($q1["\163\x74\141\164\x75\x73"], "\x53\125\103\x43\105\123\x53") == 0) {
            goto wf;
        }
        if (is_array($q1) and strcasecmp($q1["\163\x74\x61\x74\165\163"], "\x46\101\x49\x4c\105\x44") == 0) {
            goto SU;
        }
        if (!($uU == "\x74\162\x75\x65")) {
            goto OL;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        OL:
        update_option("\155\157\x5f\163\141\155\154\137\x6d\145\163\x73\141\x67\145", "\101\x6e\40\x65\162\162\157\x72\40\157\143\143\165\x72\145\x64\40\x77\150\x69\x6c\145\40\x70\162\x6f\143\x65\163\163\x69\156\x67\40\171\157\165\x72\40\162\145\161\165\x65\163\164\x2e\40\x50\154\145\x61\x73\x65\40\124\162\x79\x20\x61\147\x61\151\x6e\x2e");
        SAMLSPUtilities::mo_saml_show_error_message();
        goto m_;
        SU:
        if (strcasecmp($q1["\155\145\163\x73\x61\147\145"], "\103\x6f\x64\145\40\150\141\x73\40\x45\170\160\151\162\145\144") == 0) {
            goto xV;
        }
        if (!($uU == "\x74\162\x75\x65")) {
            goto N2;
        }
        WP_CLI::error(mo_saml_cli_error::Invalid_License);
        N2:
        update_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\155\x65\163\x73\x61\x67\x65", "\x59\157\165\x20\150\x61\x76\145\40\145\x6e\x74\145\x72\145\x64\40\141\x6e\x20\151\x6e\x76\x61\x6c\x69\144\40\154\x69\x63\145\x6e\163\145\40\x6b\145\171\x2e\40\120\154\x65\x61\163\x65\40\x65\x6e\164\x65\x72\x20\141\x20\166\x61\154\x69\144\40\154\x69\143\145\156\x73\x65\40\153\145\171\x2e");
        goto jt;
        xV:
        if (!($uU == "\x74\x72\x75\145")) {
            goto OT;
        }
        WP_CLI::error(mo_saml_cli_error::Code_Expired);
        OT:
        $of = add_query_arg(array("\164\141\142" => "\x6c\x69\143\x65\156\163\151\156\x67"), $_SERVER["\x52\x45\x51\125\x45\x53\x54\137\125\122\x49"]);
        update_option("\x6d\157\x5f\163\x61\x6d\154\x5f\x6d\145\163\163\x61\147\x65", "\114\x69\x63\145\156\163\x65\x20\x6b\145\171\x20\x79\157\x75\x20\150\141\x76\145\x20\x65\x6e\164\145\x72\145\x64\40\150\141\x73\40\141\x6c\162\145\141\x64\171\40\x62\145\145\156\x20\165\x73\x65\x64\x2e\40\120\x6c\145\x61\163\145\x20\x65\x6e\164\145\x72\x20\141\x20\x6b\x65\171\x20\167\x68\x69\143\150\40\150\x61\163\x20\156\x6f\x74\40\x62\x65\x65\x6e\x20\165\x73\145\x64\x20\x62\145\146\x6f\162\x65\40\x6f\156\x20\141\x6e\171\40\x6f\x74\150\x65\x72\x20\x69\x6e\163\164\x61\x6e\143\x65\x20\x6f\162\x20\151\146\40\x79\157\x75\x20\x68\141\x76\x65\40\x65\170\141\x75\x73\x74\145\144\x20\x61\x6c\154\x20\x79\157\x75\x72\x20\153\x65\x79\163\x20\x74\x68\145\156\x20" . addLink("\x43\154\151\x63\153\40\150\x65\162\145", $of) . "\x20\164\157\40\x62\x75\x79\40\155\x6f\162\x65\x2e");
        jt:
        SAMLSPUtilities::mo_saml_show_error_message();
        m_:
        goto zZ;
        wf:
        $WO = get_option("\x6d\x6f\x5f\x73\x61\x6d\x6c\137\143\165\163\x74\157\155\x65\x72\x5f\x74\x6f\x6b\145\156");
        update_option("\x73\x6d\x6c\137\x6c\153", AESEncryption::encrypt_data($wC, $WO));
        update_option("\x6d\157\137\163\141\x6d\154\137\x6d\145\x73\163\141\147\x65", $k0);
        $WO = get_option("\155\x6f\137\163\x61\x6d\154\137\143\x75\163\164\x6f\x6d\145\x72\x5f\x74\157\x6b\145\x6e");
        update_option("\x73\151\x74\145\x5f\143\153\137\154", AESEncryption::encrypt_data("\164\162\x75\145", $WO));
        update_option("\x74\137\163\151\x74\145\x5f\x73\164\x61\164\x75\163", AESEncryption::encrypt_data("\x66\141\x6c\163\x65", $WO));
        $ou = plugin_dir_path(__FILE__);
        $dw = home_url();
        $dw = trim($dw, "\57");
        if (preg_match("\43\x5e\x68\x74\x74\160\50\163\51\77\x3a\57\57\x23", $dw)) {
            goto hr;
        }
        $dw = "\x68\164\x74\x70\x3a\57\x2f" . $dw;
        hr:
        $MW = parse_url($dw);
        $hn = preg_replace("\x2f\136\x77\167\167\134\x2e\x2f", '', $MW["\150\157\163\164"]);
        $Iw = wp_upload_dir();
        $iR = $hn . "\x2d" . $Iw["\142\141\163\145\x64\x69\162"];
        $P6 = hash_hmac("\163\150\x61\x32\65\x36", $iR, "\x34\104\x48\146\x6a\x67\x66\152\141\163\156\x64\x66\x73\x61\x6a\146\110\x47\x4a");
        $Ua = $this->djkasjdksa();
        $il = round(strlen($Ua) / rand(2, 20));
        $Ua = substr_replace($Ua, $P6, $il, 0);
        $xs = base64_decode($Ua);
        if (is_writable($ou . "\x6c\151\x63\x65\156\163\145")) {
            goto iB;
        }
        $Ua = str_rot13($Ua);
        $kX = base64_decode("bGNkamthc2pka3NhY2w=");
        update_option($kX, $Ua);
        goto y6;
        iB:
        file_put_contents($ou . "\154\151\x63\x65\156\163\x65", $xs);
        y6:
        update_option("\x6c\143\x77\x72\164\154\146\x73\141\155\x6c", true);
        if (!($uU == "\164\x72\x75\145")) {
            goto a7;
        }
        WP_CLI::success("\114\151\x63\145\x6e\x73\145\x20\141\160\x70\x6c\x69\145\x64\40\x73\165\x63\143\145\x73\163\x66\x75\154\154\171\x2e");
        a7:
        $of = add_query_arg(array("\x74\x61\x62" => "\x67\145\x6e\x65\162\141\154"), $_SERVER["\x52\105\121\125\x45\x53\x54\x5f\x55\122\111"]);
        SAMLSPUtilities::mo_saml_show_success_message();
        zZ:
        Kv:
    }
    function mo_cli_save_details($T1, $PS, $NC, $G2, $H6)
    {
        if (mo_saml_is_extension_installed("\x63\x75\x72\x6c")) {
            goto pd;
        }
        WP_CLI::error(mo_saml_cli_error::Curl_Error);
        pd:
        update_option("\x6d\x6f\x5f\163\x61\x6d\x6c\x5f\162\x65\x67\151\163\x74\162\x61\164\151\157\x6e\x5f\x73\164\141\164\x75\163", '');
        update_option("\x6d\157\137\163\x61\155\x6c\x5f\166\145\162\151\146\x79\x5f\x63\x75\163\164\x6f\x6d\145\162", '');
        delete_option("\x6d\157\137\x73\141\155\x6c\x5f\156\145\x77\137\x72\145\x67\x69\x73\164\162\141\x74\x69\x6f\156");
        delete_option("\x6d\157\137\163\141\x6d\154\137\x61\144\155\151\x6e\137\145\x6d\141\151\154");
        delete_option("\155\157\137\x73\141\x6d\154\x5f\x61\x64\x6d\151\156\137\x70\x68\157\156\x65");
        delete_option("\x73\x6d\x6c\x5f\154\153");
        delete_option("\164\x5f\163\x69\x74\x65\x5f\163\164\x61\164\165\x73");
        delete_option("\163\x69\x74\x65\137\x63\153\137\154");
        $mg = sanitize_email($G2);
        update_option("\155\x6f\x5f\x73\141\x6d\154\137\141\x64\155\151\x6e\x5f\x65\x6d\x61\x69\154", $mg);
        $K_ = new CustomerSaml();
        $q1 = $K_->check_customer();
        if ($q1) {
            goto Zl;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        Zl:
        $q1 = json_decode($q1, true);
        if (!(strcasecmp($q1["\163\164\x61\x74\165\x73"], "\x43\x55\123\x54\x4f\115\x45\122\137\116\117\124\137\x46\x4f\125\116\104") == 0)) {
            goto Pi;
        }
        WP_CLI::error(mo_saml_cli_error::Customer_Not_Found);
        Pi:
        update_option("\155\x6f\137\x73\141\155\154\137\x61\x64\155\151\x6e\x5f\x63\x75\163\x74\157\x6d\x65\162\137\153\145\171", $T1);
        update_option("\155\157\137\x73\x61\x6d\154\x5f\141\144\155\x69\156\137\x61\160\151\137\x6b\x65\x79", $PS);
        update_option("\155\157\x5f\x73\x61\x6d\154\x5f\143\165\x73\164\x6f\x6d\x65\x72\137\x74\x6f\x6b\145\156", $NC);
        update_option("\x6d\157\137\x73\141\155\154\x5f\x72\145\x67\x69\163\164\x72\x61\x74\x69\157\156\x5f\163\164\x61\164\165\x73", "\105\x78\x69\x73\x74\151\156\147\x20\x55\x73\145\x72");
        delete_option("\155\157\137\163\141\x6d\154\x5f\x76\145\x72\151\146\171\x5f\143\x75\163\164\x6f\x6d\145\162");
        $wC = htmlspecialchars(trim($H6));
        $k0 = "\131\157\165\162\x20\x6c\x69\x63\x65\x6e\x73\x65\x20\151\163\40\166\145\162\151\x66\151\145\144\x2e\40\131\x6f\165\40\143\x61\156\x20\x6e\x6f\x77\x20\x73\145\x74\x75\160\x20\164\150\x65\x20\x70\x6c\165\147\151\156\x2e";
        $this->djkasjdksaduwaj($wC, $K_, $k0, "\164\162\x75\145");
    }
    function plugin_settings_style($yt)
    {
        if (!("\164\157\160\x6c\x65\x76\x65\x6c\137\x70\141\147\x65\x5f\155\x6f\137\163\x61\x6d\154\x5f\x73\145\164\x74\151\x6e\147\x73" != $yt && "\155\151\x6e\x69\157\162\x61\156\x67\x65\55\x73\141\x6d\x6c\55\62\x2d\x30\x2d\163\163\157\x5f\160\141\x67\x65\137\155\157\137\155\141\156\x61\x67\145\x5f\154\x69\143\x65\x6e\163\145" != $yt)) {
            goto rO;
        }
        return;
        rO:
        if (!(isset($_REQUEST["\x74\x61\x62"]) && $_REQUEST["\164\141\142"] == "\x6c\x69\143\145\156\x73\151\156\147")) {
            goto Lv;
        }
        wp_enqueue_style("\x6d\x6f\137\163\x61\x6d\x6c\x5f\x62\x6f\157\164\163\x74\x72\141\160\137\x63\x73\163", plugins_url("\151\x6e\x63\154\165\x64\145\163\57\143\163\163\x2f\142\x6f\x6f\164\163\164\x72\x61\160\x2f\142\157\x6f\164\163\164\x72\141\x70\56\155\151\156\56\143\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\x6c\x6c");
        Lv:
        wp_enqueue_style("\x6d\157\x5f\163\x61\155\154\x5f\141\x64\x6d\151\x6e\x5f\163\145\164\x74\151\x6e\147\x73\x5f\152\x71\165\145\x72\171\137\163\x74\171\x6c\145", plugins_url("\151\156\x63\154\165\x64\x65\x73\x2f\143\x73\x73\x2f\152\x71\x75\x65\x72\x79\56\165\x69\x2e\143\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\154");
        wp_enqueue_style("\x6d\157\x5f\163\141\155\154\137\x61\144\155\151\156\x5f\x73\x65\164\x74\151\156\147\163\137\x73\x74\171\154\145\x5f\x74\x72\141\x63\153\145\x72", plugins_url("\x69\x6e\143\154\x75\144\x65\163\57\x63\x73\x73\57\x70\x72\157\x67\x72\145\x73\x73\x2d\164\162\x61\143\153\x65\162\56\x63\x73\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\154");
        wp_enqueue_style("\155\157\137\x73\141\x6d\154\x5f\x61\x64\155\151\156\x5f\x73\145\164\164\151\x6e\147\x73\x5f\x73\164\171\154\x65", plugins_url("\x69\156\x63\x6c\x75\x64\x65\163\57\143\x73\x73\57\163\164\171\154\x65\137\163\x65\x74\x74\151\156\147\x73\x2e\155\x69\x6e\56\x63\x73\163", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\x6c");
        wp_enqueue_style("\155\x6f\137\163\141\155\x6c\x5f\x61\144\155\x69\x6e\x5f\163\145\164\x74\x69\x6e\x67\163\137\160\150\157\156\145\137\x73\x74\171\154\145", plugins_url("\151\156\143\x6c\165\144\x65\163\57\x63\x73\163\x2f\x70\x68\x6f\x6e\145\x2e\155\151\156\x2e\x63\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\141\154\x6c");
        wp_enqueue_style("\155\157\137\x73\x61\x6d\154\x5f\167\160\x62\x2d\146\x61", plugins_url("\151\156\143\154\165\144\x65\163\57\143\x73\x73\x2f\x66\x6f\156\x74\55\141\x77\x65\163\157\155\145\56\155\151\x6e\x2e\143\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\154");
        wp_enqueue_style("\x6d\157\x5f\x73\x61\155\154\x5f\x6d\x61\x6e\141\147\x65\x5f\154\x69\143\x65\156\x73\145\137\163\145\164\x74\x69\156\147\x73\x5f\163\x74\x79\154\x65", plugins_url("\114\151\x63\x65\156\163\145\125\164\151\x6c\163\x2f\166\x69\145\167\x73\x2f\114\151\x63\x65\156\x73\145\x56\151\x65\167\x2e\143\x73\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\x6c");
    }
    function plugin_settings_script($yt)
    {
        if (!("\164\157\x70\154\145\166\145\x6c\x5f\x70\141\x67\x65\137\155\x6f\x5f\163\x61\155\x6c\x5f\163\x65\x74\x74\151\156\x67\163" != $yt && "\x6d\x69\x6e\x69\x6f\x72\x61\x6e\x67\x65\55\163\141\155\154\x2d\62\x2d\60\x2d\163\x73\157\x5f\160\141\147\145\x5f\x6d\x6f\137\x6d\x61\156\141\x67\145\x5f\x6c\151\143\x65\x6e\x73\x65" != $yt)) {
            goto C3;
        }
        return;
        C3:
        wp_enqueue_script("\152\161\x75\x65\162\171");
        wp_enqueue_script("\x6d\157\137\x73\141\155\154\x5f\141\x64\x6d\151\156\137\163\145\164\x74\151\156\147\x73\137\x63\157\x6c\157\162\x5f\x73\143\162\x69\160\x74", plugins_url("\x69\156\x63\154\165\144\145\163\57\x6a\163\57\x6a\x73\x63\x6f\x6c\x6f\x72\x2f\x6a\163\143\157\154\157\x72\x2e\x6a\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\x6d\x6f\137\x73\141\x6d\x6c\137\141\144\x6d\x69\x6e\x5f\x73\145\164\164\151\x6e\x67\163\x5f\163\x63\x72\151\160\x74", plugins_url("\151\x6e\143\154\x75\144\x65\163\57\x6a\x73\x2f\x73\145\164\164\151\x6e\x67\x73\56\155\x69\x6e\x2e\x6a\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\155\x6f\137\x73\141\155\x6c\137\x61\144\155\151\x6e\137\x73\x65\164\164\x69\x6e\x67\x73\x5f\160\x68\157\x6e\145\x5f\163\143\x72\151\x70\x74", plugins_url("\151\156\x63\x6c\165\x64\145\163\57\152\x73\57\x70\x68\x6f\156\x65\x2e\x6d\x69\x6e\56\152\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\155\157\x5f\163\x61\x6d\154\x5f\x61\x64\155\151\x6e\137\142\x6f\x6f\164\x73\164\162\141\x70\137\x73\143\162\151\160\x74", plugins_url("\151\x6e\143\x6c\x75\x64\145\163\57\152\x73\57\x62\x6f\157\164\x73\164\x72\x61\160\x2f\x62\x6f\x6f\164\163\x74\x72\141\160\x2e\x6d\151\156\56\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        if (!(isset($_REQUEST["\164\x61\x62"]) && $_REQUEST["\164\x61\142"] == "\154\x69\143\145\156\x73\x69\156\147")) {
            goto ts;
        }
        wp_enqueue_script("\155\157\137\163\x61\155\x6c\x5f\155\x6f\144\x65\x72\156\x69\172\x72\x5f\163\143\x72\x69\x70\164", plugins_url("\x69\x6e\143\x6c\165\x64\x65\163\57\152\x73\x2f\x6d\157\x64\145\x72\x6e\x69\x7a\x72\56\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        ts:
    }
    function mo_saml_activation_message()
    {
        $a4 = "\165\160\x64\141\x74\x65\144";
        $k0 = get_option("\155\x6f\x5f\163\141\155\154\137\x6d\145\163\163\141\x67\145");
        echo "\74\x64\151\x76\40\143\154\x61\x73\163\x3d\x27" . $a4 . "\47\x3e\40\74\160\x3e" . $k0 . "\x3c\x2f\x70\76\74\57\144\x69\x76\x3e";
    }
    function get_empty_strings()
    {
        return '';
    }
    function mo_saml_custom_attr_column($Tg)
    {
        $WC = maybe_unserialize(get_option("\x73\141\155\154\137\x73\150\157\x77\137\x75\x73\x65\162\137\x61\164\x74\162\x69\142\165\x74\x65"));
        if (!is_array($WC)) {
            goto cg;
        }
        $hj = maybe_unserialize(get_option("\155\x6f\x5f\x73\x61\x6d\x6c\137\x63\x75\x73\x74\x6f\x6d\137\141\x74\x74\x72\x73\137\155\x61\160\x70\151\156\147"));
        $lw = 0;
        if (!(!empty($WC) && is_array($hj))) {
            goto gC;
        }
        foreach ($hj as $WO => $cK) {
            if (empty($WO)) {
                goto M4;
            }
            if (!in_array($lw, $WC)) {
                goto UK;
            }
            $Tg[$WO] = $WO;
            UK:
            M4:
            $lw++;
            k_:
        }
        sS:
        gC:
        cg:
        return $Tg;
    }
    function mo_saml_attr_column_content($WW, $Nq, $tF)
    {
        $hj = maybe_unserialize(get_option("\155\157\x5f\x73\141\155\x6c\x5f\143\165\163\x74\157\x6d\x5f\141\164\x74\162\x73\137\x6d\141\160\x70\x69\156\x67"));
        if (!is_array($hj)) {
            goto QR;
        }
        foreach ($hj as $WO => $cK) {
            if (!($WO === $Nq)) {
                goto W1;
            }
            $q1 = get_user_meta($tF, $Nq, false);
            if (empty($q1)) {
                goto HK;
            }
            if (!is_array($q1[0])) {
                goto nA;
            }
            $cQ = '';
            foreach ($q1[0] as $AL) {
                $cQ = $cQ . $AL;
                if (!next($q1[0])) {
                    goto o3;
                }
                $cQ = $cQ . "\40\174\x20";
                o3:
                MJ:
            }
            At:
            return $cQ;
            goto AX;
            nA:
            return $q1[0];
            AX:
            HK:
            W1:
            Hv:
        }
        ft:
        QR:
        return $WW;
    }
    static function mo_check_option_admin_referer($jh)
    {
        return !empty($_POST["\x6f\160\164\x69\x6f\x6e"]) and $_POST["\x6f\160\164\x69\157\x6e"] == $jh and check_admin_referer($jh);
    }
    function miniorange_login_widget_saml_save_settings()
    {
        if (!current_user_can("\x6d\x61\156\141\x67\145\137\157\x70\x74\x69\x6f\156\163")) {
            goto Eq;
        }
        if (!(is_admin() && get_option("\101\143\164\151\x76\x61\164\145\x64\x5f\120\x6c\165\x67\x69\156") == "\120\x6c\165\x67\x69\156\55\123\154\165\x67")) {
            goto Oa;
        }
        delete_option("\101\143\x74\151\166\x61\x74\x65\x64\x5f\x50\x6c\x75\x67\x69\156");
        update_option("\x6d\157\137\x73\x61\155\x6c\137\155\x65\x73\x73\141\x67\x65", "\107\157\x20\x74\x6f\x20\160\154\165\147\151\x6e\40\74\x62\x3e\74\x61\40\150\x72\145\146\x3d\x22\141\x64\x6d\151\x6e\56\160\150\160\77\160\141\147\145\x3d\x6d\157\x5f\163\x61\x6d\154\x5f\163\x65\164\164\151\x6e\x67\163\42\76\163\145\x74\x74\x69\156\x67\x73\x3c\x2f\141\76\x3c\x2f\142\76\x20\164\x6f\x20\x63\157\x6e\x66\x69\147\x75\162\145\x20\123\101\115\114\x20\x53\x69\156\147\154\x65\40\x53\151\x67\156\40\117\x6e\40\x62\171\40\155\151\156\151\x4f\162\x61\x6e\147\145\x2e");
        add_action("\141\x64\155\151\x6e\x5f\156\x6f\x74\x69\143\x65\x73", array($this, "\x6d\x6f\137\163\141\x6d\x6c\x5f\x61\143\164\x69\166\x61\x74\x69\157\x6e\137\155\145\x73\163\141\x67\145"));
        Oa:
        Eq:
        if (!(!empty($_POST["\x6f\x70\164\x69\x6f\156"]) && current_user_can("\x6d\141\156\141\147\145\137\x6f\x70\x74\x69\x6f\x6e\x73"))) {
            goto hP;
        }
        if (!self::mo_check_option_admin_referer("\x6d\157\137\x6d\x61\x6e\x61\x67\x65\137\154\151\143\145\156\x73\x65")) {
            goto rW;
        }
        if (isset($_POST["\x6d\x6f\x5f\145\x6e\x61\142\154\145\137\x6d\x75\x6c\x74\151\160\x6c\x65\x5f\154\151\143\145\x6e\163\x65\163"])) {
            goto BV;
        }
        delete_option("\x6d\x6f\137\x65\x6e\141\142\x6c\145\137\x6d\x75\x6c\164\x69\x70\154\145\x5f\154\x69\x63\x65\156\x73\145\x73");
        goto iX;
        BV:
        update_option("\x6d\157\x5f\145\156\x61\x62\x6c\145\137\155\165\154\x74\x69\x70\154\145\137\154\151\143\x65\x6e\x73\145\163", "\x63\150\x65\143\153\145\x64");
        initializeLicenseObjectArray();
        iX:
        update_option("\155\x6f\137\163\x61\x6d\154\137\x6d\145\163\x73\x61\147\145", "\x43\157\156\x66\151\147\165\x72\x61\164\x69\x6f\x6e\40\163\x61\166\145\144\40\163\x75\143\x63\x65\x73\163\x66\165\154\x6c\171");
        SAMLSPUtilities::mo_saml_show_success_message();
        rW:
        if (!self::mo_check_option_admin_referer("\155\157\137\141\x64\144\151\156\x67\137\141\154\164\145\x72\156\x61\164\145\137\x65\x6e\166\151\162\157\156\x6d\145\x6e\164\163")) {
            goto yx;
        }
        if (updateLicenseObjects($_POST)) {
            goto Jh;
        }
        update_option("\x6d\157\x5f\163\x61\155\x6c\x5f\155\145\x73\x73\x61\x67\145", "\x59\x6f\x75\162\40\143\150\x61\156\x67\145\x73\40\167\145\x72\145\40\156\157\x74\x20\163\141\x76\x65\x64\56\x20\x50\154\145\141\163\x65\40\160\x72\157\x76\151\144\145\40\x75\x6e\x69\161\165\x65\x20\166\141\x6c\x75\145\x73\x20\x66\157\162\x20\171\157\165\162\40\145\x6e\x76\151\162\x6f\x6e\155\145\156\164\x73\40\x61\156\144\40\144\x6f\156\x27\164\40\x72\x65\x6d\157\166\x65\x20\164\150\145\40\143\x75\162\162\145\x6e\x74\x20\145\x6e\x76\x69\x72\157\156\x6d\x65\x6e\x74");
        SAMLSPUtilities::mo_saml_show_error_message();
        goto Vy;
        Jh:
        update_option("\155\157\x5f\163\x61\155\x6c\x5f\x6d\145\163\163\141\147\x65", "\x45\156\166\x69\162\157\x6e\x6d\145\156\164\x73\40\x75\160\144\141\164\x65\x64\40\163\165\x63\143\x65\163\163\146\x75\x6c\154\x79");
        SAMLSPUtilities::mo_saml_show_success_message();
        Vy:
        yx:
        if (!self::mo_check_option_admin_referer("\x6d\157\x5f\x63\150\x61\x6e\x67\x65\137\x65\156\166\151\162\x6f\156\145\155\164")) {
            goto QV;
        }
        update_option("\155\x6f\x5f\163\141\155\154\137\x73\x65\154\145\x63\164\145\144\x5f\x65\x6e\166\151\162\x6f\x6e\x6d\145\156\x74", $_POST["\x65\x6e\166\x69\x72\x6f\x6e\155\145\x6e\164"]);
        update_option("\x6d\x6f\137\x73\141\x6d\154\x5f\155\145\163\163\x61\x67\x65", "\x45\x6e\166\x69\x72\157\x6e\x6d\145\x6e\x74\40\143\150\141\x6e\147\x65\144\x20\163\x75\x63\143\145\x73\x73\146\165\154\154\x79");
        SAMLSPUtilities::mo_saml_show_success_message();
        QV:
        if (self::mo_check_option_admin_referer("\x6c\x6f\x67\151\156\x5f\167\151\144\147\x65\164\137\x73\x61\x6d\x6c\137\163\x61\x76\145\137\x73\145\164\x74\x69\x6e\x67\x73")) {
            goto VT;
        }
        if (self::mo_check_option_admin_referer("\154\x6f\147\151\156\x5f\x77\151\144\147\145\164\x5f\x73\x61\155\154\137\x61\x74\x74\162\x69\142\165\164\145\x5f\155\x61\x70\x70\x69\156\x67")) {
            goto S_;
        }
        if (self::mo_check_option_admin_referer("\x63\x6c\x65\141\162\x5f\x61\x74\x74\162\163\137\x6c\151\x73\x74")) {
            goto w4;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\x73\141\x6d\154\137\x61\x64\144\157\156\x73\137\155\145\x73\163\141\147\x65")) {
            goto ml;
        }
        if (self::mo_check_option_admin_referer("\x6c\157\147\x69\156\137\167\151\144\x67\x65\164\137\163\x61\155\x6c\x5f\x72\157\x6c\x65\x5f\155\x61\160\160\151\156\x67")) {
            goto Ah;
        }
        if (self::mo_check_option_admin_referer("\163\141\155\x6c\x5f\x66\157\162\x6d\x5f\144\157\x6d\x61\x69\x6e\137\x72\x65\163\x74\162\151\x63\x74\151\157\x6e\137\157\160\164\151\x6f\156")) {
            goto k9;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\137\163\141\x6d\154\137\x75\x70\x64\x61\164\145\x5f\151\144\x70\137\x73\145\x74\164\151\x6e\x67\x73\137\x6f\x70\x74\x69\157\156")) {
            goto VO;
        }
        if (!self::mo_check_option_admin_referer("\163\141\x6d\154\x5f\165\160\x6c\x6f\x61\x64\137\x6d\x65\164\141\x64\x61\x74\x61")) {
            goto aM;
        }
        if (!empty($_POST["\x73\x61\155\154\x5f\151\144\x65\156\x74\151\164\171\x5f\155\145\x74\x61\144\141\x74\x61\137\160\x72\157\x76\x69\x64\x65\x72"])) {
            goto tA;
        }
        update_option("\155\157\137\x73\141\x6d\154\137\155\x65\x73\x73\x61\x67\x65", "\120\154\x65\141\x73\x65\40\x45\156\164\x65\x72\x20\166\x61\x6c\151\144\x20\111\x64\x65\x6e\x74\151\164\171\x20\x50\162\157\x76\151\144\145\x72\40\156\141\155\145\x2e");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        tA:
        if (preg_match("\x2f\x5e\x5c\167\x2a\44\x2f", $_POST["\x73\141\x6d\x6c\137\151\x64\145\x6e\x74\151\164\x79\x5f\x6d\x65\164\x61\x64\141\164\x61\x5f\160\162\x6f\166\x69\144\x65\162"])) {
            goto PM;
        }
        update_option("\x6d\157\x5f\163\141\155\154\137\x6d\145\x73\x73\x61\x67\x65", "\120\x6c\145\x61\163\145\40\x6d\141\164\x63\150\x20\x74\x68\145\x20\162\x65\161\x75\x65\x73\164\x65\x64\x20\x66\x6f\x72\155\x61\164\x20\x66\157\162\40\x49\144\x65\156\x74\x69\x74\171\x20\120\162\x6f\x76\x69\144\145\x72\x20\x4e\141\155\145\56\40\117\x6e\154\x79\x20\x61\x6c\160\x68\141\142\x65\164\x73\x2c\40\x6e\x75\x6d\142\x65\162\x73\40\141\x6e\144\40\x75\156\144\145\162\x73\143\x6f\x72\x65\x20\x69\x73\x20\x61\x6c\154\x6f\167\x65\144\x2e");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        PM:
        if (!function_exists("\x77\x70\137\150\x61\156\144\x6c\145\137\165\x70\x6c\157\x61\144")) {
            require_once ABSPATH . "\167\x70\55\141\144\x6d\x69\156\x2f\x69\x6e\143\x6c\x75\144\x65\x73\x2f\146\x69\x6c\145\x2e\160\150\x70";
        }
        $this->_handle_upload_metadata();
        aM:
        goto Ci;
        VO:
        if (!(!empty($_POST["\155\157\137\x73\x61\155\154\x5f\163\160\x5f\x62\x61\x73\145\x5f\x75\x72\x6c"]) && !empty($_POST["\155\157\137\163\141\x6d\x6c\x5f\163\x70\137\x65\x6e\164\151\164\x79\137\x69\144"]))) {
            goto EM;
        }
        $PG = htmlspecialchars($_POST["\x6d\157\137\163\x61\x6d\154\137\x73\x70\137\x62\x61\x73\x65\x5f\x75\162\x6c"]);
        $rb = htmlspecialchars($_POST["\155\x6f\137\x73\141\x6d\154\137\x73\x70\x5f\x65\156\x74\x69\164\x79\x5f\x69\x64"]);
        if (!(substr($PG, -1) == "\57")) {
            goto Fg;
        }
        $PG = substr($PG, 0, -1);
        Fg:
        update_option("\155\x6f\137\163\141\x6d\x6c\137\x73\160\137\142\x61\163\145\137\165\x72\154", $PG);
        update_option("\155\157\x5f\163\141\155\154\137\x73\x70\137\145\156\164\151\164\171\x5f\x69\144", $rb);
        EM:
        update_option("\155\157\x5f\163\141\155\x6c\137\x6d\x65\163\163\141\x67\145", "\123\x65\x74\164\151\x6e\x67\163\x20\x75\160\144\141\164\145\144\x20\163\x75\x63\x63\x65\x73\163\146\x75\x6c\x6c\x79\56");
        SAMLSPUtilities::mo_saml_show_success_message();
        Ci:
        goto C2;
        k9:
        $Q7 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($Q7 and $Q7 != LicenseHelper::getCurrentEnvironment())) {
            goto rw;
        }
        return;
        rw:
        $fr = !empty($_POST["\155\x6f\x5f\163\x61\155\154\x5f\x65\156\141\x62\x6c\x65\x5f\x64\157\155\x61\151\156\x5f\162\x65\163\164\x72\151\143\x74\x69\x6f\x6e\137\x6c\157\147\151\x6e"]) ? htmlspecialchars($_POST["\x6d\157\x5f\x73\x61\x6d\154\137\145\156\141\x62\154\x65\x5f\144\157\x6d\x61\151\x6e\x5f\x72\145\163\164\162\151\x63\x74\x69\157\x6e\x5f\154\x6f\147\x69\x6e"]) : '';
        $tu = !empty($_POST["\155\x6f\x5f\x73\x61\x6d\154\x5f\141\154\x6c\x6f\x77\137\x64\145\x6e\171\137\165\x73\145\162\137\167\x69\x74\150\137\x64\157\155\x61\x69\156"]) ? htmlspecialchars($_POST["\x6d\x6f\137\163\x61\155\x6c\137\141\x6c\x6c\157\x77\137\144\145\x6e\171\x5f\165\x73\x65\x72\137\x77\x69\164\150\137\144\157\x6d\x61\151\x6e"]) : "\x61\x6c\x6c\157\x77";
        $k8 = !empty($_POST["\x73\141\155\154\137\141\155\137\x65\155\141\151\154\137\144\x6f\x6d\141\151\156\163"]) ? htmlspecialchars($_POST["\163\141\155\154\137\x61\x6d\x5f\x65\x6d\x61\151\154\x5f\144\157\155\x61\151\x6e\163"]) : '';
        update_option("\155\157\137\x73\141\155\x6c\137\x65\x6e\x61\142\x6c\x65\137\x64\157\155\x61\151\x6e\137\x72\145\163\164\x72\x69\x63\164\151\x6f\156\137\154\x6f\147\x69\156", $fr);
        update_option("\155\x6f\137\x73\x61\155\x6c\137\141\154\154\157\x77\137\x64\x65\x6e\171\x5f\x75\163\x65\162\x5f\167\151\x74\x68\x5f\x64\x6f\x6d\x61\151\156", $tu);
        update_option("\x73\141\x6d\154\x5f\x61\155\137\x65\155\x61\x69\154\137\x64\x6f\155\x61\x69\x6e\x73", $k8);
        update_option("\155\157\x5f\163\x61\155\x6c\x5f\155\x65\x73\163\x61\147\145", "\x44\157\155\x61\x69\x6e\x20\x52\145\x73\164\x72\x69\143\x74\151\157\x6e\40\150\141\163\x20\142\145\145\x6e\40\x73\141\x76\x65\x64\40\163\165\x63\x63\145\163\x73\146\165\x6c\x6c\171\56");
        SAMLSPUtilities::mo_saml_show_success_message();
        C2:
        goto qv;
        Ah:
        $Q7 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($Q7 and $Q7 != LicenseHelper::getCurrentEnvironment())) {
            goto GM;
        }
        return;
        GM:
        if (mo_saml_is_extension_installed("\x63\165\162\x6c")) {
            goto dD;
        }
        update_option("\155\157\137\x73\x61\155\154\x5f\155\x65\x73\163\x61\x67\x65", "\x45\x52\122\117\x52\72\40\120\110\120\40\143\x55\x52\x4c\40\x65\x78\x74\145\156\x73\151\157\x6e\40\151\163\40\x6e\157\164\x20\151\156\x73\164\141\154\154\x65\x64\40\x6f\162\x20\x64\151\163\x61\142\x6c\145\144\x2e\40\123\141\166\145\40\122\x6f\x6c\145\40\x4d\x61\x70\x70\x69\156\x67\40\x66\x61\x69\154\145\x64\56");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        dD:
        if (empty($_POST["\163\141\x6d\154\137\x61\155\137\x64\145\x66\141\x75\154\164\137\165\x73\x65\x72\137\x72\x6f\x6c\x65"])) {
            goto DR;
        }
        $nP = htmlspecialchars($_POST["\x73\x61\155\154\x5f\141\155\137\144\145\146\x61\165\x6c\164\137\165\163\x65\x72\137\x72\x6f\154\145"]);
        update_option("\163\x61\155\154\x5f\141\155\x5f\144\x65\146\141\x75\154\x74\x5f\x75\x73\x65\x72\137\x72\x6f\154\145", $nP);
        DR:
        if (isset($_POST["\163\141\x6d\x6c\137\x61\x6d\137\144\157\x6e\x74\137\141\154\154\x6f\x77\137\x75\156\x6c\x69\x73\164\145\144\137\165\x73\145\x72\137\162\157\x6c\x65"])) {
            goto EA;
        }
        update_option("\x73\x61\155\154\x5f\x61\155\137\144\x6f\156\x74\x5f\141\x6c\154\x6f\x77\x5f\x75\x6e\154\151\163\x74\x65\x64\x5f\x75\x73\145\x72\137\162\x6f\x6c\x65", "\x75\156\143\x68\145\x63\153\145\x64");
        goto VG;
        EA:
        update_option("\x73\x61\155\154\x5f\x61\x6d\137\x64\x65\146\141\165\x6c\x74\137\x75\163\x65\x72\137\x72\x6f\x6c\x65", false);
        update_option("\163\x61\155\x6c\x5f\141\x6d\137\x64\x6f\156\x74\x5f\x61\x6c\x6c\157\x77\x5f\165\156\154\151\163\x74\145\x64\x5f\x75\163\x65\162\x5f\x72\x6f\x6c\145", "\143\150\145\x63\153\145\x64");
        VG:
        if (isset($_POST["\x6d\157\x5f\x73\141\x6d\154\x5f\144\x6f\156\x74\x5f\143\x72\x65\x61\x74\x65\137\165\163\x65\x72\x5f\151\x66\137\x72\x6f\x6c\145\x5f\x6e\157\164\137\x6d\x61\x70\160\145\x64"])) {
            goto KN;
        }
        update_option("\x6d\x6f\x5f\163\x61\x6d\154\137\144\157\x6e\164\137\x63\162\145\x61\164\145\x5f\165\163\x65\162\137\151\146\x5f\162\157\154\145\137\156\x6f\x74\x5f\155\x61\160\160\x65\144", "\165\x6e\x63\150\x65\x63\153\145\x64");
        goto tQ;
        KN:
        update_option("\155\x6f\x5f\163\x61\155\154\x5f\x64\157\156\x74\x5f\143\162\145\x61\x74\x65\x5f\x75\163\145\x72\137\151\x66\137\162\157\154\145\137\x6e\157\164\x5f\155\x61\160\x70\x65\x64", "\x63\x68\145\x63\153\x65\x64");
        update_option("\163\141\x6d\x6c\137\x61\x6d\137\x64\x65\146\x61\x75\154\164\137\x75\x73\x65\x72\137\x72\157\154\145", false);
        update_option("\x73\141\x6d\x6c\137\x61\x6d\x5f\x64\157\x6e\164\137\x61\154\154\157\167\137\165\156\154\151\163\x74\x65\x64\137\165\x73\x65\162\137\x72\157\154\x65", "\x75\156\143\150\145\143\153\x65\x64");
        tQ:
        if (isset($_POST["\155\157\137\x73\x61\155\x6c\x5f\x64\x6f\156\164\x5f\x75\x70\144\x61\164\x65\x5f\x65\170\151\x73\x74\151\156\x67\137\x75\x73\x65\x72\137\162\x6f\x6c\x65"])) {
            goto V3;
        }
        update_option("\x73\141\x6d\x6c\137\141\x6d\x5f\x64\x6f\x6e\164\x5f\165\160\144\141\x74\x65\137\145\170\x69\163\x74\151\156\x67\137\165\x73\145\162\x5f\x72\157\x6c\x65", "\x75\x6e\x63\x68\145\143\153\x65\144");
        goto wl;
        V3:
        update_option("\x73\141\x6d\x6c\137\x61\155\x5f\x64\x6f\x6e\164\x5f\165\160\x64\141\x74\x65\137\145\x78\151\x73\164\151\x6e\147\x5f\x75\163\145\162\x5f\x72\x6f\154\145", "\143\150\x65\x63\x6b\145\x64");
        update_option("\x73\x61\x6d\x6c\137\141\x6d\x5f\165\x70\x64\141\x74\145\137\141\144\x6d\151\156\137\x75\163\145\162\x73\137\162\x6f\154\145", "\165\x6e\143\150\x65\143\153\145\x64");
        wl:
        if (isset($_POST["\x6d\x6f\137\163\141\155\x6c\x5f\165\x70\x64\x61\x74\x65\137\x61\144\x6d\x69\x6e\137\x75\163\145\x72\x73\137\x72\157\x6c\x65"])) {
            goto ai;
        }
        update_option("\x73\141\x6d\154\137\x61\155\x5f\x75\160\144\141\x74\x65\137\141\144\x6d\151\x6e\137\165\x73\x65\x72\163\137\162\x6f\x6c\145", "\165\x6e\143\x68\145\x63\x6b\x65\144");
        goto LF;
        ai:
        update_option("\x73\141\155\154\x5f\141\x6d\137\165\x70\144\141\x74\x65\x5f\141\x64\155\151\x6e\137\165\x73\x65\162\x73\x5f\x72\157\x6c\x65", "\143\x68\x65\143\x6b\145\x64");
        LF:
        if (isset($_POST["\x6d\157\137\x73\141\155\x6c\137\144\x6f\156\164\137\141\x6c\154\157\167\x5f\165\x73\145\162\x5f\x74\157\154\x6f\x67\x69\156\x5f\143\x72\145\x61\164\x65\x5f\167\x69\164\150\137\x67\x69\166\145\156\x5f\x67\x72\x6f\x75\160\163"])) {
            goto HU;
        }
        update_option("\x73\x61\x6d\x6c\x5f\x61\x6d\x5f\x64\x6f\x6e\164\137\x61\x6c\x6c\157\167\x5f\165\x73\x65\x72\x5f\x74\x6f\154\x6f\147\151\156\x5f\x63\162\x65\x61\164\x65\x5f\x77\x69\x74\x68\x5f\x67\151\166\x65\x6e\137\x67\162\157\x75\x70\x73", "\165\156\143\150\x65\143\153\x65\144");
        goto W3;
        HU:
        update_option("\163\x61\x6d\154\x5f\141\155\137\144\157\156\164\137\141\154\x6c\x6f\x77\137\x75\163\145\x72\x5f\x74\157\x6c\157\147\x69\x6e\137\x63\x72\x65\x61\x74\145\x5f\167\x69\x74\x68\x5f\147\x69\166\x65\156\x5f\x67\x72\157\165\x70\x73", "\x63\150\145\143\153\145\x64");
        if (isset($_POST["\x6d\157\x5f\x73\141\155\154\x5f\x72\145\163\164\x72\x69\x63\x74\137\165\x73\x65\162\x73\137\x77\x69\x74\x68\137\x67\x72\x6f\x75\x70\x73"])) {
            goto nR;
        }
        update_option("\x6d\x6f\x5f\163\x61\155\154\137\162\145\163\x74\x72\151\x63\x74\137\x75\x73\x65\162\x73\137\167\x69\164\x68\x5f\x67\162\x6f\x75\160\163", '');
        goto PN;
        nR:
        update_option("\x6d\x6f\137\163\x61\155\154\137\x72\x65\163\x74\x72\151\x63\164\137\x75\163\x65\162\x73\x5f\x77\x69\x74\150\137\147\x72\x6f\165\160\163", htmlspecialchars(stripslashes($_POST["\x6d\x6f\x5f\x73\141\155\154\x5f\x72\145\163\x74\x72\151\x63\x74\x5f\165\x73\145\x72\x73\x5f\167\151\x74\150\x5f\147\162\157\x75\160\163"])));
        PN:
        W3:
        $wp_roles = new WP_Roles();
        $gs = $wp_roles->get_names();
        $zl = array();
        foreach ($gs as $bc => $Ag) {
            $IT = "\163\141\155\154\137\x61\x6d\x5f\x67\162\157\x75\x70\137\x61\164\164\x72\x5f\166\x61\x6c\x75\x65\163\137" . $bc;
            $zl[$bc] = htmlspecialchars(stripslashes($_POST[$IT]));
            dV:
        }
        Lr:
        update_option("\x73\141\x6d\x6c\x5f\x61\155\137\162\157\154\145\x5f\x6d\141\160\160\x69\156\x67", $zl);
        update_option("\x6d\157\x5f\x73\141\155\154\x5f\x6d\145\x73\163\x61\147\145", "\122\x6f\154\145\x20\x4d\x61\x70\160\x69\x6e\x67\40\x64\x65\164\x61\x69\x6c\163\40\x73\x61\x76\145\144\40\x73\x75\143\x63\145\163\163\x66\165\154\154\x79\x2e");
        SAMLSPUtilities::mo_saml_show_success_message();
        qv:
        goto bR;
        ml:
        update_option("\155\x6f\x5f\x73\141\x6d\154\x5f\163\150\x6f\167\x5f\x61\x64\144\157\156\163\137\156\157\x74\151\x63\145", 1);
        bR:
        goto h4;
        w4:
        delete_option("\155\157\x5f\x73\x61\x6d\x6c\137\164\x65\163\x74\x5f\143\157\156\146\151\x67\137\x61\x74\x74\x72\163");
        update_option("\155\157\137\x73\141\x6d\154\137\x6d\x65\x73\163\x61\147\145", "\101\x74\x74\x72\x69\x62\x75\164\145\163\x20\x6c\x69\x73\164\40\x72\145\x6d\x6f\x76\145\x64\40\163\165\143\x63\145\x73\x73\146\x75\154\x6c\171");
        SAMLSPUtilities::mo_saml_show_success_message();
        h4:
        goto TY;
        S_:
        if (mo_saml_is_extension_installed("\x63\x75\162\x6c")) {
            goto Ja;
        }
        update_option("\155\157\x5f\163\141\155\x6c\x5f\155\145\x73\163\x61\147\x65", "\105\x52\122\117\122\72\x20\120\110\120\x20\x63\125\122\114\40\x65\x78\164\x65\x6e\x73\x69\157\x6e\x20\151\x73\x20\x6e\x6f\164\40\x69\x6e\x73\164\x61\x6c\x6c\x65\x64\40\157\162\40\x64\x69\x73\x61\x62\x6c\145\x64\56\x20\123\x61\166\x65\x20\x41\164\x74\162\151\142\x75\164\x65\x20\x4d\x61\160\160\x69\156\147\40\x66\141\151\x6c\x65\144\56");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        Ja:
        $Q7 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($Q7 and $Q7 != LicenseHelper::getCurrentEnvironment())) {
            goto Qj;
        }
        return;
        Qj:
        update_option("\x73\x61\x6d\154\137\x61\155\x5f\x75\163\x65\162\156\141\155\145", htmlspecialchars(stripslashes($_POST["\x73\141\x6d\154\x5f\x61\155\137\x75\x73\145\162\x6e\141\155\x65"])));
        update_option("\163\x61\155\154\137\x61\155\137\145\x6d\141\x69\154", htmlspecialchars(stripslashes($_POST["\163\141\155\154\x5f\x61\155\x5f\145\x6d\x61\x69\154"])));
        update_option("\x73\141\x6d\154\137\x61\x6d\137\x66\151\162\163\x74\137\156\x61\x6d\x65", htmlspecialchars(stripslashes($_POST["\x73\141\155\x6c\137\x61\x6d\137\x66\x69\162\x73\164\137\156\x61\155\145"])));
        update_option("\163\x61\155\154\137\141\x6d\x5f\154\x61\x73\x74\137\156\x61\155\x65", htmlspecialchars(stripslashes($_POST["\163\x61\x6d\154\137\x61\x6d\137\154\x61\163\x74\137\156\x61\155\145"])));
        update_option("\x73\x61\x6d\154\x5f\x61\x6d\137\147\x72\x6f\x75\160\137\156\x61\155\145", htmlspecialchars(stripslashes($_POST["\163\141\155\x6c\137\x61\155\137\x67\162\157\x75\160\x5f\x6e\x61\x6d\145"])));
        update_option("\x73\141\155\x6c\x5f\141\x6d\x5f\x64\x69\x73\160\x6c\141\171\137\x6e\141\x6d\145", htmlspecialchars(stripslashes($_POST["\163\141\155\154\x5f\x61\x6d\x5f\x64\x69\163\160\154\141\171\x5f\156\x61\155\145"])));
        $hj = array();
        $lD = array();
        $Yr = array();
        $Z9 = array();
        if (empty($_POST["\x6d\157\x5f\163\141\155\154\137\143\165\163\x74\x6f\x6d\x5f\141\164\164\x72\x69\142\165\x74\x65\x5f\153\145\171\x73"])) {
            goto OX;
        }
        $lD = $_POST["\x6d\157\x5f\x73\x61\155\x6c\x5f\x63\x75\x73\x74\x6f\155\137\x61\x74\x74\162\x69\x62\165\164\x65\137\153\x65\171\x73"];
        OX:
        if (empty($_POST["\155\x6f\137\x73\141\x6d\x6c\137\x63\x75\x73\164\157\155\137\x61\164\x74\162\x69\x62\x75\164\145\137\166\x61\x6c\165\145\163"])) {
            goto Av;
        }
        $Yr = $_POST["\155\157\x5f\x73\141\x6d\154\x5f\143\x75\163\164\x6f\155\137\141\x74\164\162\151\x62\x75\164\x65\137\166\x61\154\x75\145\x73"];
        Av:
        $oB = count($lD);
        if (!($oB > 0)) {
            goto d9;
        }
        $lD = array_map("\x68\164\155\x6c\x73\x70\x65\143\151\141\154\x63\150\x61\x72\163", $lD);
        $Yr = array_map("\x68\164\155\x6c\163\x70\145\x63\151\141\x6c\x63\150\x61\162\163", $Yr);
        $hV = 0;
        MZ:
        if (!($hV < $oB)) {
            goto JF;
        }
        if (empty($_POST["\x6d\157\137\163\141\x6d\154\x5f\x64\x69\x73\x70\x6c\141\x79\x5f\141\164\x74\x72\x69\x62\x75\164\145\x5f" . $hV])) {
            goto GK;
        }
        array_push($Z9, $hV);
        GK:
        $hV++;
        goto MZ;
        JF:
        d9:
        update_option("\163\x61\155\x6c\137\163\x68\x6f\x77\x5f\165\163\x65\162\x5f\141\x74\x74\x72\x69\x62\165\164\145", $Z9);
        $hj = array_combine($lD, $Yr);
        $hj = array_filter($hj);
        if (!empty($hj)) {
            goto Mr;
        }
        $hj = get_option("\155\x6f\137\x73\x61\155\154\x5f\143\x75\x73\164\x6f\155\x5f\141\x74\164\x72\163\137\155\141\160\x70\x69\156\147");
        if (empty($hj)) {
            goto HS;
        }
        delete_option("\x6d\157\137\x73\x61\155\154\137\x63\165\x73\164\157\155\137\x61\x74\164\162\x73\137\155\x61\x70\x70\x69\156\147");
        HS:
        goto IG;
        Mr:
        update_option("\155\157\137\163\141\155\x6c\137\143\x75\x73\164\157\x6d\137\x61\164\164\162\x73\x5f\x6d\x61\x70\160\x69\156\147", $hj);
        IG:
        update_option("\155\x6f\137\x73\x61\x6d\x6c\137\x6d\145\x73\x73\x61\x67\x65", "\x41\164\x74\x72\x69\142\x75\x74\145\40\x4d\x61\x70\x70\x69\156\x67\x20\x64\x65\164\x61\151\x6c\163\x20\x73\141\166\145\x64\40\163\165\x63\x63\145\x73\x73\x66\165\154\154\x79");
        SAMLSPUtilities::mo_saml_show_success_message();
        TY:
        goto k2;
        VT:
        if (mo_saml_is_extension_installed("\x63\165\162\154")) {
            goto Ae;
        }
        update_option("\155\157\x5f\163\141\x6d\154\137\x6d\145\x73\x73\141\x67\145", "\105\122\x52\117\x52\72\x20\x50\x48\120\x20\143\125\x52\x4c\x20\x65\x78\x74\145\x6e\x73\151\x6f\x6e\x20\151\163\40\156\x6f\x74\40\151\x6e\x73\164\x61\x6c\x6c\145\x64\x20\x6f\x72\x20\x64\151\163\141\x62\x6c\x65\144\56\40\x53\141\166\x65\40\111\144\x65\x6e\x74\x69\164\x79\x20\x50\162\157\166\x69\x64\145\162\x20\x43\157\156\146\151\x67\165\x72\x61\164\x69\x6f\x6e\x20\146\x61\151\x6c\145\x64\56");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        Ae:
        $Q7 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($Q7 and $Q7 != LicenseHelper::getCurrentEnvironment())) {
            goto nj;
        }
        return;
        nj:
        $IC = '';
        $DI = '';
        $Sa = '';
        $Sm = '';
        $h0 = '';
        $Cd = '';
        $DR = '';
        $zn = '';
        $So = '';
        if (empty($_POST["\x73\141\x6d\x6c\137\x69\144\x65\x6e\x74\x69\164\171\x5f\156\x61\x6d\145"]) || empty($_POST["\x73\141\x6d\154\137\x6c\157\x67\151\x6e\137\165\x72\x6c"]) || empty($_POST["\163\141\155\154\137\x69\x73\163\x75\x65\162"]) || empty($_POST["\163\141\x6d\x6c\x5f\x6e\x61\x6d\145\x69\x64\x5f\x66\x6f\162\155\141\x74"])) {
            goto Vh;
        }
        if (!preg_match("\x2f\x5e\x5c\167\x2a\x24\x2f", $_POST["\163\x61\x6d\154\137\151\x64\x65\156\x74\151\x74\x79\137\156\x61\155\145"])) {
            goto Ek;
        }
        $IC = htmlspecialchars(trim($_POST["\x73\141\x6d\154\137\x69\144\145\x6e\x74\151\164\x79\x5f\156\x61\155\x65"]));
        $Sa = htmlspecialchars(trim($_POST["\163\x61\x6d\x6c\x5f\154\157\x67\x69\156\x5f\165\x72\x6c"]));
        if (empty($_POST["\163\141\155\x6c\x5f\x6c\157\x67\151\156\x5f\142\x69\156\x64\151\x6e\x67\x5f\x74\x79\160\145"])) {
            goto XT;
        }
        $DI = htmlspecialchars($_POST["\x73\x61\155\x6c\x5f\x6c\157\x67\x69\x6e\x5f\142\151\x6e\x64\x69\156\x67\137\x74\171\x70\x65"]);
        XT:
        if (empty($_POST["\x73\141\155\x6c\137\x6c\157\x67\x6f\165\x74\137\x62\151\x6e\144\x69\156\x67\137\x74\171\x70\145"])) {
            goto ql;
        }
        $Sm = htmlspecialchars($_POST["\163\141\x6d\x6c\x5f\154\x6f\x67\x6f\165\164\x5f\x62\x69\156\144\x69\156\147\x5f\164\171\160\145"]);
        ql:
        if (empty($_POST["\163\x61\x6d\154\x5f\154\157\147\x6f\x75\x74\137\165\162\154"])) {
            goto qY;
        }
        $h0 = htmlspecialchars(trim($_POST["\163\141\155\154\x5f\154\157\x67\x6f\x75\x74\137\x75\x72\154"]));
        qY:
        $Cd = htmlspecialchars(trim($_POST["\163\141\x6d\154\x5f\151\x73\x73\x75\145\162"]));
        if (empty($_POST["\x6d\x6f\137\x73\141\x6d\154\137\151\144\x65\156\164\x69\164\x79\137\160\x72\x6f\x76\151\x64\145\162\x5f\151\144\x65\156\164\x69\x66\151\x65\x72\x5f\156\141\x6d\145"])) {
            goto tu;
        }
        $cH = htmlspecialchars($_POST["\x6d\x6f\x5f\163\141\155\154\x5f\151\144\145\x6e\x74\x69\x74\171\137\x70\162\x6f\166\x69\x64\145\162\137\151\x64\145\156\x74\151\x66\x69\145\162\137\x6e\x61\x6d\x65"]);
        update_option("\155\157\x5f\x73\x61\155\x6c\x5f\x69\144\x65\x6e\x74\151\164\x79\137\x70\x72\x6f\166\x69\144\x65\162\137\151\144\145\156\x74\x69\x66\x69\x65\x72\137\156\141\155\x65", $cH);
        tu:
        $DR = $_POST["\163\141\155\154\x5f\x78\x35\60\x39\x5f\x63\x65\162\164\x69\x66\x69\143\141\164\x65"];
        $So = htmlspecialchars($_POST["\163\x61\x6d\x6c\137\156\141\x6d\145\x69\144\137\x66\157\162\155\141\x74"]);
        goto Zr;
        Ek:
        update_option("\x6d\157\137\x73\x61\x6d\x6c\x5f\x6d\145\163\163\141\147\145", "\120\x6c\145\141\163\x65\x20\155\x61\164\143\150\x20\164\150\x65\40\x72\145\x71\165\x65\163\x74\x65\144\40\x66\157\162\x6d\x61\x74\x20\x66\157\x72\40\111\x64\x65\x6e\164\x69\x74\171\40\x50\x72\x6f\x76\x69\144\x65\x72\40\x4e\x61\155\145\x2e\x20\x4f\x6e\154\x79\x20\x61\154\x70\150\x61\x62\x65\x74\163\x2c\x20\x6e\x75\155\x62\145\x72\x73\x20\x61\x6e\144\40\x75\x6e\x64\x65\162\163\143\x6f\162\145\40\151\x73\x20\x61\x6c\x6c\x6f\167\x65\x64\56");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        Zr:
        goto Wi;
        Vh:
        update_option("\155\157\x5f\x73\141\x6d\x6c\137\x6d\x65\x73\163\141\x67\x65", "\x41\154\x6c\x20\x74\150\x65\x20\x66\151\145\x6c\144\x73\x20\141\x72\145\40\x72\x65\161\165\x69\x72\x65\144\x2e\x20\120\154\145\x61\163\x65\40\x65\x6e\x74\145\162\x20\x76\x61\x6c\x69\144\x20\x65\156\164\162\x69\145\x73\x2e");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        Wi:
        update_option("\163\x61\x6d\x6c\137\151\x64\145\156\x74\151\164\171\137\x6e\x61\x6d\x65", $IC);
        update_option("\163\x61\155\x6c\137\154\x6f\x67\x69\156\x5f\142\151\156\x64\x69\156\147\137\x74\x79\160\x65", $DI);
        update_option("\163\x61\x6d\154\137\x6c\157\147\151\x6e\x5f\165\162\x6c", $Sa);
        update_option("\x73\x61\x6d\x6c\137\154\157\147\157\x75\x74\137\x62\151\156\144\x69\156\147\x5f\x74\171\160\x65", $Sm);
        update_option("\163\x61\x6d\154\137\x6c\157\147\x6f\x75\x74\x5f\165\x72\x6c", $h0);
        update_option("\x73\141\155\x6c\x5f\151\x73\x73\165\145\x72", $Cd);
        update_option("\x73\x61\155\154\x5f\156\x61\x6d\x65\x69\x64\137\x66\x6f\162\x6d\x61\164", $So);
        if (isset($_POST["\x73\x61\155\x6c\x5f\x72\x65\x71\165\145\163\164\x5f\163\x69\x67\156\145\x64"])) {
            goto CQ;
        }
        update_option("\163\141\155\154\x5f\x72\x65\x71\x75\x65\163\164\137\x73\x69\x67\x6e\x65\x64", "\165\156\143\x68\x65\x63\153\x65\x64");
        goto vE;
        CQ:
        update_option("\163\x61\155\x6c\137\162\145\161\165\x65\x73\x74\137\x73\x69\147\156\x65\144", "\143\x68\145\x63\153\x65\144");
        vE:
        foreach ($DR as $WO => $cK) {
            if (empty($cK)) {
                goto Jc;
            }
            $DR[$WO] = SAMLSPUtilities::sanitize_certificate($cK);
            if (@openssl_x509_read($DR[$WO])) {
                goto kr;
            }
            update_option("\x6d\x6f\x5f\x73\x61\155\154\x5f\x6d\145\x73\163\x61\x67\x65", "\111\x6e\166\141\x6c\x69\144\40\x63\x65\162\164\151\146\x69\143\141\164\x65\72\x20\x50\154\x65\x61\163\145\40\160\162\157\166\151\x64\145\40\141\40\x76\x61\154\x69\144\x20\143\145\162\164\x69\146\151\x63\141\x74\145\x2e");
            SAMLSPUtilities::mo_saml_show_error_message();
            delete_option("\163\x61\x6d\x6c\x5f\170\x35\60\71\137\x63\x65\x72\164\x69\x66\x69\143\141\x74\x65");
            return;
            kr:
            goto Bj;
            Jc:
            unset($DR[$WO]);
            Bj:
            JD:
        }
        KB:
        if (!empty($DR)) {
            goto EP;
        }
        update_option("\x6d\x6f\137\x73\x61\x6d\x6c\x5f\x6d\145\x73\x73\141\x67\145", "\x49\156\x76\x61\154\151\144\x20\103\x65\162\164\x69\x66\151\143\x61\164\x65\x3a\120\x6c\145\x61\163\145\x20\160\x72\157\166\151\x64\145\40\x61\40\x63\x65\162\164\x69\146\x69\143\141\x74\145");
        SAMLSPUtilities::mo_saml_show_error_message();
        return;
        EP:
        update_option("\163\x61\155\x6c\137\x78\x35\60\x39\137\x63\x65\x72\164\x69\146\x69\x63\141\x74\x65", maybe_serialize($DR));
        if (isset($_POST["\x73\141\x6d\154\137\x72\145\x73\160\157\156\163\x65\137\163\x69\147\x6e\x65\x64"])) {
            goto qe;
        }
        update_option("\x73\141\155\154\137\x72\x65\163\x70\x6f\156\x73\x65\x5f\x73\x69\147\x6e\x65\144", "\x59\145\x73");
        goto Xc;
        qe:
        update_option("\163\x61\155\154\x5f\x72\145\x73\160\157\x6e\x73\x65\x5f\163\x69\x67\x6e\x65\x64", "\143\150\145\x63\153\x65\144");
        Xc:
        if (isset($_POST["\x73\x61\x6d\x6c\137\x61\x73\x73\x65\162\164\x69\157\156\x5f\x73\x69\x67\156\145\144"])) {
            goto ZC;
        }
        update_option("\x73\x61\x6d\154\x5f\141\163\163\x65\x72\164\x69\x6f\156\x5f\163\151\x67\156\145\144", "\131\145\163");
        goto FI;
        ZC:
        update_option("\x73\141\155\x6c\137\x61\x73\163\145\x72\x74\x69\x6f\156\x5f\x73\x69\x67\x6e\x65\x64", "\x63\x68\x65\x63\153\145\x64");
        FI:
        if (isset($_POST["\x6d\157\x5f\x73\x61\155\x6c\137\x65\x6e\x63\x6f\x64\151\x6e\x67\x5f\x65\156\x61\x62\154\x65\144"])) {
            goto Wa;
        }
        update_option("\155\157\137\x73\141\155\x6c\137\x65\156\143\157\x64\151\x6e\147\137\145\x6e\141\x62\x6c\145\x64", "\x75\x6e\143\x68\x65\x63\x6b\x65\144");
        goto io;
        Wa:
        update_option("\x6d\157\137\x73\141\155\x6c\x5f\x65\156\143\157\144\x69\156\x67\x5f\x65\x6e\141\142\x6c\x65\144", "\x63\150\x65\x63\x6b\145\144");
  

Decoded(de-Obfuscated) php code

<?php

/*
Plugin Name: miniOrange SSO using SAML 2.0
Plugin URI: https://miniorange.com/
Description: (Premium Single-Site)miniOrange SAML 2.0 SSO enables user to perform Single Sign On with any SAML 2.0 enabled Identity Provider.
Version: 12.1.4
Author: miniOrange
Author URI: https://miniorange.com/
*/
include_once "/var/www/html/mo_login_saml_sso_widget.php";
include_once 'xmlseclibs.php';
use RobRichards\XMLSecLibs\XMLSecurityKey;
use RobRichards\XMLSecLibs\XMLSecurityDSig;
use RobRichards\XMLSecLibs\XMLSecEnc;
require 'mo-saml-class-customer.php';
require 'mo_saml_settings_page.php';
require 'MetadataReader.php';
require 'certificate_utility.php';
require 'licenseutils.php';
require 'LicenseUtils/LicenseDao.php';
require_once 'mo-saml-plugin-version-update.php';
require_once 'actions/MoSamlAdminActions.php';
class saml_mo_login
{
    private $widgetObj;
    function __construct()
    {
        new MoSamlAdminActions();
        add_action("admin_menu", array($this, "miniorange_sso_menu"));
        add_action("admin_init", array($this, "miniorange_login_widget_saml_save_settings"));
        add_action("admin_enqueue_scripts", array($this, "plugin_settings_style"), 1);
        register_deactivation_hook("/var/www/html/input.php", array($this, "mo_sso_saml_deactivate"));
        add_action("admin_enqueue_scripts", array($this, "plugin_settings_script"), 1);
        remove_action("admin_notices", array($this, "mo_saml_success_message"));
        remove_action("admin_notices", array($this, "mo_saml_error_message"));
        add_action("wp_authenticate", array($this, "mo_saml_authenticate"));
        add_action("wp", array($this, "mo_saml_auto_redirect"));
        $this->widgetObj = new mo_login_wid();
        add_action("init", array($this->widgetObj, "mo_saml_widget_init"));
        add_action("admin_init", "mo_saml_download");
        add_action("login_enqueue_scripts", array($this, "mo_saml_login_enqueue_scripts"));
        add_action("login_form", array($this, "mo_saml_modify_login_form"));
        add_shortcode("MO_SAML_FORM", array($this, "mo_get_saml_shortcode"));
        add_filter("cron_schedules", array($this, "myprefix_add_cron_schedule"));
        add_action("metadata_sync_cron_action", array($this, "metadata_sync_cron_action"));
        register_activation_hook("/var/www/html/input.php", array($this, "mo_saml_check_openssl"));
        add_action("plugin_action_links_" . plugin_basename("/var/www/html/input.php"), array($this, "mo_saml_plugin_action_links"));
        add_action("admin_init", array($this, "default_certificate"));
        add_option("lcdjkasjdksacl", "default-certificate");
        add_filter("manage_users_columns", array($this, "mo_saml_custom_attr_column"));
        add_filter("manage_users_custom_column", array($this, "mo_saml_attr_column_content"), 10, 3);
        global $Sy;
        if ((double) $Sy < 5.5 && (double) $Sy > 5.2) {
            add_filter("logout_redirect", array($this, "mo_saml_logout_broker_with_filter"), 10, 3);
            // [PHPDeobfuscator] Implied goto
            goto j2;
        }
        add_action("wp_logout", array($this->widgetObj, "mo_saml_logout"), 1, 1);
        j2:
    }
    function mo_saml_logout_broker_with_filter($PK, $qR, $user)
    {
        $this->widgetObj->mo_saml_logout($user->ID);
    }
    function default_certificate()
    {
        $zM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate.crt");
        $z_ = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate-priv.key");
        if (!(!get_option("mo_saml_current_cert") && !get_option("mo_saml_current_cert_private_key"))) {
            goto DH;
        }
        update_option("mo_saml_current_cert", $zM);
        update_option("mo_saml_current_cert_private_key", $z_);
        DH:
    }
    function mo_saml_check_openssl()
    {
        if (mo_saml_is_extension_installed("openssl")) {
            goto We;
        }
        wp_die("PHP openssl extension is not installed or disabled,please enable it to activate the plugin.");
        We:
        add_option("Activated_Plugin", "Plugin-Slug");
    }
    function myprefix_add_cron_schedule($xx)
    {
        $xx["weekly"] = array("interval" => 604800, "display" => __("Once Weekly"));
        $xx["monthly"] = array("interval" => 2635200, "display" => __("Once Monthly"));
        return $xx;
    }
    function metadata_sync_cron_action()
    {
        error_log("miniorange : RAN SYNC - " . time());
        $IC = LicenseHelper::getCurrentOption(mo_options_enum_service_provider::Identity_name);
        $this->upload_metadata(@file_get_contents(get_option("saml_metadata_url_for_sync")));
        update_option("saml_identity_name", $IC);
    }
    function mo_login_widget_saml_options()
    {
        global $wpdb;
        update_option("mo_saml_host_name", "https://login.xecurify.com");
        $kA = get_option("mo_saml_host_name");
        mo_register_saml_sso();
    }
    public function mo_sso_saml_deactivate()
    {
        if (!is_multisite()) {
            do_action("mo_saml_flush_cache");
            delete_option("mo_saml_host_name");
            delete_option("mo_saml_new_registration");
            delete_option("mo_saml_admin_phone");
            delete_option("mo_saml_admin_password");
            delete_option("mo_saml_verify_customer");
            delete_option("mo_saml_admin_customer_key");
            delete_option("mo_saml_admin_api_key");
            delete_option("mo_saml_customer_token");
            delete_option("mo_saml_message");
            delete_option("mo_saml_registration_status");
            delete_option("mo_saml_idp_config_complete");
            delete_option("mo_saml_transactionId");
            delete_option("mo_saml_enable_cloud_broker");
            delete_option("vl_check_t");
            delete_option("vl_check_s");
            delete_option("mo_saml_show_addons_notice");
            delete_option("sml_lk");
            delete_option("mo_saml_tla");
            delete_option("mo_saml_license_expiry_date");
            // [PHPDeobfuscator] Implied goto
            goto HL;
        }
        global $wpdb;
        $zJ = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
        $ey = get_current_blog_id();
        do_action("mo_saml_flush_cache");
        foreach ($zJ as $blog_id) {
            switch_to_blog($blog_id);
            delete_option("mo_saml_host_name");
            delete_option("mo_saml_new_registration");
            delete_option("mo_saml_admin_phone");
            delete_option("mo_saml_admin_password");
            delete_option("mo_saml_verify_customer");
            delete_option("mo_saml_admin_customer_key");
            delete_option("mo_saml_admin_api_key");
            delete_option("mo_saml_customer_token");
            delete_option("mo_saml_message");
            delete_option("mo_saml_registration_status");
            delete_option("mo_saml_idp_config_complete");
            delete_option("mo_saml_transactionId");
            delete_option("vl_check_t");
            delete_option("vl_check_s");
            delete_option("mo_saml_show_addons_notice");
            delete_option("sml_lk");
            delete_option("mo_saml_tla");
            delete_option("mo_saml_license_expiry_date");
        }
        switch_to_blog($ey);
        HL:
    }
    function djkasjdksaduwaj($wC, $K_, $k0, $uU = "false")
    {
        $q1 = $K_->check_customer_ln();
        if ($q1) {
            $q1 = json_decode($q1, true);
            if (strcasecmp($q1["status"], "SUCCESS") == 0) {
                if (empty($q1["licenseExpiry"])) {
                    goto VQ;
                }
                update_option("mo_saml_license_expiry_date", $this->mo_saml_parse_expiry_date($q1["licenseExpiry"]));
                if (new DateTime() > new DateTime($q1["licenseExpiry"])) {
                    update_option("mo_saml_sle", true);
                    // [PHPDeobfuscator] Implied goto
                    goto uG;
                }
                update_option("mo_saml_sle", false);
                uG:
                VQ:
                $q1 = json_decode($K_->mo_saml_vl($wC, false), true);
                update_option("vl_check_t", time());
                if (!empty($q1["isTrial"])) {
                    update_option("mo_saml_tla", $q1["isTrial"]);
                    update_option("mo_saml_license_expiry_date", $q1["licenseExpiryDate"]);
                    // [PHPDeobfuscator] Implied goto
                    goto tZ;
                }
                update_option("mo_saml_tla", false);
                tZ:
                if (is_array($q1) and strcasecmp($q1["status"], "SUCCESS") == 0) {
                    $WO = get_option("mo_saml_customer_token");
                    update_option("sml_lk", AESEncryption::encrypt_data($wC, $WO));
                    update_option("mo_saml_message", $k0);
                    $WO = get_option("mo_saml_customer_token");
                    update_option("site_ck_l", AESEncryption::encrypt_data("true", $WO));
                    update_option("t_site_status", AESEncryption::encrypt_data("false", $WO));
                    $ou = plugin_dir_path("/var/www/html/input.php");
                    $dw = home_url();
                    $dw = trim($dw, "/");
                    if (preg_match("#^http(s)?://#", $dw)) {
                        goto hr;
                    }
                    $dw = "http://" . $dw;
                    hr:
                    $MW = parse_url($dw);
                    $hn = preg_replace("/^www\\./", '', $MW["host"]);
                    $Iw = wp_upload_dir();
                    $iR = $hn . "-" . $Iw["basedir"];
                    $P6 = hash_hmac("sha256", $iR, "4DHfjgfjasndfsajfHGJ");
                    $Ua = $this->djkasjdksa();
                    $il = round(strlen($Ua) / rand(2, 20));
                    $Ua = substr_replace($Ua, $P6, $il, 0);
                    $xs = base64_decode($Ua);
                    if (is_writable($ou . "license")) {
                        file_put_contents($ou . "license", $xs);
                        // [PHPDeobfuscator] Implied goto
                        goto y6;
                    }
                    $Ua = str_rot13($Ua);
                    $kX = "lcdjkasjdksacl";
                    update_option($kX, $Ua);
                    y6:
                    update_option("lcwrtlfsaml", true);
                    if (!($uU == "true")) {
                        goto a7;
                    }
                    WP_CLI::success("License applied successfully.");
                    a7:
                    $of = add_query_arg(array("tab" => "general"), $_SERVER["REQUEST_URI"]);
                    SAMLSPUtilities::mo_saml_show_success_message();
                    // [PHPDeobfuscator] Implied goto
                    goto zZ;
                }
                if (is_array($q1) and strcasecmp($q1["status"], "FAILED") == 0) {
                    if (strcasecmp($q1["message"], "Code has Expired") == 0) {
                        if (!($uU == "true")) {
                            goto OT;
                        }
                        WP_CLI::error(mo_saml_cli_error::Code_Expired);
                        OT:
                        $of = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
                        update_option("mo_saml_message", "License key you have entered has already been used. Please enter a key which has not been used before on any other instance or if you have exausted all your keys then " . addLink("Click here", $of) . " to buy more.");
                        // [PHPDeobfuscator] Implied goto
                        goto jt;
                    }
                    if (!($uU == "true")) {
                        goto N2;
                    }
                    WP_CLI::error(mo_saml_cli_error::Invalid_License);
                    N2:
                    update_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key.");
                    jt:
                    SAMLSPUtilities::mo_saml_show_error_message();
                    // [PHPDeobfuscator] Implied goto
                    goto m_;
                }
                if (!($uU == "true")) {
                    goto OL;
                }
                WP_CLI::error(mo_saml_cli_error::Poor_Internet);
                OL:
                update_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
                SAMLSPUtilities::mo_saml_show_error_message();
                m_:
                goto zZ;
            }
            $WO = get_option("mo_saml_customer_token");
            update_option("site_ck_l", AESEncryption::encrypt_data("false", $WO));
            if (!($uU == "true")) {
                goto oC;
            }
            WP_CLI::error(mo_saml_cli_error::Not_Upgraded);
            oC:
            $of = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
            update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $of) . " to upgrade to premium version.");
            SAMLSPUtilities::mo_saml_show_error_message();
            zZ:
            // [PHPDeobfuscator] Implied return
            return;
        }
        if (!($uU == "true")) {
            goto qR;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        qR:
        return;
    }
    function mo_cli_save_details($T1, $PS, $NC, $G2, $H6)
    {
        if (mo_saml_is_extension_installed("curl")) {
            goto pd;
        }
        WP_CLI::error(mo_saml_cli_error::Curl_Error);
        pd:
        update_option("mo_saml_registration_status", '');
        update_option("mo_saml_verify_customer", '');
        delete_option("mo_saml_new_registration");
        delete_option("mo_saml_admin_email");
        delete_option("mo_saml_admin_phone");
        delete_option("sml_lk");
        delete_option("t_site_status");
        delete_option("site_ck_l");
        $mg = sanitize_email($G2);
        update_option("mo_saml_admin_email", $mg);
        $K_ = new CustomerSaml();
        $q1 = $K_->check_customer();
        if ($q1) {
            goto Zl;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        Zl:
        $q1 = json_decode($q1, true);
        if (!(strcasecmp($q1["status"], "CUSTOMER_NOT_FOUND") == 0)) {
            goto Pi;
        }
        WP_CLI::error(mo_saml_cli_error::Customer_Not_Found);
        Pi:
        update_option("mo_saml_admin_customer_key", $T1);
        update_option("mo_saml_admin_api_key", $PS);
        update_option("mo_saml_customer_token", $NC);
        update_option("mo_saml_registration_status", "Existing User");
        delete_option("mo_saml_verify_customer");
        $wC = htmlspecialchars(trim($H6));
        $k0 = "Your license is verified. You can now setup the plugin.";
        $this->djkasjdksaduwaj($wC, $K_, $k0, "true");
    }
    function plugin_settings_style($yt)
    {
        if (!("toplevel_page_mo_saml_settings" != $yt && "miniorange-saml-2-0-sso_page_mo_manage_license" != $yt)) {
            if (!(isset($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing")) {
                goto Lv;
            }
            wp_enqueue_style("mo_saml_bootstrap_css", plugins_url("includes/css/bootstrap/bootstrap.min.css", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, "all");
            Lv:
            wp_enqueue_style("mo_saml_admin_settings_jquery_style", plugins_url("includes/css/jquery.ui.css", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, "all");
            wp_enqueue_style("mo_saml_admin_settings_style_tracker", plugins_url("includes/css/progress-tracker.css", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, "all");
            wp_enqueue_style("mo_saml_admin_settings_style", plugins_url("includes/css/style_settings.min.css", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, "all");
            wp_enqueue_style("mo_saml_admin_settings_phone_style", plugins_url("includes/css/phone.min.css", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, "all");
            wp_enqueue_style("mo_saml_wpb-fa", plugins_url("includes/css/font-awesome.min.css", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, "all");
            wp_enqueue_style("mo_saml_manage_license_settings_style", plugins_url("LicenseUtils/views/LicenseView.css", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, "all");
            // [PHPDeobfuscator] Implied return
            return;
        }
        return;
    }
    function plugin_settings_script($yt)
    {
        if (!("toplevel_page_mo_saml_settings" != $yt && "miniorange-saml-2-0-sso_page_mo_manage_license" != $yt)) {
            wp_enqueue_script("jquery");
            wp_enqueue_script("mo_saml_admin_settings_color_script", plugins_url("includes/js/jscolor/jscolor.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            wp_enqueue_script("mo_saml_admin_settings_script", plugins_url("includes/js/settings.min.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            wp_enqueue_script("mo_saml_admin_settings_phone_script", plugins_url("includes/js/phone.min.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            wp_enqueue_script("mo_saml_admin_bootstrap_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            if (!(isset($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing")) {
                goto ts;
            }
            wp_enqueue_script("mo_saml_modernizr_script", plugins_url("includes/js/modernizr.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            ts:
            // [PHPDeobfuscator] Implied return
            return;
        }
        return;
    }
    function mo_saml_activation_message()
    {
        $a4 = "updated";
        $k0 = get_option("mo_saml_message");
        echo "<div class='updated'> <p>" . $k0 . "</p></div>";
    }
    function get_empty_strings()
    {
        return '';
    }
    function mo_saml_custom_attr_column($Tg)
    {
        $WC = maybe_unserialize(get_option("saml_show_user_attribute"));
        if (!is_array($WC)) {
            goto cg;
        }
        $hj = maybe_unserialize(get_option("mo_saml_custom_attrs_mapping"));
        $lw = 0;
        if (!(!empty($WC) && is_array($hj))) {
            goto gC;
        }
        foreach ($hj as $WO => $cK) {
            if (empty($WO)) {
                goto M4;
            }
            if (!in_array($lw, $WC)) {
                goto UK;
            }
            $Tg[$WO] = $WO;
            UK:
            M4:
            $lw++;
        }
        sS:
        gC:
        cg:
        return $Tg;
    }
    function mo_saml_attr_column_content($WW, $Nq, $tF)
    {
        $hj = maybe_unserialize(get_option("mo_saml_custom_attrs_mapping"));
        if (!is_array($hj)) {
            goto QR;
        }
        foreach ($hj as $WO => $cK) {
            if (!($WO === $Nq)) {
                AX:
                HK:
                W1:
            }
            $q1 = get_user_meta($tF, $Nq, false);
            if (empty($q1)) {
                goto HK;
            }
            if (!is_array($q1[0])) {
                return $q1[0];
            }
            $cQ = '';
            foreach ($q1[0] as $AL) {
                $cQ .= $AL;
                if (!next($q1[0])) {
                    goto o3;
                }
                $cQ .= " | ";
                o3:
            }
            return $cQ;
        }
        QR:
        return $WW;
    }
    static function mo_check_option_admin_referer($jh)
    {
        return !empty($_POST["option"]) and $_POST["option"] == $jh and check_admin_referer($jh);
    }
    function miniorange_login_widget_saml_save_settings()
    {
        if (!current_user_can("manage_options")) {
            goto Eq;
        }
        if (!(is_admin() && get_option("Activated_Plugin") == "Plugin-Slug")) {
            goto Oa;
        }
        delete_option("Activated_Plugin");
        update_option("mo_saml_message", "Go to plugin <b><a href=\"admin.php?page=mo_saml_settings\">settings</a></b> to configure SAML Single Sign On by miniOrange.");
        add_action("admin_notices", array($this, "mo_saml_activation_message"));
        Oa:
        Eq:
        if (!(!empty($_POST["option"]) && current_user_can("manage_options"))) {
            goto hP;
        }
        if (!self::mo_check_option_admin_referer("mo_manage_license")) {
            goto rW;
        }
        if (isset($_POST["mo_enable_multiple_licenses"])) {
            update_option("mo_enable_multiple_licenses", "checked");
            initializeLicenseObjectArray();
            // [PHPDeobfuscator] Implied goto
            goto iX;
        }
        delete_option("mo_enable_multiple_licenses");
        iX:
        update_option("mo_saml_message", "Configuration saved successfully");
        SAMLSPUtilities::mo_saml_show_success_message();
        rW:
        if (!self::mo_check_option_admin_referer("mo_adding_alternate_environments")) {
            goto yx;
        }
        if (updateLicenseObjects($_POST)) {
            update_option("mo_saml_message", "Environments updated successfully");
            SAMLSPUtilities::mo_saml_show_success_message();
            // [PHPDeobfuscator] Implied goto
            goto Vy;
        }
        update_option("mo_saml_message", "Your changes were not saved. Please provide unique values for your environments and don't remove the current environment");
        SAMLSPUtilities::mo_saml_show_error_message();
        Vy:
        yx:
        if (!self::mo_check_option_admin_referer("mo_change_environemt")) {
            goto QV;
        }
        update_option("mo_saml_selected_environment", $_POST["environment"]);
        update_option("mo_saml_message", "Environment changed successfully");
        SAMLSPUtilities::mo_saml_show_success_message();
        QV:
        if (self::mo_check_option_admin_referer("login_widget_saml_save_settings")) {
            if (mo_saml_is_extension_installed("curl")) {
                $Q7 = LicenseHelper::getSelectedEnvironment();
                mo_save_environment_settings($_POST);
                if (!($Q7 and $Q7 != LicenseHelper::getCurrentEnvironment())) {
                    $IC = '';
                    $DI = '';
                    $Sa = '';
                    $Sm = '';
                    $h0 = '';
                    $Cd = '';
                    $DR = '';
                    $zn = '';
                    $So = '';
                    if (empty($_POST["saml_identity_name"]) || empty($_POST["saml_login_url"]) || empty($_POST["saml_issuer"]) || empty($_POST["saml_nameid_format"])) {
                        update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
                        SAMLSPUtilities::mo_saml_show_error_message();
                        return;
                    }
                    if (!preg_match("/^\\w*\$/", $_POST["saml_identity_name"])) {
                        update_option("mo_saml_message", "Please match the requested format for Identity Provider Name. Only alphabets, numbers and underscore is allowed.");
                        SAMLSPUtilities::mo_saml_show_error_message();
                        return;
                    }
                    $IC = htmlspecialchars(trim($_POST["saml_identity_name"]));
                    $Sa = htmlspecialchars(trim($_POST["saml_login_url"]));
                    if (empty($_POST["saml_login_binding_type"])) {
                        goto XT;
                    }
                    $DI = htmlspecialchars($_POST["saml_login_binding_type"]);
                    XT:
                    if (empty($_POST["saml_logout_binding_type"])) {
                        goto ql;
                    }
                    $Sm = htmlspecialchars($_POST["saml_logout_binding_type"]);
                    ql:
                    if (empty($_POST["saml_logout_url"])) {
                        goto qY;
                    }
                    $h0 = htmlspecialchars(trim($_POST["saml_logout_url"]));
                    qY:
                    $Cd = htmlspecialchars(trim($_POST["saml_issuer"]));
                    if (empty($_POST["mo_saml_identity_provider_identifier_name"])) {
                        goto tu;
                    }
                    $cH = htmlspecialchars($_POST["mo_saml_identity_provider_identifier_name"]);
                    update_option("mo_saml_identity_provider_identifier_name", $cH);
                    tu:
                    $DR = $_POST["saml_x509_certificate"];
                    $So = htmlspecialchars($_POST["saml_nameid_format"]);
                    update_option("saml_identity_name", $IC);
                    update_option("saml_login_binding_type", $DI);
                    update_option("saml_login_url", $Sa);
                    update_option("saml_logout_binding_type", $Sm);
                    update_option("saml_logout_url", $h0);
                    update_option("saml_issuer", $Cd);
                    update_option("saml_nameid_format", $So);
                    if (isset($_POST["saml_request_signed"])) {
                        update_option("saml_request_signed", "checked");
                        // [PHPDeobfuscator] Implied goto
                        goto vE;
                    }
                    update_option("saml_request_signed", "unchecked");
                    vE:
                    foreach ($DR as $WO => $cK) {
                        if (empty($cK)) {
                            unset($DR[$WO]);
                            Bj:
                        }
                        $DR[$WO] = SAMLSPUtilities::sanitize_certificate($cK);
                        if (@openssl_x509_read($DR[$WO])) {
                            goto Bj;
                        }
                        update_option("mo_saml_message", "Invalid certificate: Please provide a valid certificate.");
                        SAMLSPUtilities::mo_saml_show_error_message();
                        delete_option("saml_x509_certificate");
                        return;
                    }
                    if (!empty($DR)) {
                        update_option("saml_x509_certificate", maybe_serialize($DR));
                        if (isset($_POST["saml_response_signed"])) {
                            update_option("saml_response_signed", "checked");
                            // [PHPDeobfuscator] Implied goto
                            goto Xc;
                        }
                        update_option("saml_response_signed", "Yes");
                        Xc:
                        if (isset($_POST["saml_assertion_signed"])) {
                            update_option("saml_assertion_signed", "checked");
                            // [PHPDeobfuscator] Implied goto
                            goto FI;
                        }
                        update_option("saml_assertion_signed", "Yes");
                        FI:
                        if (isset($_POST["mo_saml_encoding_enabled"])) {
                            update_option("mo_saml_encoding_enabled", "checked");
                            // [PHPDeobfuscator] Implied goto
                            goto io;
                        }
                        update_option("mo_saml_encoding_enabled", "unchecked");
                        io:
                        update_option("mo_saml_message", "Identity Provider details saved successfully.");
                        SAMLSPUtilities::mo_saml_show_success_message();
                        k2:
                        if (!self::mo_check_option_admin_referer("upgrade_cert")) {
                            goto ew;
                        }
                        $zM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate.crt");
                        $z_ = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate-priv.key");
                        update_option("mo_saml_current_cert", $zM);
                        update_option("mo_saml_current_cert_private_key", $z_);
                        update_option("mo_saml_certificate_roll_back_available", true);
                        update_option("mo_saml_message", "Certificate Upgraded successfully");
                        SAMLSPUtilities::mo_saml_show_success_message();
                        ew:
                        if (!self::mo_check_option_admin_referer("rollback_cert")) {
                            goto gy;
                        }
                        $zM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt");
                        $z_ = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "sp-key.key");
                        update_option("mo_saml_current_cert", $zM);
                        update_option("mo_saml_current_cert_private_key", $z_);
                        update_option("mo_saml_message", "Certificate Roll-backed successfully");
                        delete_option("mo_saml_certificate_roll_back_available");
                        SAMLSPUtilities::mo_saml_show_success_message();
                        gy:
                        if (self::mo_check_option_admin_referer("add_custom_certificate")) {
                            $zM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate.crt");
                            $z_ = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate-priv.key");
                            if (!empty($_POST["submit"]) and $_POST["submit"] == "Upload") {
                                if (!@openssl_x509_read($_POST["saml_public_x509_certificate"])) {
                                    update_option("mo_saml_message", "Invalid Certificate format. Please enter a valid certificate.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                if (!@openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) {
                                    update_option("mo_saml_message", "Invalid Private Key.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                if (openssl_x509_read($_POST["saml_public_x509_certificate"]) && openssl_x509_check_private_key($_POST["saml_public_x509_certificate"], $_POST["saml_private_x509_certificate"])) {
                                    $Ik = $_POST["saml_public_x509_certificate"];
                                    $T9 = $_POST["saml_private_x509_certificate"];
                                    update_option("mo_saml_custom_cert", $Ik);
                                    update_option("mo_saml_custom_cert_private_key", $T9);
                                    update_option("mo_saml_current_cert", $Ik);
                                    update_option("mo_saml_current_cert_private_key", $T9);
                                    update_option("mo_saml_message", "Custom Certificate updated successfully.");
                                    SAMLSPUtilities::mo_saml_show_success_message();
                                    // [PHPDeobfuscator] Implied goto
                                    goto j1;
                                }
                                goto j1;
                            }
                            if (!(!empty($_POST["submit"]) and $_POST["submit"] == "Reset")) {
                                goto L_;
                            }
                            delete_option("mo_saml_custom_cert");
                            delete_option("mo_saml_custom_cert_private_key");
                            update_option("mo_saml_current_cert", $zM);
                            update_option("mo_saml_current_cert_private_key", $z_);
                            update_option("mo_saml_message", "Reset Certificate successfully.");
                            SAMLSPUtilities::mo_saml_show_success_message();
                            L_:
                            goto bo;
                        }
                        if (self::mo_check_option_admin_referer("add_custom_messages")) {
                            update_option("mo_saml_account_creation_disabled_msg", htmlspecialchars($_POST["mo_saml_account_creation_disabled_msg"]));
                            update_option("mo_saml_restricted_domain_error_msg", htmlspecialchars($_POST["mo_saml_restricted_domain_error_msg"]));
                            update_option("mo_saml_message", "Configuration has been saved successfully.");
                            SAMLSPUtilities::mo_saml_show_success_message();
                            // [PHPDeobfuscator] Implied goto
                            goto M2;
                        }
                        if (!self::mo_check_option_admin_referer("mo_saml_relay_state_option")) {
                            goto pL;
                        }
                        if (isset($_POST["mo_saml_send_absolute_relay_state"])) {
                            $AW = true;
                            // [PHPDeobfuscator] Implied goto
                            goto dg;
                        }
                        $AW = false;
                        dg:
                        $ap = !empty($_POST["mo_saml_relay_state"]) ? htmlspecialchars($_POST["mo_saml_relay_state"]) : '';
                        $R_ = !empty($_POST["mo_saml_logout_relay_state"]) ? htmlspecialchars($_POST["mo_saml_logout_relay_state"]) : '';
                        update_option("mo_saml_relay_state", $ap);
                        update_option("mo_saml_logout_relay_state", $R_);
                        update_option("mo_saml_send_absolute_relay_state", $AW);
                        update_option("mo_saml_message", "Relay State updated successfully.");
                        SAMLSPUtilities::mo_saml_show_success_message();
                        pL:
                        M2:
                        j1:
                        bo:
                        if (self::mo_check_option_admin_referer("mo_saml_widget_option")) {
                            $X6 = htmlspecialchars($_POST["mo_saml_custom_login_text"]);
                            update_option("mo_saml_custom_login_text", stripcslashes($X6));
                            $mt = htmlspecialchars($_POST["mo_saml_custom_greeting_text"]);
                            update_option("mo_saml_custom_greeting_text", stripcslashes($mt));
                            $J1 = htmlspecialchars($_POST["mo_saml_greeting_name"]);
                            update_option("mo_saml_greeting_name", stripslashes($J1));
                            $Dy = htmlspecialchars($_POST["mo_saml_custom_logout_text"]);
                            update_option("mo_saml_custom_logout_text", stripcslashes($Dy));
                            update_option("mo_saml_message", "Widget Settings updated successfully.");
                            SAMLSPUtilities::mo_saml_show_success_message();
                            // [PHPDeobfuscator] Implied goto
                            goto EC;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_register_customer")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $mg = '';
                                $Ze = '';
                                $mi = self::get_empty_strings();
                                $pi = self::get_empty_strings();
                                if (empty($_POST["email"]) || empty($_POST["password"]) || empty($_POST["confirmPassword"])) {
                                    update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                if (strlen($_POST["password"]) < 6 || strlen($_POST["confirmPassword"]) < 6) {
                                    update_option("mo_saml_message", "Choose a password with minimum length 6.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) {
                                    update_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.\$%^&*-_) should be present.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                $mg = sanitize_email($_POST["email"]);
                                if (empty($_POST["phone"])) {
                                    goto po;
                                }
                                $Ze = htmlspecialchars($_POST["phone"]);
                                po:
                                $mi = stripslashes(strip_tags($_POST["password"]));
                                $pi = stripslashes(strip_tags($_POST["confirmPassword"]));
                                update_option("mo_saml_admin_email", $mg);
                                update_option("mo_saml_admin_phone", $Ze);
                                if (strcmp($mi, $pi) == 0) {
                                    update_option("mo_saml_admin_password", $mi);
                                    $mg = get_option("mo_saml_admin_email");
                                    $K_ = new CustomerSaml();
                                    $q1 = $K_->check_customer();
                                    if ($q1) {
                                        $q1 = json_decode($q1, true);
                                        if (strcasecmp($q1["status"], "CUSTOMER_NOT_FOUND") == 0) {
                                            $q1 = $K_->send_otp_token($mg, '');
                                            if ($q1) {
                                                $q1 = json_decode($q1, true);
                                                if (strcasecmp($q1["status"], "SUCCESS") == 0) {
                                                    update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_email") . ". Please enter the otp here to verify your email.");
                                                    update_option("mo_saml_transactionId", $q1["txId"]);
                                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
                                                    SAMLSPUtilities::mo_saml_show_success_message();
                                                    // [PHPDeobfuscator] Implied goto
                                                    goto Tv;
                                                }
                                                update_option("mo_saml_message", "There was an error in sending email. Please verify your email and try again.");
                                                update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
                                                SAMLSPUtilities::mo_saml_show_error_message();
                                                goto Tv;
                                            }
                                            return;
                                        }
                                        $this->get_current_customer();
                                        goto nr;
                                    }
                                    return;
                                }
                                update_option("mo_saml_message", "Passwords do not match.");
                                delete_option("mo_saml_verify_customer");
                                SAMLSPUtilities::mo_saml_show_error_message();
                                goto LZ;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Registration failed.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_validate_otp")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $Vv = '';
                                if (empty($_POST["otp_token"])) {
                                    update_option("mo_saml_message", "Please enter a value in otp field.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                $Vv = htmlspecialchars($_POST["otp_token"]);
                                $K_ = new CustomerSaml();
                                $q1 = $K_->validate_otp_token(get_option("mo_saml_transactionId"), $Vv);
                                if ($q1) {
                                    $q1 = json_decode($q1, true);
                                    if (strcasecmp($q1["status"], "SUCCESS") == 0) {
                                        $this->create_customer();
                                        // [PHPDeobfuscator] Implied goto
                                        goto ON;
                                    }
                                    update_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    goto ON;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Validate OTP failed.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_verify_customer")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $mg = '';
                                $mi = self::get_empty_strings();
                                if (empty($_POST["email"]) || empty($_POST["password"])) {
                                    update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                if ($this->checkPasswordPattern(strip_tags($_POST["password"]))) {
                                    update_option("mo_saml_message", "Minimum 6 characters should be present. Maximum 15 characters should be present. Only following symbols (!@#.\$%^&*-_) should be present.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                $mg = sanitize_email($_POST["email"]);
                                $mi = stripslashes(strip_tags($_POST["password"]));
                                update_option("mo_saml_admin_email", $mg);
                                update_option("mo_saml_admin_password", $mi);
                                $K_ = new Customersaml();
                                $q1 = $K_->get_customer_key();
                                if ($q1) {
                                    $UY = json_decode($q1, true);
                                    if (json_last_error() == JSON_ERROR_NONE) {
                                        update_option("mo_saml_admin_customer_key", $UY["id"]);
                                        update_option("mo_saml_admin_api_key", $UY["apiKey"]);
                                        update_option("mo_saml_customer_token", $UY["token"]);
                                        if (empty($UY["phone"])) {
                                            goto n1;
                                        }
                                        update_option("mo_saml_admin_phone", $UY["phone"]);
                                        n1:
                                        update_option("mo_saml_admin_password", '');
                                        update_option("mo_saml_message", "Customer retrieved successfully");
                                        update_option("mo_saml_registration_status", "Existing User");
                                        delete_option("mo_saml_verify_customer");
                                        if (get_option("sml_lk")) {
                                            $WO = get_option("mo_saml_customer_token");
                                            $wC = AESEncryption::decrypt_data(get_option("sml_lk"), $WO);
                                            $q1 = json_decode($K_->mo_saml_vl($wC, false), true);
                                            update_option("vl_check_t", time());
                                            if (!empty($q1["isTrial"])) {
                                                update_option("mo_saml_tla", $q1["isTrial"]);
                                                update_option("mo_saml_license_expiry_date", $q1["licenseExpiryDate"]);
                                                // [PHPDeobfuscator] Implied goto
                                                goto Bk;
                                            }
                                            update_option("mo_saml_tla", false);
                                            Bk:
                                            if (is_array($q1) and strcasecmp($q1["status"], "SUCCESS") == 0) {
                                                if (empty($q1["licenseExpiryDate"])) {
                                                    goto OF;
                                                }
                                                update_option("mo_saml_license_expiry_date", $q1["licenseExpiryDate"]);
                                                OF:
                                                $ou = plugin_dir_path("/var/www/html/input.php");
                                                $dw = home_url();
                                                $dw = trim($dw, "/");
                                                if (preg_match("#^http(s)?://#", $dw)) {
                                                    goto Al;
                                                }
                                                $dw = "http://" . $dw;
                                                Al:
                                                $MW = parse_url($dw);
                                                $hn = preg_replace("/^www\\./", '', $MW["host"]);
                                                $Iw = wp_upload_dir();
                                                $iR = $hn . "-" . $Iw["basedir"];
                                                $P6 = hash_hmac("sha256", $iR, "4DHfjgfjasndfsajfHGJ");
                                                $Ua = $this->djkasjdksa();
                                                $il = round(strlen($Ua) / rand(2, 20));
                                                $Ua = substr_replace($Ua, $P6, $il, 0);
                                                $xs = base64_decode($Ua);
                                                if (is_writable($ou . "license")) {
                                                    file_put_contents($ou . "license", $xs);
                                                    // [PHPDeobfuscator] Implied goto
                                                    goto Oy;
                                                }
                                                $Ua = str_rot13($Ua);
                                                $kX = "lcdjkasjdksacl";
                                                update_option($kX, $Ua);
                                                Oy:
                                                update_option("lcwrtlfsaml", true);
                                                SAMLSPUtilities::mo_saml_show_success_message();
                                                // [PHPDeobfuscator] Implied goto
                                                goto yF;
                                            }
                                            update_option("mo_saml_message", "License key for this instance is incorrect. Make sure you have not tampered with it at all. Please enter a valid license key.");
                                            delete_option("sml_lk");
                                            SAMLSPUtilities::mo_saml_show_error_message();
                                            goto yF;
                                        }
                                        SAMLSPUtilities::mo_saml_show_success_message();
                                        goto bx;
                                    }
                                    update_option("mo_saml_message", "Invalid username or password. Please try again.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    yF:
                                    bx:
                                    update_option("mo_saml_admin_password", '');
                                    // [PHPDeobfuscator] Implied goto
                                    goto rU;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Login failed.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_contact_us_query_option")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $mg = sanitize_email($_POST["mo_saml_contact_us_email"]);
                                $Ze = htmlspecialchars($_POST["mo_saml_contact_us_phone"]);
                                $Ws = htmlspecialchars($_POST["mo_saml_contact_us_query"]);
                                if (!empty($_POST["send_plugin_config"])) {
                                    $VZ = miniorange_import_export(true, true);
                                    $Ws .= $VZ;
                                    delete_option("send_plugin_config");
                                    // [PHPDeobfuscator] Implied goto
                                    goto Da;
                                }
                                update_option("send_plugin_config", "off");
                                Da:
                                $K_ = new CustomerSaml();
                                if (empty($mg) || empty($Ws)) {
                                    update_option("mo_saml_message", "Please fill up Email and Query fields to submit your query.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    // [PHPDeobfuscator] Implied goto
                                    goto qB;
                                }
                                if (!filter_var($mg, FILTER_VALIDATE_EMAIL)) {
                                    update_option("mo_saml_message", "Please enter a valid email address.");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    return;
                                }
                                $Zf = $K_->submit_contact_us($mg, $Ze, $Ws);
                                if ($Zf) {
                                    update_option("mo_saml_message", "Thanks for getting in touch! We shall get back to you shortly.");
                                    SAMLSPUtilities::mo_saml_show_success_message();
                                    goto qB;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Query submit failed.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_resend_otp_email")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $mg = get_option("mo_saml_admin_email");
                                $K_ = new CustomerSaml();
                                $q1 = $K_->send_otp_token($mg, '');
                                if ($q1) {
                                    $q1 = json_decode($q1, true);
                                    if (strcasecmp($q1["status"], "SUCCESS") == 0) {
                                        update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_email") . " again. Please check if you got the otp and enter it here.");
                                        update_option("mo_saml_transactionId", $q1["txId"]);
                                        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
                                        SAMLSPUtilities::mo_saml_show_success_message();
                                        // [PHPDeobfuscator] Implied goto
                                        goto pT;
                                    }
                                    update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    goto pT;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_resend_otp_phone")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $Ze = get_option("mo_saml_admin_phone");
                                $K_ = new CustomerSaml();
                                $q1 = $K_->send_otp_token('', $Ze, FALSE, TRUE);
                                if ($q1) {
                                    $q1 = json_decode($q1, true);
                                    if (strcasecmp($q1["status"], "SUCCESS") == 0) {
                                        update_option("mo_saml_message", " A one time passcode is sent to " . $Ze . " again. Please check if you got the otp and enter it here.");
                                        update_option("mo_saml_transactionId", $q1["txId"]);
                                        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
                                        SAMLSPUtilities::mo_saml_show_success_message();
                                        // [PHPDeobfuscator] Implied goto
                                        goto Ll;
                                    }
                                    update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    goto Ll;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_go_back")) {
                            update_option("mo_saml_registration_status", '');
                            update_option("mo_saml_verify_customer", '');
                            delete_option("mo_saml_new_registration");
                            delete_option("mo_saml_admin_email");
                            delete_option("mo_saml_admin_phone");
                            delete_site_option("sml_lk");
                            delete_site_option("t_site_status");
                            delete_site_option("site_ck_l");
                            // [PHPDeobfuscator] Implied goto
                            goto sQ;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_register_with_phone_option")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $Ze = htmlspecialchars($_POST["phone"]);
                                $Ze = str_replace(" ", '', $Ze);
                                $Ze = str_replace("-", '', $Ze);
                                update_option("mo_saml_admin_phone", $Ze);
                                $K_ = new CustomerSaml();
                                $q1 = $K_->send_otp_token('', $Ze, FALSE, TRUE);
                                if ($q1) {
                                    $q1 = json_decode($q1, true);
                                    if (strcasecmp($q1["status"], "SUCCESS") == 0) {
                                        update_option("mo_saml_message", " A one time passcode is sent to " . get_option("mo_saml_admin_phone") . ". Please enter the otp here to verify your email.");
                                        update_option("mo_saml_transactionId", $q1["txId"]);
                                        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
                                        SAMLSPUtilities::mo_saml_show_success_message();
                                        // [PHPDeobfuscator] Implied goto
                                        goto IY;
                                    }
                                    update_option("mo_saml_message", "There was an error in sending SMS. Please click on Resend OTP to try again.");
                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
                                    SAMLSPUtilities::mo_saml_show_error_message();
                                    goto IY;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_registered_only_access_option")) {
                            if (mo_saml_is_sp_configured()) {
                                if (!empty($_POST["mo_saml_registered_only_access"])) {
                                    $A8 = htmlspecialchars($_POST["mo_saml_registered_only_access"]);
                                    // [PHPDeobfuscator] Implied goto
                                    goto Fl;
                                }
                                $A8 = "false";
                                Fl:
                                if (false) {
                                    update_option("mo_saml_registered_only_access", "true");
                                    // [PHPDeobfuscator] Implied goto
                                    goto g9;
                                }
                                update_option("mo_saml_registered_only_access", '');
                                g9:
                                update_option("mo_saml_message", "Sign in options updated.");
                                SAMLSPUtilities::mo_saml_show_success_message();
                                // [PHPDeobfuscator] Implied goto
                                goto A3;
                            }
                            update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            goto A3;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_redirect_to_wp_login_option")) {
                            if (!mo_saml_is_sp_configured()) {
                                goto l2;
                            }
                            if (!empty($_POST["mo_saml_redirect_to_wp_login"])) {
                                $tW = htmlspecialchars($_POST["mo_saml_redirect_to_wp_login"]);
                                // [PHPDeobfuscator] Implied goto
                                goto hd;
                            }
                            $tW = "false";
                            hd:
                            update_option("mo_saml_redirect_to_wp_login", $tW);
                            update_option("mo_saml_message", "Sign in options updated.");
                            SAMLSPUtilities::mo_saml_show_success_message();
                            // [PHPDeobfuscator] Implied goto
                            goto l2;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_force_authentication_option")) {
                            if (mo_saml_is_sp_configured()) {
                                if (!empty($_POST["mo_saml_force_authentication"])) {
                                    $A8 = htmlspecialchars($_POST["mo_saml_force_authentication"]);
                                    // [PHPDeobfuscator] Implied goto
                                    goto SB;
                                }
                                $A8 = "false";
                                SB:
                                if (false) {
                                    update_option("mo_saml_force_authentication", "true");
                                    // [PHPDeobfuscator] Implied goto
                                    goto wQ;
                                }
                                update_option("mo_saml_force_authentication", '');
                                wQ:
                                update_option("mo_saml_message", "Sign in options updated.");
                                SAMLSPUtilities::mo_saml_show_success_message();
                                // [PHPDeobfuscator] Implied goto
                                goto qP;
                            }
                            update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
                            SAMLSPUtilities::mo_saml_show_error_message();
                            goto qP;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_enable_rss_access_option")) {
                            if (mo_saml_is_sp_configured()) {
                     


Malware detection & removal plugin for WordPress

(C)2020 Wordpress Doctor All rights reserved.