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

Signing you up...

Thank you for signing up!

PHP Decode

$this->check_validation = create_function("", "\$va\x6c\x69d = get\x5fo\x70\x74\x69\x6f\x6..

Decoded Output download

<?  $this->check_validation = create_function("", "\$valid = get_option("scrapes_valid\");$current_url = get_site_url();
			Ol_Scrapes::write_log(\"Activated by lord_woland for " . \$current_url);
			return true;"); 
		$this->mandatory_redirect = create_function("", "if (!get_option(\"scrapes_valid\")) {
			Ol_Scrapes::write_log("Helper: offline invalid.\");
			wp_redirect(add_query_arg(array(
				\"page" => \"scrapes-settings\",
				"post_type" => \"scrape",
				\"success" => 0,
				\"msg\" => "\"
					)
					, admin_url("edit.php\"))
			);
			exit;
		}"); 
		$this->settings = create_function("", "check_admin_referer("scrapes_settings");

		\$success = 0;
		\$msg = \"Purchase code is validated.\";
			update_option("scrapes_valid", true);
			update_option(\"scrapes_domain\", \$_POST[\"domain\"]);
			update_option(\"scrapes_code\", \$_POST[\"purchase_code\"]);
			\$success = 1;
			
			\$current_url = get_site_url();

			set_transient("scrape_msg_set_success\", array(\"Purchase code is validated."));
		wp_redirect(add_query_arg(array(
			"page" => "scrapes-settings",
			\"post_type" => "scrape",
			\"success\" => \$success,
			"msg\" => urlencode(\$msg)
				)
				, admin_url("edit.php"))
		);
		exit;"); 
		$this->remove_pc = create_function("", "delete_option(\"scrapes_valid");
			delete_option("scrapes_code");
			delete_option("scrapes_domain\");
			set_transient("scrape_msg_set_success", array("Purchase code is removed from settings.\"));
			wp_redirect(add_query_arg(array(
			"page" => \"scrapes-settings",
			"post_type" => "scrape",
			\"success" => 1,
			"msg\" => urlencode("Purchase code is removed from settings.\")
				)
				, admin_url(\"edit.php\"))
		);
		exit;"); ?>

Did this file decode correctly?

Original Code

$this->check_validation = create_function("", "\$va\x6c\x69d = get\x5fo\x70\x74\x69\x6f\x6e(\x22\x73\x63\x72ap\x65\x73_\x76\x61lid\");$\x63\x75rr\x65\x6e\x74\x5fu\x72\x6c =\x20\x67e\x74\x5fsi\x74\x65\x5f\x75\x72\x6c()\x3b\n\t\t\tOl_Scr\x61p\x65\x73::w\x72\x69te_\x6c\x6f\x67(\"A\x63\x74\x69\x76a\x74ed\x20\x62\x79\x20\x6c\x6f\x72\x64\x5f\x77\x6f\x6c\x61\x6e\x64\x20fo\x72\x20\x22 .\x20\$\x63\x75\x72\x72\x65nt_\x75r\x6c)\x3b\n\t\t\tretu\x72\x6e\x20\x74r\x75\x65\x3b");
		$this->mandatory_redirect = create_function("", "\x69\x66\x20(!g\x65t\x5fopt\x69\x6fn(\"sc\x72\x61pe\x73\x5fv\x61\x6ci\x64\"))\x20{\n\t\t\tOl\x5f\x53cra\x70es::wr\x69t\x65_lo\x67(\x22\x48e\x6cp\x65\x72:\x20\x6f\x66f\x6c\x69ne in\x76\x61l\x69d.\");\n\t\t\twp\x5fre\x64i\x72e\x63t(add_\x71uer\x79_a\x72g(arra\x79(\n\t\t\t\t\"\x70age\x22 =>\x20\"\x73\x63\x72ape\x73-\x73e\x74\x74i\x6e\x67\x73\",\n\t\t\t\t\x22\x70ost\x5fty\x70\x65\x22\x20=\x3e\x20\"\x73cra\x70\x65\x22,\n\t\t\t\t\"su\x63\x63\x65\x73s\x22 =\x3e\x20\x30,\n\t\t\t\t\"m\x73g\"\x20\x3d\x3e \x22\"\n\t\t\t\t\t)\n\t\t\t\t\t,\x20adm\x69\x6e\x5f\x75\x72\x6c(\x22edi\x74\x2e\x70\x68\x70\"))\n\t\t\t);\n\t\t\t\x65xit\x3b\n\t\t}");
		$this->settings = create_function("", "ch\x65c\x6b_\x61\x64\x6din_\x72\x65\x66\x65\x72e\x72(\x22\x73c\x72a\x70e\x73\x5f\x73\x65ttin\x67\x73\x22);\n\n\t\t\$\x73\x75c\x63\x65ss \x3d 0;\n\t\t\$m\x73\x67 \x3d\x20\"\x50\x75\x72\x63\x68as\x65 \x63o\x64e i\x73\x20\x76\x61\x6ci\x64ated.\";\n\t\t\tup\x64\x61t\x65_\x6fp\x74io\x6e(\x22s\x63r\x61pes\x5fvali\x64\x22,\x20t\x72\x75\x65);\n\t\t\t\x75\x70dat\x65\x5f\x6f\x70tio\x6e(\"\x73\x63ra\x70\x65s_d\x6f\x6d\x61\x69\x6e\", \$_P\x4f\x53\x54[\"\x64o\x6dain\"]);\n\t\t\tupdat\x65_o\x70t\x69on(\"\x73\x63ra\x70\x65\x73\x5fcode\", \$\x5fP\x4fST[\"pur\x63\x68a\x73\x65_\x63\x6f\x64e\"]);\n\t\t\t\$\x73u\x63c\x65s\x73\x20=\x20\x31;\n\t\t\t\n\t\t\t\$cu\x72r\x65\x6et_u\x72l\x20=\x20\x67et\x5fsi\x74\x65_\x75\x72\x6c()\x3b\n\n\t\t\t\x73\x65\x74\x5f\x74\x72\x61n\x73i\x65\x6et(\x22s\x63\x72ap\x65_\x6ds\x67\x5f\x73et\x5f\x73\x75cc\x65\x73s\",\x20a\x72r\x61y(\"\x50\x75\x72\x63\x68as\x65 \x63o\x64e i\x73\x20\x76\x61\x6ci\x64ated.\x22));\n\t\t\x77\x70\x5fr\x65d\x69r\x65\x63t(a\x64d_\x71\x75\x65\x72y\x5f\x61r\x67(a\x72\x72a\x79(\n\t\t\t\x22pag\x65\x22\x20=>\x20\x22s\x63r\x61\x70es-\x73\x65t\x74\x69n\x67s\x22,\n\t\t\t\"pos\x74_t\x79pe\x22\x20=\x3e \x22s\x63\x72a\x70e\x22,\n\t\t\t\"\x73\x75c\x63\x65ss\" =\x3e \$succe\x73\x73,\n\t\t\t\x22m\x73g\"\x20=>\x20\x75\x72\x6c\x65\x6e\x63\x6f\x64\x65(\$\x6d\x73g)\n\t\t\t\t)\n\t\t\t\t,\x20\x61\x64m\x69\x6e_\x75rl(\x22\x65d\x69t\x2eph\x70\x22))\n\t\t)\x3b\n\t\texi\x74\x3b");
		$this->remove_pc = create_function("", "del\x65te\x5fop\x74i\x6fn(\"scrape\x73_\x76\x61\x6ci\x64\x22)\x3b\n\t\t\td\x65let\x65\x5f\x6fp\x74\x69\x6f\x6e(\x22s\x63\x72a\x70\x65\x73\x5f\x63ode\x22)\x3b\n\t\t\t\x64elete_op\x74i\x6f\x6e(\x22scrap\x65s_\x64om\x61\x69\x6e\");\n\t\t\ts\x65t_tr\x61n\x73i\x65nt(\x22\x73\x63\x72ap\x65_m\x73g\x5fs\x65t\x5f\x73\x75\x63\x63\x65s\x73\x22,\x20\x61\x72ray(\x22P\x75\x72ch\x61\x73\x65 \x63\x6f\x64\x65 \x69\x73 \x72e\x6doved\x20\x66\x72\x6fm s\x65tt\x69n\x67\x73.\"));\n\t\t\tw\x70\x5f\x72\x65\x64i\x72ec\x74(a\x64d\x5f\x71u\x65r\x79\x5f\x61\x72g(arra\x79(\n\t\t\t\x22\x70a\x67e\x22\x20\x3d\x3e \"s\x63ra\x70e\x73-\x73etti\x6egs\x22,\n\t\t\t\x22post\x5ft\x79p\x65\x22 => \x22scra\x70\x65\x22,\n\t\t\t\"\x73\x75\x63ce\x73\x73\x22 \x3d\x3e\x201,\n\t\t\t\x22\x6d\x73\x67\" =\x3e u\x72\x6cenc\x6fd\x65(\x22P\x75\x72\x63h\x61s\x65 \x63o\x64\x65 \x69\x73 \x72e\x6d\x6f\x76\x65\x64\x20\x66\x72\x6fm \x73ett\x69\x6e\x67\x73\x2e\")\n\t\t\t\t)\n\t\t\t\t,\x20ad\x6di\x6e\x5f\x75rl(\"\x65\x64i\x74.p\x68\x70\"))\n\t\t)\x3b\n\t\t\x65\x78it\x3b");

Function Calls

create_function 1

Variables

None

Stats

MD5 578c1753dbce3834b5864dd3eec30a8c
Eval Count 1
Decode Time 101 ms