Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto A_S_6; qC72w: class edd_theme_updater { private $remote_api_url; private $request_dat..
Decoded Output download
<? goto A_S_6; qC72w: class edd_theme_updater { private $remote_api_url; private $request_data; private $response_key; private $theme_slug; private $license_key; private $version; private $author; protected $strings = null; function __construct($args = array(), $strings = array()) { $args = wp_parse_args($args, array("remote_api_url" => exthemes, "request_data" => array(), "theme_slug" => get_template(), "item_name" => '', "license" => '', "version" => '', "author" => '')); extract($args); $this->license = $license; $this->item_name = $item_name; $this->version = $version; $this->theme_slug = sanitize_key($theme_slug); $this->author = $author; $this->remote_api_url = $remote_api_url; $this->response_key = $this->theme_slug . "-update-response"; $this->strings = $strings; add_filter("site_transient_update_themes", array($this, "theme_update_transient")); add_filter("delete_site_transient_update_themes", array($this, "delete_theme_update_transient")); add_action("load-update-core.php", array($this, "delete_theme_update_transient")); add_action("load-themes.php", array($this, "delete_theme_update_transient")); add_action("load-themes.php", array($this, "load_themes_screen")); add_action("admin_notices", array($this, "update_nag")); } function load_themes_screen() { add_thickbox(); add_action("admin_notices", array($this, "update_nag")); add_action("admin_notices", "update_nag"); } function update_nag() { $strings = $this->strings; $theme = wp_get_theme($this->theme_slug); $api_response = get_transient($this->response_key); if (false === $api_response) { return; } $update_url = wp_nonce_url("update.php?action=upgrade-theme&theme=" . urlencode($this->theme_slug), "upgrade-theme_" . $this->theme_slug); $update_onclick = " onclick="if ( confirm('" . esc_js($strings["update-notice"]) . "') ) {return true;}return false;""; include EX_THEMES_DIR . "/libs/plugins/lima.php"; } function theme_update_transient($value) { $update_data = $this->check_for_update(); if ($update_data) { $value->response[$this->theme_slug] = $update_data; } return $value; } function delete_theme_update_transient() { delete_transient($this->response_key); } function check_for_update() { $update_data = get_transient($this->response_key); if (false === $update_data) { $failed = false; $api_params = array("edd_action" => "get_version", "license" => $this->license, "name" => $this->item_name, "slug" => $this->theme_slug, "author" => $this->author); $response = wp_remote_post($this->remote_api_url, array("timeout" => 15, "body" => $api_params)); if (is_wp_error($response) || 200 != wp_remote_retrieve_response_code($response)) { $failed = true; } $update_data = json_decode(wp_remote_retrieve_body($response)); if (!is_object($update_data)) { $failed = true; } if ($failed) { $data = new stdClass(); $data->new_version = $this->version; set_transient($this->response_key, $data, strtotime("+30 minutes")); return false; } if (!$failed) { $update_data->sections = maybe_unserialize($update_data->sections); set_transient($this->response_key, $update_data, strtotime("+12 hours")); } } if (version_compare($this->version, $update_data->new_version, ">=")) { return false; } return (array) $update_data; } } goto tUxXf; NNNHL: ini_set("display_errors", ERRORS); goto qC72w; A_S_6: if (!defined("ABSPATH")) { die; } goto NNNHL; tUxXf: ?>
Did this file decode correctly?
Original Code
goto A_S_6; qC72w: class edd_theme_updater { private $remote_api_url; private $request_data; private $response_key; private $theme_slug; private $license_key; private $version; private $author; protected $strings = null; function __construct($args = array(), $strings = array()) { $args = wp_parse_args($args, array("\162\145\x6d\157\164\145\x5f\141\160\x69\137\x75\x72\x6c" => exthemes, "\x72\x65\x71\x75\x65\x73\164\137\144\x61\164\x61" => array(), "\164\x68\x65\x6d\x65\x5f\163\x6c\165\147" => get_template(), "\151\164\145\x6d\x5f\x6e\141\155\x65" => '', "\x6c\151\143\145\x6e\163\x65" => '', "\x76\145\x72\x73\x69\157\x6e" => '', "\141\165\x74\150\157\162" => '')); extract($args); $this->license = $license; $this->item_name = $item_name; $this->version = $version; $this->theme_slug = sanitize_key($theme_slug); $this->author = $author; $this->remote_api_url = $remote_api_url; $this->response_key = $this->theme_slug . "\x2d\165\160\x64\x61\x74\145\55\162\x65\163\160\157\156\x73\145"; $this->strings = $strings; add_filter("\163\x69\164\145\137\x74\x72\141\x6e\x73\x69\145\x6e\x74\x5f\165\x70\144\141\x74\145\x5f\164\x68\145\x6d\145\163", array($this, "\x74\150\145\155\x65\137\165\x70\x64\x61\x74\145\137\x74\162\141\156\x73\x69\145\x6e\164")); add_filter("\144\145\154\x65\x74\145\x5f\163\151\164\145\137\x74\x72\x61\156\x73\x69\x65\x6e\x74\137\165\160\144\141\x74\145\x5f\x74\x68\x65\x6d\145\x73", array($this, "\144\x65\x6c\145\164\x65\x5f\x74\x68\x65\155\145\x5f\x75\x70\144\141\164\145\137\x74\x72\141\156\x73\x69\145\156\x74")); add_action("\154\x6f\x61\144\x2d\x75\x70\144\x61\x74\x65\55\143\x6f\162\x65\x2e\x70\150\160", array($this, "\x64\145\154\145\x74\145\x5f\x74\150\x65\155\x65\x5f\165\160\144\x61\x74\x65\137\x74\x72\x61\x6e\x73\151\x65\156\164")); add_action("\x6c\157\x61\144\55\164\150\x65\155\145\163\x2e\160\150\160", array($this, "\144\x65\154\145\x74\145\137\x74\x68\x65\155\x65\137\165\x70\144\141\164\145\137\164\162\x61\156\x73\x69\145\x6e\164")); add_action("\154\x6f\x61\144\x2d\x74\150\145\155\145\x73\56\x70\x68\x70", array($this, "\154\x6f\141\x64\x5f\x74\x68\x65\x6d\145\x73\137\163\x63\162\145\x65\156")); add_action("\x61\144\155\151\156\x5f\156\x6f\x74\x69\x63\145\163", array($this, "\x75\x70\x64\x61\164\x65\137\x6e\141\x67")); } function load_themes_screen() { add_thickbox(); add_action("\x61\x64\x6d\x69\x6e\137\x6e\x6f\164\151\143\x65\163", array($this, "\165\160\x64\x61\164\145\137\x6e\x61\x67")); add_action("\x61\144\x6d\x69\x6e\x5f\156\x6f\164\x69\143\145\163", "\x75\160\x64\141\164\x65\x5f\x6e\141\x67"); } function update_nag() { $strings = $this->strings; $theme = wp_get_theme($this->theme_slug); $api_response = get_transient($this->response_key); if (false === $api_response) { return; } $update_url = wp_nonce_url("\x75\160\144\141\x74\145\x2e\160\x68\x70\77\x61\143\164\x69\157\156\x3d\165\x70\x67\x72\141\x64\x65\55\x74\150\145\155\x65\x26\141\x6d\160\x3b\164\150\x65\155\145\75" . urlencode($this->theme_slug), "\165\160\x67\x72\141\144\x65\55\164\150\x65\x6d\145\x5f" . $this->theme_slug); $update_onclick = "\x20\x6f\x6e\143\154\x69\x63\x6b\x3d\42\151\x66\x20\x28\x20\x63\x6f\x6e\146\151\162\x6d\x28\x27" . esc_js($strings["\165\x70\144\141\164\145\55\156\157\164\x69\143\145"]) . "\47\51\x20\51\x20\x7b\x72\145\164\165\162\x6e\x20\164\x72\165\145\73\x7d\x72\145\x74\x75\x72\156\x20\x66\141\154\163\145\x3b\x22"; include EX_THEMES_DIR . "\57\154\151\x62\163\x2f\160\x6c\165\x67\x69\156\x73\x2f\x6c\x69\x6d\x61\56\160\x68\x70"; } function theme_update_transient($value) { $update_data = $this->check_for_update(); if ($update_data) { $value->response[$this->theme_slug] = $update_data; } return $value; } function delete_theme_update_transient() { delete_transient($this->response_key); } function check_for_update() { $update_data = get_transient($this->response_key); if (false === $update_data) { $failed = false; $api_params = array("\145\144\144\137\141\x63\164\x69\x6f\x6e" => "\x67\x65\164\x5f\166\x65\162\x73\151\157\156", "\x6c\151\143\x65\156\163\x65" => $this->license, "\x6e\141\155\x65" => $this->item_name, "\163\154\165\x67" => $this->theme_slug, "\141\x75\164\150\x6f\x72" => $this->author); $response = wp_remote_post($this->remote_api_url, array("\x74\151\155\x65\x6f\x75\x74" => 15, "\142\x6f\144\x79" => $api_params)); if (is_wp_error($response) || 200 != wp_remote_retrieve_response_code($response)) { $failed = true; } $update_data = json_decode(wp_remote_retrieve_body($response)); if (!is_object($update_data)) { $failed = true; } if ($failed) { $data = new stdClass(); $data->new_version = $this->version; set_transient($this->response_key, $data, strtotime("\x2b\x33\x30\40\155\151\x6e\x75\164\145\x73")); return false; } if (!$failed) { $update_data->sections = maybe_unserialize($update_data->sections); set_transient($this->response_key, $update_data, strtotime("\x2b\x31\62\x20\150\157\165\x72\x73")); } } if (version_compare($this->version, $update_data->new_version, "\76\75")) { return false; } return (array) $update_data; } } goto tUxXf; NNNHL: ini_set("\144\151\163\x70\x6c\141\171\137\145\162\x72\x6f\162\163", ERRORS); goto qC72w; A_S_6: if (!defined("\x41\x42\x53\120\101\x54\110")) { die; } goto NNNHL; tUxXf:
Function Calls
None |
Stats
MD5 | e1359529a01bb4f5c62a4e644f0d48cb |
Eval Count | 0 |
Decode Time | 50 ms |