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

Signing you up...

Thank you for signing up!

PHP Decode

public static function getCurrentEnvironment() { $OR = site_url(); ..

Decoded Output download

<?    public static function getCurrentEnvironment() 
    { 
        $OR = site_url(); 
        $e9 = maybe_unserialize(get_option(Mo_Saml_Options_Environments::ENVIRONMENT_OBJECTS)); 
        $Rr = ''; 
        if (!is_array($e9)) { 
            goto s_; 
        } 
        foreach ($e9 as $Dq => $CW) { 
            if (!is_a($CW, "LicenseObject")) { 
                goto gD; 
            } 
            if (!(self::parseEnvironmentUrl($CW->getWpSiteUrl()) === self::parseEnvironmentUrl($OR))) { 
                goto hn; 
            } 
            $Rr = $Dq; 
            hn: 
            gD: 
            Zb: 
        } 
        Se: 
        s_: 
        return $Rr; 
    } 
    public static function parseEnvironmentUrl($r2) 
    { 
        $g1 = parse_url($r2, PHP_URL_SCHEME); 
        $r2 = str_replace($g1 . "://", '', $r2); 
        return $r2; 
    } ?>

Did this file decode correctly?

Original Code

  public static function getCurrentEnvironment()
    {
        $OR = site_url();
        $e9 = maybe_unserialize(get_option(Mo_Saml_Options_Environments::ENVIRONMENT_OBJECTS));
        $Rr = '';
        if (!is_array($e9)) {
            goto s_;
        }
        foreach ($e9 as $Dq => $CW) {
            if (!is_a($CW, "\114\151\x63\x65\x6e\163\145\x4f\x62\x6a\x65\143\164")) {
                goto gD;
            }
            if (!(self::parseEnvironmentUrl($CW->getWpSiteUrl()) === self::parseEnvironmentUrl($OR))) {
                goto hn;
            }
            $Rr = $Dq;
            hn:
            gD:
            Zb:
        }
        Se:
        s_:
        return $Rr;
    }
    public static function parseEnvironmentUrl($r2)
    {
        $g1 = parse_url($r2, PHP_URL_SCHEME);
        $r2 = str_replace($g1 . "\x3a\57\57", '', $r2);
        return $r2;
    }

Function Calls

None

Variables

None

Stats

MD5 c34c1c3bb87d220dee580a7767eca51f
Eval Count 0
Decode Time 35 ms