Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$valid = get_option("scrapes_valid");\n\t\tif (!$valid)\n\t\t\treturn false;\n glob..
Decoded Output download
<? $valid = get_option("scrapes_valid");
if (!$valid)
return false;
global $translates;
$json = wp_remote_post("http://scrapes.octolooks.com/validate/validate.php", array(
"timeout" => 60,
"body" => array(
"submit" => 1,
"purchase_code" => get_option("scrapes_code"),
"domain" => get_option("scrapes_domain"),
"request_domain" => get_site_url()
)
));
Ol_Scrapes::write_log("Activation request: ");
Ol_Scrapes::write_log($json["body"]);
if (is_wp_error($json)) {
return true;
}
$json = json_decode($json["body"]);
if (!$json->error) {
$current_url = get_site_url();
$parsed = parse_url($current_url);
extract($parsed);
$scrapes_domain = get_option("scrapes_domain");
$scrapes_parsed_host = parse_url($scrapes_domain);
if (!in_array($host, array("localhost", "127.0.0.1", "::1"))) {
if (!preg_match("/^[^.]*\.?" . preg_quote($scrapes_parsed_host["host"]) . "$/i", $host)) {
delete_option("scrapes_valid");
delete_option("scrapes_code");
delete_option("scrapes_domain");
return false;
}
}
Ol_Scrapes::write_log("Activated for " . $current_url);
return true;
} else {
delete_option("scrapes_valid");
delete_option("scrapes_code");
delete_option("scrapes_domain");
return false;
} ?>
Did this file decode correctly?
Original Code
$valid = get_option("scrapes_valid");\n\t\tif (!$valid)\n\t\t\treturn false;\n global $translates;\n\t\t$json = wp_remote_post("http://scrapes.octolooks.com/validate/validate.php", array(\n\t\t\t"timeout" => 60,\n\t\t\t"body" => array(\n\t\t\t\t"submit" => 1,\n\t\t\t\t"purchase_code" => get_option("scrapes_code"),\n\t\t\t\t"domain" => get_option("scrapes_domain"),\n\t\t\t\t"request_domain" => get_site_url()\n\t\t\t)\n\t\t));\n\t\tOl_Scrapes::write_log("Activation request: ");\n\t\tOl_Scrapes::write_log($json["body"]);\n\t\tif (is_wp_error($json)) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t$json = json_decode($json["body"]);\n\n\t\tif (!$json->error) {\n\t\t\t$current_url = get_site_url();\n\t\t\t$parsed = parse_url($current_url);\n\t\t\textract($parsed);\n\t\t\t$scrapes_domain = get_option("scrapes_domain");\n\t\t\t$scrapes_parsed_host = parse_url($scrapes_domain);\n\t\t\t\n\t\t\tif (!in_array($host, array("localhost", "127.0.0.1", "::1"))) {\n\t\t\t\tif (!preg_match("/^[^.]*\\.?" . preg_quote($scrapes_parsed_host["host"]) . "$/i", $host)) {\n\t\t\t\t\tdelete_option("scrapes_valid");\n\t\t\t\t\tdelete_option("scrapes_code");\n\t\t\t\t\tdelete_option("scrapes_domain");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tOl_Scrapes::write_log("Activated for " . $current_url);\n\t\t\treturn true;\n\t\t} else {\n\t\t\tdelete_option("scrapes_valid");\n\t\t\tdelete_option("scrapes_code");\n\t\t\tdelete_option("scrapes_domain");\n\t\t\treturn false;\n\t\t}
Function Calls
| None |
Stats
| MD5 | 0fef57e377ab7f831517dacd08eeccbe |
| Eval Count | 0 |
| Decode Time | 88 ms |