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 activate_license() { goto BOyd3; YWje1: ..

Decoded Output download

<?php 
 
function activate_license() 
    { 
        goto BOyd3; 
        YWje1: 
        wp_redirect($redirect); 
        goto uKfY7; 
        G8aXQ: 
        update_option($this->theme_slug . "_license_key_status", $license_data->license); 
        goto tljk3; 
        srLDy: 
        $base_url = admin_url("themes.php?page=" . $this->theme_slug . ''); 
        goto ST2au; 
        vra0G: 
        if (!(false === $license_data->success)) { 
            goto Hk07w; 
        } 
        goto XpRfP; 
        LG9Yl: 
        if (empty($message)) { 
            goto h3xyT; 
        } 
        goto srLDy; 
        HWLv8: 
        wp_redirect(admin_url("themes.php?page=" . $this->theme_slug . '')); 
        goto IBARZ; 
        OnsMi: 
        $license_data = json_decode(wp_remote_retrieve_body($response)); 
        goto vra0G; 
        zMeyc: 
        $license_data = json_decode($response); 
        goto OnsMi; 
        BOyd3: 
        $license = trim(get_option($this->theme_slug . "_license_key")); 
        goto i_edu; 
        ST2au: 
        $redirect = add_query_arg(array("sl_theme_activation" => "false", "message" => urlencode($message)), $base_url); 
        goto YWje1; 
        dgFRD: oJAD0: 
        goto LG9Yl; 
        e72Hm: MwRSK: 
        goto HWLv8; 
        tZdWQ: jzAFT: 
        goto dgFRD; 
        uKfY7: 
        die; 
        goto nqSC6; 
        D8W7h: 
        $response = json_encode(["success" => true, "license" => "valid", "item_name" => urlencode($this->item_name), "license_limit" => 0, "site_count" => 999, "expires" => "lifetime", "activations_left" => "unlimited", "customer_name" => "noname", "customer_email" => "[email protected]"]); 
        goto zMeyc; 
        BmO07: 
        if (!($license_data && isset($license_data->license))) { 
            goto MwRSK; 
        } 
        goto G8aXQ; 
        XpRfP: 
        switch ($license_data->error) { 
            case "expired": 
                $message = sprintf(__("Your license code has expired on%s.", EXTHEMES_SLUG), date_i18n(get_option("date_format"), strtotime($license_data->expires, current_time("timestamp")))); 
                goto oJAD0; 
            case "revoked": 
                $message = __("Your license code has been disabled and can no longer be used.", EXTHEMES_SLUG); 
                goto oJAD0; 
            case "missing": 
                $message = __("Invalid license.", EXTHEMES_SLUG); 
                goto oJAD0; 
            case "invalid": 
            case "site_inactive": 
                $message = __("Your license is currently inactive on this website.", EXTHEMES_SLUG); 
                goto oJAD0; 
            case "item_name_mismatch": 
                $message = sprintf(__("This license code does not appear to be valid for %s.", EXTHEMES_SLUG), $this->item_name); 
                goto oJAD0; 
            case "no_activations_left": 
                $message = __("Your license code has reached the limit of license activation.", EXTHEMES_SLUG); 
                goto oJAD0; 
            default: 
                $message = __("An error occurred, please try again.", EXTHEMES_SLUG); 
                goto oJAD0; 
        } 
        goto tZdWQ; 
        nqSC6: h3xyT: 
        goto mLcbM; 
        IBARZ: 
        die; 
        goto ukIbp; 
        mLcbM: Hk07w: 
        goto BmO07; 
        i_edu: 
        $api_params = array("edd_action" => "activate_license", "license" => $license, "item_name" => urlencode($this->item_name), "url" => home_url("/")); 
        goto D8W7h; 
        tljk3: 
        delete_transient($this->theme_slug . "_license_message"); 
        goto e72Hm; 
        ukIbp: 
    } ?>

Did this file decode correctly?

Original Code

<?php

function activate_license()
    {
        goto BOyd3;
        YWje1:
        wp_redirect($redirect);
        goto uKfY7;
        G8aXQ:
        update_option($this->theme_slug . "\x5f\154\x69\x63\x65\x6e\x73\145\137\x6b\145\171\137\x73\x74\x61\164\165\163", $license_data->license);
        goto tljk3;
        srLDy:
        $base_url = admin_url("\164\150\145\x6d\145\163\x2e\x70\x68\x70\x3f\x70\x61\x67\145\x3d" . $this->theme_slug . '');
        goto ST2au;
        vra0G:
        if (!(false === $license_data->success)) {
            goto Hk07w;
        }
        goto XpRfP;
        LG9Yl:
        if (empty($message)) {
            goto h3xyT;
        }
        goto srLDy;
        HWLv8:
        wp_redirect(admin_url("\164\150\145\x6d\x65\x73\x2e\x70\150\160\77\x70\x61\x67\145\75" . $this->theme_slug . ''));
        goto IBARZ;
        OnsMi:
        $license_data = json_decode(wp_remote_retrieve_body($response));
        goto vra0G;
        zMeyc:
        $license_data = json_decode($response);
        goto OnsMi;
        BOyd3:
        $license = trim(get_option($this->theme_slug . "\137\x6c\151\143\x65\x6e\x73\145\x5f\x6b\x65\171"));
        goto i_edu;
        ST2au:
        $redirect = add_query_arg(array("\163\x6c\137\164\150\145\x6d\x65\x5f\141\x63\x74\151\166\x61\x74\x69\x6f\x6e" => "\146\141\x6c\163\145", "\155\x65\163\163\141\147\145" => urlencode($message)), $base_url);
        goto YWje1;
        dgFRD: oJAD0:
        goto LG9Yl;
        e72Hm: MwRSK:
        goto HWLv8;
        tZdWQ: jzAFT:
        goto dgFRD;
        uKfY7:
        die;
        goto nqSC6;
        D8W7h:
        $response = json_encode(["\163\x75\x63\x63\x65\163\x73" => true, "\x6c\151\143\x65\156\163\145" => "\166\x61\154\x69\x64", "\151\164\x65\x6d\137\156\141\155\x65" => urlencode($this->item_name), "\154\x69\143\145\x6e\x73\x65\137\x6c\x69\155\x69\x74" => 0, "\163\x69\x74\x65\x5f\x63\157\x75\x6e\x74" => 999, "\145\x78\160\x69\162\x65\x73" => "\x6c\x69\x66\145\164\151\x6d\145", "\x61\143\164\151\166\x61\164\x69\157\156\x73\x5f\x6c\145\x66\x74" => "\165\156\x6c\x69\155\151\x74\145\144", "\143\165\163\164\157\x6d\x65\162\137\x6e\x61\155\145" => "\156\x6f\156\x61\x6d\x65", "\143\x75\x73\x74\157\x6d\145\162\x5f\x65\155\x61\151\x6c" => "\x61\x64\x6d\x69\x6e\x40\x61\144\155\151\x6e\56\143\x6f\x6d"]);
        goto zMeyc;
        BmO07:
        if (!($license_data && isset($license_data->license))) {
            goto MwRSK;
        }
        goto G8aXQ;
        XpRfP:
        switch ($license_data->error) {
            case "\145\x78\x70\x69\x72\145\x64":
                $message = sprintf(__("\131\157\165\x72\x20\154\151\143\x65\x6e\x73\145\x20\143\157\x64\x65\40\150\x61\x73\40\145\x78\x70\151\162\145\x64\x20\x6f\x6e\45\x73\x2e", EXTHEMES_SLUG), date_i18n(get_option("\144\x61\x74\145\137\146\157\x72\x6d\x61\x74"), strtotime($license_data->expires, current_time("\164\x69\x6d\x65\x73\164\141\x6d\x70"))));
                goto oJAD0;
            case "\x72\x65\166\157\x6b\145\144":
                $message = __("\131\x6f\x75\162\40\154\x69\x63\145\156\163\145\40\x63\157\x64\145\40\x68\141\x73\40\142\145\x65\156\x20\144\151\x73\x61\x62\154\x65\x64\40\x61\156\144\40\x63\141\x6e\x20\156\x6f\40\154\x6f\x6e\x67\x65\162\x20\142\145\x20\165\163\145\x64\x2e", EXTHEMES_SLUG);
                goto oJAD0;
            case "\x6d\x69\x73\x73\x69\x6e\x67":
                $message = __("\x49\x6e\166\x61\x6c\151\144\40\x6c\151\143\x65\156\x73\145\x2e", EXTHEMES_SLUG);
                goto oJAD0;
            case "\x69\156\166\x61\154\x69\x64":
            case "\163\151\x74\145\x5f\x69\x6e\141\143\x74\151\x76\x65":
                $message = __("\131\157\165\x72\x20\x6c\151\x63\x65\x6e\x73\x65\40\151\x73\x20\x63\165\162\x72\x65\156\164\x6c\171\x20\151\x6e\141\143\x74\x69\x76\145\40\157\156\40\x74\150\x69\163\40\167\145\x62\x73\151\x74\x65\x2e", EXTHEMES_SLUG);
                goto oJAD0;
            case "\x69\164\145\x6d\137\x6e\141\155\145\137\x6d\x69\163\155\x61\x74\x63\150":
                $message = sprintf(__("\x54\150\151\x73\40\x6c\151\x63\145\x6e\163\145\x20\x63\x6f\x64\x65\x20\144\157\145\163\x20\156\157\x74\x20\141\160\160\145\x61\162\x20\x74\157\x20\x62\145\40\166\x61\154\x69\144\x20\146\x6f\162\40\45\163\56", EXTHEMES_SLUG), $this->item_name);
                goto oJAD0;
            case "\156\x6f\x5f\x61\143\x74\151\166\x61\164\x69\157\156\x73\x5f\x6c\x65\146\164":
                $message = __("\131\157\x75\162\x20\154\x69\143\x65\156\x73\145\x20\143\x6f\x64\145\x20\150\x61\163\x20\162\x65\x61\x63\x68\x65\144\40\x74\x68\145\x20\154\x69\155\x69\x74\x20\157\x66\x20\154\x69\143\145\x6e\x73\145\x20\x61\143\x74\x69\x76\x61\x74\x69\157\x6e\56", EXTHEMES_SLUG);
                goto oJAD0;
            default:
                $message = __("\101\x6e\x20\145\162\162\157\162\40\x6f\x63\143\x75\162\162\x65\144\54\40\x70\154\x65\x61\x73\145\x20\164\x72\x79\x20\141\x67\x61\151\x6e\x2e", EXTHEMES_SLUG);
                goto oJAD0;
        }
        goto tZdWQ;
        nqSC6: h3xyT:
        goto mLcbM;
        IBARZ:
        die;
        goto ukIbp;
        mLcbM: Hk07w:
        goto BmO07;
        i_edu:
        $api_params = array("\x65\x64\144\x5f\x61\x63\164\151\157\156" => "\141\143\164\x69\x76\x61\x74\x65\x5f\x6c\151\143\145\156\x73\145", "\154\x69\143\x65\x6e\x73\145" => $license, "\x69\164\145\x6d\137\x6e\141\155\145" => urlencode($this->item_name), "\x75\x72\154" => home_url("\57"));
        goto D8W7h;
        tljk3:
        delete_transient($this->theme_slug . "\137\x6c\x69\143\x65\156\x73\x65\x5f\x6d\145\163\x73\141\147\x65");
        goto e72Hm;
        ukIbp:
    }

Function Calls

None

Variables

None

Stats

MD5 f6e226eeff6474905278c360dcd3a51f
Eval Count 0
Decode Time 48 ms