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

Signing you up...

Thank you for signing up!

PHP Decode

function mo_saml_check_attribute_restriction($kE) { $JY = get_option("\x6d\x6f\137\x..

Decoded Output download

<?  function mo_saml_check_attribute_restriction($kE) 
{ 
    $JY = get_option("mo_saml_restrict_users_with_groups"); 
    $yI = array_filter(explode(";", $JY)); 
    $So = get_option("mo_saml_allow_deny_user_with_group_values"); 
    if (!empty($So)) { 
        goto Nb3; 
    } 
    $So = "deny"; 
    Nb3: 
    foreach ($yI as $XN) { 
        foreach ($kE as $ab) { 
            $ab = trim($ab); 
            if (empty($ab)) { 
                goto fq2; 
            } 
            if ($ab == $XN && "deny" === $So) { 
                goto xjQ; 
            } 
            if (!($ab != $XN && "allow" === $So)) { 
                goto KAI; 
            } 
            wp_die("You are not authorized to login. Please contact your administrator.", "Not allowed user"); 
            KAI: 
            goto v8V; 
            xjQ: 
            mo_saml_display_end_user_error_message_with_code(Mo_Saml_Error_Codes::$error_codes["WPSAMLERR019"]); 
            v8V: 
            fq2: 
            DHd: 
        } 
        w67: 
        kMc: 
    } 
    XOm: 
} ?>

Did this file decode correctly?

Original Code

function mo_saml_check_attribute_restriction($kE)
{
    $JY = get_option("\x6d\x6f\137\x73\x61\x6d\154\x5f\162\x65\163\x74\x72\151\143\x74\137\165\x73\x65\x72\163\x5f\167\x69\x74\x68\137\x67\162\x6f\165\160\x73");
    $yI = array_filter(explode("\x3b", $JY));
    $So = get_option("\x6d\157\137\163\141\x6d\x6c\x5f\x61\154\154\157\x77\137\x64\145\x6e\171\137\165\163\145\162\137\x77\x69\x74\x68\137\147\162\157\165\x70\x5f\x76\141\x6c\x75\145\163");
    if (!empty($So)) {
        goto Nb3;
    }
    $So = "\144\145\x6e\x79";
    Nb3:
    foreach ($yI as $XN) {
        foreach ($kE as $ab) {
            $ab = trim($ab);
            if (empty($ab)) {
                goto fq2;
            }
            if ($ab == $XN && "\x64\x65\x6e\x79" === $So) {
                goto xjQ;
            }
            if (!($ab != $XN && "\x61\x6c\x6c\x6f\x77" === $So)) {
                goto KAI;
            }
            wp_die("\x59\157\x75\x20\141\162\x65\x20\156\157\164\40\141\165\x74\x68\157\x72\x69\x7a\145\x64\40\164\157\x20\x6c\x6f\147\x69\156\x2e\40\120\x6c\145\141\163\x65\40\x63\157\x6e\164\141\143\164\x20\171\x6f\165\162\x20\x61\144\155\151\156\x69\x73\164\x72\141\x74\x6f\162\x2e", "\116\x6f\x74\40\141\x6c\x6c\157\x77\145\144\x20\165\x73\145\162");
            KAI:
            goto v8V;
            xjQ:
            mo_saml_display_end_user_error_message_with_code(Mo_Saml_Error_Codes::$error_codes["\127\x50\x53\101\x4d\114\105\122\x52\x30\61\x39"]);
            v8V:
            fq2:
            DHd:
        }
        w67:
        kMc:
    }
    XOm:
}

Function Calls

None

Variables

None

Stats

MD5 88ff0964e99598a39e711d1e0dd1c656
Eval Count 0
Decode Time 31 ms