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_ldap_authenticate($Y7, $qj) { $Xe = $this->mo_ldap_get_conne..

Decoded Output download

<?      function mo_ldap_authenticate($Y7, $qj) 
    { 
        $Xe = $this->mo_ldap_get_connection(); 
        @ldap_bind($Xe, $Y7, $qj); 
        $sO = ldap_errno($Xe); 
        $lJ = ldap_error($Xe); 
        if ($sO == -1) { 
            goto SN; 
        } 
        if (strtolower($lJ) != "success") { 
            goto EP; 
        } 
        $Ud = new MoLdapAuthResponse(); 
        $Ud->status = true; 
        $Ud->statusMessage = "LDAP_USER_BIND_SUCCESS"; 
        $Ud->userDn = $Y7; 
        return $Ud; 
        goto NY; 
        SN: 
        $Ud = new MoLdapAuthResponse(); 
        $Ud->status = false; 
        $Ud->statusMessage = "LDAP_PING_ERROR"; 
        $Ud->userDn = ''; 
        return $Ud; 
        goto NY; 
        EP: 
        $Ud = new MoLdapAuthResponse(); 
        $Ud->status = false; 
        $Ud->statusMessage = "LDAP_USER_BIND_ERROR"; 
        $Ud->userDn = ''; 
        return $Ud; 
        NY: 
    } ?>

Did this file decode correctly?

Original Code

    function mo_ldap_authenticate($Y7, $qj)
    {
        $Xe = $this->mo_ldap_get_connection();
        @ldap_bind($Xe, $Y7, $qj);
        $sO = ldap_errno($Xe);
        $lJ = ldap_error($Xe);
        if ($sO == -1) {
            goto SN;
        }
        if (strtolower($lJ) != "\163\x75\143\143\x65\163\x73") {
            goto EP;
        }
        $Ud = new MoLdapAuthResponse();
        $Ud->status = true;
        $Ud->statusMessage = "\114\x44\x41\120\x5f\125\123\105\122\x5f\x42\111\x4e\x44\x5f\x53\125\103\x43\x45\x53\123";
        $Ud->userDn = $Y7;
        return $Ud;
        goto NY;
        SN:
        $Ud = new MoLdapAuthResponse();
        $Ud->status = false;
        $Ud->statusMessage = "\x4c\104\x41\x50\137\x50\111\116\107\137\105\122\122\x4f\x52";
        $Ud->userDn = '';
        return $Ud;
        goto NY;
        EP:
        $Ud = new MoLdapAuthResponse();
        $Ud->status = false;
        $Ud->statusMessage = "\114\x44\101\x50\x5f\125\x53\x45\x52\137\x42\x49\x4e\x44\x5f\105\x52\x52\x4f\122";
        $Ud->userDn = '';
        return $Ud;
        NY:
    }

Function Calls

None

Variables

None

Stats

MD5 d1337143a07e06bb86511b9bc3a176bd
Eval Count 0
Decode Time 82 ms