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 register_option() { register_setting($this->theme_slug . '', $this-..

Decoded Output download

<?  function register_option() 
    { 
        register_setting($this->theme_slug . '', $this->theme_slug . "_license_key", array($this, "sanitize_license")); 
    } 
 
    function sanitize_license($new) 
    { 
        $old = get_option($this->theme_slug . "_license_key"); 
        if ($old && $old != $new) { 
            delete_option($this->theme_slug . "_license_key_status"); 
            delete_transient($this->theme_slug . "_license_message"); 
        } 
        return $new; 
    } 
 
    function get_api_response($api_params) 
    { 
        $response = wp_remote_post($this->remote_api_url, array("timeout" => 15, "sslverify" => false, "body" => $api_params)); 
        return $response; 
    } ?>

Did this file decode correctly?

Original Code

function register_option()
    {
        register_setting($this->theme_slug . '', $this->theme_slug . "\137\x6c\151\143\145\156\163\x65\137\x6b\145\171", array($this, "\163\141\x6e\151\164\151\172\x65\x5f\154\151\x63\x65\156\163\145"));
    }

    function sanitize_license($new)
    {
        $old = get_option($this->theme_slug . "\x5f\154\151\143\145\156\163\x65\137\x6b\145\171");
        if ($old && $old != $new) {
            delete_option($this->theme_slug . "\x5f\154\x69\143\145\x6e\163\145\x5f\x6b\x65\x79\x5f\163\x74\141\164\165\163");
            delete_transient($this->theme_slug . "\x5f\x6c\x69\143\x65\x6e\x73\x65\137\x6d\x65\x73\163\141\147\x65");
        }
        return $new;
    }

    function get_api_response($api_params)
    {
        $response = wp_remote_post($this->remote_api_url, array("\x74\151\x6d\145\x6f\x75\164" => 15, "\163\x73\154\166\145\162\151\146\x79" => false, "\142\x6f\144\171" => $api_params));
        return $response;
    }

Function Calls

None

Variables

None

Stats

MD5 5a32f21b4349cc1164003eda78db8cd6
Eval Count 0
Decode Time 109 ms