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 
 */ 
 
 
require_once dirname( __FILE__ ) . '/includes/lib/mo-options-enum.php'; 
require_once dirname( __FILE__ ) . '/Import-export.php'; 
define("Uninstall_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"))); 
if (defined("WP_UNINSTALL_PLUGIN")) { 
    goto wNW; 
} 
exit; 
wNW: 
if (!(get_site_option("mo_saml_keep_settings_on_deletion") !== "true")) { 
    goto Vel; 
} 
mo_saml_delete_plugin_configuration(); 
mo_saml_delete_user_meta(); 
Vel: 
function mo_saml_delete_plugin_configuration() 
{ 
    $XA = maybe_unserialize(Uninstall_Class_Names); 
    $hR = array(); 
    foreach ($XA as $ns => $Hr) { 
        $hR[$ns] = mo_get_configuration_array($Hr, true); 
        MTy: 
    } 
    i00: 
    foreach ($hR as $Ql => $Cn) { 
        foreach ($Cn as $O0 => $SN) { 
            delete_site_option($SN); 
            Ck4: 
        } 
        Y0X: 
        kMy: 
    } 
    E8x: 
} 
function mo_saml_delete_user_meta() 
{ 
    $a2 = get_users(array()); 
    foreach ($a2 as $user) { 
        delete_user_meta($user->ID, "mo_saml_user_attributes"); 
        delete_user_meta($user->ID, "mo_saml_session_index"); 
        delete_user_meta($user->ID, "mo_saml_name_id"); 
        HAD: 
    } 
    xyi: 
} 
 ?>

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
 */


require_once dirname( __FILE__ ) . '/includes/lib/mo-options-enum.php';
require_once dirname( __FILE__ ) . '/Import-export.php';
define("\125\156\x69\156\x73\164\141\154\x6c\137\103\x6c\141\163\163\x5f\x4e\141\155\x65\x73", serialize(array("\123\x53\x4f\137\114\157\147\151\x6e" => "\x6d\157\x5f\157\x70\x74\x69\x6f\x6e\163\x5f\x65\156\165\155\x5f\x73\163\157\x5f\154\x6f\x67\x69\156", "\x49\144\x65\x6e\164\151\x74\x79\137\120\162\157\166\x69\x64\145\162" => "\x6d\x6f\137\x6f\x70\164\x69\157\x6e\x73\x5f\145\x6e\x75\x6d\137\151\x64\145\x6e\x74\x69\x74\x79\x5f\x70\x72\157\166\x69\144\x65\x72", "\123\145\162\166\151\143\145\x5f\120\x72\x6f\x76\151\144\145\162" => "\155\x6f\137\x6f\x70\x74\x69\x6f\x6e\x73\137\145\x6e\165\155\x5f\163\145\162\166\x69\x63\x65\137\160\162\x6f\166\151\144\x65\x72", "\x41\164\x74\x72\x69\x62\165\164\145\x5f\115\x61\x70\x70\151\x6e\x67" => "\x6d\157\x5f\157\x70\164\151\x6f\156\x73\137\x65\x6e\x75\155\x5f\x61\x74\x74\x72\151\x62\x75\164\x65\137\x6d\x61\160\160\151\x6e\147", "\104\157\x6d\x61\151\156\x5f\x52\145\x73\x74\162\x69\x63\x74\151\x6f\x6e" => "\155\x6f\x5f\x6f\160\x74\151\x6f\156\163\137\145\x6e\165\x6d\x5f\x64\157\155\x61\151\x6e\137\162\x65\163\164\162\x69\x63\x74\151\x6f\156", "\122\x6f\x6c\x65\137\x4d\141\x70\x70\151\156\x67" => "\155\157\x5f\157\160\x74\151\157\156\x73\137\145\156\x75\155\x5f\x72\157\154\x65\137\155\141\160\160\x69\156\147", "\x54\x65\163\164\x5f\x43\x6f\156\x66\x69\147\x75\162\x61\x74\151\157\x6e" => "\155\x6f\137\x6f\160\x74\x69\157\156\163\137\x65\x6e\165\155\137\x74\x65\163\164\x5f\x63\157\x6e\x66\151\x67\165\162\141\x74\151\157\156", "\x43\x75\163\x74\157\155\137\x43\x65\x72\x74\151\146\x69\143\x61\x74\x65" => "\x6d\x6f\x5f\x6f\160\x74\151\x6f\156\163\137\x65\156\x75\155\137\x63\x75\163\164\157\x6d\x5f\143\x65\x72\164\x69\146\x69\x63\141\164\145", "\x43\x75\x73\164\x6f\x6d\137\115\x65\163\163\141\147\145" => "\x6d\157\x5f\x6f\160\x74\x69\x6f\x6e\x73\x5f\145\x6e\x75\x6d\137\x63\x75\x73\x74\x6f\x6d\x5f\155\145\163\163\141\x67\145\x73")));
if (defined("\x57\x50\x5f\x55\x4e\x49\116\123\124\101\114\x4c\137\120\114\x55\x47\111\x4e")) {
    goto wNW;
}
exit;
wNW:
if (!(get_site_option("\155\x6f\137\x73\141\x6d\x6c\x5f\x6b\x65\x65\160\137\x73\145\x74\164\x69\156\x67\x73\137\x6f\x6e\x5f\x64\145\x6c\145\x74\x69\157\156") !== "\164\162\165\145")) {
    goto Vel;
}
mo_saml_delete_plugin_configuration();
mo_saml_delete_user_meta();
Vel:
function mo_saml_delete_plugin_configuration()
{
    $XA = maybe_unserialize(Uninstall_Class_Names);
    $hR = array();
    foreach ($XA as $ns => $Hr) {
        $hR[$ns] = mo_get_configuration_array($Hr, true);
        MTy:
    }
    i00:
    foreach ($hR as $Ql => $Cn) {
        foreach ($Cn as $O0 => $SN) {
            delete_site_option($SN);
            Ck4:
        }
        Y0X:
        kMy:
    }
    E8x:
}
function mo_saml_delete_user_meta()
{
    $a2 = get_users(array());
    foreach ($a2 as $user) {
        delete_user_meta($user->ID, "\155\x6f\137\163\141\x6d\x6c\137\x75\x73\x65\162\x5f\x61\x74\164\162\x69\x62\165\164\x65\x73");
        delete_user_meta($user->ID, "\x6d\x6f\137\x73\141\x6d\x6c\x5f\163\x65\163\x73\x69\157\x6e\x5f\151\156\x64\x65\170");
        delete_user_meta($user->ID, "\x6d\157\x5f\163\141\155\x6c\137\x6e\x61\155\x65\x5f\x69\144");
        HAD:
    }
    xyi:
}

Function Calls

None

Variables

None

Stats

MD5 42cc60f873fd14cbd176922e71fc5dc6
Eval Count 0
Decode Time 116 ms