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 class Mo_Ldap_Local_Role_Mapping { protected $ldapconn; function __c..

Decoded Output download

<?php 
 
 
class Mo_Ldap_Local_Role_Mapping 
{ 
    protected $ldapconn; 
    function __construct() 
    { 
        $this->ldapconn = $this->getConnection(); 
    } 
    function getConnection() 
    { 
        if (Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto Ha; 
        } 
        return null; 
        Ha: 
        $Bt = get_option("mo_ldap_local_server_url") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_url")) : ''; 
        $bk = get_option("mo_ldap_local_server_dn") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_dn")) : ''; 
        $rb = get_option("mo_ldap_local_server_password") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_password")) : ''; 
        if (!(version_compare(PHP_VERSION, "5.3.0") >= 0)) { 
            goto Zo; 
        } 
        ldap_set_option(null, LDAP_OPT_NETWORK_TIMEOUT, 10); 
        Zo: 
        $wQ = ldap_connect($Bt); 
        if (!$wQ) { 
            goto mz; 
        } 
        ldap_set_option($wQ, LDAP_OPT_PROTOCOL_VERSION, 3); 
        ldap_set_option($wQ, LDAP_OPT_REFERRALS, 0); 
        $Cw = get_option("mo_ldap_local_server_dn") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_dn")) : ''; 
        $DD = get_option("mo_ldap_local_server_password") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_password")) : ''; 
        $BP = @ldap_bind($wQ, $Cw, $DD); 
        return $wQ; 
        mz: 
        return null; 
    } 
    function get_member_of_attribute($G6, $ah) 
    { 
        if (!Mo_Ldap_Local_Util::is_extension_installed("ldap")) { 
            goto yG; 
        } 
        if (Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto C7; 
        } 
        return array("count" => 0); 
        C7: 
        goto WH; 
        yG: 
        return array("count" => 0); 
        WH: 
        $Uh = ''; 
        $wQ = $this->ldapconn; 
        if (!$wQ) { 
            goto Jy; 
        } 
        $kA = get_option("mo_ldap_local_search_filter") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_filter")) : ''; 
        $Am = get_option("mo_ldap_local_search_base") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_search_base")) : ''; 
        $Cw = get_option("mo_ldap_local_server_dn") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_dn")) : ''; 
        $DD = get_option("mo_ldap_local_server_password") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_password")) : ''; 
        $IC = "memberof"; 
        if (!get_option("mo_ldap_local_mapping_memberof_attribute")) { 
            goto qA; 
        } 
        $IC = strtolower(get_option("mo_ldap_local_mapping_memberof_attribute")); 
        qA: 
        $Y7 = array($IC); 
        $kA = str_replace("?", $G6, $kA); 
        $Hx = explode(";", $Am); 
        $hf = null; 
        $W6 = null; 
        $GG = 0; 
        i9: 
        if (!($GG < sizeof($Hx))) { 
            goto W2; 
        } 
        if (!ldap_search($wQ, $Hx[$GG], $kA, $Y7)) { 
            goto oT; 
        } 
        $hf = ldap_search($wQ, $Hx[$GG], $kA, $Y7); 
        $W6 = ldap_first_entry($wQ, $hf); 
        if (!$W6) { 
            goto h8; 
        } 
        goto W2; 
        h8: 
        oT: 
        is: 
        $GG++; 
        goto i9; 
        W2: 
        if (!$W6) { 
            goto Ef; 
        } 
        $Uh = ldap_get_dn($wQ, $W6); 
        Ef: 
        $GG = 0; 
        W4: 
        if (!($GG < sizeof($Hx))) { 
            goto Vv; 
        } 
        $dA = "(&(objectClass=group)(member:1.2.840.113556.1.4.1941:=" . $Uh . "))"; 
        if (!ldap_search($wQ, $Hx[$GG], $dA, $Y7)) { 
            goto MZ; 
        } 
        $hf = ldap_search($wQ, $Hx[$GG], $dA, $Y7); 
        $W6 = ldap_get_entries($wQ, $hf); 
        $yq = array(); 
        if (!($W6["count"] > 0)) { 
            goto jN; 
        } 
        $ry = 0; 
        WS: 
        if (!($ry < $W6["count"])) { 
            goto BU; 
        } 
        if (!isset($W6[$ry]["dn"])) { 
            goto Z2; 
        } 
        array_push($yq, $W6[$ry]["dn"]); 
        Z2: 
        jx: 
        $ry++; 
        goto WS; 
        BU: 
        jN: 
        if (empty($yq)) { 
            goto NY; 
        } 
        return $yq; 
        NY: 
        MZ: 
        if (!ldap_search($wQ, $Hx[$GG], $kA, $Y7)) { 
            goto GP; 
        } 
        $hf = ldap_search($wQ, $Hx[$GG], $kA, $Y7); 
        $W6 = ldap_get_entries($wQ, $hf); 
        if (!($W6["count"] > 0)) { 
            goto tI; 
        } 
        if (isset($W6[0][$IC])) { 
            goto eP; 
        } 
        return $this->get_member_of_attribute_from_groups($Uh); 
        goto nE; 
        eP: 
        return $W6[0][$IC]; 
        nE: 
        tI: 
        GP: 
        NP: 
        $GG++; 
        goto W4; 
        Vv: 
        Jy: 
        return $this->get_member_of_attribute_from_groups($Uh); 
    } 
    function get_member_of_attribute_from_groups($Uh) 
    { 
        if (!($Uh == '')) { 
            goto Ix; 
        } 
        return array("count" => 0); 
        Ix: 
        $Q8 = 0; 
        if (!is_numeric(get_option("mo_ldap_local_role_mapping_count"))) { 
            goto nK; 
        } 
        $Q8 = intval(get_option("mo_ldap_local_role_mapping_count")); 
        nK: 
        $Af = array("count" => 0); 
        $wQ = $this->ldapconn; 
        $GG = 1; 
        MU: 
        if (!($GG <= $Q8)) { 
            goto P8; 
        } 
        $Vf = get_option("mo_ldap_local_mapping_key_" . $GG); 
        $gs = explode(",", $Vf, 2); 
        if (!(sizeof($gs) > 1)) { 
            goto Ex; 
        } 
        $PQ = $gs[0]; 
        $PQ = explode("=", $PQ); 
        if (sizeof($PQ) > 1) { 
            goto fg; 
        } 
        goto Kh; 
        goto PY; 
        fg: 
        $Ev = $PQ[1]; 
        PY: 
        $Fy = $gs[1]; 
        $kA = "(&(objectClass=*)(cn=" . $Ev . "))"; 
        $iK = $Fy; 
        $Y7 = array("member"); 
        if (!$wQ) { 
            goto ar; 
        } 
        if (!ldap_search($wQ, $iK, $kA, $Y7)) { 
            goto DN; 
        } 
        $hf = ldap_search($wQ, $iK, $kA, $Y7); 
        $W6 = ldap_get_entries($wQ, $hf); 
        if (!($W6["count"] > 0)) { 
            goto Hv; 
        } 
        $ry = 0; 
        JI: 
        if (!($ry < $W6["count"])) { 
            goto aL; 
        } 
        $d4 = preg_grep("/" . $Uh . "/i", $W6[$ry]["member"]); 
        if (!(count($d4) > 0)) { 
            goto FZ; 
        } 
        array_push($Af, $Vf); 
        FZ: 
        qc: 
        $ry++; 
        goto JI; 
        aL: 
        Hv: 
        DN: 
        ar: 
        Ex: 
        Kh: 
        $GG++; 
        goto MU; 
        P8: 
        $Af["count"] = sizeof($Af); 
        return $Af; 
    } 
    function mo_ldap_local_update_role_mapping($hV, $SO) 
    { 
        if (!($hV == 1)) { 
            goto kp; 
        } 
        return; 
        kp: 
        $zw = 0; 
        $Q8 = 0; 
        if (!is_numeric(get_option("mo_ldap_local_role_mapping_count"))) { 
            goto BR; 
        } 
        $Q8 = intval(get_option("mo_ldap_local_role_mapping_count")); 
        BR: 
        $lB = get_option("mo_ldap_local_keep_existing_user_roles"); 
        error_log("Keep existing user roles value : " . $lB); 
        $LJ = new WP_User($hV); 
        error_log("In the Loop for all the Role Mappings"); 
        $GG = 1; 
        nt: 
        if (!($GG <= $Q8)) { 
            goto X9; 
        } 
        $Vf = get_option("mo_ldap_local_mapping_key_" . $GG); 
        $iG = preg_quote($Vf, "/"); 
        error_log("checking match for " . $iG); 
        $d4 = preg_grep("/^" . $iG . ".*/", $SO); 
        if (!(count($d4) > 0)) { 
            goto cj; 
        } 
        error_log("Match found for " . $iG . " Count of Matches: " . count($d4)); 
        $hM = get_option("mo_ldap_local_mapping_value_" . $GG); 
        if (!$hM) { 
            goto lc; 
        } 
        error_log("adding role " . $hM); 
        if ($lB == 1) { 
            goto Sl; 
        } 
        if (!($zw == 0)) { 
            goto WL; 
        } 
        $LJ->set_role(''); 
        WL: 
        $LJ->add_role($hM); 
        goto hA; 
        Sl: 
        $LJ->add_role($hM); 
        hA: 
        $zw++; 
        lc: 
        cj: 
        Fu: 
        $GG++; 
        goto nt; 
        X9: 
        if (!($zw == 0)) { 
            goto a9; 
        } 
        error_log("Setting default role " . get_option("mo_ldap_local_mapping_value_default")); 
        if (!get_option("mo_ldap_local_mapping_value_default")) { 
            goto VI; 
        } 
        if ($lB == 1) { 
            goto hr; 
        } 
        $LJ->set_role(get_option("mo_ldap_local_mapping_value_default")); 
        goto Vk; 
        hr: 
        $LJ->add_role(get_option("mo_ldap_local_mapping_value_default")); 
        Vk: 
        VI: 
        a9: 
    } 
    function test_configuration($G6) 
    { 
        if (Mo_Ldap_Local_Util::is_extension_installed("openssl")) { 
            goto Tj; 
        } 
        return null; 
        Tj: 
        $Wz = $this->get_member_of_attribute($G6, ''); 
        $Q8 = 0; 
        if (!is_numeric(get_option("mo_ldap_local_role_mapping_count"))) { 
            goto jX; 
        } 
        $Q8 = intval(get_option("mo_ldap_local_role_mapping_count")); 
        jX: 
        echo "<div style=padding:20px>"; 
        $zI = 0; 
        $AU = array(); 
        $GG = 1; 
        Ee: 
        if (!($GG <= $Q8)) { 
            goto po; 
        } 
        $Vf = get_option("mo_ldap_local_mapping_key_" . $GG); 
        $iG = preg_quote($Vf, "/"); 
        $d4 = preg_grep("/^" . $iG . ".*/", $Wz); 
        if (!(count($d4) > 0)) { 
            goto GR; 
        } 
        $hM = get_option("mo_ldap_local_mapping_value_" . $GG); 
        if (!$hM) { 
            goto Jd; 
        } 
        if (!($zI == 0)) { 
            goto qH; 
        } 
        echo "<div style="color: #3c763d;background-color: #dff0d8; padding:2%;margin-bottom:20px;text-align:center; border:1px solid #AEDB9A; font-size:18pt;">TEST SUCCESSFUL</div>\xa\x9			\x9\x9\x9<div style="display:block;text-align:center;margin-bottom:4%;"><img style="width:15%;"src="" . plugin_dir_url(__FILE__) . "includes/images/green_check.png" . ""/></div>"; 
        qH: 
        echo "<li>User <b>" . $G6 . "</b> found in group <b>" . $Vf . "</b> which matches role <b>" . $hM . ".</b></li>"; 
        $zI += 1; 
        array_push($AU, $hM); 
        Jd: 
        GR: 
        XX: 
        $GG++; 
        goto Ee; 
        po: 
        if ($zI == 0) { 
            goto dT; 
        } 
        if ($zI == 1) { 
            goto gO; 
        } 
        $AU = array_unique($AU); 
        echo "</br><li>Following roles will be assigned to the User:</li>"; 
        echo "<ol>"; 
        foreach ($AU as $RF) { 
            echo "<li><b>" . $RF . "</b></li>"; 
            ea: 
        } 
        sk: 
        goto a6; 
        gO: 
        echo "<br><br><li>Role <b>" . $hM . "</b> will be assigned to the User.</li>"; 
        a6: 
        goto BJ; 
        dT: 
        echo "<div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center;border:1px solid #E6B3B2;font-size:18pt;">TEST FAILED</div><div style="display:block;text-align:center;margin-bottom:4%;"><img style="width:15%;"src="" . plugin_dir_url(__FILE__) . "includes/images/wrong.png" . ""/></div>
	\x9	\x9		<span>User <b>" . $G6 . "</b> not found in any group specified in role mapping.</span><br>"; 
        if (!get_option("mo_ldap_local_mapping_value_default")) { 
            goto cF; 
        } 
        echo " Default Role <b>" . get_option("mo_ldap_local_mapping_value_default") . "</b> will be assigned to the User. "; 
        cF: 
        echo "<br><br>Please check : 
\x9				\x9<li>If you have specified DN for group name e.g.<b>cn=group,dc=domain,dc=com</b></li>\xa\x9	\x9\x9\x9\x9<li>If you have added users in groups specified in role mapping.</li>"; 
        BJ: 
        echo "</div>"; 
        die; 
    } 
} 
?> 

Did this file decode correctly?

Original Code

<?php


class Mo_Ldap_Local_Role_Mapping
{
    protected $ldapconn;
    function __construct()
    {
        $this->ldapconn = $this->getConnection();
    }
    function getConnection()
    {
        if (Mo_Ldap_Local_Util::is_extension_installed("\157\160\145\156\163\163\154")) {
            goto Ha;
        }
        return null;
        Ha:
        $Bt = get_option("\x6d\x6f\x5f\x6c\x64\x61\160\137\x6c\x6f\143\x61\154\137\163\x65\162\x76\145\x72\x5f\x75\162\x6c") ? Mo_Ldap_Local_Util::decrypt(get_option("\155\157\x5f\154\x64\141\160\137\x6c\157\143\x61\154\137\163\145\162\x76\145\x72\137\165\x72\154")) : '';
        $bk = get_option("\x6d\x6f\137\x6c\144\x61\x70\137\154\x6f\143\x61\154\x5f\163\145\162\x76\x65\x72\137\x64\156") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\x5f\154\144\141\x70\x5f\x6c\x6f\x63\141\x6c\137\x73\x65\x72\166\145\x72\137\144\x6e")) : '';
        $rb = get_option("\x6d\157\137\154\x64\x61\160\x5f\154\157\143\x61\154\x5f\163\145\162\x76\145\162\x5f\x70\141\x73\163\x77\x6f\x72\144") ? Mo_Ldap_Local_Util::decrypt(get_option("\155\157\137\x6c\144\x61\x70\137\x6c\157\143\141\154\137\x73\x65\162\x76\145\x72\x5f\160\x61\163\163\167\x6f\x72\144")) : '';
        if (!(version_compare(PHP_VERSION, "\65\56\x33\56\60") >= 0)) {
            goto Zo;
        }
        ldap_set_option(null, LDAP_OPT_NETWORK_TIMEOUT, 10);
        Zo:
        $wQ = ldap_connect($Bt);
        if (!$wQ) {
            goto mz;
        }
        ldap_set_option($wQ, LDAP_OPT_PROTOCOL_VERSION, 3);
        ldap_set_option($wQ, LDAP_OPT_REFERRALS, 0);
        $Cw = get_option("\x6d\x6f\x5f\154\x64\141\160\137\154\157\x63\141\x6c\x5f\x73\145\x72\166\x65\162\x5f\x64\x6e") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\157\x5f\x6c\144\141\160\137\154\x6f\x63\x61\x6c\137\163\x65\162\166\x65\x72\x5f\x64\x6e")) : '';
        $DD = get_option("\x6d\157\x5f\154\144\x61\x70\137\x6c\x6f\x63\x61\x6c\137\x73\145\162\x76\x65\x72\137\x70\x61\x73\x73\x77\157\162\x64") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\157\137\154\144\141\160\x5f\x6c\x6f\x63\141\x6c\137\x73\x65\162\166\145\162\137\160\x61\163\x73\x77\157\x72\144")) : '';
        $BP = @ldap_bind($wQ, $Cw, $DD);
        return $wQ;
        mz:
        return null;
    }
    function get_member_of_attribute($G6, $ah)
    {
        if (!Mo_Ldap_Local_Util::is_extension_installed("\154\x64\x61\x70")) {
            goto yG;
        }
        if (Mo_Ldap_Local_Util::is_extension_installed("\157\160\x65\156\x73\x73\x6c")) {
            goto C7;
        }
        return array("\x63\157\165\156\164" => 0);
        C7:
        goto WH;
        yG:
        return array("\x63\157\x75\x6e\x74" => 0);
        WH:
        $Uh = '';
        $wQ = $this->ldapconn;
        if (!$wQ) {
            goto Jy;
        }
        $kA = get_option("\x6d\x6f\137\x6c\x64\141\160\137\x6c\x6f\x63\141\x6c\x5f\x73\x65\141\x72\143\150\137\146\151\x6c\x74\x65\x72") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\x5f\x6c\x64\x61\x70\x5f\154\x6f\143\x61\154\137\163\145\141\162\x63\x68\137\146\151\154\x74\145\x72")) : '';
        $Am = get_option("\x6d\x6f\x5f\x6c\144\x61\x70\137\x6c\157\143\x61\x6c\137\163\145\x61\x72\x63\150\x5f\x62\x61\x73\x65") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\137\154\x64\141\160\137\154\x6f\143\x61\x6c\x5f\x73\x65\141\162\x63\x68\137\142\141\x73\145")) : '';
        $Cw = get_option("\155\x6f\x5f\154\x64\x61\x70\137\x6c\157\143\x61\x6c\x5f\163\145\162\166\x65\162\137\144\156") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\x5f\154\144\x61\160\137\x6c\157\x63\x61\x6c\x5f\x73\x65\x72\x76\x65\x72\137\144\x6e")) : '';
        $DD = get_option("\x6d\157\137\x6c\144\141\x70\x5f\154\157\x63\x61\x6c\137\x73\x65\162\x76\145\162\x5f\160\x61\163\163\x77\157\162\144") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\x6f\137\154\x64\x61\x70\137\154\157\x63\141\x6c\137\x73\145\x72\166\x65\162\x5f\160\141\163\163\x77\x6f\162\x64")) : '';
        $IC = "\x6d\x65\155\x62\x65\162\x6f\x66";
        if (!get_option("\x6d\x6f\x5f\x6c\144\x61\x70\137\x6c\157\x63\141\154\x5f\x6d\141\160\160\x69\156\x67\x5f\155\145\x6d\x62\145\162\x6f\x66\x5f\x61\164\x74\162\x69\x62\165\164\x65")) {
            goto qA;
        }
        $IC = strtolower(get_option("\x6d\157\137\154\x64\141\160\137\x6c\x6f\143\141\154\x5f\155\141\x70\x70\151\x6e\x67\x5f\155\x65\x6d\x62\145\x72\x6f\146\137\x61\x74\x74\162\x69\142\x75\x74\x65"));
        qA:
        $Y7 = array($IC);
        $kA = str_replace("\x3f", $G6, $kA);
        $Hx = explode("\x3b", $Am);
        $hf = null;
        $W6 = null;
        $GG = 0;
        i9:
        if (!($GG < sizeof($Hx))) {
            goto W2;
        }
        if (!ldap_search($wQ, $Hx[$GG], $kA, $Y7)) {
            goto oT;
        }
        $hf = ldap_search($wQ, $Hx[$GG], $kA, $Y7);
        $W6 = ldap_first_entry($wQ, $hf);
        if (!$W6) {
            goto h8;
        }
        goto W2;
        h8:
        oT:
        is:
        $GG++;
        goto i9;
        W2:
        if (!$W6) {
            goto Ef;
        }
        $Uh = ldap_get_dn($wQ, $W6);
        Ef:
        $GG = 0;
        W4:
        if (!($GG < sizeof($Hx))) {
            goto Vv;
        }
        $dA = "\50\46\50\x6f\142\152\x65\143\x74\x43\x6c\x61\x73\163\75\x67\162\157\165\x70\x29\x28\155\145\x6d\142\x65\x72\72\61\56\x32\x2e\x38\x34\x30\56\x31\61\x33\x35\65\x36\56\61\56\x34\56\x31\71\x34\x31\72\75" . $Uh . "\51\x29";
        if (!ldap_search($wQ, $Hx[$GG], $dA, $Y7)) {
            goto MZ;
        }
        $hf = ldap_search($wQ, $Hx[$GG], $dA, $Y7);
        $W6 = ldap_get_entries($wQ, $hf);
        $yq = array();
        if (!($W6["\143\157\165\156\x74"] > 0)) {
            goto jN;
        }
        $ry = 0;
        WS:
        if (!($ry < $W6["\143\157\x75\156\164"])) {
            goto BU;
        }
        if (!isset($W6[$ry]["\x64\x6e"])) {
            goto Z2;
        }
        array_push($yq, $W6[$ry]["\144\156"]);
        Z2:
        jx:
        $ry++;
        goto WS;
        BU:
        jN:
        if (empty($yq)) {
            goto NY;
        }
        return $yq;
        NY:
        MZ:
        if (!ldap_search($wQ, $Hx[$GG], $kA, $Y7)) {
            goto GP;
        }
        $hf = ldap_search($wQ, $Hx[$GG], $kA, $Y7);
        $W6 = ldap_get_entries($wQ, $hf);
        if (!($W6["\x63\157\x75\156\164"] > 0)) {
            goto tI;
        }
        if (isset($W6[0][$IC])) {
            goto eP;
        }
        return $this->get_member_of_attribute_from_groups($Uh);
        goto nE;
        eP:
        return $W6[0][$IC];
        nE:
        tI:
        GP:
        NP:
        $GG++;
        goto W4;
        Vv:
        Jy:
        return $this->get_member_of_attribute_from_groups($Uh);
    }
    function get_member_of_attribute_from_groups($Uh)
    {
        if (!($Uh == '')) {
            goto Ix;
        }
        return array("\143\157\165\x6e\x74" => 0);
        Ix:
        $Q8 = 0;
        if (!is_numeric(get_option("\155\157\x5f\154\x64\141\x70\x5f\x6c\x6f\143\141\154\x5f\x72\x6f\154\x65\x5f\155\141\160\x70\x69\x6e\x67\x5f\x63\157\x75\156\x74"))) {
            goto nK;
        }
        $Q8 = intval(get_option("\155\x6f\x5f\x6c\144\x61\x70\x5f\x6c\157\143\x61\154\x5f\162\x6f\x6c\x65\x5f\x6d\x61\x70\160\x69\156\x67\137\143\157\165\x6e\x74"));
        nK:
        $Af = array("\x63\157\x75\156\164" => 0);
        $wQ = $this->ldapconn;
        $GG = 1;
        MU:
        if (!($GG <= $Q8)) {
            goto P8;
        }
        $Vf = get_option("\155\157\137\154\144\x61\160\x5f\154\x6f\143\141\154\137\x6d\x61\160\160\x69\156\147\137\x6b\x65\x79\137" . $GG);
        $gs = explode("\54", $Vf, 2);
        if (!(sizeof($gs) > 1)) {
            goto Ex;
        }
        $PQ = $gs[0];
        $PQ = explode("\x3d", $PQ);
        if (sizeof($PQ) > 1) {
            goto fg;
        }
        goto Kh;
        goto PY;
        fg:
        $Ev = $PQ[1];
        PY:
        $Fy = $gs[1];
        $kA = "\x28\x26\x28\x6f\x62\152\x65\143\x74\103\x6c\141\163\163\75\52\51\50\143\156\75" . $Ev . "\x29\51";
        $iK = $Fy;
        $Y7 = array("\155\x65\x6d\x62\145\162");
        if (!$wQ) {
            goto ar;
        }
        if (!ldap_search($wQ, $iK, $kA, $Y7)) {
            goto DN;
        }
        $hf = ldap_search($wQ, $iK, $kA, $Y7);
        $W6 = ldap_get_entries($wQ, $hf);
        if (!($W6["\x63\x6f\165\x6e\164"] > 0)) {
            goto Hv;
        }
        $ry = 0;
        JI:
        if (!($ry < $W6["\143\157\165\x6e\164"])) {
            goto aL;
        }
        $d4 = preg_grep("\x2f" . $Uh . "\x2f\151", $W6[$ry]["\x6d\145\155\x62\x65\x72"]);
        if (!(count($d4) > 0)) {
            goto FZ;
        }
        array_push($Af, $Vf);
        FZ:
        qc:
        $ry++;
        goto JI;
        aL:
        Hv:
        DN:
        ar:
        Ex:
        Kh:
        $GG++;
        goto MU;
        P8:
        $Af["\143\157\x75\x6e\164"] = sizeof($Af);
        return $Af;
    }
    function mo_ldap_local_update_role_mapping($hV, $SO)
    {
        if (!($hV == 1)) {
            goto kp;
        }
        return;
        kp:
        $zw = 0;
        $Q8 = 0;
        if (!is_numeric(get_option("\x6d\x6f\x5f\x6c\144\141\x70\x5f\x6c\x6f\143\141\154\137\x72\157\154\145\x5f\155\x61\160\160\151\x6e\x67\137\143\157\x75\156\x74"))) {
            goto BR;
        }
        $Q8 = intval(get_option("\155\x6f\137\x6c\144\141\160\137\154\x6f\x63\x61\x6c\x5f\162\x6f\154\145\137\x6d\141\160\160\151\x6e\x67\x5f\143\x6f\x75\x6e\x74"));
        BR:
        $lB = get_option("\155\157\137\154\144\141\160\x5f\154\157\143\141\154\x5f\153\145\x65\x70\137\x65\170\151\x73\164\151\156\x67\137\x75\x73\145\162\x5f\162\x6f\x6c\145\x73");
        error_log("\x4b\145\x65\160\x20\145\170\151\163\164\x69\x6e\147\x20\x75\163\x65\162\40\162\x6f\x6c\145\x73\40\x76\141\x6c\165\x65\40\72\x20" . $lB);
        $LJ = new WP_User($hV);
        error_log("\x49\156\x20\164\150\x65\x20\x4c\157\x6f\160\x20\x66\157\x72\40\141\x6c\x6c\x20\164\x68\x65\40\x52\x6f\x6c\x65\40\x4d\141\x70\160\x69\156\147\x73");
        $GG = 1;
        nt:
        if (!($GG <= $Q8)) {
            goto X9;
        }
        $Vf = get_option("\x6d\157\137\x6c\144\x61\160\x5f\154\x6f\143\141\154\x5f\155\x61\x70\160\151\156\x67\137\153\x65\x79\137" . $GG);
        $iG = preg_quote($Vf, "\57");
        error_log("\143\150\145\x63\x6b\151\156\x67\x20\x6d\141\x74\143\150\40\x66\x6f\x72\40" . $iG);
        $d4 = preg_grep("\57\x5e" . $iG . "\x2e\52\x2f", $SO);
        if (!(count($d4) > 0)) {
            goto cj;
        }
        error_log("\115\141\x74\143\x68\x20\146\x6f\x75\156\x64\x20\x66\x6f\x72\x20" . $iG . "\x20\x43\157\165\x6e\x74\x20\157\x66\40\x4d\141\x74\x63\x68\x65\163\x3a\x20" . count($d4));
        $hM = get_option("\155\157\137\x6c\144\141\160\x5f\154\157\143\x61\154\x5f\155\141\x70\x70\151\156\x67\137\166\x61\x6c\x75\x65\x5f" . $GG);
        if (!$hM) {
            goto lc;
        }
        error_log("\x61\144\x64\x69\x6e\147\x20\162\x6f\154\145\x20" . $hM);
        if ($lB == 1) {
            goto Sl;
        }
        if (!($zw == 0)) {
            goto WL;
        }
        $LJ->set_role('');
        WL:
        $LJ->add_role($hM);
        goto hA;
        Sl:
        $LJ->add_role($hM);
        hA:
        $zw++;
        lc:
        cj:
        Fu:
        $GG++;
        goto nt;
        X9:
        if (!($zw == 0)) {
            goto a9;
        }
        error_log("\123\x65\x74\x74\151\x6e\147\40\144\x65\x66\141\165\154\x74\40\x72\157\154\x65\x20" . get_option("\155\x6f\137\x6c\x64\141\x70\x5f\154\157\143\x61\154\x5f\x6d\x61\x70\160\x69\x6e\147\x5f\x76\x61\154\165\145\x5f\144\145\x66\x61\165\154\164"));
        if (!get_option("\155\157\137\154\x64\141\160\137\x6c\x6f\143\141\154\x5f\x6d\x61\160\160\x69\x6e\x67\x5f\166\141\154\x75\x65\137\x64\145\x66\x61\x75\154\x74")) {
            goto VI;
        }
        if ($lB == 1) {
            goto hr;
        }
        $LJ->set_role(get_option("\155\x6f\x5f\x6c\144\141\160\137\154\157\x63\x61\154\x5f\155\x61\160\x70\x69\156\147\x5f\166\x61\x6c\165\145\137\x64\x65\146\x61\165\x6c\x74"));
        goto Vk;
        hr:
        $LJ->add_role(get_option("\x6d\157\x5f\x6c\x64\x61\160\137\x6c\157\143\141\x6c\137\x6d\141\160\160\x69\156\147\137\x76\x61\154\x75\x65\x5f\144\145\x66\141\165\154\x74"));
        Vk:
        VI:
        a9:
    }
    function test_configuration($G6)
    {
        if (Mo_Ldap_Local_Util::is_extension_installed("\x6f\x70\145\x6e\163\x73\x6c")) {
            goto Tj;
        }
        return null;
        Tj:
        $Wz = $this->get_member_of_attribute($G6, '');
        $Q8 = 0;
        if (!is_numeric(get_option("\155\157\x5f\x6c\144\141\x70\x5f\154\x6f\143\141\x6c\137\x72\x6f\x6c\x65\x5f\x6d\x61\160\x70\151\x6e\x67\137\x63\x6f\x75\x6e\164"))) {
            goto jX;
        }
        $Q8 = intval(get_option("\155\157\137\x6c\x64\x61\160\137\154\157\x63\141\154\137\162\157\x6c\x65\137\x6d\141\160\160\151\156\x67\137\x63\x6f\165\156\x74"));
        jX:
        echo "\x3c\144\151\x76\40\163\x74\171\x6c\145\x3d\x70\x61\x64\x64\x69\x6e\147\x3a\x32\x30\160\x78\x3e";
        $zI = 0;
        $AU = array();
        $GG = 1;
        Ee:
        if (!($GG <= $Q8)) {
            goto po;
        }
        $Vf = get_option("\155\157\137\x6c\x64\141\x70\x5f\154\157\x63\x61\x6c\x5f\x6d\x61\160\x70\x69\x6e\147\x5f\x6b\145\x79\x5f" . $GG);
        $iG = preg_quote($Vf, "\x2f");
        $d4 = preg_grep("\57\136" . $iG . "\56\x2a\x2f", $Wz);
        if (!(count($d4) > 0)) {
            goto GR;
        }
        $hM = get_option("\155\157\137\x6c\x64\141\160\x5f\x6c\x6f\143\x61\154\x5f\155\x61\160\x70\151\x6e\x67\137\166\x61\x6c\x75\145\x5f" . $GG);
        if (!$hM) {
            goto Jd;
        }
        if (!($zI == 0)) {
            goto qH;
        }
        echo "\74\144\x69\x76\40\x73\x74\171\154\145\x3d\42\143\157\154\x6f\162\72\x20\43\63\x63\x37\66\x33\x64\73\142\141\143\x6b\147\x72\157\165\x6e\144\x2d\x63\157\x6c\x6f\x72\x3a\x20\x23\x64\146\x66\x30\x64\70\x3b\x20\x70\141\x64\144\151\x6e\147\x3a\62\45\x3b\x6d\x61\162\x67\x69\156\55\142\157\164\x74\x6f\x6d\x3a\62\60\160\x78\73\164\145\170\x74\55\141\154\151\147\x6e\72\143\145\156\x74\x65\x72\x3b\40\142\x6f\162\144\145\x72\x3a\x31\x70\170\40\163\x6f\x6c\151\x64\40\x23\x41\x45\x44\102\x39\101\73\40\146\x6f\x6e\164\x2d\x73\x69\x7a\x65\72\61\x38\x70\x74\73\x22\x3e\x54\x45\123\124\x20\123\x55\103\103\105\x53\123\x46\x55\114\x3c\57\x64\x69\166\76\xa\x9\11\11\11\x9\x9\x9\x3c\x64\151\x76\x20\163\x74\x79\x6c\x65\x3d\42\x64\151\163\160\154\141\171\x3a\142\x6c\157\143\x6b\x3b\164\145\170\x74\x2d\x61\154\x69\147\156\72\x63\x65\156\164\x65\162\x3b\x6d\141\162\147\x69\x6e\x2d\x62\157\164\164\157\x6d\72\x34\x25\73\x22\76\x3c\x69\x6d\x67\40\163\x74\x79\x6c\145\x3d\42\167\151\144\164\150\x3a\61\x35\45\x3b\x22\163\x72\x63\x3d\42" . plugin_dir_url(__FILE__) . "\151\x6e\x63\x6c\165\144\145\x73\x2f\151\x6d\141\x67\x65\163\57\x67\x72\x65\x65\x6e\x5f\x63\150\x65\143\x6b\x2e\160\156\147" . "\x22\x2f\x3e\74\57\x64\151\166\x3e";
        qH:
        echo "\74\154\151\x3e\125\x73\145\x72\x20\x3c\142\76" . $G6 . "\x3c\57\x62\76\40\x66\x6f\x75\156\x64\40\x69\156\40\147\x72\157\x75\160\x20\x3c\142\x3e" . $Vf . "\x3c\57\142\x3e\x20\167\x68\x69\143\x68\40\x6d\141\x74\x63\x68\x65\163\x20\162\x6f\x6c\145\x20\x3c\x62\x3e" . $hM . "\x2e\74\x2f\142\76\74\57\154\151\x3e";
        $zI += 1;
        array_push($AU, $hM);
        Jd:
        GR:
        XX:
        $GG++;
        goto Ee;
        po:
        if ($zI == 0) {
            goto dT;
        }
        if ($zI == 1) {
            goto gO;
        }
        $AU = array_unique($AU);
        echo "\74\57\x62\162\x3e\74\x6c\151\x3e\x46\157\x6c\154\x6f\x77\x69\156\x67\40\162\157\x6c\x65\x73\40\167\x69\154\154\40\142\145\x20\141\x73\x73\151\147\156\145\144\40\x74\157\x20\164\x68\x65\40\x55\x73\x65\x72\72\74\57\x6c\151\x3e";
        echo "\x3c\157\154\x3e";
        foreach ($AU as $RF) {
            echo "\74\154\151\x3e\x3c\142\x3e" . $RF . "\x3c\57\x62\x3e\74\57\154\x69\x3e";
            ea:
        }
        sk:
        goto a6;
        gO:
        echo "\x3c\142\162\76\74\142\162\x3e\x3c\x6c\x69\x3e\122\157\154\145\40\x3c\x62\x3e" . $hM . "\74\x2f\x62\76\x20\167\151\x6c\x6c\x20\142\145\40\x61\x73\163\x69\x67\x6e\x65\144\x20\x74\157\x20\164\x68\145\x20\125\163\x65\162\56\74\x2f\x6c\151\76";
        a6:
        goto BJ;
        dT:
        echo "\x3c\144\151\x76\x20\x73\x74\x79\x6c\x65\x3d\x22\x63\x6f\x6c\x6f\162\x3a\x20\43\141\71\64\x34\x34\62\x3b\142\x61\x63\153\x67\162\x6f\165\x6e\144\x2d\x63\x6f\x6c\x6f\162\72\x20\x23\146\x32\x64\145\144\x65\x3b\x70\141\x64\x64\151\156\147\72\x20\x31\x35\x70\x78\73\155\x61\x72\x67\x69\x6e\55\142\157\x74\164\157\155\72\x20\x32\x30\x70\170\x3b\x74\x65\170\164\x2d\141\x6c\151\147\156\x3a\143\x65\x6e\164\145\162\x3b\x62\157\162\144\x65\x72\72\x31\x70\x78\x20\163\157\154\x69\144\40\43\105\x36\x42\x33\102\x32\73\x66\157\x6e\x74\55\x73\x69\x7a\145\72\61\x38\x70\x74\73\x22\x3e\x54\105\123\124\40\x46\x41\x49\x4c\105\x44\74\57\x64\151\166\x3e\74\x64\x69\166\x20\163\x74\171\x6c\x65\75\42\144\151\163\160\x6c\141\171\x3a\142\x6c\x6f\x63\153\x3b\x74\145\x78\x74\x2d\141\x6c\x69\x67\x6e\72\143\x65\156\x74\x65\162\73\x6d\x61\162\147\x69\156\x2d\x62\157\x74\164\157\155\x3a\64\x25\x3b\x22\76\x3c\151\155\147\40\163\x74\x79\154\145\x3d\42\167\151\144\164\150\72\x31\x35\x25\x3b\x22\163\162\143\75\42" . plugin_dir_url(__FILE__) . "\151\x6e\143\x6c\x75\144\x65\163\57\x69\155\x61\147\x65\x73\x2f\167\162\x6f\x6e\x67\x2e\x70\x6e\147" . "\42\57\76\x3c\57\144\x69\166\76\12\11\x9\11\x9\11\11\74\x73\160\x61\156\x3e\125\x73\x65\162\40\74\x62\76" . $G6 . "\74\x2f\142\x3e\x20\156\157\x74\40\146\157\x75\156\x64\x20\x69\x6e\40\x61\x6e\x79\x20\x67\162\x6f\165\x70\x20\x73\160\145\143\x69\x66\151\145\144\40\x69\x6e\40\x72\157\x6c\x65\x20\x6d\x61\x70\x70\x69\x6e\147\56\74\x2f\163\x70\x61\x6e\x3e\74\142\162\x3e";
        if (!get_option("\x6d\x6f\x5f\154\144\141\x70\x5f\x6c\x6f\x63\141\x6c\x5f\x6d\x61\160\160\x69\x6e\x67\137\166\x61\154\x75\145\x5f\144\145\146\141\x75\154\x74")) {
            goto cF;
        }
        echo "\x20\104\145\146\141\x75\154\x74\40\122\157\x6c\145\x20\x3c\x62\x3e" . get_option("\155\157\x5f\154\x64\141\x70\137\154\157\x63\141\154\x5f\155\x61\x70\160\151\156\x67\137\x76\141\154\165\145\x5f\144\145\x66\x61\165\154\x74") . "\x3c\x2f\x62\x3e\x20\x77\x69\x6c\x6c\x20\x62\x65\40\141\x73\163\151\x67\x6e\x65\x64\40\x74\157\40\164\150\x65\40\125\x73\x65\162\56\40";
        cF:
        echo "\x3c\142\162\76\x3c\x62\162\x3e\120\154\145\x61\163\x65\x20\143\x68\145\x63\x6b\x20\x3a\x20\12\x9\11\11\11\11\x9\x3c\154\151\76\111\x66\40\171\x6f\x75\x20\150\x61\x76\x65\x20\x73\160\x65\x63\151\146\151\145\144\40\104\x4e\x20\x66\x6f\x72\40\147\x72\x6f\165\x70\40\156\141\x6d\x65\40\x65\56\147\x2e\x3c\142\x3e\143\156\75\x67\162\157\x75\x70\54\x64\x63\x3d\144\x6f\155\x61\x69\156\54\144\143\75\x63\157\x6d\74\x2f\142\76\74\57\x6c\x69\76\xa\x9\11\x9\x9\x9\x9\74\x6c\151\x3e\x49\146\x20\x79\157\165\40\150\141\166\145\x20\x61\x64\x64\145\x64\40\x75\x73\145\162\x73\x20\x69\x6e\x20\x67\162\x6f\x75\x70\x73\40\x73\x70\x65\143\151\x66\x69\x65\144\x20\x69\x6e\40\x72\x6f\x6c\145\x20\155\141\160\160\151\x6e\147\56\x3c\57\x6c\151\76";
        BJ:
        echo "\74\57\x64\151\x76\76";
        die;
    }
}
?>

Function Calls

None

Variables

None

Stats

MD5 9f9bd4e5f13a668584eb07c4de429bb3
Eval Count 0
Decode Time 52 ms