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 function mo_saml_url_based_domain_mapping() { if (is_plugin_active("\x6d\..

Decoded Output download

<?php 
 
 
function mo_saml_url_based_domain_mapping() 
{ 
    if (is_plugin_active("miniorange-saml-20-single-sign-on-multiple-idp/login.php")) { 
        goto r2; 
    } 
    echo "<br/><br/>"; 
    echo "<b> Please Activate the miniOrange SAML 2.0 SSO SP Plugin First</b>"; 
    return; 
    r2: 
    $EH = get_option("saml_identity_providers") ? get_option("saml_identity_providers") : array(); 
    $aQ = get_option("mo_saml_url_domain_mapping") ? get_option("mo_saml_url_domain_mapping") : array(); 
    echo "<table width="98%" border="0" style="background-color: #FFFFFF; border: 1px solid #CCCCCC; padding: 0px 0px 0px 10px;">
    <tr>
        <td colspan="2">
            <h3>URL IDP Domain Mapping</h3><hr>"; 
    check_plugin_state(); 
    echo "</td>
    </tr>
    <tr>\xa        <td colspan="3">\xa            <form id="mo_saml_url_domain_mapping_failed_options_form" method="post" action="">"; 
    echo "<input type="hidden" name="option" value="url_domain_mapping_failed_options"/>
                <br/><b>If Domain Mapping fails (Choose One): </b>
        </td>	\x9\xa    </tr>\xa    <tr>
        <td colspan="3">\xa                <input style="margin-left:2%" type="radio" id="mo_saml_domain_login_fail" name="mo_saml_domain_url_login_fail" value="use_wp_credentials""; 
    $uv = get_option("mo_saml_domain_url_login_fail"); 
    if (mo_saml_is_customer_license_key_verified()) { 
        goto C4; 
    } 
    echo "disabled title="Disabled. Configure your Service Provider.""; 
    C4: 
    echo '' . $uv ? "checked" : ''; 
    echo " onchange="document.getElementById('mo_saml_url_domain_mapping_failed_options_form').submit();"/> Allow User to login via WP credentials. 
        </td>\xa    </tr>
    <tr>\xa        <td colspan="3">                                \xa                <input style="margin-left:2%" type="radio" id="mo_saml_fallback_to_default_idp_for_url_domain_mapping_addon" name="mo_saml_domain_url_login_fail" value="redirect_to_default_idp""; 
    $yE = get_option("mo_saml_fallback_to_default_idp_for_url_domain_mapping_addon"); 
    $GW = get_option("saml_default_idp"); 
    if (!mo_saml_is_customer_license_key_verified()) { 
        goto OD; 
    } 
    if ($GW) { 
        goto Q4; 
    } 
    echo " disabled title="Disabled. No Default IDP selected.""; 
    Q4: 
    goto MX; 
    OD: 
    echo "disabled title="Disabled. Configure your Service Provider""; 
    MX: 
    echo '' . $yE ? "checked" : ''; 
    echo " onchange="document.getElementById('mo_saml_url_domain_mapping_failed_options_form').submit();"/> Redirect to Default Identity Provider.                    
            </form>\xa        </td>
    </tr>		
    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    <br >\xa    <form name="mo_saml_login_form_for_url_domain_mapping" method="post" action="">"; 
    echo "<input type="hidden" name="option"
            value="mo_saml_login_form_for_url_domain_mapping" />"; 
    foreach ($EH as $Ue => $Pb) { 
        $o7 = ''; 
        if (!array_key_exists("mo_saml_url_domain_mapping_" . $Ue, $aQ)) { 
            goto lV; 
        } 
        $o7 = $aQ["mo_saml_url_domain_mapping_" . $Ue]; 
        lV: 
        echo "<tr>\xa                <td style="width: 150px;">" . $Ue . ":</td>
                <td><input type="text" name="mo_saml_url_domain_mapping_" . $Ue . ""\xa                    placeholder="Enter the URL"
                    style="width: 70%;" value="" . $o7 . """; 
        if (mo_saml_is_customer_license_key_verified()) { 
            goto DX; 
        } 
        echo "disabled"; 
        DX: 
        echo "/></td>\xa            </tr>"; 
        eI: 
    } 
    cY: 
    echo "<tr>
                <td>&nbsp;</td>
                <td><br /> <input type="submit" style="width: 100px;" name="submit"\xa                    value="Save" class="button button-primary button-large""; 
    if (mo_saml_is_customer_license_key_verified()) { 
        goto K6; 
    } 
    echo "disabled"; 
    K6: 
    echo "/>\xa                    &nbsp; <br /> <br /></td>\xa            </tr>\xa        </table>
    </form>\xa    <br />"; 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


function mo_saml_url_based_domain_mapping()
{
    if (is_plugin_active("\x6d\151\156\x69\157\162\141\156\x67\x65\55\x73\x61\x6d\x6c\x2d\x32\60\55\x73\151\156\x67\154\145\x2d\x73\151\x67\156\x2d\x6f\x6e\55\155\165\x6c\164\151\160\x6c\x65\55\x69\x64\160\57\154\x6f\x67\151\156\56\x70\x68\x70")) {
        goto r2;
    }
    echo "\x3c\x62\162\x2f\x3e\74\x62\x72\x2f\x3e";
    echo "\x3c\x62\76\x20\x50\154\145\x61\163\x65\x20\101\143\164\151\x76\141\164\145\40\164\150\145\40\x6d\151\x6e\x69\117\162\141\156\x67\145\x20\x53\101\x4d\114\40\x32\x2e\60\x20\123\x53\x4f\x20\123\x50\40\120\154\x75\147\x69\156\x20\106\x69\162\163\164\x3c\x2f\142\x3e";
    return;
    r2:
    $EH = get_option("\x73\x61\155\x6c\137\x69\144\145\x6e\164\x69\x74\171\x5f\160\162\157\166\151\x64\x65\162\x73") ? get_option("\x73\141\x6d\154\137\151\144\145\156\x74\151\164\x79\x5f\160\162\157\x76\x69\144\145\x72\x73") : array();
    $aQ = get_option("\155\x6f\137\163\x61\x6d\154\x5f\x75\x72\x6c\137\144\157\x6d\x61\151\x6e\x5f\x6d\141\x70\160\151\x6e\x67") ? get_option("\x6d\157\137\163\141\155\x6c\137\165\x72\154\137\144\x6f\x6d\141\151\x6e\x5f\x6d\141\160\160\151\x6e\147") : array();
    echo "\x3c\164\141\142\154\x65\x20\167\151\144\x74\150\75\x22\x39\70\x25\42\x20\x62\x6f\x72\x64\145\162\x3d\x22\60\x22\x20\x73\x74\x79\154\145\x3d\42\142\x61\143\153\x67\x72\x6f\165\x6e\x64\55\143\157\x6c\x6f\162\x3a\x20\43\x46\106\x46\x46\x46\x46\x3b\40\142\157\x72\144\x65\x72\72\x20\61\160\170\x20\x73\x6f\154\151\x64\40\x23\103\103\103\103\103\x43\x3b\40\160\141\x64\x64\151\x6e\147\72\40\60\160\x78\x20\x30\160\170\x20\60\x70\x78\x20\61\60\160\170\x3b\x22\76\12\x20\40\40\x20\74\x74\162\76\12\40\40\40\x20\40\40\40\x20\x3c\x74\144\x20\x63\x6f\x6c\163\x70\x61\156\x3d\42\62\x22\76\12\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\40\74\x68\x33\x3e\125\x52\114\x20\111\x44\x50\x20\104\157\155\x61\x69\156\40\x4d\x61\x70\160\x69\156\147\x3c\57\x68\63\76\x3c\150\162\x3e";
    check_plugin_state();
    echo "\74\57\x74\144\x3e\12\40\40\x20\x20\74\x2f\x74\x72\x3e\12\40\40\40\40\74\164\x72\76\xa\40\40\40\x20\x20\40\40\40\74\164\x64\x20\143\157\154\x73\160\141\156\x3d\42\x33\x22\x3e\xa\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\74\x66\157\x72\155\40\x69\x64\75\x22\x6d\157\x5f\163\141\155\x6c\137\165\x72\154\x5f\144\157\x6d\x61\x69\x6e\137\x6d\x61\160\160\151\x6e\147\137\x66\x61\151\x6c\145\144\x5f\157\x70\164\151\157\156\x73\x5f\146\x6f\x72\x6d\x22\40\x6d\145\164\x68\157\144\75\42\x70\x6f\163\x74\x22\x20\141\143\164\151\x6f\156\75\42\x22\x3e";
    echo "\74\x69\x6e\160\165\x74\x20\x74\x79\160\145\75\42\150\x69\x64\144\x65\156\42\x20\x6e\141\155\x65\75\42\157\x70\164\151\x6f\x6e\42\x20\x76\141\x6c\165\x65\x3d\x22\165\162\x6c\x5f\x64\x6f\x6d\141\151\x6e\137\155\x61\x70\x70\x69\156\147\137\146\141\151\x6c\x65\x64\137\157\x70\164\x69\x6f\156\x73\42\57\76\12\40\40\x20\40\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\x3c\142\x72\x2f\x3e\x3c\x62\x3e\x49\146\x20\104\x6f\155\141\x69\156\x20\x4d\x61\160\x70\x69\x6e\x67\40\x66\141\151\x6c\163\40\50\x43\x68\x6f\x6f\163\x65\40\x4f\x6e\x65\x29\x3a\40\74\x2f\142\x3e\12\x20\x20\x20\x20\40\x20\x20\x20\74\x2f\164\x64\x3e\11\x9\xa\x20\x20\x20\40\x3c\x2f\x74\162\76\xa\x20\40\40\x20\x3c\x74\162\x3e\12\x20\40\x20\40\40\40\40\x20\x3c\x74\144\40\x63\x6f\154\x73\160\141\156\75\x22\63\42\x3e\xa\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\x20\x3c\151\x6e\160\165\164\40\x73\x74\171\154\x65\x3d\x22\x6d\141\x72\x67\x69\x6e\55\x6c\145\146\x74\x3a\62\45\x22\40\x74\x79\160\145\x3d\x22\162\141\x64\x69\x6f\x22\x20\x69\x64\75\42\155\157\x5f\163\x61\155\x6c\137\144\157\155\x61\151\x6e\x5f\x6c\157\147\151\x6e\x5f\x66\x61\x69\x6c\x22\x20\x6e\141\x6d\x65\75\42\x6d\157\137\x73\x61\155\x6c\x5f\x64\157\x6d\x61\151\x6e\x5f\165\162\154\137\x6c\x6f\147\151\x6e\137\x66\141\x69\154\x22\40\x76\141\154\x75\x65\75\x22\165\163\x65\137\167\x70\137\x63\162\x65\x64\x65\x6e\x74\151\x61\154\163\42";
    $uv = get_option("\x6d\x6f\x5f\163\x61\x6d\154\137\144\157\x6d\x61\151\x6e\x5f\165\x72\154\x5f\154\x6f\x67\151\x6e\x5f\x66\141\151\154");
    if (mo_saml_is_customer_license_key_verified()) {
        goto C4;
    }
    echo "\144\x69\x73\x61\142\x6c\145\144\40\x74\151\x74\x6c\x65\75\42\104\151\163\141\142\x6c\145\144\56\40\x43\x6f\x6e\146\x69\x67\x75\x72\145\40\x79\x6f\165\162\x20\123\145\162\x76\151\143\145\x20\120\x72\157\166\x69\x64\145\162\56\x22";
    C4:
    echo '' . $uv ? "\143\x68\x65\x63\x6b\x65\144" : '';
    echo "\x20\x6f\x6e\143\150\x61\x6e\147\145\x3d\42\144\157\x63\165\x6d\145\156\164\x2e\x67\145\164\x45\154\x65\155\145\x6e\x74\102\x79\111\x64\x28\x27\x6d\x6f\x5f\x73\x61\155\154\x5f\x75\162\154\137\144\x6f\155\141\x69\x6e\x5f\x6d\x61\160\160\151\156\147\x5f\146\141\x69\x6c\x65\144\137\157\x70\164\151\x6f\156\163\137\146\157\162\x6d\47\x29\56\163\165\142\155\x69\x74\x28\x29\73\42\57\x3e\40\x41\x6c\x6c\157\167\x20\x55\163\x65\x72\40\164\157\x20\154\157\147\151\x6e\40\166\x69\x61\x20\x57\x50\40\x63\x72\145\144\x65\x6e\164\x69\141\x6c\x73\x2e\40\12\x20\40\x20\40\x20\x20\40\x20\x3c\x2f\164\144\x3e\xa\40\40\x20\x20\x3c\57\x74\x72\x3e\12\x20\x20\40\x20\x3c\164\x72\76\xa\40\x20\40\40\40\40\40\40\x3c\x74\144\x20\x63\x6f\x6c\x73\x70\x61\156\75\x22\x33\x22\x3e\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\xa\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\40\74\x69\156\x70\x75\164\x20\x73\x74\171\154\145\x3d\42\x6d\x61\162\x67\151\x6e\x2d\154\x65\146\164\72\62\x25\x22\40\164\x79\160\145\75\x22\162\141\x64\151\157\x22\40\x69\x64\75\42\x6d\x6f\137\x73\x61\x6d\154\137\146\141\154\154\142\141\x63\x6b\x5f\x74\157\x5f\x64\145\146\x61\x75\154\x74\137\x69\144\160\x5f\x66\x6f\x72\137\165\x72\154\x5f\x64\157\x6d\x61\151\x6e\x5f\155\141\x70\x70\151\156\147\x5f\x61\144\144\157\x6e\42\40\x6e\141\155\x65\75\42\x6d\x6f\137\x73\141\x6d\x6c\137\x64\x6f\x6d\x61\x69\156\137\x75\x72\154\137\x6c\x6f\147\151\x6e\x5f\146\141\151\154\42\x20\166\x61\x6c\x75\x65\75\42\x72\x65\x64\151\162\145\x63\x74\x5f\164\157\137\x64\x65\146\x61\165\154\164\137\x69\144\x70\42";
    $yE = get_option("\155\157\x5f\163\x61\x6d\154\137\x66\x61\154\x6c\142\141\x63\153\137\x74\x6f\x5f\144\145\x66\141\x75\x6c\164\x5f\151\x64\x70\137\146\x6f\x72\137\x75\162\x6c\x5f\144\157\155\141\x69\156\137\x6d\141\x70\x70\x69\x6e\x67\x5f\x61\144\144\x6f\x6e");
    $GW = get_option("\x73\141\155\x6c\137\x64\145\x66\141\x75\x6c\164\137\x69\144\x70");
    if (!mo_saml_is_customer_license_key_verified()) {
        goto OD;
    }
    if ($GW) {
        goto Q4;
    }
    echo "\x20\x64\151\163\x61\142\x6c\x65\144\40\164\x69\x74\x6c\145\x3d\x22\104\x69\x73\x61\x62\x6c\x65\144\56\x20\x4e\x6f\x20\104\x65\x66\141\x75\154\164\40\111\104\x50\40\x73\145\154\145\x63\x74\x65\x64\x2e\x22";
    Q4:
    goto MX;
    OD:
    echo "\144\x69\163\141\x62\x6c\145\144\x20\164\x69\x74\154\145\75\x22\x44\x69\163\x61\x62\x6c\145\144\56\x20\103\x6f\x6e\x66\x69\147\x75\x72\145\x20\x79\157\x75\x72\40\123\x65\162\166\x69\143\145\40\120\162\x6f\166\151\144\x65\x72\x22";
    MX:
    echo '' . $yE ? "\x63\x68\x65\x63\153\x65\x64" : '';
    echo "\x20\157\156\143\x68\141\156\147\x65\75\x22\x64\157\x63\165\155\145\156\164\56\x67\x65\164\105\x6c\145\155\x65\x6e\164\102\171\111\x64\x28\x27\155\157\x5f\x73\141\x6d\154\137\165\162\x6c\137\144\x6f\155\x61\x69\x6e\x5f\x6d\x61\160\160\151\156\147\x5f\x66\x61\x69\x6c\145\144\x5f\x6f\x70\x74\151\x6f\x6e\163\x5f\146\157\162\x6d\x27\51\56\x73\165\x62\x6d\151\x74\50\x29\73\42\x2f\x3e\40\122\x65\x64\151\162\145\143\164\x20\x74\x6f\40\104\x65\x66\141\165\x6c\164\40\x49\144\145\156\164\x69\x74\x79\x20\x50\x72\x6f\x76\x69\x64\x65\x72\56\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\40\40\12\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x3c\x2f\146\x6f\x72\155\76\xa\x20\x20\x20\x20\40\x20\x20\40\x3c\57\164\x64\76\12\40\40\40\40\74\x2f\164\x72\x3e\11\11\12\x20\x20\x20\x20\74\164\162\76\x3c\x74\144\x3e\46\x6e\x62\x73\160\73\x3c\x2f\x74\144\76\x3c\x74\x64\x3e\x26\156\x62\163\x70\73\x3c\x2f\x74\x64\76\74\57\164\x72\76\12\40\40\40\x20\74\142\162\40\x3e\xa\40\x20\40\x20\x3c\146\x6f\x72\x6d\40\x6e\141\x6d\x65\x3d\42\155\x6f\x5f\163\141\x6d\154\x5f\154\157\147\151\156\137\146\x6f\162\155\x5f\146\x6f\162\x5f\x75\x72\154\x5f\x64\157\155\x61\x69\x6e\x5f\x6d\141\160\160\151\x6e\147\42\40\x6d\145\x74\150\x6f\x64\75\x22\x70\x6f\x73\164\x22\40\x61\x63\x74\x69\157\x6e\75\42\x22\76";
    echo "\x3c\151\156\x70\165\164\40\164\171\160\145\75\42\x68\151\144\x64\x65\x6e\x22\40\x6e\141\155\145\x3d\x22\x6f\160\164\151\x6f\156\x22\12\40\40\x20\40\x20\40\40\40\x20\x20\40\40\166\x61\x6c\165\145\75\42\x6d\157\137\163\141\155\x6c\137\x6c\x6f\147\x69\156\x5f\x66\157\162\x6d\x5f\146\157\162\x5f\165\162\x6c\137\144\157\x6d\141\151\x6e\137\155\141\x70\x70\x69\x6e\x67\x22\x20\x2f\76";
    foreach ($EH as $Ue => $Pb) {
        $o7 = '';
        if (!array_key_exists("\x6d\x6f\x5f\163\x61\x6d\154\137\x75\162\x6c\137\x64\x6f\155\141\151\156\137\155\x61\x70\160\x69\156\147\x5f" . $Ue, $aQ)) {
            goto lV;
        }
        $o7 = $aQ["\155\157\137\163\141\155\x6c\137\165\x72\154\x5f\144\157\x6d\141\x69\156\137\155\x61\160\160\x69\x6e\x67\x5f" . $Ue];
        lV:
        echo "\x3c\164\x72\x3e\xa\40\40\40\x20\40\x20\40\40\40\40\40\x20\40\x20\40\x20\74\164\x64\40\163\164\171\154\x65\75\42\x77\151\x64\x74\x68\x3a\x20\61\65\60\x70\x78\x3b\x22\x3e" . $Ue . "\72\74\57\x74\144\76\12\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x3c\164\x64\x3e\x3c\x69\156\x70\165\164\x20\x74\x79\x70\x65\x3d\42\x74\145\x78\164\42\40\x6e\x61\155\145\75\42\155\x6f\137\163\141\x6d\x6c\x5f\x75\162\x6c\137\144\157\x6d\141\151\x6e\137\x6d\x61\x70\x70\x69\x6e\x67\137" . $Ue . "\x22\xa\x20\40\x20\40\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\40\40\160\154\141\x63\145\150\x6f\x6c\144\145\162\x3d\x22\x45\156\164\x65\162\40\164\150\x65\x20\125\122\114\42\12\40\40\40\x20\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\40\x20\163\164\x79\154\145\x3d\x22\167\x69\x64\164\150\x3a\x20\x37\60\x25\73\x22\x20\x76\x61\x6c\x75\x65\75\x22" . $o7 . "\42";
        if (mo_saml_is_customer_license_key_verified()) {
            goto DX;
        }
        echo "\144\151\x73\141\142\154\145\144";
        DX:
        echo "\57\76\x3c\57\164\144\x3e\xa\x20\x20\40\x20\40\40\40\x20\40\40\40\40\x3c\57\x74\x72\x3e";
        eI:
    }
    cY:
    echo "\74\x74\162\x3e\12\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\x20\40\40\40\x20\74\164\x64\x3e\x26\x6e\x62\163\x70\73\74\57\x74\144\x3e\12\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\74\164\x64\76\74\142\162\x20\57\x3e\40\x3c\x69\156\160\165\164\40\164\171\x70\x65\75\x22\163\165\142\x6d\151\164\42\x20\163\x74\x79\x6c\x65\75\42\167\151\x64\x74\150\72\x20\61\x30\x30\160\x78\73\42\40\156\141\155\x65\75\x22\163\165\142\155\151\x74\x22\xa\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\166\x61\154\x75\x65\75\42\123\141\x76\145\42\40\x63\154\x61\x73\x73\x3d\x22\x62\x75\164\x74\x6f\156\40\142\x75\x74\164\157\x6e\55\160\x72\151\x6d\x61\162\171\40\x62\x75\164\164\x6f\x6e\x2d\x6c\141\x72\x67\x65\42";
    if (mo_saml_is_customer_license_key_verified()) {
        goto K6;
    }
    echo "\144\151\x73\x61\142\154\x65\144";
    K6:
    echo "\57\76\xa\x20\40\x20\40\x20\40\40\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x26\156\x62\163\x70\x3b\x20\74\x62\x72\40\57\x3e\x20\x3c\x62\x72\x20\57\76\74\x2f\x74\x64\76\xa\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x3c\x2f\x74\x72\x3e\xa\40\x20\x20\40\x20\x20\x20\x20\x3c\57\164\141\x62\x6c\x65\x3e\12\x20\40\x20\40\x3c\57\x66\x6f\162\155\76\xa\x20\40\40\40\74\142\162\x20\57\x3e";
}

Function Calls

None

Variables

None

Stats

MD5 9043299a74aaba35a789fb13425bf106
Eval Count 0
Decode Time 59 ms