Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * This file is a part of the miniorange-saml-20-single-sign-on plugin. * ..

Decoded Output download

<?php 
/** 
 * This file is a part of the miniorange-saml-20-single-sign-on plugin. 
 * 
 * @link https://plugins.miniorange.com/ 
 * @author miniOrange 
 * @package miniorange-saml-20-single-sign-on 
 */ 
 
 
use MOSAML\LicenseLibrary\Mo_License_Service; 
require_once dirname( __FILE__ ) . '/includes/lib/mo-options-enum.php'; 
add_action("admin_init", "miniorange_import_export"); 
define("Tab_Class_Names", serialize(array("SSO_Login" => "mo_options_enum_sso_login", "Identity_Provider" => "mo_options_enum_identity_provider", "Service_Provider" => "mo_options_enum_service_provider", "Attribute_Mapping" => "mo_options_enum_attribute_mapping", "Domain_Restriction" => "mo_options_enum_domain_restriction", "Role_Mapping" => "mo_options_enum_role_mapping", "Test_Configuration" => "mo_options_enum_test_configuration", "Custom_Certificate" => "mo_options_enum_custom_certificate", "Custom_Message" => "mo_options_enum_custom_messages"))); 
function miniorange_keep_configuration_saml() 
{ 
    echo "<div class="mo_saml_support_layout" id="mo_saml_keep_configuration_intact">\xd
        <div style="padding-right:10px;padding-bottom:24px">\xd\xa        <h3>Plugin Configurations</h3><hr><br/>\xd\xa\x9\x9<form name="f" method="post" action="" id="settings_intact">"; 
    wp_nonce_field("mo_saml_keep_settings_on_deletion"); 
    echo "<input type="hidden" name="option" value="mo_saml_keep_settings_on_deletion"/>
\xa		<label class="switch">\xd\xa\x9\x9<input type="checkbox"  name="mo_saml_keep_settings_intact" " . esc_html(Mo_License_Service::is_customer_license_valid(true)) . " "; 
    checked(get_site_option("mo_saml_keep_settings_on_deletion") == "true"); 
    echo "onchange="document.getElementById('settings_intact').submit();"/>
	\x9<span class="slider round"></span>\xd
		</label>
\xa		<span style="padding-left:5px;font-size:16px"><b>Keep Settings Intact</b></span><br/><br/>\xd
	\x9Enabling this would keep your configurations intact even when the plugin is uninstalled.\xd\xa        </form>
        
\xa        <br /><br />\xd\xa\x9"; 
    echo "
\xa	<form method="post" id="import_config" action="" . network_admin_url() . "admin.php?page=mo_saml_settings&tab=save" . "" enctype="multipart/form-data">"; 
    wp_nonce_field("mo_saml_import"); 
    echo "<input type="hidden" name="option" value="mo_saml_import" />
\x9<table>
	<tr><td><span style="font-size:16px"><b>Import Configurations</b></span></td></tr>
\xa\x9<tr><td><br/></td></tr>\xd\xa	<tr><td><input type="file" name="configuration_file" " . esc_html(Mo_License_Service::is_customer_license_valid(true)) . " id="configuration_file"></td>
\xa	<td><input type="submit" name="submit" style="width: auto" class="button button-primary button-large" " . esc_html(Mo_License_Service::is_customer_license_valid(true)) . " value="Import"/></td></tr>
\xa\x9\xd\xa	</table>\xd\xa\x9<br><br>
\xa\x9</div>\xd\xa</form>
\xa</div>"; 
} 
function miniorange_import_export($R5 = false, $hS = false) 
{ 
    if (Mo_License_Service::is_customer_license_verified()) { 
        goto cL; 
    } 
    return; 
    cL: 
    if (!$R5) { 
        goto nb; 
    } 
    $_POST["option"] = "mo_saml_export"; 
    nb: 
    if (!array_key_exists("option", $_POST)) { 
        goto ws; 
    } 
    if ($_POST["option"] == "mo_saml_export") { 
        goto CY; 
    } 
    if ($_POST["option"] == "mo_saml_import" && check_admin_referer("mo_saml_import")) { 
        goto VE; 
    } 
    if ($_POST["option"] == "mo_saml_keep_settings_on_deletion" && check_admin_referer("mo_saml_keep_settings_on_deletion")) { 
        goto Gw; 
    } 
    goto Re; 
    CY: 
    if ($R5 && $hS) { 
        goto QS; 
    } 
    $aM = check_admin_referer("mo_saml_export"); 
    goto GG; 
    QS: 
    $aM = check_admin_referer("mo_saml_contact_us_query_option"); 
    GG: 
    if (!$aM) { 
        goto TK; 
    } 
    $XA = maybe_unserialize(Tab_Class_Names); 
    $hR = array(); 
    $hR["Sites"] = mo_get_sites_name(); 
    foreach ($XA as $ns => $Hr) { 
        $hR[$ns] = mo_get_configuration_array($Hr); 
        kK: 
    } 
    m1: 
    $hR["Version_dependencies"] = mo_get_version_informations(); 
    $qY = phpversion(); 
    if (substr($qY, 0, 3) === "5.3") { 
        goto D3; 
    } 
    $cP = json_encode($hR, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); 
    goto Vb; 
    D3: 
    $cP = json_encode($hR, JSON_PRETTY_PRINT); 
    Vb: 
    if (!$hS) { 
        goto Rw; 
    } 
    return $cP; 
    Rw: 
    header("Content-Disposition: attachment; filename=miniorange-saml-config.json"); 
    echo json_encode($hR, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); 
    exit; 
    TK: 
    goto Re; 
    VE: 
    if (!function_exists("wp_handle_upload")) { 
        require_once ABSPATH . "wp-admin/includes/file.php"; 
    } 
    if (empty($_FILES["configuration_file"]["tmp_name"])) { 
        goto zd; 
    } 
    $Rq = @file_get_contents($_FILES["configuration_file"]["tmp_name"]); 
    $hR = json_decode($Rq, true); 
    mo_update_configuration_array($hR); 
    zd: 
    goto Re; 
    Gw: 
    if (array_key_exists("mo_saml_keep_settings_intact", $_POST)) { 
        goto W3; 
    } 
    update_site_option("mo_saml_keep_settings_on_deletion", ''); 
    goto LV; 
    W3: 
    update_site_option("mo_saml_keep_settings_on_deletion", "true"); 
    LV: 
    Re: 
    ws: 
} 
function mo_get_configuration_array($Pi, $SN = false) 
{ 
    $Yt = call_user_func($Pi . "::getConstants"); 
    $wN = array(); 
    foreach ($Yt as $ns => $Hr) { 
        $r0 = get_site_option($Hr); 
        if ($SN) { 
            goto Ix; 
        } 
        if (!$r0) { 
            goto oJ; 
        } 
        $r0 = maybe_unserialize($r0); 
        oJ: 
        $wN[$ns] = $r0; 
        goto ga; 
        Ix: 
        $wN[$ns] = $Hr; 
        ga: 
        Vz: 
    } 
    OS: 
    return $wN; 
} 
function mo_update_configuration_array($hR) 
{ 
    $XA = maybe_unserialize(Tab_Class_Names); 
    foreach ($XA as $GQ => $Pi) { 
        if (!empty($hR[$GQ])) { 
            goto Rx; 
        } 
        $z_ = new saml_mo_login(); 
        update_site_option("mo_saml_message", "Please upload a valid configuration file"); 
        $z_->mo_saml_show_error_message(); 
        return; 
        Rx: 
        foreach ($hR[$GQ] as $ns => $Hr) { 
            if (defined("{$Pi}::{$ns}")) { 
                goto n5; 
            } 
            $z_ = new saml_mo_login(); 
            update_site_option("mo_saml_message", "Please upload a valid configuration file"); 
            $z_->mo_saml_show_error_message(); 
            return; 
            goto Pp; 
            n5: 
            $lJ = constant("{$Pi}::{$ns}"); 
            Pp: 
            if (!is_array($Hr)) { 
                goto CC; 
            } 
            $Hr = serialize($Hr); 
            CC: 
            update_site_option($lJ, $Hr); 
            jy: 
        } 
        i7: 
        uR: 
    } 
    ow: 
    $z_ = new saml_mo_login(); 
    update_site_option("mo_saml_message", "Import Successful!"); 
    $z_->mo_saml_show_success_message(); 
} 
function mo_get_sites_name() 
{ 
    $aX = array(); 
    $J4 = array(); 
    if (function_exists("get_sites") && class_exists("WP_Site_Query")) { 
        goto S1; 
    } 
    $aX = wp_get_sites(); 
    goto br; 
    S1: 
    $aX = get_sites(); 
    br: 
    foreach ($aX as $GW) { 
        if (!is_object($GW)) { 
            goto UB; 
        } 
        $GW = get_object_vars($GW); 
        UB: 
        $J4[$GW["blog_id"]] = $GW["domain"] . $GW["path"]; 
        nG: 
    } 
    nm: 
    return $J4; 
} 
function mo_get_version_informations() 
{ 
    $tj = array(); 
    $tj["Plugin_version"] = mo_options_plugin_constants::Version; 
    $tj["PHP_version"] = phpversion(); 
    $tj["Wordpress_version"] = get_bloginfo("version"); 
    $tj["OPEN_SSL"] = mo_saml_is_extension_installed("openssl"); 
    $tj["CURL"] = mo_saml_is_extension_installed("curl"); 
    $tj["ICONV"] = mo_saml_is_extension_installed("iconv"); 
    $tj["DOM"] = mo_saml_is_extension_installed("dom"); 
    return $tj; 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * This file is a part of the miniorange-saml-20-single-sign-on plugin.
 *
 * @link https://plugins.miniorange.com/
 * @author miniOrange
 * @package miniorange-saml-20-single-sign-on
 */


use MOSAML\LicenseLibrary\Mo_License_Service;
require_once dirname( __FILE__ ) . '/includes/lib/mo-options-enum.php';
add_action("\141\x64\155\x69\x6e\x5f\x69\x6e\x69\x74", "\x6d\x69\156\x69\x6f\x72\x61\156\x67\x65\x5f\151\155\160\x6f\162\164\x5f\145\170\x70\x6f\162\164");
define("\124\141\x62\137\103\x6c\x61\163\163\x5f\x4e\141\x6d\x65\x73", serialize(array("\123\123\x4f\137\x4c\157\147\151\156" => "\x6d\x6f\137\x6f\x70\164\151\x6f\x6e\163\137\x65\x6e\165\155\137\x73\x73\157\x5f\154\x6f\147\151\x6e", "\x49\144\x65\156\x74\151\164\x79\x5f\120\x72\x6f\166\x69\x64\145\x72" => "\155\x6f\137\157\x70\164\151\157\156\163\x5f\145\156\165\x6d\137\151\144\x65\156\164\151\164\171\137\160\x72\x6f\x76\x69\144\x65\162", "\123\x65\x72\x76\151\143\145\137\x50\x72\x6f\166\x69\x64\145\162" => "\x6d\x6f\x5f\x6f\x70\164\151\157\156\163\x5f\145\156\165\155\137\163\145\162\166\151\143\145\x5f\160\162\157\x76\x69\x64\145\x72", "\x41\164\x74\162\151\x62\x75\x74\x65\137\115\141\x70\160\x69\156\147" => "\155\157\137\x6f\x70\164\151\157\156\x73\x5f\x65\x6e\x75\x6d\x5f\x61\164\x74\x72\x69\142\x75\x74\x65\137\x6d\x61\x70\x70\x69\x6e\147", "\x44\157\155\141\x69\x6e\x5f\x52\145\163\164\162\x69\143\x74\151\157\x6e" => "\x6d\x6f\x5f\157\x70\164\x69\157\156\x73\x5f\145\156\165\155\x5f\x64\x6f\155\141\151\156\x5f\162\145\x73\x74\162\x69\x63\x74\151\x6f\x6e", "\122\157\154\x65\137\x4d\141\160\160\x69\x6e\147" => "\155\x6f\x5f\x6f\x70\x74\151\157\156\163\137\145\156\x75\155\137\x72\x6f\x6c\145\137\155\x61\160\x70\x69\156\x67", "\124\x65\163\164\137\x43\157\156\146\151\x67\165\162\141\164\151\157\156" => "\x6d\x6f\x5f\157\160\164\151\x6f\x6e\x73\137\x65\156\x75\x6d\137\x74\145\x73\164\x5f\x63\157\156\x66\151\147\165\162\141\164\151\157\x6e", "\103\x75\163\x74\157\x6d\137\x43\x65\x72\x74\x69\146\151\x63\x61\x74\145" => "\x6d\157\x5f\157\160\x74\151\157\x6e\163\137\x65\x6e\x75\x6d\x5f\143\x75\x73\164\157\155\x5f\x63\145\x72\164\x69\146\151\x63\141\164\145", "\x43\165\x73\x74\x6f\155\137\115\145\163\x73\x61\x67\145" => "\x6d\x6f\137\157\x70\164\151\157\156\163\x5f\x65\x6e\165\155\137\x63\165\163\x74\157\x6d\x5f\x6d\x65\163\x73\x61\147\145\163")));
function miniorange_keep_configuration_saml()
{
    echo "\74\x64\x69\166\40\x63\154\x61\x73\x73\x3d\x22\x6d\157\x5f\x73\x61\x6d\x6c\137\163\165\160\160\157\162\x74\137\154\x61\x79\x6f\x75\x74\42\40\x69\144\x3d\x22\x6d\157\137\163\141\x6d\x6c\137\153\x65\145\160\137\143\x6f\156\146\151\x67\x75\x72\x61\x74\151\x6f\x6e\x5f\x69\x6e\164\x61\x63\x74\x22\x3e\xd\12\40\40\x20\40\40\x20\40\40\x3c\144\x69\x76\40\x73\164\x79\x6c\145\x3d\x22\160\141\x64\144\151\x6e\x67\55\x72\x69\x67\x68\x74\x3a\x31\x30\160\x78\73\x70\x61\x64\x64\x69\x6e\x67\55\x62\x6f\x74\x74\157\x6d\x3a\62\x34\x70\x78\x22\76\xd\xa\40\40\x20\40\40\x20\x20\x20\74\x68\63\76\x50\154\x75\147\x69\156\x20\x43\x6f\x6e\146\151\x67\x75\x72\x61\164\151\x6f\156\x73\74\x2f\x68\x33\x3e\x3c\150\162\x3e\74\142\x72\x2f\76\xd\xa\x9\x9\x3c\x66\157\162\x6d\40\x6e\x61\155\145\75\42\146\x22\x20\x6d\145\164\x68\157\144\75\x22\160\x6f\163\x74\42\40\x61\x63\164\151\x6f\156\75\42\42\x20\x69\x64\75\42\x73\x65\164\164\151\156\147\163\x5f\x69\156\x74\141\143\x74\42\76";
    wp_nonce_field("\155\157\x5f\x73\141\155\154\137\153\145\x65\x70\137\x73\145\164\164\x69\156\147\163\137\157\x6e\x5f\144\x65\x6c\x65\164\151\x6f\156");
    echo "\74\151\156\x70\165\164\x20\x74\171\160\145\75\x22\x68\x69\x64\x64\x65\x6e\x22\x20\x6e\141\x6d\145\75\x22\x6f\160\164\x69\157\x6e\x22\x20\x76\x61\x6c\165\145\x3d\x22\155\157\x5f\x73\141\155\x6c\x5f\153\x65\x65\x70\x5f\163\x65\x74\164\x69\156\147\x73\137\157\x6e\x5f\x64\x65\x6c\145\x74\x69\x6f\x6e\x22\x2f\76\15\xa\11\11\x3c\154\141\x62\145\154\x20\143\x6c\x61\163\163\x3d\42\163\x77\x69\x74\x63\x68\x22\x3e\xd\xa\x9\x9\x3c\151\x6e\160\x75\164\40\164\171\x70\145\x3d\x22\x63\x68\x65\143\x6b\142\x6f\x78\x22\40\x20\156\x61\155\x65\75\42\155\x6f\x5f\163\x61\155\154\x5f\x6b\x65\145\x70\x5f\163\x65\x74\164\x69\156\x67\x73\137\151\x6e\164\141\x63\x74\x22\40" . esc_html(Mo_License_Service::is_customer_license_valid(true)) . "\40";
    checked(get_site_option("\155\x6f\x5f\163\x61\x6d\x6c\x5f\153\x65\x65\x70\x5f\x73\x65\x74\x74\151\156\x67\163\137\x6f\156\x5f\x64\145\154\x65\164\x69\157\156") == "\x74\162\x75\145");
    echo "\157\x6e\x63\150\x61\x6e\x67\x65\x3d\x22\x64\x6f\143\165\x6d\x65\156\x74\x2e\147\x65\164\x45\x6c\x65\155\145\x6e\164\x42\171\111\x64\x28\47\163\145\x74\x74\151\x6e\x67\163\x5f\151\x6e\164\141\143\x74\x27\51\x2e\x73\x75\x62\x6d\x69\x74\50\x29\73\x22\x2f\x3e\15\12\11\x9\74\x73\x70\x61\156\40\143\x6c\141\163\163\75\42\163\154\x69\x64\x65\x72\x20\x72\157\x75\156\x64\42\x3e\x3c\x2f\163\160\x61\156\x3e\xd\12\11\11\x3c\x2f\x6c\x61\x62\145\x6c\x3e\15\xa\11\11\x3c\x73\160\141\156\x20\x73\x74\171\154\x65\75\42\x70\x61\x64\x64\151\x6e\x67\55\x6c\x65\146\164\x3a\x35\x70\x78\73\x66\x6f\156\x74\x2d\163\x69\172\145\72\61\x36\160\170\42\x3e\74\142\x3e\x4b\145\145\160\40\x53\145\x74\x74\151\156\x67\x73\x20\111\156\164\141\143\x74\74\57\142\76\x3c\x2f\163\160\x61\156\76\74\142\x72\57\x3e\x3c\x62\x72\x2f\x3e\xd\12\11\x9\105\156\141\x62\154\x69\x6e\x67\x20\164\150\151\x73\x20\x77\157\x75\x6c\144\40\153\x65\x65\160\40\x79\157\165\162\x20\143\157\x6e\x66\151\x67\x75\x72\x61\164\151\x6f\x6e\163\x20\151\156\x74\141\143\164\40\145\166\145\x6e\40\x77\150\x65\156\x20\164\150\145\x20\160\x6c\x75\147\x69\156\x20\151\163\40\165\156\x69\156\x73\164\141\x6c\x6c\x65\144\x2e\xd\xa\40\x20\40\x20\40\40\x20\40\x3c\57\146\x6f\162\x6d\x3e\15\12\x20\x20\40\x20\40\40\x20\x20\15\xa\40\x20\x20\x20\40\x20\x20\40\x3c\x62\x72\40\x2f\x3e\x3c\142\x72\40\57\x3e\xd\xa\x9";
    echo "\15\xa\11\74\146\157\162\155\x20\155\145\x74\x68\157\144\75\42\160\157\x73\x74\x22\x20\x69\x64\75\x22\x69\155\x70\x6f\x72\164\137\143\157\156\146\x69\147\x22\x20\141\143\164\x69\157\156\75\x22" . network_admin_url() . "\x61\144\155\x69\x6e\56\x70\150\160\x3f\x70\x61\x67\145\x3d\155\157\137\163\x61\x6d\154\x5f\x73\x65\164\164\x69\156\147\163\46\164\x61\142\75\163\141\166\145" . "\x22\40\145\x6e\143\164\171\160\145\x3d\42\x6d\x75\x6c\x74\151\x70\141\162\164\57\x66\x6f\x72\155\55\x64\x61\x74\141\x22\76";
    wp_nonce_field("\155\157\x5f\x73\141\x6d\x6c\137\x69\155\x70\157\162\164");
    echo "\x3c\151\x6e\x70\x75\x74\40\x74\x79\160\x65\x3d\x22\x68\151\144\144\145\156\x22\x20\x6e\x61\x6d\x65\75\42\157\x70\164\151\157\156\x22\x20\166\141\154\165\x65\75\42\155\x6f\x5f\163\x61\x6d\x6c\137\151\155\160\157\162\x74\42\x20\x2f\76\15\12\x9\x3c\x74\141\x62\154\145\x3e\15\12\11\74\164\162\76\x3c\x74\144\76\74\x73\x70\141\156\x20\x73\x74\171\154\145\75\42\x66\x6f\x6e\x74\x2d\163\151\x7a\x65\x3a\x31\66\160\170\42\x3e\x3c\x62\76\111\x6d\160\157\162\x74\40\x43\x6f\156\x66\x69\x67\x75\162\x61\x74\151\x6f\156\163\74\x2f\x62\x3e\74\x2f\163\x70\141\156\x3e\74\57\164\144\x3e\x3c\57\x74\162\x3e\15\xa\x9\74\x74\162\x3e\x3c\x74\144\x3e\74\142\x72\57\x3e\74\57\164\x64\76\x3c\x2f\x74\162\x3e\xd\xa\11\x3c\x74\x72\x3e\74\x74\144\x3e\x3c\151\x6e\x70\x75\164\40\164\171\x70\x65\x3d\42\x66\x69\x6c\x65\x22\40\x6e\141\x6d\x65\x3d\x22\143\157\x6e\146\x69\147\165\162\141\164\x69\157\x6e\137\x66\x69\x6c\x65\x22\x20" . esc_html(Mo_License_Service::is_customer_license_valid(true)) . "\x20\x69\x64\x3d\x22\x63\x6f\x6e\146\x69\147\165\x72\141\x74\x69\157\x6e\137\146\151\154\x65\x22\x3e\x3c\57\x74\144\76\15\xa\11\74\164\144\76\74\x69\156\x70\165\x74\40\x74\171\x70\x65\75\x22\163\165\142\155\x69\164\42\40\x6e\141\x6d\x65\x3d\x22\163\x75\142\x6d\151\x74\42\40\163\164\171\154\145\75\x22\167\151\x64\x74\x68\x3a\x20\141\165\164\x6f\42\x20\143\154\x61\x73\163\x3d\42\x62\165\164\x74\x6f\x6e\40\x62\165\164\x74\157\156\x2d\160\x72\x69\155\x61\162\x79\x20\142\x75\x74\164\x6f\x6e\55\x6c\x61\162\x67\x65\x22\x20" . esc_html(Mo_License_Service::is_customer_license_valid(true)) . "\x20\166\141\x6c\x75\145\x3d\x22\111\x6d\160\157\x72\164\42\x2f\76\x3c\57\164\144\x3e\74\57\164\x72\76\15\xa\x9\xd\xa\11\x3c\x2f\x74\x61\x62\154\x65\x3e\xd\xa\x9\x3c\x62\x72\x3e\74\x62\162\x3e\15\xa\x9\x3c\x2f\144\x69\x76\76\xd\xa\74\57\x66\x6f\x72\x6d\x3e\15\xa\74\57\x64\151\166\x3e";
}
function miniorange_import_export($R5 = false, $hS = false)
{
    if (Mo_License_Service::is_customer_license_verified()) {
        goto cL;
    }
    return;
    cL:
    if (!$R5) {
        goto nb;
    }
    $_POST["\157\160\x74\x69\x6f\156"] = "\155\157\x5f\163\x61\155\x6c\x5f\x65\x78\160\157\162\x74";
    nb:
    if (!array_key_exists("\157\x70\x74\x69\x6f\156", $_POST)) {
        goto ws;
    }
    if ($_POST["\x6f\160\x74\151\157\x6e"] == "\x6d\157\137\163\x61\155\x6c\x5f\x65\170\160\x6f\162\x74") {
        goto CY;
    }
    if ($_POST["\157\x70\x74\151\x6f\156"] == "\x6d\x6f\x5f\x73\x61\x6d\154\137\x69\155\x70\157\x72\164" && check_admin_referer("\155\x6f\137\x73\141\x6d\154\137\151\155\160\x6f\x72\x74")) {
        goto VE;
    }
    if ($_POST["\x6f\160\x74\x69\157\156"] == "\x6d\x6f\137\163\x61\155\154\x5f\153\145\x65\160\x5f\163\x65\164\164\x69\156\147\163\x5f\x6f\156\x5f\144\145\154\x65\164\151\157\x6e" && check_admin_referer("\x6d\157\x5f\163\141\155\154\x5f\153\x65\x65\x70\137\x73\x65\x74\164\x69\x6e\x67\163\x5f\x6f\x6e\137\x64\145\x6c\145\164\x69\x6f\x6e")) {
        goto Gw;
    }
    goto Re;
    CY:
    if ($R5 && $hS) {
        goto QS;
    }
    $aM = check_admin_referer("\155\x6f\x5f\x73\141\155\x6c\x5f\x65\170\160\157\x72\x74");
    goto GG;
    QS:
    $aM = check_admin_referer("\x6d\157\137\x73\x61\155\x6c\137\143\157\156\164\x61\x63\x74\x5f\165\x73\x5f\161\165\145\162\x79\x5f\157\x70\x74\x69\x6f\x6e");
    GG:
    if (!$aM) {
        goto TK;
    }
    $XA = maybe_unserialize(Tab_Class_Names);
    $hR = array();
    $hR["\123\x69\164\145\x73"] = mo_get_sites_name();
    foreach ($XA as $ns => $Hr) {
        $hR[$ns] = mo_get_configuration_array($Hr);
        kK:
    }
    m1:
    $hR["\126\145\x72\x73\151\x6f\x6e\137\144\145\x70\x65\x6e\144\145\x6e\143\x69\x65\163"] = mo_get_version_informations();
    $qY = phpversion();
    if (substr($qY, 0, 3) === "\x35\56\x33") {
        goto D3;
    }
    $cP = json_encode($hR, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
    goto Vb;
    D3:
    $cP = json_encode($hR, JSON_PRETTY_PRINT);
    Vb:
    if (!$hS) {
        goto Rw;
    }
    return $cP;
    Rw:
    header("\103\157\156\x74\x65\156\x74\x2d\x44\151\163\160\157\163\x69\164\151\x6f\x6e\x3a\x20\141\164\x74\141\x63\150\x6d\x65\156\164\73\x20\x66\x69\x6c\145\x6e\141\155\145\75\155\x69\156\x69\157\162\141\x6e\147\145\55\163\x61\155\x6c\55\143\x6f\x6e\146\x69\147\56\152\x73\x6f\156");
    echo json_encode($hR, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
    exit;
    TK:
    goto Re;
    VE:
    if (!function_exists("\x77\x70\137\150\141\x6e\x64\154\x65\x5f\x75\x70\x6c\157\141\144")) {
        require_once ABSPATH . "\167\160\55\141\144\155\x69\156\57\x69\156\x63\154\x75\x64\145\163\x2f\146\x69\x6c\x65\56\160\x68\160";
    }
    if (empty($_FILES["\143\x6f\x6e\146\151\147\x75\162\x61\164\x69\x6f\156\x5f\x66\151\x6c\x65"]["\x74\155\160\x5f\x6e\x61\x6d\x65"])) {
        goto zd;
    }
    $Rq = @file_get_contents($_FILES["\x63\x6f\156\146\x69\147\x75\x72\x61\164\x69\x6f\156\137\146\x69\154\x65"]["\164\155\160\137\x6e\x61\155\145"]);
    $hR = json_decode($Rq, true);
    mo_update_configuration_array($hR);
    zd:
    goto Re;
    Gw:
    if (array_key_exists("\x6d\157\137\x73\141\x6d\x6c\x5f\x6b\145\x65\x70\x5f\x73\x65\x74\x74\151\x6e\x67\x73\137\x69\156\x74\x61\143\164", $_POST)) {
        goto W3;
    }
    update_site_option("\x6d\x6f\137\163\x61\x6d\154\137\153\x65\x65\x70\137\x73\x65\164\x74\151\156\147\163\x5f\x6f\x6e\x5f\x64\x65\154\x65\164\x69\157\x6e", '');
    goto LV;
    W3:
    update_site_option("\155\157\x5f\x73\141\155\154\x5f\x6b\x65\x65\160\137\163\145\x74\x74\151\156\147\163\137\157\156\137\144\145\x6c\x65\164\151\157\x6e", "\x74\x72\165\x65");
    LV:
    Re:
    ws:
}
function mo_get_configuration_array($Pi, $SN = false)
{
    $Yt = call_user_func($Pi . "\72\72\x67\145\164\103\x6f\156\163\x74\x61\156\x74\163");
    $wN = array();
    foreach ($Yt as $ns => $Hr) {
        $r0 = get_site_option($Hr);
        if ($SN) {
            goto Ix;
        }
        if (!$r0) {
            goto oJ;
        }
        $r0 = maybe_unserialize($r0);
        oJ:
        $wN[$ns] = $r0;
        goto ga;
        Ix:
        $wN[$ns] = $Hr;
        ga:
        Vz:
    }
    OS:
    return $wN;
}
function mo_update_configuration_array($hR)
{
    $XA = maybe_unserialize(Tab_Class_Names);
    foreach ($XA as $GQ => $Pi) {
        if (!empty($hR[$GQ])) {
            goto Rx;
        }
        $z_ = new saml_mo_login();
        update_site_option("\x6d\x6f\x5f\163\x61\x6d\154\137\155\x65\x73\x73\141\147\x65", "\x50\x6c\145\x61\x73\x65\40\165\160\154\x6f\141\x64\x20\141\40\166\x61\x6c\151\x64\x20\143\157\x6e\146\151\x67\x75\162\x61\164\x69\157\x6e\x20\146\151\x6c\x65");
        $z_->mo_saml_show_error_message();
        return;
        Rx:
        foreach ($hR[$GQ] as $ns => $Hr) {
            if (defined("{$Pi}\72\72{$ns}")) {
                goto n5;
            }
            $z_ = new saml_mo_login();
            update_site_option("\x6d\157\137\163\x61\155\x6c\x5f\155\145\x73\163\x61\x67\145", "\x50\x6c\145\141\x73\x65\x20\x75\160\154\157\x61\x64\x20\141\40\x76\x61\x6c\151\x64\40\143\157\156\x66\151\x67\x75\x72\141\x74\x69\157\x6e\40\x66\x69\154\x65");
            $z_->mo_saml_show_error_message();
            return;
            goto Pp;
            n5:
            $lJ = constant("{$Pi}\x3a\x3a{$ns}");
            Pp:
            if (!is_array($Hr)) {
                goto CC;
            }
            $Hr = serialize($Hr);
            CC:
            update_site_option($lJ, $Hr);
            jy:
        }
        i7:
        uR:
    }
    ow:
    $z_ = new saml_mo_login();
    update_site_option("\155\x6f\137\163\141\x6d\x6c\137\155\x65\163\x73\x61\x67\145", "\111\155\x70\x6f\x72\164\x20\123\165\143\143\145\163\x73\146\x75\154\x21");
    $z_->mo_saml_show_success_message();
}
function mo_get_sites_name()
{
    $aX = array();
    $J4 = array();
    if (function_exists("\147\x65\164\x5f\163\x69\x74\145\x73") && class_exists("\x57\x50\137\x53\x69\164\145\x5f\121\165\x65\162\171")) {
        goto S1;
    }
    $aX = wp_get_sites();
    goto br;
    S1:
    $aX = get_sites();
    br:
    foreach ($aX as $GW) {
        if (!is_object($GW)) {
            goto UB;
        }
        $GW = get_object_vars($GW);
        UB:
        $J4[$GW["\x62\x6c\x6f\147\137\151\x64"]] = $GW["\144\x6f\155\141\x69\x6e"] . $GW["\x70\x61\164\150"];
        nG:
    }
    nm:
    return $J4;
}
function mo_get_version_informations()
{
    $tj = array();
    $tj["\x50\154\165\147\x69\156\x5f\x76\x65\162\x73\x69\157\x6e"] = mo_options_plugin_constants::Version;
    $tj["\x50\x48\120\x5f\166\145\162\x73\x69\157\x6e"] = phpversion();
    $tj["\127\x6f\162\x64\x70\162\145\x73\163\x5f\x76\x65\x72\x73\151\x6f\156"] = get_bloginfo("\x76\145\162\163\151\x6f\156");
    $tj["\x4f\120\105\116\137\x53\x53\114"] = mo_saml_is_extension_installed("\x6f\x70\145\x6e\x73\163\x6c");
    $tj["\103\x55\122\114"] = mo_saml_is_extension_installed("\x63\x75\162\x6c");
    $tj["\x49\103\117\116\126"] = mo_saml_is_extension_installed("\x69\x63\x6f\156\x76");
    $tj["\x44\117\x4d"] = mo_saml_is_extension_installed("\x64\x6f\x6d");
    return $tj;
}

Function Calls

None

Variables

None

Stats

MD5 c1f0356555fab909c515acfd2352db4c
Eval Count 0
Decode Time 96 ms