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.0 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.0
Author: miniOrange
Author URI: https://miniorange.com/
*/


include_once dirname(__FILE__) . "\57\x6d\157\x5f\x6c\x6f\x67\x69\x6e\x5f\163\x61\x6d\154\x5f\x73\163\157\137\x77\151\x64\x67\x65\164\x2e\160\x68\x70";
include_once "\x78\x6d\154\163\145\143\154\x69\x62\163\56\160\150\x70";
use RobRichards\XMLSecLibs\XMLSecurityKey;
use RobRichards\XMLSecLibs\XMLSecurityDSig;
use RobRichards\XMLSecLibs\XMLSecEnc;
require "\155\157\x2d\x73\x61\155\154\55\143\154\x61\x73\x73\55\143\x75\x73\x74\x6f\x6d\145\x72\56\160\150\160";
require "\x6d\x6f\137\163\141\155\154\137\x73\145\164\x74\151\156\147\x73\x5f\x70\x61\x67\145\56\160\150\160";
require "\115\x65\164\141\x64\141\x74\141\122\145\141\144\x65\162\56\160\x68\x70";
require "\143\145\162\x74\x69\x66\151\x63\x61\x74\145\x5f\x75\164\151\154\151\164\171\56\160\x68\x70";
require "\x6c\151\143\145\156\163\x65\165\x74\151\154\x73\x2e\160\x68\160";
require "\x4c\x69\143\145\x6e\163\145\x55\x74\x69\x6c\163\x2f\x4c\x69\143\x65\x6e\163\145\104\x61\157\x2e\x70\x68\160";
require_once "\x6d\x6f\x2d\x73\141\155\154\55\160\154\165\x67\x69\156\x2d\166\145\x72\x73\151\x6f\x6e\x2d\165\160\x64\141\164\145\56\x70\x68\x70";
require_once "\141\x63\x74\151\157\x6e\x73\57\115\x6f\123\141\x6d\154\x41\x64\x6d\151\x6e\x41\143\x74\x69\157\x6e\x73\x2e\x70\x68\160";
class saml_mo_login
{
    private $widgetObj;
    function __construct()
    {
        new MoSamlAdminActions();
        add_action("\141\144\155\x69\156\137\155\145\156\x75", array($this, "\155\151\156\151\157\x72\141\x6e\147\145\x5f\163\x73\157\x5f\155\145\x6e\165"));
        add_action("\141\x64\155\151\x6e\x5f\151\x6e\x69\x74", array($this, "\155\x69\x6e\x69\x6f\162\141\156\147\145\137\x6c\157\147\x69\x6e\x5f\x77\x69\144\x67\x65\x74\137\163\x61\x6d\154\137\x73\141\x76\x65\137\x73\145\164\x74\151\x6e\147\x73"));
        add_action("\x61\144\x6d\x69\x6e\x5f\145\x6e\161\x75\x65\165\x65\137\x73\143\x72\x69\x70\164\x73", array($this, "\x70\154\165\147\151\156\x5f\163\x65\164\164\x69\156\147\x73\137\163\x74\171\154\145"), 1);
        register_deactivation_hook(__FILE__, array($this, "\x6d\157\x5f\163\163\157\137\163\141\x6d\154\137\144\145\x61\x63\164\151\x76\x61\x74\145"));
        add_action("\141\x64\x6d\x69\x6e\137\x65\156\161\x75\x65\x75\x65\x5f\163\143\162\x69\160\164\x73", array($this, "\x70\x6c\165\x67\x69\156\137\x73\x65\x74\164\151\156\x67\x73\137\163\x63\162\x69\x70\x74"), 1);
        remove_action("\x61\144\x6d\151\156\x5f\x6e\x6f\164\151\x63\145\163", array($this, "\x6d\x6f\x5f\x73\x61\x6d\154\137\163\165\143\x63\x65\163\163\x5f\x6d\145\x73\163\141\x67\x65"));
        remove_action("\141\x64\155\151\156\x5f\156\157\164\151\x63\145\163", array($this, "\x6d\157\137\x73\x61\155\x6c\137\x65\x72\162\x6f\x72\x5f\x6d\145\x73\163\141\147\x65"));
        add_action("\x77\x70\x5f\141\x75\164\150\145\156\x74\x69\x63\141\x74\145", array($this, "\x6d\157\x5f\163\141\x6d\x6c\x5f\x61\165\164\x68\145\156\164\x69\x63\141\164\x65"));
        add_action("\167\x70", array($this, "\x6d\x6f\137\163\x61\x6d\x6c\137\141\165\x74\x6f\137\x72\145\144\x69\x72\145\143\164"));
        $this->widgetObj = new mo_login_wid();
        add_action("\151\x6e\151\164", array($this->widgetObj, "\155\x6f\x5f\x73\141\x6d\154\137\167\151\x64\x67\x65\x74\x5f\x69\x6e\151\x74"));
        add_action("\141\144\x6d\151\x6e\137\151\x6e\x69\x74", "\x6d\x6f\x5f\x73\x61\155\x6c\x5f\144\x6f\x77\156\x6c\157\141\x64");
        add_action("\154\157\x67\x69\156\137\145\x6e\x71\x75\x65\165\x65\137\x73\x63\162\151\160\164\163", array($this, "\155\x6f\137\163\x61\x6d\x6c\x5f\x6c\157\x67\151\x6e\137\x65\x6e\x71\x75\145\x75\x65\x5f\x73\x63\x72\x69\x70\164\x73"));
        add_action("\x6c\x6f\x67\x69\156\137\x66\157\x72\x6d", array($this, "\155\157\x5f\163\141\155\154\x5f\x6d\x6f\144\x69\146\x79\137\x6c\157\x67\x69\x6e\137\x66\157\162\155"));
        add_shortcode("\x4d\117\137\x53\x41\x4d\114\x5f\106\x4f\122\115", array($this, "\155\x6f\137\147\145\x74\x5f\163\x61\155\154\137\163\150\157\162\164\x63\157\x64\x65"));
        add_filter("\x63\x72\157\x6e\137\163\143\150\145\144\x75\x6c\x65\x73", array($this, "\155\x79\x70\x72\145\x66\151\x78\x5f\141\x64\144\137\x63\162\157\156\x5f\x73\143\150\145\144\165\154\145"));
        add_action("\x6d\x65\x74\141\x64\x61\x74\141\x5f\x73\171\156\143\x5f\x63\x72\x6f\156\137\141\143\164\x69\x6f\x6e", array($this, "\155\145\x74\141\144\141\x74\x61\137\x73\171\156\x63\137\143\162\157\156\x5f\141\x63\164\151\x6f\156"));
        register_activation_hook(__FILE__, array($this, "\x6d\157\137\x73\x61\155\x6c\x5f\143\150\x65\x63\x6b\x5f\x6f\x70\x65\156\163\x73\154"));
        add_action("\160\154\x75\x67\x69\x6e\137\x61\x63\164\151\157\156\137\x6c\151\x6e\153\163\x5f" . plugin_basename(__FILE__), array($this, "\x6d\x6f\x5f\163\141\155\x6c\x5f\160\154\165\x67\151\x6e\x5f\x61\143\x74\151\157\x6e\137\x6c\x69\156\153\x73"));
        add_action("\141\144\155\x69\x6e\x5f\x69\x6e\151\164", array($this, "\144\x65\146\x61\165\x6c\x74\137\143\x65\162\164\151\x66\x69\143\x61\x74\145"));
        add_option("\x6c\x63\x64\x6a\153\x61\163\152\144\153\163\x61\143\x6c", "\x64\145\146\141\165\x6c\164\x2d\143\145\162\x74\151\146\151\143\x61\x74\x65");
        add_filter("\x6d\x61\156\x61\147\x65\x5f\165\x73\x65\162\163\137\x63\x6f\154\x75\x6d\156\163", array($this, "\x6d\x6f\x5f\163\141\x6d\154\x5f\x63\165\163\164\x6f\155\x5f\x61\164\x74\162\x5f\143\157\x6c\165\155\x6e"));
        add_filter("\x6d\141\x6e\141\x67\x65\x5f\165\x73\x65\x72\x73\137\x63\165\163\x74\157\155\x5f\143\x6f\x6c\165\155\156", array($this, "\155\x6f\137\163\x61\x6d\154\x5f\x61\164\x74\162\x5f\143\157\154\165\155\156\137\x63\x6f\x6e\x74\x65\x6e\164"), 10, 3);
        global $jY;
        if ((float) $jY < 5.5 && (float) $jY > 5.2) {
            goto B2;
        }
        add_action("\167\160\137\154\x6f\147\157\x75\x74", array($this->widgetObj, "\x6d\x6f\x5f\x73\x61\155\154\137\x6c\x6f\147\x6f\x75\164"), 1, 1);
        goto uX;
        B2:
        add_filter("\x6c\x6f\x67\x6f\165\164\137\162\145\144\x69\162\x65\x63\x74", array($this, "\155\x6f\137\x73\x61\x6d\x6c\137\154\157\147\157\165\x74\137\x62\162\x6f\153\145\x72\x5f\x77\151\164\150\x5f\x66\151\154\164\x65\162"), 10, 3);
        uX:
    }
    function mo_saml_logout_broker_with_filter($gV, $CA, $user)
    {
        $this->widgetObj->mo_saml_logout($user->ID);
    }
    function default_certificate()
    {
        $eM = file_get_contents(plugin_dir_path(__FILE__) . "\162\x65\x73\x6f\x75\x72\x63\145\163" . DIRECTORY_SEPARATOR . "\x6d\151\156\151\157\x72\x61\156\147\145\55\163\160\55\x63\x65\x72\164\151\x66\x69\x63\x61\164\145\56\x63\162\x74");
        $TM = file_get_contents(plugin_dir_path(__FILE__) . "\x72\145\x73\x6f\x75\162\x63\x65\x73" . DIRECTORY_SEPARATOR . "\x6d\151\156\151\157\162\x61\156\x67\145\55\x73\160\55\x63\x65\162\164\x69\x66\x69\x63\x61\164\x65\55\x70\x72\x69\x76\x2e\x6b\145\171");
        if (!(!get_option("\155\x6f\137\x73\x61\155\154\x5f\143\165\162\162\x65\x6e\164\x5f\143\x65\x72\164") && !get_option("\x6d\157\x5f\x73\x61\155\154\137\143\x75\162\x72\145\x6e\164\x5f\x63\x65\162\x74\x5f\160\162\x69\166\141\x74\x65\x5f\153\145\171"))) {
            goto h1;
        }
        update_option("\x6d\157\x5f\163\x61\155\x6c\x5f\143\x75\162\162\x65\x6e\164\x5f\x63\145\x72\164", $eM);
        update_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x63\165\162\162\x65\x6e\164\x5f\x63\145\x72\x74\x5f\x70\162\x69\x76\141\x74\x65\137\153\x65\171", $TM);
        h1:
    }
    function mo_saml_check_openssl()
    {
        if (mo_saml_is_extension_installed("\x6f\160\x65\156\x73\163\154")) {
            goto wq;
        }
        wp_die("\x50\110\120\40\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x78\x74\145\156\x73\x69\x6f\x6e\40\x69\163\x20\156\157\164\x20\151\156\163\x74\141\x6c\x6c\x65\144\40\157\x72\40\144\151\163\141\142\154\x65\x64\54\160\x6c\145\141\x73\145\x20\x65\156\141\x62\x6c\145\40\x69\x74\40\164\x6f\x20\x61\143\x74\151\x76\141\x74\145\40\x74\x68\145\x20\160\x6c\x75\x67\x69\156\x2e");
        wq:
        add_option("\101\x63\x74\x69\166\x61\164\x65\x64\x5f\x50\154\165\x67\151\156", "\x50\154\165\x67\x69\156\x2d\x53\x6c\165\147");
    }
    function myprefix_add_cron_schedule($Hi)
    {
        $Hi["\x77\x65\x65\153\x6c\171"] = array("\151\x6e\164\145\162\166\141\x6c" => 604800, "\x64\x69\163\160\x6c\141\171" => __("\117\156\x63\x65\40\x57\x65\145\153\154\171"));
        $Hi["\x6d\x6f\156\x74\150\x6c\171"] = array("\x69\x6e\164\145\x72\166\x61\x6c" => 2635200, "\x64\151\163\160\154\141\171" => __("\x4f\156\143\x65\40\115\x6f\x6e\x74\150\x6c\171"));
        return $Hi;
    }
    function metadata_sync_cron_action()
    {
        error_log("\155\151\x6e\151\157\x72\x61\x6e\147\x65\x20\72\x20\122\101\116\x20\x53\x59\x4e\103\x20\55\x20" . time());
        $JR = LicenseHelper::getCurrentOption(mo_options_enum_service_provider::Identity_name);
        $this->upload_metadata(@file_get_contents(get_option("\x73\141\155\154\137\x6d\145\x74\141\144\141\164\x61\x5f\x75\x72\x6c\x5f\146\x6f\x72\137\x73\171\156\x63")));
        update_option("\x73\141\x6d\154\x5f\x69\x64\x65\156\x74\x69\x74\x79\137\x6e\141\155\x65", $JR);
    }
    function mo_login_widget_saml_options()
    {
        global $wpdb;
        update_option("\x6d\157\x5f\x73\141\x6d\154\137\150\157\x73\x74\x5f\156\141\155\x65", "\x68\x74\164\x70\x73\72\x2f\57\x6c\x6f\x67\151\x6e\56\x78\x65\x63\165\x72\151\146\171\56\x63\157\155");
        $AN = get_option("\155\157\137\x73\x61\x6d\x6c\x5f\x68\x6f\x73\x74\x5f\x6e\141\x6d\145");
        mo_register_saml_sso();
    }
    function mo_saml_success_message()
    {
        $YI = "\145\162\162\157\x72";
        $J7 = get_option("\x6d\x6f\137\x73\141\x6d\x6c\x5f\155\145\x73\x73\x61\147\x65");
        echo "\x3c\144\x69\166\40\x63\154\x61\x73\x73\x3d\47" . $YI . "\x27\x3e\x20\x3c\160\76" . $J7 . "\x3c\57\160\x3e\74\57\x64\x69\x76\76";
    }
    function mo_saml_error_message()
    {
        $YI = "\x75\x70\144\141\x74\x65\144";
        $J7 = get_option("\155\x6f\137\x73\141\x6d\154\x5f\155\145\163\163\x61\x67\145");
        echo "\x3c\x64\x69\x76\40\x63\154\141\163\x73\75\x27" . $YI . "\x27\76\x20\74\x70\76" . $J7 . "\x3c\57\x70\x3e\74\57\144\x69\166\x3e";
    }
    public function mo_sso_saml_deactivate()
    {
        if (!is_multisite()) {
            goto Xk;
        }
        global $wpdb;
        $uq = $wpdb->get_col("\123\105\114\x45\103\x54\x20\x62\154\157\x67\x5f\x69\144\x20\x46\x52\117\x4d\40{$wpdb->blogs}");
        $hv = get_current_blog_id();
        do_action("\155\x6f\137\163\141\155\154\x5f\x66\x6c\165\163\x68\137\143\141\143\150\x65");
        foreach ($uq as $blog_id) {
            switch_to_blog($blog_id);
            delete_option("\x6d\157\137\163\141\x6d\x6c\137\x68\x6f\163\x74\137\156\141\x6d\x65");
            delete_option("\155\157\x5f\163\x61\155\154\137\x6e\x65\x77\x5f\162\x65\147\151\x73\x74\162\x61\x74\x69\157\156");
            delete_option("\x6d\157\137\x73\141\x6d\154\137\x61\x64\x6d\151\x6e\x5f\x70\x68\157\156\x65");
            delete_option("\155\157\x5f\163\x61\155\154\137\141\x64\155\151\156\x5f\x70\x61\x73\x73\167\157\x72\144");
            delete_option("\x6d\x6f\137\x73\x61\155\x6c\137\166\x65\162\x69\146\171\x5f\143\165\163\x74\x6f\155\145\162");
            delete_option("\x6d\x6f\137\163\x61\x6d\154\x5f\141\x64\x6d\x69\x6e\137\x63\165\x73\164\x6f\155\x65\x72\137\153\x65\x79");
            delete_option("\155\157\137\x73\141\x6d\x6c\x5f\141\x64\x6d\151\156\137\141\160\x69\x5f\153\145\171");
            delete_option("\x6d\157\137\163\141\x6d\154\x5f\143\165\163\x74\157\x6d\x65\x72\137\164\x6f\153\x65\156");
            delete_option("\155\157\x5f\163\x61\155\154\x5f\155\145\x73\x73\141\x67\x65");
            delete_option("\155\x6f\x5f\x73\141\x6d\x6c\x5f\162\145\147\x69\x73\x74\162\141\164\x69\157\156\137\163\x74\141\164\165\x73");
            delete_option("\155\157\137\163\x61\155\x6c\137\x69\144\160\137\143\x6f\156\146\151\147\137\x63\x6f\x6d\160\154\x65\164\145");
            delete_option("\155\157\137\x73\x61\x6d\x6c\137\164\x72\141\156\x73\141\143\x74\151\x6f\156\111\x64");
            delete_option("\x76\x6c\x5f\143\x68\x65\x63\153\137\164");
            delete_option("\166\x6c\137\x63\150\145\143\x6b\x5f\163");
            delete_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x73\x68\x6f\x77\x5f\x61\144\144\x6f\x6e\163\137\x6e\x6f\164\x69\143\145");
            delete_option("\x73\x6d\154\x5f\154\x6b");
            delete_option("\x6d\157\137\163\x61\155\154\x5f\x74\154\x61");
            delete_option("\155\157\x5f\163\141\x6d\154\x5f\154\151\x63\145\156\163\x65\x5f\x65\x78\160\151\162\x79\x5f\144\141\x74\x65");
            nd:
        }
        Vx:
        switch_to_blog($hv);
        goto Xc;
        Xk:
        do_action("\155\157\x5f\x73\141\155\x6c\137\146\x6c\165\163\150\137\143\141\x63\150\145");
        delete_option("\x6d\157\x5f\x73\141\x6d\x6c\137\x68\157\x73\164\137\156\x61\155\145");
        delete_option("\155\x6f\x5f\163\141\x6d\154\137\156\145\x77\x5f\162\x65\147\151\x73\164\162\x61\164\x69\157\x6e");
        delete_option("\155\x6f\137\163\141\155\154\x5f\141\144\x6d\151\156\137\x70\150\x6f\156\145");
        delete_option("\x6d\x6f\x5f\x73\x61\155\x6c\x5f\x61\144\x6d\x69\x6e\x5f\x70\x61\x73\163\x77\x6f\162\144");
        delete_option("\x6d\x6f\x5f\163\x61\155\x6c\137\x76\145\162\x69\x66\x79\137\143\x75\x73\x74\157\155\x65\162");
        delete_option("\155\157\137\163\141\x6d\154\137\x61\x64\x6d\151\x6e\x5f\x63\165\x73\x74\x6f\155\x65\x72\137\153\x65\x79");
        delete_option("\x6d\x6f\137\163\141\155\x6c\x5f\141\x64\x6d\x69\156\x5f\141\x70\151\137\153\x65\171");
        delete_option("\x6d\x6f\x5f\163\141\x6d\154\x5f\x63\165\163\164\x6f\155\145\162\x5f\164\x6f\153\x65\x6e");
        delete_option("\155\x6f\x5f\163\141\155\154\137\155\145\x73\163\x61\x67\145");
        delete_option("\155\157\137\x73\x61\x6d\x6c\137\162\145\147\x69\x73\164\162\141\164\x69\157\x6e\x5f\163\x74\x61\x74\165\163");
        delete_option("\155\157\x5f\163\x61\155\x6c\137\x69\x64\160\137\143\157\x6e\x66\x69\x67\x5f\143\157\x6d\x70\x6c\145\164\145");
        delete_option("\x6d\x6f\137\x73\x61\155\154\x5f\x74\162\x61\x6e\x73\141\x63\164\x69\157\156\x49\144");
        delete_option("\155\157\137\x73\141\x6d\x6c\x5f\x65\156\141\x62\x6c\x65\137\x63\154\x6f\x75\144\x5f\x62\162\157\153\x65\162");
        delete_option("\x76\x6c\137\x63\150\x65\x63\153\x5f\164");
        delete_option("\166\154\x5f\x63\150\x65\x63\153\x5f\x73");
        delete_option("\155\157\x5f\163\141\155\x6c\137\163\150\x6f\167\x5f\x61\144\144\157\156\x73\x5f\x6e\x6f\164\151\143\x65");
        delete_option("\x73\x6d\x6c\x5f\154\x6b");
        delete_option("\x6d\157\x5f\163\x61\155\x6c\x5f\164\x6c\x61");
        delete_option("\155\x6f\137\163\x61\155\154\137\154\151\143\x65\156\163\145\x5f\145\x78\x70\151\x72\x79\137\144\141\164\x65");
        Xc:
    }
    function djkasjdksaduwaj($e1, $h1, $J7, $QZ = "\146\141\x6c\163\x65")
    {
        $Rs = $h1->check_customer_ln();
        if ($Rs) {
            goto nH;
        }
        if (!($QZ == "\x74\x72\165\x65")) {
            goto K1;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        K1:
        return;
        nH:
        $Rs = json_decode($Rs, true);
        if (strcasecmp($Rs["\163\x74\141\x74\x75\163"], "\123\x55\x43\x43\105\123\x53") == 0) {
            goto FK;
        }
        $U6 = get_option("\x6d\x6f\137\163\x61\155\154\x5f\x63\165\x73\164\x6f\155\x65\x72\137\164\x6f\x6b\x65\156");
        update_option("\163\x69\164\145\x5f\x63\x6b\x5f\x6c", AESEncryption::encrypt_data("\x66\x61\154\163\x65", $U6));
        if (!($QZ == "\x74\x72\x75\145")) {
            goto xH;
        }
        WP_CLI::error(mo_saml_cli_error::Not_Upgraded);
        xH:
        $GV = add_query_arg(array("\x74\x61\x62" => "\154\151\x63\145\x6e\163\x69\x6e\x67"), $_SERVER["\x52\105\x51\125\x45\123\x54\137\125\122\x49"]);
        update_option("\x6d\157\x5f\x73\141\x6d\x6c\137\155\x65\163\163\141\x67\x65", "\131\x6f\165\x20\x68\141\x76\145\40\x6e\x6f\x74\x20\x75\160\x67\162\x61\144\x65\144\40\171\x65\x74\x2e\40" . addLink("\103\x6c\151\x63\x6b\40\150\x65\x72\x65", $GV) . "\40\x74\157\x20\x75\160\x67\x72\141\144\145\40\164\157\x20\160\x72\145\155\x69\x75\155\x20\166\x65\x72\163\151\x6f\x6e\56");
        $this->mo_saml_show_error_message();
        goto hD;
        FK:
        if (!(array_key_exists("\x6c\x69\x63\x65\156\163\x65\x45\170\160\x69\162\x79", $Rs) && !$this->mo_saml_check_empty_or_null($Rs["\x6c\151\143\x65\156\163\x65\x45\170\160\x69\162\x79"]))) {
            goto PO;
        }
        update_option("\155\157\x5f\163\x61\155\154\x5f\154\151\x63\x65\x6e\163\145\137\145\170\160\x69\162\171\137\144\141\x74\x65", $this->mo_saml_parse_expiry_date($Rs["\154\151\x63\145\156\163\145\x45\170\x70\151\162\171"]));
        if (new DateTime() > new DateTime($Rs["\154\x69\143\145\x6e\163\145\x45\x78\160\151\162\171"])) {
            goto zm;
        }
        update_option("\155\157\x5f\163\x61\x6d\154\x5f\163\154\x65", false);
        goto y2;
        zm:
        update_option("\x6d\157\x5f\163\x61\155\x6c\x5f\x73\154\x65", true);
        y2:
        PO:
        $Rs = json_decode($h1->mo_saml_vl($e1, false), true);
        update_option("\x76\x6c\137\143\150\x65\x63\x6b\x5f\x74", time());
        if (isset($Rs["\x69\x73\124\162\x69\141\154"]) and !empty($Rs["\x69\163\x54\162\151\x61\154"])) {
            goto sA;
        }
        update_option("\x6d\157\x5f\163\x61\x6d\x6c\137\164\154\141", false);
        goto hi;
        sA:
        update_option("\155\157\137\x73\x61\155\154\x5f\x74\154\x61", $Rs["\151\x73\x54\162\x69\x61\154"]);
        update_option("\155\157\x5f\163\x61\155\154\137\154\x69\x63\145\x6e\163\145\137\145\170\x70\x69\x72\x79\137\144\x61\164\x65", $Rs["\x6c\151\143\145\156\163\145\105\x78\x70\151\x72\171\x44\141\164\145"]);
        hi:
        if (is_array($Rs) and strcasecmp($Rs["\163\x74\141\164\x75\x73"], "\123\125\x43\103\x45\x53\123") == 0) {
            goto Ui;
        }
        if (is_array($Rs) and strcasecmp($Rs["\163\164\141\164\165\x73"], "\x46\101\x49\x4c\105\x44") == 0) {
            goto jp;
        }
        if (!($QZ == "\164\x72\x75\145")) {
            goto GO;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        GO:
        update_option("\155\157\137\163\141\155\x6c\x5f\x6d\145\163\x73\141\147\145", "\x41\x6e\40\145\162\162\x6f\162\40\157\143\x63\165\x72\145\144\x20\167\150\151\154\145\40\160\x72\157\x63\145\x73\x73\151\x6e\147\x20\171\x6f\165\162\40\162\145\x71\165\x65\163\164\56\x20\x50\x6c\145\141\163\145\x20\x54\x72\x79\40\x61\x67\141\x69\156\56");
        $this->mo_saml_show_error_message();
        goto qe;
        jp:
        if (strcasecmp($Rs["\x6d\x65\x73\163\x61\x67\145"], "\103\x6f\144\145\x20\150\141\163\40\x45\x78\x70\x69\x72\145\x64") == 0) {
            goto xF;
        }
        if (!($QZ == "\164\x72\x75\x65")) {
            goto aU;
        }
        WP_CLI::error(mo_saml_cli_error::Invalid_License);
        aU:
        update_option("\x6d\157\x5f\163\141\155\154\x5f\x6d\x65\163\x73\141\147\x65", "\131\157\165\x20\150\x61\166\145\x20\x65\156\164\145\x72\x65\x64\40\141\x6e\x20\151\156\166\x61\x6c\151\x64\40\154\151\143\145\156\x73\145\40\153\x65\x79\56\40\120\154\145\x61\x73\x65\40\x65\156\x74\145\162\x20\141\x20\x76\x61\154\151\x64\x20\154\151\x63\145\x6e\x73\145\40\153\145\x79\56");
        goto a_;
        xF:
        if (!($QZ == "\x74\162\165\x65")) {
            goto yY;
        }
        WP_CLI::error(mo_saml_cli_error::Code_Expired);
        yY:
        $GV = add_query_arg(array("\x74\x61\x62" => "\154\151\143\145\x6e\163\151\156\x67"), $_SERVER["\122\105\121\125\x45\123\124\137\125\122\x49"]);
        update_option("\155\157\x5f\x73\x61\155\x6c\137\x6d\145\163\163\x61\x67\145", "\x4c\x69\x63\145\x6e\x73\145\40\153\x65\171\x20\x79\157\165\40\x68\141\x76\145\x20\145\156\164\x65\162\x65\144\x20\150\x61\163\x20\141\154\x72\x65\x61\144\x79\40\142\145\x65\156\40\165\163\145\x64\56\40\120\154\x65\141\x73\x65\40\x65\x6e\164\145\162\40\141\40\153\145\x79\40\167\x68\x69\x63\x68\40\x68\141\x73\x20\x6e\157\x74\40\x62\145\145\156\x20\x75\163\x65\144\x20\142\145\146\157\162\x65\40\x6f\x6e\x20\x61\x6e\171\x20\x6f\x74\x68\x65\x72\40\151\156\163\164\141\x6e\x63\x65\40\157\162\40\x69\x66\40\171\157\165\x20\x68\141\166\x65\x20\145\170\x61\x75\x73\x74\x65\144\40\141\x6c\154\40\171\x6f\165\162\x20\x6b\x65\171\163\40\164\x68\145\156\40" . addLink("\103\x6c\x69\143\153\40\x68\145\162\145", $GV) . "\40\x74\x6f\x20\x62\x75\171\40\155\x6f\x72\145\x2e");
        a_:
        $this->mo_saml_show_error_message();
        qe:
        goto g_;
        Ui:
        $U6 = get_option("\155\157\137\x73\141\155\154\137\143\165\163\x74\x6f\x6d\145\x72\x5f\x74\157\x6b\x65\x6e");
        update_option("\163\x6d\154\137\x6c\153", AESEncryption::encrypt_data($e1, $U6));
        update_option("\155\x6f\x5f\x73\x61\155\154\137\155\x65\x73\163\x61\147\x65", $J7);
        $U6 = get_option("\155\157\137\163\x61\x6d\154\x5f\143\x75\x73\x74\x6f\x6d\145\162\x5f\x74\157\x6b\145\156");
        update_option("\163\x69\x74\145\x5f\143\153\137\154", AESEncryption::encrypt_data("\x74\162\165\x65", $U6));
        update_option("\x74\x5f\x73\151\164\x65\137\x73\x74\x61\x74\165\163", AESEncryption::encrypt_data("\x66\141\x6c\x73\145", $U6));
        $hf = plugin_dir_path(__FILE__);
        $A7 = home_url();
        $A7 = trim($A7, "\57");
        if (preg_match("\43\136\x68\164\x74\x70\x28\x73\51\77\72\x2f\x2f\x23", $A7)) {
            goto UP;
        }
        $A7 = "\150\164\164\x70\72\x2f\x2f" . $A7;
        UP:
        $lc = parse_url($A7);
        $VX = preg_replace("\57\x5e\167\167\167\134\56\x2f", '', $lc["\x68\157\163\164"]);
        $E4 = wp_upload_dir();
        $tU = $VX . "\55" . $E4["\x62\x61\x73\x65\x64\x69\x72"];
        $tE = hash_hmac("\x73\150\x61\62\65\x36", $tU, "\x34\104\x48\x66\152\x67\146\152\x61\x73\156\x64\146\x73\x61\x6a\146\110\107\112");
        $N8 = $this->djkasjdksa();
        $rp = round(strlen($N8) / rand(2, 20));
        $N8 = substr_replace($N8, $tE, $rp, 0);
        $Tx = base64_decode($N8);
        if (is_writable($hf . "\x6c\x69\x63\x65\156\163\x65")) {
            goto vz;
        }
        $N8 = str_rot13($N8);
        $cy = base64_decode("\142\x47\x4e\153\141\x6d\164\150\143\62\x70\153\141\x33\116\150\x59\x32\x77\x3d");
        update_option($cy, $N8);
        goto on;
        vz:
        file_put_contents($hf . "\154\x69\143\145\156\x73\145", $Tx);
        on:
        update_option("\x6c\x63\167\x72\x74\154\x66\x73\x61\x6d\154", true);
        if (!($QZ == "\x74\x72\165\145")) {
            goto Rc;
        }
        WP_CLI::success("\x4c\151\x63\145\156\x73\145\40\141\x70\x70\x6c\x69\x65\x64\40\x73\165\x63\x63\x65\163\163\x66\165\154\154\x79\x2e");
        Rc:
        $GV = add_query_arg(array("\164\141\x62" => "\x67\145\156\145\x72\x61\154"), $_SERVER["\122\x45\121\x55\105\123\124\x5f\125\122\111"]);
        $this->mo_saml_show_success_message();
        g_:
        hD:
    }
    function mo_cli_save_details($xl, $nW, $Y_, $jL, $lV)
    {
        if (mo_saml_is_extension_installed("\x63\x75\162\x6c")) {
            goto NK;
        }
        WP_CLI::error(mo_saml_cli_error::Curl_Error);
        NK:
        update_option("\155\157\x5f\163\x61\155\154\137\x72\x65\147\x69\163\164\x72\x61\x74\151\157\x6e\x5f\x73\164\x61\164\x75\x73", '');
        update_option("\155\x6f\x5f\163\x61\155\154\137\x76\145\x72\x69\146\x79\x5f\143\165\x73\x74\x6f\x6d\x65\162", '');
        delete_option("\155\157\x5f\163\141\155\154\137\x6e\x65\167\137\x72\x65\x67\151\163\x74\x72\x61\164\x69\157\156");
        delete_option("\155\157\x5f\163\141\x6d\154\137\141\144\155\151\x6e\x5f\x65\x6d\x61\x69\154");
        delete_option("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\141\144\155\151\156\137\160\150\157\156\x65");
        delete_option("\163\x6d\154\137\154\153");
        delete_option("\164\137\163\151\164\145\x5f\163\164\x61\164\165\x73");
        delete_option("\163\151\x74\x65\137\x63\x6b\x5f\154");
        $r6 = sanitize_email($jL);
        update_option("\155\x6f\x5f\x73\141\155\x6c\137\141\x64\155\151\156\x5f\145\155\141\x69\x6c", $r6);
        $h1 = new CustomerSaml();
        $Rs = $h1->check_customer();
        if ($Rs) {
            goto fh;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        fh:
        $Rs = json_decode($Rs, true);
        if (!(strcasecmp($Rs["\163\x74\x61\x74\x75\163"], "\103\x55\123\124\x4f\115\105\122\x5f\116\117\124\x5f\x46\x4f\125\x4e\104") == 0)) {
            goto EZ;
        }
        WP_CLI::error(mo_saml_cli_error::Customer_Not_Found);
        EZ:
        update_option("\155\x6f\x5f\x73\x61\155\x6c\x5f\x61\144\155\151\x6e\137\143\x75\x73\x74\x6f\x6d\145\x72\137\x6b\x65\171", $xl);
        update_option("\155\157\137\163\x61\x6d\x6c\x5f\x61\144\x6d\x69\x6e\x5f\141\x70\151\137\x6b\145\x79", $nW);
        update_option("\155\157\x5f\x73\141\x6d\x6c\x5f\143\x75\163\x74\x6f\155\x65\x72\x5f\164\x6f\153\145\x6e", $Y_);
        update_option("\155\x6f\x5f\163\141\x6d\154\x5f\162\145\x67\x69\x73\164\x72\x61\164\x69\x6f\x6e\x5f\163\164\141\x74\x75\163", "\x45\x78\151\163\164\x69\156\147\x20\125\163\x65\162");
        delete_option("\x6d\157\x5f\163\x61\155\154\x5f\166\145\162\151\146\x79\137\x63\165\x73\164\x6f\x6d\145\162");
        $e1 = htmlspecialchars(trim($lV));
        $J7 = "\x59\157\x75\x72\40\x6c\151\143\145\156\163\x65\x20\151\163\x20\x76\145\x72\x69\x66\151\x65\144\56\40\131\x6f\x75\40\143\141\x6e\x20\x6e\157\167\40\x73\x65\164\x75\x70\x20\164\150\x65\40\160\x6c\165\147\151\156\x2e";
        $this->djkasjdksaduwaj($e1, $h1, $J7, "\164\162\165\145");
    }
    function mo_saml_show_success_message()
    {
        remove_action("\141\x64\x6d\151\156\137\x6e\x6f\x74\151\143\x65\x73", array($this, "\155\x6f\137\x73\x61\x6d\x6c\x5f\x73\165\x63\x63\145\x73\x73\x5f\x6d\145\x73\x73\x61\147\145"));
        add_action("\141\x64\155\151\156\x5f\x6e\x6f\x74\x69\143\x65\x73", array($this, "\x6d\157\x5f\x73\x61\155\154\137\x65\x72\x72\157\x72\x5f\x6d\x65\x73\x73\141\147\x65"));
    }
    function mo_saml_show_error_message()
    {
        remove_action("\x61\x64\x6d\151\x6e\137\156\157\x74\151\x63\x65\x73", array($this, "\155\x6f\x5f\163\x61\x6d\154\137\x65\162\162\x6f\162\137\155\x65\163\163\x61\x67\145"));
        add_action("\x61\x64\x6d\x69\156\x5f\156\x6f\x74\151\143\x65\x73", array($this, "\x6d\x6f\137\x73\x61\x6d\154\x5f\163\x75\x63\x63\145\x73\x73\x5f\x6d\x65\163\x73\141\x67\145"));
    }
    function plugin_settings_style($Aa)
    {
        if (!("\164\x6f\x70\x6c\x65\x76\145\154\x5f\160\x61\147\x65\137\155\157\137\163\141\x6d\154\x5f\x73\x65\164\x74\151\x6e\x67\x73" != $Aa && "\155\151\156\151\157\162\141\156\x67\145\x2d\x73\141\x6d\x6c\55\x32\55\x30\55\163\163\x6f\x5f\160\141\x67\145\137\155\x6f\x5f\x6d\141\156\x61\147\x65\137\x6c\x69\143\145\x6e\163\145" != $Aa)) {
            goto Xi;
        }
        return;
        Xi:
        if (!(isset($_REQUEST["\x74\141\x62"]) && $_REQUEST["\x74\141\x62"] == "\x6c\x69\x63\x65\156\x73\151\x6e\x67")) {
            goto PX;
        }
        wp_enqueue_style("\155\157\137\163\141\155\154\x5f\x62\157\x6f\x74\x73\x74\162\141\160\137\x63\x73\163", plugins_url("\x69\x6e\143\154\x75\x64\145\163\57\143\163\x73\57\x62\x6f\x6f\164\163\164\162\x61\160\x2f\x62\157\157\164\x73\164\162\141\x70\56\x6d\x69\x6e\56\x63\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\141\x6c\x6c");
        PX:
        wp_enqueue_style("\x6d\157\137\163\x61\x6d\x6c\137\141\144\x6d\151\x6e\137\x73\145\x74\164\151\156\147\x73\137\x6a\x71\x75\145\162\171\137\163\164\x79\x6c\x65", plugins_url("\151\x6e\143\x6c\165\144\145\163\x2f\143\163\163\x2f\152\x71\x75\x65\162\171\56\165\151\56\143\x73\163", __FILE__), array(), mo_options_plugin_constants::Version, "\141\x6c\x6c");
        wp_enqueue_style("\155\x6f\137\x73\141\x6d\154\137\x61\144\x6d\x69\x6e\137\163\145\x74\164\x69\x6e\147\163\137\163\164\x79\x6c\x65\137\164\x72\141\143\x6b\145\x72", plugins_url("\151\x6e\143\x6c\x75\144\145\x73\57\x63\163\x73\57\160\162\x6f\147\162\x65\163\163\55\x74\x72\x61\143\x6b\x65\162\x2e\x63\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\x6c");
        wp_enqueue_style("\155\x6f\137\x73\141\155\x6c\137\141\x64\x6d\151\x6e\x5f\x73\145\164\164\151\x6e\147\163\137\x73\x74\x79\x6c\x65", plugins_url("\151\x6e\x63\154\165\x64\x65\x73\57\143\x73\x73\57\x73\164\x79\x6c\145\137\163\x65\x74\164\x69\156\147\x73\x2e\x6d\151\156\x2e\x63\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\x6c\154");
        wp_enqueue_style("\x6d\157\137\163\x61\155\x6c\137\x61\144\x6d\151\156\137\x73\x65\x74\164\x69\x6e\147\163\137\160\x68\157\156\x65\137\x73\164\x79\x6c\x65", plugins_url("\151\x6e\x63\154\165\144\145\163\x2f\x63\163\x73\57\160\x68\157\x6e\x65\56\155\151\156\56\x63\x73\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\x6c");
        wp_enqueue_style("\155\x6f\x5f\163\x61\155\x6c\x5f\167\x70\142\55\x66\x61", plugins_url("\x69\x6e\143\154\x75\x64\x65\163\57\x63\x73\163\57\x66\x6f\x6e\x74\55\x61\x77\x65\x73\157\x6d\x65\56\x6d\x69\x6e\x2e\143\163\163", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\x6c");
        wp_enqueue_style("\x6d\157\137\x73\x61\x6d\x6c\137\155\141\x6e\x61\x67\145\x5f\154\151\x63\145\156\163\145\137\163\145\x74\x74\x69\x6e\147\x73\137\x73\164\171\x6c\x65", plugins_url("\x4c\151\143\x65\156\x73\x65\x55\x74\x69\x6c\163\57\x76\x69\x65\x77\x73\x2f\x4c\x69\143\145\x6e\163\x65\x56\151\145\x77\x2e\143\163\x73", __FILE__), array(), mo_options_plugin_constants::Version, "\x61\154\154");
    }
    function plugin_settings_script($Aa)
    {
        if (!("\x74\x6f\x70\154\145\x76\x65\154\x5f\160\141\147\145\137\x6d\157\137\163\x61\155\x6c\x5f\163\x65\164\x74\151\x6e\x67\x73" != $Aa && "\155\x69\156\151\x6f\x72\141\x6e\x67\145\x2d\163\x61\155\154\x2d\x32\x2d\x30\55\163\163\x6f\x5f\160\x61\147\145\137\x6d\x6f\x5f\155\141\156\141\x67\x65\137\x6c\x69\x63\x65\156\163\145" != $Aa)) {
            goto pz;
        }
        return;
        pz:
        wp_enqueue_script("\x6a\x71\x75\x65\x72\x79");
        wp_enqueue_script("\155\157\x5f\x73\x61\155\x6c\x5f\141\x64\x6d\x69\x6e\x5f\163\145\164\164\151\x6e\147\163\x5f\x63\x6f\x6c\x6f\162\137\x73\143\162\x69\x70\164", plugins_url("\x69\x6e\x63\154\x75\144\145\163\57\152\x73\57\x6a\163\x63\157\154\157\x72\57\152\163\x63\x6f\154\157\x72\56\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\x6d\x6f\137\163\141\x6d\154\x5f\x61\x64\155\151\x6e\x5f\x73\145\x74\x74\151\x6e\147\x73\x5f\x73\x63\162\151\160\164", plugins_url("\x69\x6e\143\154\x75\144\145\x73\x2f\152\163\57\163\145\x74\164\x69\156\147\163\56\155\x69\156\x2e\x6a\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\155\x6f\x5f\163\x61\155\154\137\x61\x64\x6d\151\x6e\137\163\x65\x74\164\x69\156\x67\x73\x5f\x70\150\157\156\145\137\163\143\x72\x69\x70\x74", plugins_url("\x69\156\143\x6c\x75\x64\145\x73\57\x6a\x73\x2f\160\x68\157\156\145\56\x6d\151\x6e\x2e\x6a\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\155\157\x5f\x73\x61\155\154\137\x61\144\x6d\151\156\x5f\142\x6f\x6f\x74\163\x74\x72\x61\160\137\163\x63\x72\x69\160\164", plugins_url("\x69\156\143\x6c\x75\144\145\x73\x2f\152\x73\x2f\142\x6f\x6f\x74\163\x74\x72\141\160\x2e\155\x69\x6e\x2e\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        if (!(isset($_REQUEST["\164\141\x62"]) && $_REQUEST["\x74\x61\x62"] == "\154\x69\x63\x65\x6e\163\x69\156\147")) {
            goto j4;
        }
        wp_enqueue_script("\155\x6f\x5f\163\141\155\x6c\137\x6d\157\144\145\x72\156\151\x7a\162\x5f\x73\143\x72\x69\160\x74", plugins_url("\151\x6e\143\x6c\165\144\x65\163\x2f\x6a\x73\x2f\155\x6f\144\x65\162\156\151\x7a\162\56\152\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\x6d\x6f\x5f\x73\141\155\x6c\x5f\x70\157\160\x6f\166\x65\x72\137\163\x63\x72\151\160\164", plugins_url("\x69\156\143\x6c\165\144\145\163\57\152\163\x2f\142\x6f\157\x74\x73\164\x72\x61\x70\x2f\x70\x6f\160\x70\145\x72\x2e\155\151\156\x2e\x6a\x73", __FILE__), array(), mo_options_plugin_constants::Version, false);
        wp_enqueue_script("\155\157\137\x73\141\155\x6c\x5f\x62\x6f\x6f\x74\163\x74\162\x61\x70\x5f\163\143\162\151\x70\x74", plugins_url("\x69\156\x63\154\x75\x64\x65\x73\x2f\152\163\x2f\142\x6f\157\164\x73\x74\x72\141\x70\57\142\157\x6f\x74\x73\164\162\x61\160\x2e\155\x69\156\56\152\163", __FILE__), array(), mo_options_plugin_constants::Version, false);
        j4:
    }
    function mo_saml_activation_message()
    {
        $YI = "\165\160\144\141\x74\x65\x64";
        $J7 = get_option("\155\x6f\x5f\x73\x61\x6d\x6c\x5f\x6d\145\163\x73\141\x67\145");
        echo "\x3c\144\x69\x76\40\143\154\x61\x73\x73\75\x27" . $YI . "\x27\76\40\x3c\160\x3e" . $J7 . "\x3c\x2f\x70\76\x3c\57\144\151\x76\x3e";
    }
    function get_empty_strings()
    {
        return '';
    }
    function mo_saml_custom_attr_column($yy)
    {
        $VK = maybe_unserialize(get_option("\155\157\137\163\141\x6d\154\x5f\143\x75\x73\164\x6f\155\x5f\x61\164\x74\162\163\137\155\x61\x70\160\151\156\x67"));
        $je = get_option("\163\x61\155\154\137\163\x68\157\167\137\165\163\145\x72\137\141\164\x74\x72\x69\x62\x75\x74\x65");
        $jb = 0;
        if (!is_array($VK)) {
            goto lc;
        }
        foreach ($VK as $U6 => $St) {
            if (empty($U6)) {
                goto YM;
            }
            if (!in_array($jb, $je)) {
                goto eW;
            }
            $yy[$U6] = $U6;
            eW:
            YM:
            $jb++;
            nK:
        }
        oT:
        lc:
        return $yy;
    }
    function mo_saml_attr_column_content($Bv, $Me, $eb)
    {
        $VK = maybe_unserialize(get_option("\155\x6f\x5f\163\x61\155\x6c\x5f\x63\x75\163\164\157\155\137\x61\x74\x74\162\163\x5f\x6d\x61\160\x70\x69\156\147"));
        if (!is_array($VK)) {
            goto cv;
        }
        foreach ($VK as $U6 => $St) {
            if (!($U6 === $Me)) {
                goto lU;
            }
            $Rs = get_user_meta($eb, $Me, false);
            if (empty($Rs)) {
                goto CC;
            }
            if (!is_array($Rs[0])) {
                goto ku;
            }
            $Ls = '';
            foreach ($Rs[0] as $Tp) {
                $Ls = $Ls . $Tp;
                if (!next($Rs[0])) {
                    goto Gh;
                }
                $Ls = $Ls . "\x20\x7c\40";
                Gh:
                SA:
            }
            HB:
            return $Ls;
            goto nz;
            ku:
            return $Rs[0];
            nz:
            CC:
            lU:
            Y1:
        }
        bD:
        cv:
        return $Bv;
    }
    static function mo_check_option_admin_referer($en)
    {
        return isset($_POST["\x6f\160\x74\x69\x6f\156"]) and $_POST["\x6f\x70\164\151\x6f\156"] == $en and check_admin_referer($en);
    }
    function miniorange_login_widget_saml_save_settings()
    {
        if (!current_user_can("\155\141\x6e\141\147\145\137\x6f\160\x74\151\157\x6e\x73")) {
            goto u8;
        }
        if (!(is_admin() && get_option("\x41\143\164\151\x76\x61\164\145\144\137\x50\154\x75\x67\151\156") == "\120\154\x75\x67\x69\x6e\x2d\x53\154\x75\x67")) {
            goto C_;
        }
        delete_option("\101\x63\164\x69\166\x61\164\145\144\137\x50\x6c\x75\x67\x69\156");
        update_option("\155\157\x5f\163\x61\x6d\x6c\x5f\155\x65\163\x73\141\147\145", "\107\x6f\40\x74\x6f\x20\160\154\x75\x67\x69\156\40\74\142\76\74\x61\40\x68\162\x65\146\x3d\42\x61\144\155\151\x6e\x2e\160\150\x70\77\160\x61\147\145\75\x6d\157\137\x73\x61\x6d\x6c\x5f\163\145\x74\x74\151\x6e\147\x73\42\76\x73\145\164\x74\151\x6e\x67\163\74\x2f\x61\x3e\x3c\57\x62\76\x20\164\157\40\143\x6f\x6e\146\x69\x67\x75\x72\x65\40\x53\101\115\114\40\123\x69\156\x67\x6c\x65\40\123\x69\x67\x6e\x20\x4f\156\x20\x62\171\x20\x6d\x69\x6e\x69\117\162\x61\x6e\147\x65\56");
        add_action("\141\144\155\151\x6e\x5f\156\x6f\164\151\x63\145\163", array($this, "\x6d\x6f\x5f\x73\x61\155\x6c\x5f\141\143\164\x69\166\141\164\x69\157\156\137\x6d\145\163\163\x61\x67\145"));
        C_:
        u8:
        if (!(isset($_POST["\157\160\164\151\157\x6e"]) && current_user_can("\x6d\141\156\x61\147\x65\x5f\157\160\164\x69\157\156\x73"))) {
            goto J_;
        }
        if (!self::mo_check_option_admin_referer("\155\x6f\137\155\141\156\x61\x67\145\x5f\154\151\143\x65\x6e\163\145")) {
            goto iX;
        }
        if (array_key_exists("\155\157\137\x65\156\141\x62\154\145\x5f\155\165\x6c\x74\x69\160\x6c\145\x5f\x6c\x69\x63\145\x6e\163\145\x73", $_POST)) {
            goto KG;
        }
        delete_option("\155\157\137\x65\156\x61\x62\154\145\137\155\165\154\x74\x69\160\154\145\x5f\x6c\151\x63\x65\x6e\163\145\163");
        goto Z3;
        KG:
        update_option("\x6d\x6f\x5f\145\156\141\142\x6c\x65\x5f\155\165\154\164\151\160\x6c\x65\x5f\x6c\151\x63\145\x6e\x73\x65\x73", "\143\150\x65\143\x6b\145\x64");
        initializeLicenseObjectArray();
        Z3:
        update_option("\155\157\137\163\x61\x6d\x6c\x5f\x6d\x65\x73\163\x61\147\145", "\x43\157\156\146\151\147\165\162\141\x74\151\157\156\40\x73\x61\x76\x65\x64\x20\x73\165\143\143\x65\x73\x73\146\x75\x6c\x6c\171");
        $this->mo_saml_show_success_message();
        iX:
        if (!self::mo_check_option_admin_referer("\x6d\157\x5f\x61\144\x64\151\156\x67\x5f\x61\x6c\164\x65\x72\156\x61\x74\x65\x5f\145\x6e\x76\151\x72\157\156\155\x65\x6e\164\x73")) {
            goto uL;
        }
        if (updateLicenseObjects($_POST)) {
            goto ru;
        }
        update_option("\155\157\x5f\163\x61\x6d\x6c\137\x6d\145\x73\x73\141\x67\x65", "\131\157\165\162\40\x63\150\x61\x6e\147\x65\163\x20\167\x65\x72\145\40\156\157\x74\x20\163\141\x76\145\144\x2e\x20\120\154\x65\141\x73\x65\40\x70\x72\x6f\166\x69\x64\145\x20\165\156\x69\x71\165\145\40\166\x61\154\165\x65\163\40\x66\x6f\x72\40\171\x6f\165\x72\x20\x65\x6e\166\151\x72\x6f\x6e\155\145\x6e\164\x73\x20\x61\156\144\x20\144\x6f\156\47\164\x20\162\x65\155\157\x76\145\40\164\x68\x65\40\143\x75\x72\162\145\x6e\164\x20\145\x6e\x76\x69\x72\157\156\155\145\156\x74");
        $this->mo_saml_show_error_message();
        goto gT;
        ru:
        update_option("\155\157\x5f\x73\x61\x6d\x6c\137\155\x65\x73\x73\141\x67\x65", "\x45\x6e\x76\x69\x72\x6f\x6e\x6d\x65\156\164\x73\x20\165\x70\x64\141\x74\145\144\40\x73\165\143\x63\145\163\163\x66\x75\x6c\x6c\171");
        $this->mo_saml_show_success_message();
        gT:
        uL:
        if (!self::mo_check_option_admin_referer("\155\x6f\x5f\x63\x68\141\x6e\147\x65\137\145\x6e\166\151\162\157\x6e\145\x6d\164")) {
            goto ja;
        }
        update_option("\155\157\x5f\x73\x61\155\x6c\x5f\163\x65\154\x65\143\164\x65\144\137\x65\x6e\x76\x69\162\157\x6e\x6d\x65\156\164", $_POST["\145\156\166\151\162\157\156\x6d\145\x6e\x74"]);
        update_option("\x6d\x6f\x5f\x73\141\155\x6c\x5f\x6d\x65\163\163\x61\x67\145", "\x45\x6e\x76\151\162\x6f\x6e\x6d\145\156\x74\x20\143\x68\141\x6e\x67\145\144\40\163\x75\x63\143\145\163\x73\x66\x75\x6c\154\171");
        $this->mo_saml_show_success_message();
        ja:
        if (self::mo_check_option_admin_referer("\154\157\147\x69\x6e\x5f\167\x69\x64\x67\x65\164\x5f\163\x61\x6d\154\x5f\163\141\x76\145\137\163\x65\164\x74\151\x6e\147\x73")) {
            goto dv;
        }
        if (self::mo_check_option_admin_referer("\154\x6f\147\x69\156\137\x77\151\x64\x67\x65\164\x5f\163\x61\x6d\154\137\x61\x74\164\x72\151\142\x75\x74\x65\x5f\x6d\141\x70\x70\x69\x6e\x67")) {
            goto SN;
        }
        if (self::mo_check_option_admin_referer("\143\154\145\x61\x72\x5f\141\164\164\x72\163\137\154\151\x73\164")) {
            goto yR;
        }
        if (self::mo_check_option_admin_referer("\x6d\x6f\x5f\x73\x61\x6d\154\x5f\141\144\x64\x6f\156\x73\137\155\x65\x73\163\141\x67\145")) {
            goto Vk;
        }
        if (self::mo_check_option_admin_referer("\154\157\147\x69\x6e\137\x77\x69\144\x67\145\x74\x5f\x73\x61\155\154\x5f\x72\x6f\x6c\x65\137\x6d\141\x70\160\151\x6e\147")) {
            goto wh;
        }
        if (self::mo_check_option_admin_referer("\x73\x61\155\x6c\137\146\157\x72\155\x5f\144\157\x6d\x61\151\x6e\137\162\145\x73\164\162\151\x63\x74\151\x6f\156\x5f\x6f\160\x74\x69\x6f\156")) {
            goto in;
        }
        if (self::mo_check_option_admin_referer("\x6d\157\137\x73\x61\x6d\x6c\137\165\160\144\141\x74\x65\x5f\x69\x64\x70\137\x73\x65\x74\x74\151\x6e\147\x73\x5f\x6f\160\x74\x69\157\x6e")) {
            goto Ok;
        }
        if (!self::mo_check_option_admin_referer("\163\x61\x6d\154\137\x75\x70\154\x6f\141\144\137\155\145\164\141\x64\141\x74\x61")) {
            goto cg;
        }
        if (preg_match("\57\x5e\134\167\52\x24\x2f", $_POST["\163\x61\155\x6c\137\x69\x64\x65\x6e\164\x69\x74\171\137\x6d\x65\x74\x61\x64\x61\x74\x61\137\x70\x72\157\x76\x69\144\145\x72"])) {
            goto kw;
        }
        update_option("\155\157\137\x73\141\x6d\154\x5f\155\145\163\163\x61\x67\x65", "\x50\x6c\x65\141\x73\145\x20\155\141\164\x63\x68\x20\x74\x68\145\40\x72\x65\161\x75\x65\163\x74\x65\144\40\146\x6f\x72\155\141\164\40\x66\157\x72\40\111\144\145\156\164\151\x74\171\x20\x50\x72\157\x76\151\144\145\x72\40\x4e\141\x6d\x65\56\x20\x4f\156\154\x79\40\x61\x6c\160\150\141\x62\145\x74\x73\54\40\x6e\165\155\x62\x65\x72\163\x20\141\156\144\x20\165\x6e\144\145\162\x73\x63\x6f\162\145\x20\151\163\x20\141\x6c\154\157\167\145\144\x2e");
        $this->mo_saml_show_error_message();
        return;
        kw:
        if (!function_exists("\x77\x70\137\150\x61\x6e\x64\x6c\145\x5f\165\x70\x6c\157\141\x64")) {
            require_once ABSPATH . "\167\x70\x2d\141\144\x6d\151\x6e\x2f\151\x6e\x63\x6c\165\144\x65\163\x2f\146\x69\x6c\x65\56\x70\150\160";
        }
        $this->_handle_upload_metadata();
        cg:
        goto t0;
        Ok:
        if (!(isset($_POST["\x6d\157\137\x73\141\x6d\154\x5f\x73\160\x5f\142\x61\163\145\137\x75\162\154"]) && isset($_POST["\x6d\157\137\x73\141\x6d\x6c\x5f\163\x70\x5f\x65\156\164\x69\x74\x79\x5f\x69\144"]))) {
            goto Kd;
        }
        $yE = htmlspecialchars($_POST["\155\x6f\x5f\x73\x61\155\x6c\x5f\x73\x70\x5f\142\141\163\x65\x5f\165\x72\154"]);
        $lF = htmlspecialchars($_POST["\155\x6f\137\x73\x61\x6d\154\x5f\x73\160\x5f\145\156\164\151\x74\x79\x5f\x69\144"]);
        if (!(substr($yE, -1) == "\57")) {
            goto Fm;
        }
        $yE = substr($yE, 0, -1);
        Fm:
        update_option("\155\x6f\137\x73\x61\x6d\x6c\137\163\160\137\142\141\x73\x65\137\165\x72\x6c", $yE);
        update_option("\x6d\157\137\163\141\155\154\137\x73\x70\x5f\145\156\x74\151\x74\171\137\x69\x64", $lF);
        Kd:
        update_option("\155\157\137\x73\141\155\154\137\155\145\163\163\x61\147\145", "\123\x65\164\164\151\x6e\x67\163\40\165\x70\x64\141\164\x65\144\x20\163\x75\143\x63\145\x73\x73\146\x75\x6c\x6c\171\56");
        $this->mo_saml_show_success_message();
        t0:
        goto eP;
        in:
        $t3 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($t3 and $t3 != LicenseHelper::getCurrentEnvironment())) {
            goto hI;
        }
        return;
        hI:
        $IR = isset($_POST["\155\x6f\137\x73\141\x6d\x6c\x5f\145\156\141\x62\x6c\145\137\144\x6f\155\x61\x69\x6e\x5f\x72\x65\x73\164\162\151\x63\164\151\x6f\x6e\137\154\157\147\x69\156"]) && !empty($_POST["\x6d\x6f\137\163\141\155\154\x5f\145\x6e\x61\142\x6c\x65\137\144\157\x6d\141\x69\x6e\137\162\145\163\x74\162\151\x63\164\151\x6f\156\x5f\x6c\157\147\x69\156"]) ? htmlspecialchars($_POST["\155\x6f\x5f\x73\141\155\x6c\137\x65\156\x61\x62\154\x65\x5f\144\x6f\155\x61\151\156\137\162\145\x73\164\x72\x69\143\x74\151\x6f\156\x5f\154\x6f\147\x69\x6e"]) : '';
        $Vp = isset($_POST["\x6d\157\137\163\141\x6d\x6c\137\141\x6c\154\157\x77\137\144\145\156\171\x5f\x75\x73\x65\162\137\167\151\164\x68\137\x64\x6f\155\x61\151\x6e"]) && !empty($_POST["\x6d\x6f\137\163\141\155\x6c\137\141\x6c\154\x6f\x77\x5f\x64\145\x6e\x79\x5f\165\163\x65\x72\x5f\x77\151\164\x68\x5f\x64\157\x6d\141\151\156"]) ? htmlspecialchars($_POST["\x6d\x6f\137\x73\x61\155\x6c\137\141\154\x6c\x6f\167\137\144\x65\x6e\171\137\x75\163\x65\x72\x5f\167\x69\x74\150\x5f\144\x6f\x6d\x61\151\x6e"]) : "\x61\154\154\x6f\x77";
        $HT = isset($_POST["\163\x61\155\x6c\137\141\155\x5f\x65\x6d\x61\151\x6c\137\144\x6f\x6d\x61\x69\x6e\163"]) && !empty($_POST["\163\x61\155\x6c\x5f\141\x6d\137\x65\x6d\x61\151\x6c\x5f\x64\x6f\x6d\x61\x69\156\163"]) ? htmlspecialchars($_POST["\163\141\x6d\x6c\137\x61\x6d\x5f\x65\x6d\x61\x69\154\137\144\x6f\155\141\151\156\163"]) : '';
        update_option("\155\x6f\x5f\163\x61\x6d\154\137\145\x6e\141\x62\x6c\145\137\x64\x6f\155\x61\x69\156\x5f\162\x65\163\x74\162\x69\143\x74\x69\157\156\x5f\x6c\157\147\x69\x6e", $IR);
        update_option("\155\x6f\x5f\163\x61\155\154\x5f\141\154\x6c\x6f\x77\x5f\x64\145\156\171\137\165\x73\x65\x72\x5f\x77\151\164\x68\x5f\x64\157\x6d\141\151\x6e", $Vp);
        update_option("\x73\141\x6d\154\x5f\141\155\x5f\145\155\141\x69\154\137\x64\157\155\141\151\156\163", $HT);
        update_option("\x6d\x6f\x5f\x73\141\x6d\x6c\x5f\x6d\x65\163\x73\141\147\x65", "\104\x6f\x6d\x61\x69\x6e\40\122\145\x73\x74\x72\x69\143\164\x69\157\156\x20\150\x61\x73\40\142\x65\x65\156\x20\x73\141\166\145\x64\40\x73\165\143\x63\x65\x73\x73\146\165\154\x6c\171\x2e");
        $this->mo_saml_show_success_message();
        eP:
        goto Nt;
        wh:
        $t3 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($t3 and $t3 != LicenseHelper::getCurrentEnvironment())) {
            goto ct;
        }
        return;
        ct:
        if (mo_saml_is_extension_installed("\x63\x75\x72\x6c")) {
            goto Bc;
        }
        update_option("\x6d\157\x5f\x73\141\155\x6c\x5f\x6d\x65\x73\x73\141\x67\145", "\x45\122\122\117\x52\x3a\x20\x50\110\120\x20\143\x55\122\114\40\x65\170\164\145\156\x73\x69\157\x6e\x20\151\x73\x20\x6e\157\164\40\151\x6e\x73\x74\x61\x6c\x6c\x65\x64\40\x6f\x72\x20\x64\x69\163\x61\x62\154\x65\144\x2e\x20\123\x61\166\x65\x20\x52\157\x6c\145\x20\115\x61\x70\160\x69\156\x67\40\146\141\151\154\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        Bc:
        if (!isset($_POST["\x73\141\155\154\x5f\141\x6d\x5f\x64\x65\146\141\165\154\x74\x5f\165\163\x65\x72\137\x72\157\154\145"])) {
            goto pa;
        }
        $AJ = htmlspecialchars($_POST["\163\141\x6d\154\x5f\141\x6d\x5f\x64\x65\146\141\x75\x6c\164\137\x75\163\x65\x72\137\162\x6f\x6c\145"]);
        update_option("\x73\x61\155\154\137\141\x6d\x5f\x64\x65\x66\x61\165\x6c\x74\x5f\x75\163\x65\162\137\162\157\154\145", $AJ);
        pa:
        if (isset($_POST["\x73\141\x6d\154\x5f\x61\x6d\x5f\x64\x6f\156\x74\x5f\x61\154\154\157\x77\137\165\156\154\x69\x73\x74\145\x64\x5f\x75\x73\145\162\x5f\162\157\x6c\x65"])) {
            goto ys;
        }
        update_option("\163\141\155\x6c\x5f\141\x6d\137\x64\x6f\x6e\164\x5f\141\x6c\x6c\x6f\x77\137\x75\x6e\x6c\x69\x73\x74\145\x64\137\x75\x73\x65\x72\137\162\x6f\x6c\145", "\165\156\x63\150\x65\143\x6b\145\x64");
        goto wG;
        ys:
        update_option("\x73\141\155\x6c\x5f\x61\155\x5f\144\x65\x66\x61\165\x6c\164\137\x75\163\x65\x72\x5f\x72\157\x6c\145", false);
        update_option("\163\141\155\154\x5f\x61\x6d\x5f\x64\157\x6e\x74\x5f\141\154\154\x6f\x77\137\165\x6e\x6c\x69\x73\x74\x65\x64\x5f\x75\x73\145\x72\137\x72\x6f\154\x65", "\x63\x68\x65\143\x6b\145\x64");
        wG:
        if (isset($_POST["\155\157\x5f\x73\141\x6d\x6c\137\x64\157\156\164\x5f\143\162\145\141\164\145\137\165\x73\145\x72\137\x69\x66\137\162\157\x6c\145\x5f\x6e\x6f\x74\x5f\x6d\x61\x70\x70\x65\x64"])) {
            goto Fh;
        }
        update_option("\155\157\x5f\x73\141\155\154\x5f\144\157\156\164\x5f\143\x72\145\141\164\145\x5f\165\163\145\x72\x5f\x69\x66\137\162\x6f\154\145\x5f\x6e\x6f\x74\137\155\141\x70\x70\145\x64", "\x75\156\143\x68\145\x63\153\145\144");
        goto TX;
        Fh:
        update_option("\155\157\x5f\x73\x61\x6d\154\x5f\x64\157\156\x74\137\x63\x72\145\141\164\x65\x5f\165\x73\x65\162\x5f\x69\146\x5f\x72\157\x6c\x65\x5f\x6e\x6f\164\x5f\x6d\x61\x70\x70\x65\x64", "\143\x68\x65\143\153\x65\144");
        update_option("\x73\141\155\154\x5f\141\155\137\x64\145\x66\x61\165\154\164\x5f\x75\163\145\162\137\162\157\x6c\x65", false);
        update_option("\163\x61\x6d\154\137\141\155\137\144\x6f\x6e\x74\137\141\x6c\154\157\x77\x5f\165\156\x6c\151\x73\164\x65\144\137\165\x73\145\x72\137\162\x6f\x6c\x65", "\165\x6e\x63\x68\145\143\153\x65\144");
        TX:
        if (isset($_POST["\155\x6f\x5f\x73\141\x6d\x6c\137\144\157\156\164\x5f\x75\x70\144\x61\x74\x65\x5f\145\170\x69\x73\x74\x69\x6e\x67\137\x75\x73\145\x72\x5f\162\157\x6c\145"])) {
            goto UM;
        }
        update_option("\x73\141\x6d\x6c\x5f\141\x6d\137\x64\x6f\156\x74\137\x75\160\144\141\x74\x65\x5f\145\x78\x69\163\164\x69\156\x67\137\x75\x73\x65\162\137\x72\x6f\154\x65", "\x75\x6e\x63\150\x65\143\153\145\144");
        goto aK;
        UM:
        update_option("\163\x61\155\154\x5f\x61\155\x5f\x64\x6f\x6e\x74\x5f\165\160\144\141\164\x65\x5f\x65\x78\151\163\x74\x69\x6e\x67\137\x75\x73\145\162\137\x72\157\x6c\145", "\x63\150\x65\x63\153\x65\144");
        update_option("\x73\141\155\154\x5f\141\x6d\137\165\160\x64\x61\x74\x65\x5f\x61\144\155\151\156\137\165\163\145\162\163\137\162\157\x6c\145", "\x75\156\x63\150\145\143\x6b\x65\x64");
        aK:
        if (isset($_POST["\155\x6f\137\163\141\x6d\154\x5f\x75\x70\144\141\164\x65\x5f\141\144\155\x69\156\x5f\165\x73\145\x72\x73\x5f\x72\157\x6c\x65"])) {
            goto b4;
        }
        update_option("\x73\x61\x6d\x6c\137\x61\155\x5f\165\160\144\x61\164\x65\137\141\x64\155\151\x6e\137\x75\163\145\162\x73\137\x72\157\154\x65", "\x75\156\x63\150\145\x63\153\145\x64");
        goto XB;
        b4:
        update_option("\x73\x61\155\154\137\x61\155\137\165\x70\144\141\164\145\x5f\141\x64\x6d\151\156\x5f\x75\163\145\x72\163\137\x72\x6f\x6c\x65", "\143\x68\145\x63\153\145\x64");
        XB:
        if (isset($_POST["\x6d\x6f\137\163\x61\x6d\154\x5f\x64\157\156\x74\137\x61\x6c\154\157\167\x5f\165\x73\145\x72\137\x74\x6f\x6c\157\x67\151\156\x5f\x63\162\145\141\x74\x65\x5f\167\x69\164\x68\137\147\x69\166\145\x6e\x5f\147\162\x6f\x75\x70\x73"])) {
            goto NO;
        }
        update_option("\x73\141\x6d\154\137\141\x6d\x5f\x64\x6f\156\164\x5f\141\154\154\157\x77\137\x75\163\145\162\137\x74\x6f\154\157\147\x69\156\137\143\x72\x65\x61\x74\145\137\167\x69\x74\x68\137\147\x69\x76\x65\156\x5f\x67\x72\157\165\x70\x73", "\165\x6e\143\x68\145\143\153\x65\144");
        goto fu;
        NO:
        update_option("\163\141\x6d\154\137\141\x6d\x5f\144\157\156\164\137\141\154\154\157\167\137\165\163\x65\x72\137\164\157\154\157\x67\x69\156\x5f\143\162\145\141\164\x65\x5f\x77\151\164\x68\x5f\x67\x69\x76\x65\156\137\x67\x72\x6f\x75\x70\163", "\143\150\x65\143\153\x65\144");
        if (!isset($_POST["\155\x6f\137\x73\141\x6d\x6c\x5f\162\x65\x73\164\162\151\x63\164\x5f\x75\163\x65\162\163\x5f\x77\x69\164\150\x5f\147\162\x6f\165\160\x73"])) {
            goto KD;
        }
        if (!empty($_POST["\155\157\x5f\x73\x61\155\154\x5f\162\x65\x73\164\x72\151\143\x74\x5f\x75\163\x65\x72\x73\137\x77\151\164\x68\137\147\162\x6f\165\160\x73"])) {
            goto Ut;
        }
        update_option("\x6d\157\137\x73\141\x6d\154\137\162\x65\163\x74\162\x69\x63\x74\x5f\165\x73\x65\x72\163\137\167\151\164\x68\x5f\147\x72\x6f\x75\160\x73", '');
        goto vj;
        Ut:
        update_option("\155\x6f\x5f\163\141\x6d\x6c\137\x72\x65\x73\x74\x72\151\x63\x74\x5f\x75\x73\x65\x72\163\x5f\x77\x69\164\x68\137\x67\x72\x6f\x75\x70\163", htmlspecialchars(stripslashes($_POST["\155\157\x5f\x73\141\155\154\137\162\x65\x73\x74\x72\x69\143\x74\137\x75\163\145\x72\163\137\167\x69\164\x68\x5f\147\x72\x6f\x75\x70\x73"])));
        vj:
        KD:
        fu:
        $wp_roles = new WP_Roles();
        $Qo = $wp_roles->get_names();
        $Dx = array();
        foreach ($Qo as $UY => $zu) {
            $UF = "\x73\x61\155\x6c\x5f\x61\155\x5f\x67\x72\x6f\x75\160\x5f\141\164\164\162\137\x76\141\154\x75\x65\x73\x5f" . $UY;
            $Dx[$UY] = htmlspecialchars(stripslashes($_POST[$UF]));
            Sx:
        }
        vy:
        update_option("\163\141\x6d\154\137\141\155\137\162\157\x6c\145\x5f\x6d\141\160\160\151\x6e\147", $Dx);
        update_option("\155\157\x5f\163\141\x6d\x6c\137\x6d\x65\163\x73\141\x67\x65", "\122\x6f\154\145\40\x4d\141\x70\160\151\x6e\x67\40\x64\x65\x74\141\151\154\163\x20\x73\x61\x76\145\144\x20\163\x75\143\x63\145\x73\163\x66\x75\x6c\154\x79\x2e");
        $this->mo_saml_show_success_message();
        Nt:
        goto wu;
        Vk:
        update_option("\x6d\157\x5f\163\141\155\154\137\x73\150\x6f\167\137\x61\144\x64\x6f\156\163\137\156\157\164\x69\x63\x65", 1);
        wu:
        goto pW;
        yR:
        delete_option("\x6d\157\x5f\x73\141\x6d\x6c\x5f\164\x65\163\x74\137\x63\157\x6e\146\151\147\137\141\x74\164\162\x73");
        update_option("\155\157\x5f\163\141\155\154\137\155\x65\x73\x73\x61\147\145", "\101\164\164\x72\x69\142\165\x74\145\163\x20\x6c\151\x73\164\40\x72\145\x6d\157\166\x65\144\40\x73\x75\x63\x63\145\x73\x73\146\x75\x6c\x6c\171");
        $this->mo_saml_show_success_message();
        pW:
        goto iD;
        SN:
        if (mo_saml_is_extension_installed("\143\165\x72\154")) {
            goto MX;
        }
        update_option("\x6d\157\137\x73\x61\155\x6c\x5f\x6d\145\x73\163\x61\x67\x65", "\105\122\x52\x4f\122\x3a\x20\x50\x48\120\40\143\125\122\x4c\x20\145\x78\164\145\x6e\163\x69\157\156\40\x69\x73\40\156\x6f\164\x20\x69\x6e\163\164\141\x6c\x6c\145\x64\40\x6f\162\x20\x64\151\163\x61\142\x6c\x65\x64\56\x20\x53\141\x76\x65\x20\101\x74\x74\162\x69\142\x75\164\x65\40\115\141\160\x70\151\x6e\147\x20\146\x61\151\x6c\x65\x64\56");
        $this->mo_saml_show_error_message();
        return;
        MX:
        $t3 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($t3 and $t3 != LicenseHelper::getCurrentEnvironment())) {
            goto wn;
        }
        return;
        wn:
        update_option("\x73\141\x6d\154\x5f\141\155\137\165\163\145\x72\156\x61\155\145", htmlspecialchars(stripslashes($_POST["\x73\x61\155\154\x5f\x61\155\x5f\x75\x73\145\162\156\141\x6d\145"])));
        update_option("\x73\141\x6d\x6c\137\x61\155\x5f\x65\x6d\141\151\x6c", htmlspecialchars(stripslashes($_POST["\x73\x61\x6d\x6c\137\141\x6d\x5f\145\155\141\151\154"])));
        update_option("\163\x61\x6d\154\137\x61\155\x5f\x66\x69\x72\x73\x74\137\156\x61\155\x65", htmlspecialchars(stripslashes($_POST["\163\x61\155\x6c\x5f\x61\155\137\x66\151\162\163\164\x5f\156\141\155\145"])));
        update_option("\163\141\x6d\x6c\137\x61\155\137\x6c\x61\x73\x74\137\x6e\141\x6d\x65", htmlspecialchars(stripslashes($_POST["\163\141\x6d\x6c\137\x61\155\137\x6c\141\x73\x74\137\156\x61\155\x65"])));
        update_option("\163\141\155\154\137\x61\155\x5f\x67\162\157\165\x70\137\156\141\155\x65", htmlspecialchars(stripslashes($_POST["\x73\141\x6d\x6c\x5f\141\155\137\x67\162\x6f\165\160\137\156\x61\155\x65"])));
        update_option("\163\141\155\154\x5f\141\155\137\x64\151\163\160\154\141\171\x5f\x6e\141\x6d\145", htmlspecialchars(stripslashes($_POST["\x73\x61\155\154\x5f\x61\x6d\137\x64\151\x73\160\x6c\141\171\137\x6e\141\x6d\145"])));
        $VK = array();
        $M6 = array();
        $go = array();
        $qE = array();
        if (!(isset($_POST["\x6d\x6f\x5f\x73\x61\155\154\x5f\x63\165\163\x74\x6f\x6d\x5f\x61\164\164\162\x69\x62\x75\x74\145\x5f\153\x65\171\163"]) && !empty($_POST["\x6d\x6f\x5f\163\141\155\x6c\137\143\x75\163\164\157\155\137\141\164\x74\162\151\x62\165\x74\145\x5f\153\x65\x79\x73"]))) {
            goto S8;
        }
        $M6 = $_POST["\x6d\157\x5f\x73\x61\155\154\x5f\x63\165\163\164\x6f\x6d\137\141\x74\x74\x72\x69\142\x75\164\x65\137\153\x65\x79\x73"];
        S8:
        if (!(isset($_POST["\155\157\x5f\163\x61\155\154\x5f\x63\165\163\x74\x6f\155\x5f\141\x74\x74\162\x69\x62\165\x74\145\137\x76\x61\154\x75\145\163"]) && !empty($_POST["\155\157\137\163\x61\155\x6c\137\143\x75\x73\x74\x6f\155\137\x61\x74\x74\x72\151\142\165\164\x65\x5f\x76\141\x6c\165\x65\x73"]))) {
            goto qn;
        }
        $go = $_POST["\155\157\137\x73\x61\x6d\154\x5f\x63\165\x73\164\x6f\155\x5f\141\x74\x74\162\x69\x62\165\x74\145\x5f\166\x61\154\x75\x65\x73"];
        qn:
        $mJ = count($M6);
        if (!($mJ > 0)) {
            goto uW;
        }
        $M6 = array_map("\150\x74\x6d\x6c\x73\x70\x65\x63\151\x61\154\143\150\x61\x72\163", $M6);
        $go = array_map("\150\164\155\x6c\x73\x70\145\143\x69\x61\x6c\143\150\141\162\x73", $go);
        $OE = 0;
        y8:
        if (!($OE < $mJ)) {
            goto CZ;
        }
        if (!(isset($_POST["\x6d\157\137\x73\141\155\x6c\x5f\144\x69\163\x70\x6c\141\171\137\x61\x74\x74\x72\x69\x62\165\x74\x65\137" . $OE]) && !empty($_POST["\155\157\x5f\x73\x61\x6d\x6c\137\144\x69\x73\160\154\x61\171\x5f\141\x74\164\x72\151\142\165\x74\145\137" . $OE]))) {
            goto rw;
        }
        array_push($qE, $OE);
        rw:
        $OE++;
        goto y8;
        CZ:
        uW:
        update_option("\163\x61\155\154\x5f\x73\150\x6f\167\x5f\x75\x73\x65\x72\x5f\x61\x74\x74\x72\151\x62\165\164\145", $qE);
        $VK = array_combine($M6, $go);
        $VK = array_filter($VK);
        if (!empty($VK)) {
            goto XA;
        }
        $VK = get_option("\x6d\x6f\137\x73\x61\155\154\x5f\x63\165\x73\164\x6f\x6d\x5f\x61\164\164\x72\163\x5f\x6d\x61\160\x70\151\156\147");
        if (empty($VK)) {
            goto Kr;
        }
        delete_option("\155\x6f\x5f\x73\x61\x6d\154\137\x63\x75\x73\x74\157\x6d\137\141\164\164\x72\x73\137\155\x61\x70\160\151\156\x67");
        Kr:
        goto E4;
        XA:
        update_option("\x6d\157\x5f\x73\141\x6d\154\x5f\143\165\x73\164\157\155\137\x61\164\x74\x72\163\137\x6d\141\160\160\151\x6e\147", $VK);
        E4:
        update_option("\155\x6f\137\x73\x61\x6d\x6c\137\155\145\x73\163\x61\147\145", "\x41\164\164\x72\151\142\165\164\x65\40\x4d\x61\x70\160\x69\x6e\x67\x20\x64\x65\164\141\151\154\x73\40\163\141\166\x65\x64\x20\163\x75\x63\x63\x65\163\163\146\165\154\154\x79");
        $this->mo_saml_show_success_message();
        iD:
        goto ut;
        dv:
        if (mo_saml_is_extension_installed("\x63\x75\x72\154")) {
            goto Xz;
        }
        update_option("\x6d\157\137\163\141\155\154\x5f\155\145\x73\x73\141\147\x65", "\x45\122\x52\117\122\x3a\40\120\x48\120\x20\143\125\x52\x4c\x20\145\x78\164\145\x6e\x73\x69\x6f\x6e\40\x69\163\40\x6e\x6f\x74\x20\x69\x6e\163\164\x61\x6c\x6c\145\144\40\x6f\x72\x20\x64\151\x73\141\142\154\x65\x64\x2e\40\123\x61\x76\145\x20\x49\144\145\x6e\x74\151\164\x79\x20\120\162\x6f\166\x69\144\145\x72\x20\x43\x6f\x6e\x66\151\147\x75\162\141\x74\151\x6f\156\40\x66\x61\x69\154\145\x64\x2e");
        $this->mo_saml_show_error_message();
        return;
        Xz:
        $t3 = LicenseHelper::getSelectedEnvironment();
        mo_save_environment_settings($_POST);
        if (!($t3 and $t3 != LicenseHelper::getCurrentEnvironment())) {
            goto uB;
        }
        return;
        uB:
        $JR = '';
        $SX = '';
        $gA = '';
        $gL = '';
        $D4 = '';
        $T8 = '';
        $kC = '';
        $Wh = '';
        $O4 = '';
        if ($this->mo_saml_check_empty_or_null($_POST["\x73\x61\x6d\154\x5f\151\144\145\156\x74\x69\164\x79\137\156\141\x6d\145"]) || $this->mo_saml_check_empty_or_null($_POST["\x73\141\155\154\x5f\x6c\x6f\x67\x69\x6e\137\x75\x72\x6c"]) || $this->mo_saml_check_empty_or_null($_POST["\163\x61\x6d\x6c\137\x69\163\163\165\145\x72"]) || $this->mo_saml_check_empty_or_null($_POST["\x73\141\155\154\x5f\x6e\x61\155\x65\x69\x64\x5f\146\157\162\155\x61\x74"])) {
            goto H2;
        }
        if (!preg_match("\57\x5e\134\167\52\44\x2f", $_POST["\x73\x61\x6d\x6c\137\151\144\145\x6e\164\x69\164\x79\x5f\156\x61\155\x65"])) {
            goto nj;
        }
        $JR = htmlspecialchars(trim($_POST["\163\x61\155\x6c\137\x69\x64\145\156\x74\151\x74\x79\x5f\x6e\141\x6d\x65"]));
        $gA = htmlspecialchars(trim($_POST["\163\x61\155\x6c\137\x6c\x6f\x67\151\156\x5f\x75\x72\154"]));
        if (!array_key_exists("\x73\x61\x6d\154\x5f\154\x6f\x67\151\x6e\x5f\x62\151\156\144\151\156\x67\x5f\164\x79\x70\145", $_POST)) {
            goto Ey;
        }
        $SX = htmlspecialchars($_POST["\x73\141\x6d\x6c\x5f\154\x6f\x67\x69\x6e\x5f\x62\x69\x6e\144\151\x6e\147\137\164\x79\160\145"]);
        Ey:
        if (!array_key_exists("\163\141\x6d\x6c\x5f\154\157\147\157\x75\164\x5f\x62\151\x6e\x64\x69\156\x67\x5f\x74\171\160\145", $_POST)) {
            goto ub;
        }
        $gL = htmlspecialchars($_POST["\163\x61\155\x6c\137\x6c\157\147\x6f\x75\x74\x5f\x62\151\156\x64\151\x6e\147\137\164\171\x70\x65"]);
        ub:
        if (!array_key_exists("\163\141\x6d\154\x5f\154\x6f\147\157\165\164\x5f\165\x72\x6c", $_POST)) {
            goto Vp;
        }
        $D4 = htmlspecialchars(trim($_POST["\x73\x61\155\154\137\154\x6f\147\157\x75\164\x5f\x75\x72\x6c"]));
        Vp:
        $T8 = htmlspecialchars(trim($_POST["\163\x61\x6d\x6c\x5f\x69\x73\163\x75\145\x72"]));
        if (!array_key_exists("\155\157\137\x73\141\155\154\x5f\x69\144\145\156\164\151\x74\171\x5f\x70\x72\157\x76\x69\x64\x65\x72\137\x69\144\x65\x6e\x74\x69\146\151\x65\162\x5f\156\x61\155\145", $_POST)) {
            goto TC;
        }
        $kK = htmlspecialchars($_POST["\155\x6f\137\x73\141\x6d\154\137\x69\x64\145\156\164\151\x74\x79\x5f\160\162\157\x76\x69\x64\145\162\x5f\151\x64\x65\x6e\164\x69\146\151\x65\162\x5f\156\141\x6d\145"]);
        update_option("\x6d\x6f\137\163\x61\155\x6c\x5f\x69\x64\x65\x6e\164\x69\164\171\x5f\x70\162\x6f\166\x69\144\145\162\137\151\144\x65\156\x74\x69\x66\151\x65\x72\137\156\141\x6d\145", $kK);
        TC:
        $kC = $_POST["\x73\141\x6d\x6c\x5f\x78\x35\60\x39\137\x63\x65\162\x74\x69\146\151\x63\x61\164\145"];
        $O4 = htmlspecialchars($_POST["\x73\x61\x6d\154\x5f\156\x61\x6d\x65\x69\x64\137\x66\x6f\162\155\141\164"]);
        goto Fr;
        nj:
        update_option("\x6d\157\137\x73\141\155\x6c\x5f\x6d\x65\x73\163\x61\147\145", "\x50\154\x65\x61\163\x65\x20\x6d\x61\164\x63\x68\40\x74\150\x65\x20\x72\x65\x71\x75\x65\x73\164\145\144\40\146\157\x72\155\x61\164\40\146\x6f\x72\x20\x49\x64\x65\156\x74\151\x74\171\40\120\x72\x6f\x76\x69\x64\145\x72\x20\116\x61\155\x65\x2e\x20\x4f\x6e\x6c\171\40\141\154\x70\x68\x61\x62\x65\164\163\54\x20\x6e\x75\x6d\142\145\162\163\x20\141\x6e\144\40\x75\156\x64\145\x72\x73\143\x6f\162\x65\x20\x69\x73\x20\x61\154\x6c\x6f\167\145\144\56");
        $this->mo_saml_show_error_message();
        return;
        Fr:
        goto O7;
        H2:
        update_option("\x6d\157\x5f\x73\x61\155\x6c\137\x6d\145\163\x73\141\x67\145", "\x41\x6c\154\40\164\150\x65\40\146\151\145\x6c\144\x73\x20\141\162\x65\x20\x72\145\161\x75\151\x72\x65\144\56\40\x50\154\145\141\163\145\x20\x65\x6e\x74\145\x72\x20\166\141\x6c\151\144\x20\145\156\x74\162\x69\145\163\x2e");
        $this->mo_saml_show_error_message();
        return;
        O7:
        update_option("\x73\x61\x6d\x6c\x5f\x69\x64\145\156\164\x69\164\x79\137\x6e\141\155\145", $JR);
        update_option("\x73\141\x6d\x6c\x5f\154\157\x67\x69\156\x5f\x62\151\x6e\x64\x69\156\x67\x5f\x74\x79\160\x65", $SX);
        update_option("\x73\x61\x6d\x6c\x5f\x6c\157\x67\x69\x6e\x5f\x75\x72\154", $gA);
        update_option("\x73\x61\x6d\x6c\x5f\154\x6f\147\x6f\x75\x74\137\x62\151\x6e\x64\x69\x6e\147\x5f\x74\x79\x70\145", $gL);
        update_option("\163\x61\x6d\x6c\137\x6c\x6f\x67\157\165\164\137\165\162\154", $D4);
        update_option("\x73\141\x6d\154\137\151\163\163\165\145\162", $T8

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.0
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 $jY;
        if ((double) $jY < 5.5 && (double) $jY > 5.2) {
            add_filter("logout_redirect", array($this, "mo_saml_logout_broker_with_filter"), 10, 3);
            // [PHPDeobfuscator] Implied goto
            goto uX;
        }
        add_action("wp_logout", array($this->widgetObj, "mo_saml_logout"), 1, 1);
        uX:
    }
    function mo_saml_logout_broker_with_filter($gV, $CA, $user)
    {
        $this->widgetObj->mo_saml_logout($user->ID);
    }
    function default_certificate()
    {
        $eM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate.crt");
        $TM = 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 h1;
        }
        update_option("mo_saml_current_cert", $eM);
        update_option("mo_saml_current_cert_private_key", $TM);
        h1:
    }
    function mo_saml_check_openssl()
    {
        if (mo_saml_is_extension_installed("openssl")) {
            goto wq;
        }
        wp_die("PHP openssl extension is not installed or disabled,please enable it to activate the plugin.");
        wq:
        add_option("Activated_Plugin", "Plugin-Slug");
    }
    function myprefix_add_cron_schedule($Hi)
    {
        $Hi["weekly"] = array("interval" => 604800, "display" => __("Once Weekly"));
        $Hi["monthly"] = array("interval" => 2635200, "display" => __("Once Monthly"));
        return $Hi;
    }
    function metadata_sync_cron_action()
    {
        error_log("miniorange : RAN SYNC - " . time());
        $JR = 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", $JR);
    }
    function mo_login_widget_saml_options()
    {
        global $wpdb;
        update_option("mo_saml_host_name", "https://login.xecurify.com");
        $AN = get_option("mo_saml_host_name");
        mo_register_saml_sso();
    }
    function mo_saml_success_message()
    {
        $YI = "error";
        $J7 = get_option("mo_saml_message");
        echo "<div class='error'> <p>" . $J7 . "</p></div>";
    }
    function mo_saml_error_message()
    {
        $YI = "updated";
        $J7 = get_option("mo_saml_message");
        echo "<div class='updated'> <p>" . $J7 . "</p></div>";
    }
    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 Xc;
        }
        global $wpdb;
        $uq = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
        $hv = get_current_blog_id();
        do_action("mo_saml_flush_cache");
        foreach ($uq 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($hv);
        Xc:
    }
    function djkasjdksaduwaj($e1, $h1, $J7, $QZ = "false")
    {
        $Rs = $h1->check_customer_ln();
        if ($Rs) {
            $Rs = json_decode($Rs, true);
            if (strcasecmp($Rs["status"], "SUCCESS") == 0) {
                if (!(array_key_exists("licenseExpiry", $Rs) && !$this->mo_saml_check_empty_or_null($Rs["licenseExpiry"]))) {
                    goto PO;
                }
                update_option("mo_saml_license_expiry_date", $this->mo_saml_parse_expiry_date($Rs["licenseExpiry"]));
                if (new DateTime() > new DateTime($Rs["licenseExpiry"])) {
                    update_option("mo_saml_sle", true);
                    // [PHPDeobfuscator] Implied goto
                    goto y2;
                }
                update_option("mo_saml_sle", false);
                y2:
                PO:
                $Rs = json_decode($h1->mo_saml_vl($e1, false), true);
                update_option("vl_check_t", time());
                if (isset($Rs["isTrial"]) and !empty($Rs["isTrial"])) {
                    update_option("mo_saml_tla", $Rs["isTrial"]);
                    update_option("mo_saml_license_expiry_date", $Rs["licenseExpiryDate"]);
                    // [PHPDeobfuscator] Implied goto
                    goto hi;
                }
                update_option("mo_saml_tla", false);
                hi:
                if (is_array($Rs) and strcasecmp($Rs["status"], "SUCCESS") == 0) {
                    $U6 = get_option("mo_saml_customer_token");
                    update_option("sml_lk", AESEncryption::encrypt_data($e1, $U6));
                    update_option("mo_saml_message", $J7);
                    $U6 = get_option("mo_saml_customer_token");
                    update_option("site_ck_l", AESEncryption::encrypt_data("true", $U6));
                    update_option("t_site_status", AESEncryption::encrypt_data("false", $U6));
                    $hf = plugin_dir_path("/var/www/html/input.php");
                    $A7 = home_url();
                    $A7 = trim($A7, "/");
                    if (preg_match("#^http(s)?://#", $A7)) {
                        goto UP;
                    }
                    $A7 = "http://" . $A7;
                    UP:
                    $lc = parse_url($A7);
                    $VX = preg_replace("/^www\\./", '', $lc["host"]);
                    $E4 = wp_upload_dir();
                    $tU = $VX . "-" . $E4["basedir"];
                    $tE = hash_hmac("sha256", $tU, "4DHfjgfjasndfsajfHGJ");
                    $N8 = $this->djkasjdksa();
                    $rp = round(strlen($N8) / rand(2, 20));
                    $N8 = substr_replace($N8, $tE, $rp, 0);
                    $Tx = base64_decode($N8);
                    if (is_writable($hf . "license")) {
                        file_put_contents($hf . "license", $Tx);
                        // [PHPDeobfuscator] Implied goto
                        goto on;
                    }
                    $N8 = str_rot13($N8);
                    $cy = "lcdjkasjdksacl";
                    update_option($cy, $N8);
                    on:
                    update_option("lcwrtlfsaml", true);
                    if (!($QZ == "true")) {
                        goto Rc;
                    }
                    WP_CLI::success("License applied successfully.");
                    Rc:
                    $GV = add_query_arg(array("tab" => "general"), $_SERVER["REQUEST_URI"]);
                    $this->mo_saml_show_success_message();
                    // [PHPDeobfuscator] Implied goto
                    goto g_;
                }
                if (is_array($Rs) and strcasecmp($Rs["status"], "FAILED") == 0) {
                    if (strcasecmp($Rs["message"], "Code has Expired") == 0) {
                        if (!($QZ == "true")) {
                            goto yY;
                        }
                        WP_CLI::error(mo_saml_cli_error::Code_Expired);
                        yY:
                        $GV = 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", $GV) . " to buy more.");
                        // [PHPDeobfuscator] Implied goto
                        goto a_;
                    }
                    if (!($QZ == "true")) {
                        goto aU;
                    }
                    WP_CLI::error(mo_saml_cli_error::Invalid_License);
                    aU:
                    update_option("mo_saml_message", "You have entered an invalid license key. Please enter a valid license key.");
                    a_:
                    $this->mo_saml_show_error_message();
                    // [PHPDeobfuscator] Implied goto
                    goto qe;
                }
                if (!($QZ == "true")) {
                    goto GO;
                }
                WP_CLI::error(mo_saml_cli_error::Poor_Internet);
                GO:
                update_option("mo_saml_message", "An error occured while processing your request. Please Try again.");
                $this->mo_saml_show_error_message();
                qe:
                goto g_;
            }
            $U6 = get_option("mo_saml_customer_token");
            update_option("site_ck_l", AESEncryption::encrypt_data("false", $U6));
            if (!($QZ == "true")) {
                goto xH;
            }
            WP_CLI::error(mo_saml_cli_error::Not_Upgraded);
            xH:
            $GV = add_query_arg(array("tab" => "licensing"), $_SERVER["REQUEST_URI"]);
            update_option("mo_saml_message", "You have not upgraded yet. " . addLink("Click here", $GV) . " to upgrade to premium version.");
            $this->mo_saml_show_error_message();
            g_:
            // [PHPDeobfuscator] Implied return
            return;
        }
        if (!($QZ == "true")) {
            goto K1;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        K1:
        return;
    }
    function mo_cli_save_details($xl, $nW, $Y_, $jL, $lV)
    {
        if (mo_saml_is_extension_installed("curl")) {
            goto NK;
        }
        WP_CLI::error(mo_saml_cli_error::Curl_Error);
        NK:
        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");
        $r6 = sanitize_email($jL);
        update_option("mo_saml_admin_email", $r6);
        $h1 = new CustomerSaml();
        $Rs = $h1->check_customer();
        if ($Rs) {
            goto fh;
        }
        WP_CLI::error(mo_saml_cli_error::Poor_Internet);
        fh:
        $Rs = json_decode($Rs, true);
        if (!(strcasecmp($Rs["status"], "CUSTOMER_NOT_FOUND") == 0)) {
            goto EZ;
        }
        WP_CLI::error(mo_saml_cli_error::Customer_Not_Found);
        EZ:
        update_option("mo_saml_admin_customer_key", $xl);
        update_option("mo_saml_admin_api_key", $nW);
        update_option("mo_saml_customer_token", $Y_);
        update_option("mo_saml_registration_status", "Existing User");
        delete_option("mo_saml_verify_customer");
        $e1 = htmlspecialchars(trim($lV));
        $J7 = "Your license is verified. You can now setup the plugin.";
        $this->djkasjdksaduwaj($e1, $h1, $J7, "true");
    }
    function mo_saml_show_success_message()
    {
        remove_action("admin_notices", array($this, "mo_saml_success_message"));
        add_action("admin_notices", array($this, "mo_saml_error_message"));
    }
    function mo_saml_show_error_message()
    {
        remove_action("admin_notices", array($this, "mo_saml_error_message"));
        add_action("admin_notices", array($this, "mo_saml_success_message"));
    }
    function plugin_settings_style($Aa)
    {
        if (!("toplevel_page_mo_saml_settings" != $Aa && "miniorange-saml-2-0-sso_page_mo_manage_license" != $Aa)) {
            if (!(isset($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing")) {
                goto PX;
            }
            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");
            PX:
            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($Aa)
    {
        if (!("toplevel_page_mo_saml_settings" != $Aa && "miniorange-saml-2-0-sso_page_mo_manage_license" != $Aa)) {
            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.min.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            if (!(isset($_REQUEST["tab"]) && $_REQUEST["tab"] == "licensing")) {
                goto j4;
            }
            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);
            wp_enqueue_script("mo_saml_popover_script", plugins_url("includes/js/bootstrap/popper.min.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            wp_enqueue_script("mo_saml_bootstrap_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", "/var/www/html/input.php"), array(), mo_options_plugin_constants::Version, false);
            j4:
            // [PHPDeobfuscator] Implied return
            return;
        }
        return;
    }
    function mo_saml_activation_message()
    {
        $YI = "updated";
        $J7 = get_option("mo_saml_message");
        echo "<div class='updated'> <p>" . $J7 . "</p></div>";
    }
    function get_empty_strings()
    {
        return '';
    }
    function mo_saml_custom_attr_column($yy)
    {
        $VK = maybe_unserialize(get_option("mo_saml_custom_attrs_mapping"));
        $je = get_option("saml_show_user_attribute");
        $jb = 0;
        if (!is_array($VK)) {
            goto lc;
        }
        foreach ($VK as $U6 => $St) {
            if (empty($U6)) {
                goto YM;
            }
            if (!in_array($jb, $je)) {
                goto eW;
            }
            $yy[$U6] = $U6;
            eW:
            YM:
            $jb++;
        }
        lc:
        return $yy;
    }
    function mo_saml_attr_column_content($Bv, $Me, $eb)
    {
        $VK = maybe_unserialize(get_option("mo_saml_custom_attrs_mapping"));
        if (!is_array($VK)) {
            goto cv;
        }
        foreach ($VK as $U6 => $St) {
            if (!($U6 === $Me)) {
                nz:
                CC:
                lU:
            }
            $Rs = get_user_meta($eb, $Me, false);
            if (empty($Rs)) {
                goto CC;
            }
            if (!is_array($Rs[0])) {
                return $Rs[0];
            }
            $Ls = '';
            foreach ($Rs[0] as $Tp) {
                $Ls .= $Tp;
                if (!next($Rs[0])) {
                    goto Gh;
                }
                $Ls .= " | ";
                Gh:
            }
            return $Ls;
        }
        cv:
        return $Bv;
    }
    static function mo_check_option_admin_referer($en)
    {
        return isset($_POST["option"]) and $_POST["option"] == $en and check_admin_referer($en);
    }
    function miniorange_login_widget_saml_save_settings()
    {
        if (!current_user_can("manage_options")) {
            goto u8;
        }
        if (!(is_admin() && get_option("Activated_Plugin") == "Plugin-Slug")) {
            goto C_;
        }
        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"));
        C_:
        u8:
        if (!(isset($_POST["option"]) && current_user_can("manage_options"))) {
            goto J_;
        }
        if (!self::mo_check_option_admin_referer("mo_manage_license")) {
            goto iX;
        }
        if (array_key_exists("mo_enable_multiple_licenses", $_POST)) {
            update_option("mo_enable_multiple_licenses", "checked");
            initializeLicenseObjectArray();
            // [PHPDeobfuscator] Implied goto
            goto Z3;
        }
        delete_option("mo_enable_multiple_licenses");
        Z3:
        update_option("mo_saml_message", "Configuration saved successfully");
        $this->mo_saml_show_success_message();
        iX:
        if (!self::mo_check_option_admin_referer("mo_adding_alternate_environments")) {
            goto uL;
        }
        if (updateLicenseObjects($_POST)) {
            update_option("mo_saml_message", "Environments updated successfully");
            $this->mo_saml_show_success_message();
            // [PHPDeobfuscator] Implied goto
            goto gT;
        }
        update_option("mo_saml_message", "Your changes were not saved. Please provide unique values for your environments and don't remove the current environment");
        $this->mo_saml_show_error_message();
        gT:
        uL:
        if (!self::mo_check_option_admin_referer("mo_change_environemt")) {
            goto ja;
        }
        update_option("mo_saml_selected_environment", $_POST["environment"]);
        update_option("mo_saml_message", "Environment changed successfully");
        $this->mo_saml_show_success_message();
        ja:
        if (self::mo_check_option_admin_referer("login_widget_saml_save_settings")) {
            if (mo_saml_is_extension_installed("curl")) {
                $t3 = LicenseHelper::getSelectedEnvironment();
                mo_save_environment_settings($_POST);
                if (!($t3 and $t3 != LicenseHelper::getCurrentEnvironment())) {
                    $JR = '';
                    $SX = '';
                    $gA = '';
                    $gL = '';
                    $D4 = '';
                    $T8 = '';
                    $kC = '';
                    $Wh = '';
                    $O4 = '';
                    if ($this->mo_saml_check_empty_or_null($_POST["saml_identity_name"]) || $this->mo_saml_check_empty_or_null($_POST["saml_login_url"]) || $this->mo_saml_check_empty_or_null($_POST["saml_issuer"]) || $this->mo_saml_check_empty_or_null($_POST["saml_nameid_format"])) {
                        update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
                        $this->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.");
                        $this->mo_saml_show_error_message();
                        return;
                    }
                    $JR = htmlspecialchars(trim($_POST["saml_identity_name"]));
                    $gA = htmlspecialchars(trim($_POST["saml_login_url"]));
                    if (!array_key_exists("saml_login_binding_type", $_POST)) {
                        goto Ey;
                    }
                    $SX = htmlspecialchars($_POST["saml_login_binding_type"]);
                    Ey:
                    if (!array_key_exists("saml_logout_binding_type", $_POST)) {
                        goto ub;
                    }
                    $gL = htmlspecialchars($_POST["saml_logout_binding_type"]);
                    ub:
                    if (!array_key_exists("saml_logout_url", $_POST)) {
                        goto Vp;
                    }
                    $D4 = htmlspecialchars(trim($_POST["saml_logout_url"]));
                    Vp:
                    $T8 = htmlspecialchars(trim($_POST["saml_issuer"]));
                    if (!array_key_exists("mo_saml_identity_provider_identifier_name", $_POST)) {
                        goto TC;
                    }
                    $kK = htmlspecialchars($_POST["mo_saml_identity_provider_identifier_name"]);
                    update_option("mo_saml_identity_provider_identifier_name", $kK);
                    TC:
                    $kC = $_POST["saml_x509_certificate"];
                    $O4 = htmlspecialchars($_POST["saml_nameid_format"]);
                    update_option("saml_identity_name", $JR);
                    update_option("saml_login_binding_type", $SX);
                    update_option("saml_login_url", $gA);
                    update_option("saml_logout_binding_type", $gL);
                    update_option("saml_logout_url", $D4);
                    update_option("saml_issuer", $T8);
                    update_option("saml_nameid_format", $O4);
                    if (isset($_POST["saml_request_signed"])) {
                        update_option("saml_request_signed", "checked");
                        // [PHPDeobfuscator] Implied goto
                        goto So;
                    }
                    update_option("saml_request_signed", "unchecked");
                    So:
                    foreach ($kC as $U6 => $St) {
                        if (empty($St)) {
                            unset($kC[$U6]);
                            Wb:
                        }
                        $kC[$U6] = SAMLSPUtilities::sanitize_certificate($St);
                        if (@openssl_x509_read($kC[$U6])) {
                            goto Wb;
                        }
                        update_option("mo_saml_message", "Invalid certificate: Please provide a valid certificate.");
                        $this->mo_saml_show_error_message();
                        delete_option("saml_x509_certificate");
                        return;
                    }
                    if (!empty($kC)) {
                        update_option("saml_x509_certificate", maybe_serialize($kC));
                        if (isset($_POST["saml_response_signed"])) {
                            update_option("saml_response_signed", "checked");
                            // [PHPDeobfuscator] Implied goto
                            goto Tm;
                        }
                        update_option("saml_response_signed", "Yes");
                        Tm:
                        if (isset($_POST["saml_assertion_signed"])) {
                            update_option("saml_assertion_signed", "checked");
                            // [PHPDeobfuscator] Implied goto
                            goto QM;
                        }
                        update_option("saml_assertion_signed", "Yes");
                        QM:
                        if (array_key_exists("mo_saml_encoding_enabled", $_POST)) {
                            update_option("mo_saml_encoding_enabled", "checked");
                            // [PHPDeobfuscator] Implied goto
                            goto LK;
                        }
                        update_option("mo_saml_encoding_enabled", "unchecked");
                        LK:
                        update_option("mo_saml_message", "Identity Provider details saved successfully.");
                        $this->mo_saml_show_success_message();
                        ut:
                        if (!self::mo_check_option_admin_referer("upgrade_cert")) {
                            goto UE;
                        }
                        $eM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate.crt");
                        $TM = 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", $eM);
                        update_option("mo_saml_current_cert_private_key", $TM);
                        update_option("mo_saml_certificate_roll_back_available", true);
                        update_option("mo_saml_message", "Certificate Upgraded successfully");
                        $this->mo_saml_show_success_message();
                        UE:
                        if (!self::mo_check_option_admin_referer("rollback_cert")) {
                            goto dU;
                        }
                        $eM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "sp-certificate.crt");
                        $TM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "sp-key.key");
                        update_option("mo_saml_current_cert", $eM);
                        update_option("mo_saml_current_cert_private_key", $TM);
                        update_option("mo_saml_message", "Certificate Roll-backed successfully");
                        delete_option("mo_saml_certificate_roll_back_available");
                        $this->mo_saml_show_success_message();
                        dU:
                        if (self::mo_check_option_admin_referer("add_custom_certificate")) {
                            $eM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate.crt");
                            $TM = file_get_contents(plugin_dir_path("/var/www/html/input.php") . "resources" . DIRECTORY_SEPARATOR . "miniorange-sp-certificate-priv.key");
                            if (isset($_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.");
                                    $this->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.");
                                    $this->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"])) {
                                    $WN = $_POST["saml_public_x509_certificate"];
                                    $Zl = $_POST["saml_private_x509_certificate"];
                                    update_option("mo_saml_custom_cert", $WN);
                                    update_option("mo_saml_custom_cert_private_key", $Zl);
                                    update_option("mo_saml_current_cert", $WN);
                                    update_option("mo_saml_current_cert_private_key", $Zl);
                                    update_option("mo_saml_message", "Custom Certificate updated successfully.");
                                    $this->mo_saml_show_success_message();
                                    // [PHPDeobfuscator] Implied goto
                                    goto ng;
                                }
                                goto ng;
                            }
                            if (!(isset($_POST["submit"]) and $_POST["submit"] == "Reset")) {
                                goto tW;
                            }
                            delete_option("mo_saml_custom_cert");
                            delete_option("mo_saml_custom_cert_private_key");
                            update_option("mo_saml_current_cert", $eM);
                            update_option("mo_saml_current_cert_private_key", $TM);
                            update_option("mo_saml_message", "Reset Certificate successfully.");
                            $this->mo_saml_show_success_message();
                            tW:
                            goto EM;
                        }
                        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.");
                            $this->mo_saml_show_success_message();
                            // [PHPDeobfuscator] Implied goto
                            goto wx;
                        }
                        if (!self::mo_check_option_admin_referer("mo_saml_relay_state_option")) {
                            goto lm;
                        }
                        if (isset($_POST["mo_saml_send_absolute_relay_state"]) and !empty($_POST["mo_saml_send_absolute_relay_state"])) {
                            $Yn = true;
                            // [PHPDeobfuscator] Implied goto
                            goto PR;
                        }
                        $Yn = false;
                        PR:
                        $bs = isset($_POST["mo_saml_relay_state"]) ? htmlspecialchars($_POST["mo_saml_relay_state"]) : '';
                        $ZB = isset($_POST["mo_saml_logout_relay_state"]) ? htmlspecialchars($_POST["mo_saml_logout_relay_state"]) : '';
                        update_option("mo_saml_relay_state", $bs);
                        update_option("mo_saml_logout_relay_state", $ZB);
                        update_option("mo_saml_send_absolute_relay_state", $Yn);
                        update_option("mo_saml_message", "Relay State updated successfully.");
                        $this->mo_saml_show_success_message();
                        lm:
                        wx:
                        ng:
                        EM:
                        if (self::mo_check_option_admin_referer("mo_saml_widget_option")) {
                            $gk = htmlspecialchars($_POST["mo_saml_custom_login_text"]);
                            update_option("mo_saml_custom_login_text", stripcslashes($gk));
                            $sf = htmlspecialchars($_POST["mo_saml_custom_greeting_text"]);
                            update_option("mo_saml_custom_greeting_text", stripcslashes($sf));
                            $Cz = htmlspecialchars($_POST["mo_saml_greeting_name"]);
                            update_option("mo_saml_greeting_name", stripslashes($Cz));
                            $gD = htmlspecialchars($_POST["mo_saml_custom_logout_text"]);
                            update_option("mo_saml_custom_logout_text", stripcslashes($gD));
                            update_option("mo_saml_message", "Widget Settings updated successfully.");
                            $this->mo_saml_show_success_message();
                            // [PHPDeobfuscator] Implied goto
                            goto HG;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_register_customer")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $r6 = '';
                                $zo = '';
                                $Ek = self::get_empty_strings();
                                $dZ = self::get_empty_strings();
                                if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"]) || $this->mo_saml_check_empty_or_null($_POST["confirmPassword"])) {
                                    update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
                                    $this->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.");
                                    $this->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.");
                                    $this->mo_saml_show_error_message();
                                    return;
                                }
                                $r6 = sanitize_email($_POST["email"]);
                                if (!isset($_POST["phone"])) {
                                    goto KB;
                                }
                                $zo = htmlspecialchars($_POST["phone"]);
                                KB:
                                $Ek = stripslashes(strip_tags($_POST["password"]));
                                $dZ = stripslashes(strip_tags($_POST["confirmPassword"]));
                                update_option("mo_saml_admin_email", $r6);
                                update_option("mo_saml_admin_phone", $zo);
                                if (strcmp($Ek, $dZ) == 0) {
                                    update_option("mo_saml_admin_password", $Ek);
                                    $r6 = get_option("mo_saml_admin_email");
                                    $h1 = new CustomerSaml();
                                    $Rs = $h1->check_customer();
                                    if ($Rs) {
                                        $Rs = json_decode($Rs, true);
                                        if (strcasecmp($Rs["status"], "CUSTOMER_NOT_FOUND") == 0) {
                                            $Rs = $h1->send_otp_token($r6, '');
                                            if ($Rs) {
                                                $Rs = json_decode($Rs, true);
                                                if (strcasecmp($Rs["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", $Rs["txId"]);
                                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
                                                    $this->mo_saml_show_success_message();
                                                    // [PHPDeobfuscator] Implied goto
                                                    goto uf;
                                                }
                                                update_option("mo_saml_message", "There was an error in sending email. Please verify your email and try again.");
                                                update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
                                                $this->mo_saml_show_error_message();
                                                goto uf;
                                            }
                                            return;
                                        }
                                        $this->get_current_customer();
                                        goto HF;
                                    }
                                    return;
                                }
                                update_option("mo_saml_message", "Passwords do not match.");
                                delete_option("mo_saml_verify_customer");
                                $this->mo_saml_show_error_message();
                                goto Hx;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Registration failed.");
                            $this->mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_validate_otp")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $b5 = '';
                                if ($this->mo_saml_check_empty_or_null($_POST["otp_token"])) {
                                    update_option("mo_saml_message", "Please enter a value in otp field.");
                                    $this->mo_saml_show_error_message();
                                    return;
                                }
                                $b5 = htmlspecialchars($_POST["otp_token"]);
                                $h1 = new CustomerSaml();
                                $Rs = $h1->validate_otp_token(get_option("mo_saml_transactionId"), $b5);
                                if ($Rs) {
                                    $Rs = json_decode($Rs, true);
                                    if (strcasecmp($Rs["status"], "SUCCESS") == 0) {
                                        $this->create_customer();
                                        // [PHPDeobfuscator] Implied goto
                                        goto rm;
                                    }
                                    update_option("mo_saml_message", "Invalid one time passcode. Please enter a valid otp.");
                                    $this->mo_saml_show_error_message();
                                    goto rm;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Validate OTP failed.");
                            $this->mo_saml_show_error_message();
                            return;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_verify_customer")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $r6 = '';
                                $Ek = self::get_empty_strings();
                                if ($this->mo_saml_check_empty_or_null($_POST["email"]) || $this->mo_saml_check_empty_or_null($_POST["password"])) {
                                    update_option("mo_saml_message", "All the fields are required. Please enter valid entries.");
                                    $this->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.");
                                    $this->mo_saml_show_error_message();
                                    return;
                                }
                                $r6 = sanitize_email($_POST["email"]);
                                $Ek = stripslashes(strip_tags($_POST["password"]));
                                update_option("mo_saml_admin_email", $r6);
                                update_option("mo_saml_admin_password", $Ek);
                                $h1 = new Customersaml();
                                $Rs = $h1->get_customer_key();
                                if ($Rs) {
                                    $I1 = json_decode($Rs, true);
                                    if (json_last_error() == JSON_ERROR_NONE) {
                                        update_option("mo_saml_admin_customer_key", $I1["id"]);
                                        update_option("mo_saml_admin_api_key", $I1["apiKey"]);
                                        update_option("mo_saml_customer_token", $I1["token"]);
                                        if (empty($I1["phone"])) {
                                            goto L1;
                                        }
                                        update_option("mo_saml_admin_phone", $I1["phone"]);
                                        L1:
                                        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")) {
                                            $U6 = get_option("mo_saml_customer_token");
                                            $e1 = AESEncryption::decrypt_data(get_option("sml_lk"), $U6);
                                            $Rs = json_decode($h1->mo_saml_vl($e1, false), true);
                                            update_option("vl_check_t", time());
                                            if (isset($Rs["isTrial"]) and !empty($Rs["isTrial"])) {
                                                update_option("mo_saml_tla", $Rs["isTrial"]);
                                                update_option("mo_saml_license_expiry_date", $Rs["licenseExpiryDate"]);
                                                // [PHPDeobfuscator] Implied goto
                                                goto QZ;
                                            }
                                            update_option("mo_saml_tla", false);
                                            QZ:
                                            if (is_array($Rs) and strcasecmp($Rs["status"], "SUCCESS") == 0) {
                                                if (!(isset($Rs["licenseExpiryDate"]) and !empty($Rs["licenseExpiryDate"]))) {
                                                    goto gC;
                                                }
                                                update_option("mo_saml_license_expiry_date", $Rs["licenseExpiryDate"]);
                                                gC:
                                                $hf = plugin_dir_path("/var/www/html/input.php");
                                                $A7 = home_url();
                                                $A7 = trim($A7, "/");
                                                if (preg_match("#^http(s)?://#", $A7)) {
                                                    goto Mv;
                                                }
                                                $A7 = "http://" . $A7;
                                                Mv:
                                                $lc = parse_url($A7);
                                                $VX = preg_replace("/^www\\./", '', $lc["host"]);
                                                $E4 = wp_upload_dir();
                                                $tU = $VX . "-" . $E4["basedir"];
                                                $tE = hash_hmac("sha256", $tU, "4DHfjgfjasndfsajfHGJ");
                                                $N8 = $this->djkasjdksa();
                                                $rp = round(strlen($N8) / rand(2, 20));
                                                $N8 = substr_replace($N8, $tE, $rp, 0);
                                                $Tx = base64_decode($N8);
                                                if (is_writable($hf . "license")) {
                                                    file_put_contents($hf . "license", $Tx);
                                                    // [PHPDeobfuscator] Implied goto
                                                    goto gZ;
                                                }
                                                $N8 = str_rot13($N8);
                                                $cy = "lcdjkasjdksacl";
                                                update_option($cy, $N8);
                                                gZ:
                                                update_option("lcwrtlfsaml", true);
                                                $this->mo_saml_show_success_message();
                                                // [PHPDeobfuscator] Implied goto
                                                goto iJ;
                                            }
                                            update_option("mo_saml_message", "License key for this instance is incorrect. Make sure you have not tampered with it at all. Please enter a valid license key.");
                                            delete_option("sml_lk");
                                            $this->mo_saml_show_error_message();
                                            goto iJ;
                                        }
                                        $this->mo_saml_show_success_message();
                                        goto ke;
                                    }
                                    update_option("mo_saml_message", "Invalid username or password. Please try again.");
                                    $this->mo_saml_show_error_message();
                                    iJ:
                                    ke:
                                    update_option("mo_saml_admin_password", '');
                                    // [PHPDeobfuscator] Implied goto
                                    goto Cq;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Login failed.");
                            $this->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")) {
                                $r6 = sanitize_email($_POST["mo_saml_contact_us_email"]);
                                $zo = htmlspecialchars($_POST["mo_saml_contact_us_phone"]);
                                $qX = htmlspecialchars($_POST["mo_saml_contact_us_query"]);
                                if (array_key_exists("send_plugin_config", $_POST) === true) {
                                    $G3 = miniorange_import_export(true, true);
                                    $qX .= $G3;
                                    delete_option("send_plugin_config");
                                    // [PHPDeobfuscator] Implied goto
                                    goto Gw;
                                }
                                update_option("send_plugin_config", "off");
                                Gw:
                                $h1 = new CustomerSaml();
                                if ($this->mo_saml_check_empty_or_null($r6) || $this->mo_saml_check_empty_or_null($qX)) {
                                    update_option("mo_saml_message", "Please fill up Email and Query fields to submit your query.");
                                    $this->mo_saml_show_error_message();
                                    // [PHPDeobfuscator] Implied goto
                                    goto K7;
                                }
                                if (!filter_var($r6, FILTER_VALIDATE_EMAIL)) {
                                    update_option("mo_saml_message", "Please enter a valid email address.");
                                    $this->mo_saml_show_error_message();
                                    return;
                                }
                                $vM = $h1->submit_contact_us($r6, $zo, $qX);
                                if ($vM) {
                                    update_option("mo_saml_message", "Thanks for getting in touch! We shall get back to you shortly.");
                                    $this->mo_saml_show_success_message();
                                    goto K7;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Query submit failed.");
                            $this->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")) {
                                $r6 = get_option("mo_saml_admin_email");
                                $h1 = new CustomerSaml();
                                $Rs = $h1->send_otp_token($r6, '');
                                if ($Rs) {
                                    $Rs = json_decode($Rs, true);
                                    if (strcasecmp($Rs["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", $Rs["txId"]);
                                        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_EMAIL");
                                        $this->mo_saml_show_success_message();
                                        // [PHPDeobfuscator] Implied goto
                                        goto OV;
                                    }
                                    update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_EMAIL");
                                    $this->mo_saml_show_error_message();
                                    goto OV;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
                            $this->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")) {
                                $zo = get_option("mo_saml_admin_phone");
                                $h1 = new CustomerSaml();
                                $Rs = $h1->send_otp_token('', $zo, FALSE, TRUE);
                                if ($Rs) {
                                    $Rs = json_decode($Rs, true);
                                    if (strcasecmp($Rs["status"], "SUCCESS") == 0) {
                                        update_option("mo_saml_message", " A one time passcode is sent to " . $zo . " again. Please check if you got the otp and enter it here.");
                                        update_option("mo_saml_transactionId", $Rs["txId"]);
                                        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
                                        $this->mo_saml_show_success_message();
                                        // [PHPDeobfuscator] Implied goto
                                        goto NX;
                                    }
                                    update_option("mo_saml_message", "There was an error in sending email. Please click on Resend OTP to try again.");
                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
                                    $this->mo_saml_show_error_message();
                                    goto NX;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
                            $this->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 T4;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_register_with_phone_option")) {
                            if (mo_saml_is_extension_installed("curl")) {
                                $zo = htmlspecialchars($_POST["phone"]);
                                $zo = str_replace(" ", '', $zo);
                                $zo = str_replace("-", '', $zo);
                                update_option("mo_saml_admin_phone", $zo);
                                $h1 = new CustomerSaml();
                                $Rs = $h1->send_otp_token('', $zo, FALSE, TRUE);
                                if ($Rs) {
                                    $Rs = json_decode($Rs, true);
                                    if (strcasecmp($Rs["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", $Rs["txId"]);
                                        update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_SUCCESS_PHONE");
                                        $this->mo_saml_show_success_message();
                                        // [PHPDeobfuscator] Implied goto
                                        goto KQ;
                                    }
                                    update_option("mo_saml_message", "There was an error in sending SMS. Please click on Resend OTP to try again.");
                                    update_option("mo_saml_registration_status", "MO_OTP_DELIVERED_FAILURE_PHONE");
                                    $this->mo_saml_show_error_message();
                                    goto KQ;
                                }
                                return;
                            }
                            update_option("mo_saml_message", "ERROR: PHP cURL extension is not installed or disabled. Resend OTP failed.");
                            $this->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 (array_key_exists("mo_saml_registered_only_access", $_POST)) {
                                    $lR = htmlspecialchars($_POST["mo_saml_registered_only_access"]);
                                    // [PHPDeobfuscator] Implied goto
                                    goto jD;
                                }
                                $lR = "false";
                                jD:
                                if (false) {
                                    update_option("mo_saml_registered_only_access", "true");
                                    // [PHPDeobfuscator] Implied goto
                                    goto U_;
                                }
                                update_option("mo_saml_registered_only_access", '');
                                U_:
                                update_option("mo_saml_message", "Sign in options updated.");
                                $this->mo_saml_show_success_message();
                                // [PHPDeobfuscator] Implied goto
                                goto TT;
                            }
                            update_option("mo_saml_message", "Please complete " . addLink("Service Provider", add_query_arg(array("tab" => "save"), $_SERVER["REQUEST_URI"])) . " configuration first.");
                            $this->mo_saml_show_error_message();
                            goto TT;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_redirect_to_wp_login_option")) {
                            if (!mo_saml_is_sp_configured()) {
                                goto i1;
                            }
                            if (array_key_exists("mo_saml_redirect_to_wp_login", $_POST)) {
                                $XI = htmlspecialchars($_POST["mo_saml_redirect_to_wp_login"]);
                                // [PHPDeobfuscator] Implied goto
                                goto Co;
                            }
                            $XI = "false";
                            Co:
                            update_option("mo_saml_redirect_to_wp_login", $XI);
                            update_option("mo_saml_message", "Sign in options updated.");
                            $this->mo_saml_show_success_message();
                            // [PHPDeobfuscator] Implied goto
                            goto i1;
                        }
                        if (self::mo_check_option_admin_referer("mo_saml_force_authentication_option")) {
                            if (mo_saml_is_sp_configured()) {
                                if (array_key_exists("mo_saml_force_authentication", $_POST)) {
                                    $lR = htmlspecialchars($_POST["mo_saml_force_authentication"]);
                                    // [PHPDeobfuscator] Implied goto
                                    goto Pn;
                                }
                                $lR = "false";
                                Pn:
                                if (false) {
            


Malware detection & removal plugin for WordPress

(C)2020 Wordpress Doctor All rights reserved.