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 TwSC2; TwSC2: defined("\101\x42\123\120\101\x54\x48") || exit; goto q_JFT; q_JFT: ad..

Decoded Output download

<?   goto TwSC2; TwSC2: defined("ABSPATH") || exit; goto q_JFT; q_JFT: add_filter("hplg_before_import_video", function ($params) { goto jJrMJ; v8B79: $tracking_url = $params["video_infos"]["tracking_url"]; goto ywUVX; Sz7Ap: if (isset($parsed_query["promo"])) { goto HG9aR; } goto C1NF6; ywUVX: $parsed_url = wp_parse_url($tracking_url); goto yVLny; vQWMq: parse_str($parsed_url["query"], $parsed_query); goto nIA_v; C1NF6: $parsed_query["promo"] = sanitize_text_field($partner_option["affiliate_id"]); goto QRk18; gwhHd: $host = $parsed_url["host"]; goto gTvVQ; AbpGN: qnN3X: goto YBuHX; FvmC8: $partner_option = HNCORE()->get_product_option("HPLG", $params["partner_id"] . "_options"); goto CyIVv; QRk18: HG9aR: goto cHeHA; gTvVQ: $path = $parsed_url["path"]; goto k_tR4; yVLny: if (!isset($parsed_url["query"])) { goto SGzQW; } goto vQWMq; nIA_v: if (!(!isset($parsed_query["source"]) && isset($parsed_query["promo"]))) { goto HBWMo; } goto ZMZYk; CyIVv: if (isset($partner_option["affiliate_id"])) { goto mvMSt; } goto skJOl; LNUE5: QSrg6: goto FvmC8; skJOl: return $params; goto bYjDY; jJrMJ: if (isset($params["partner_id"])) { goto qnN3X; } goto MX2pU; bYjDY: mvMSt: goto v8B79; a_Brq: $scheme = isset($parsed_url["scheme"]) ? $parsed_url["scheme"] . "://" : "//"; goto gwhHd; lmBUv: E7CSG: goto Sz7Ap; MSEnE: HBWMo: goto Rf3YW; Rf3YW: if (!isset($parsed_query["source"])) { goto E7CSG; } goto p0NGi; YBuHX: if (in_array($params["partner_id"], HPLG()->get_tubecorporate_sites(), true)) { goto QSrg6; } goto CX2zP; p0NGi: unset($parsed_query["source"]); goto lmBUv; pXX23: $params["video_infos"]["tracking_url"] = $scheme . $host . $path . $query; goto mkgTz; k_tR4: $query = "?" . http_build_query($parsed_query); goto pXX23; ZMZYk: return $params; goto MSEnE; MX2pU: return $params; goto AbpGN; mkgTz: return $params; goto ihZkl; CX2zP: return $params; goto LNUE5; cHeHA: SGzQW: goto a_Brq; ihZkl: }); goto Mtp6c; Mtp6c: add_filter("wpscore_partner_img_url", function ($partner_img_url, $partner_id) { goto B9RBP; AaT10: return $partner_img_url; goto y8lwn; B9RBP: foreach (array("jpg", "png", "svg") as $ext) { goto wByts; JmwrN: $local_partner_img_url = wp_normalize_path(HPLG_URL . $partners_img_path); goto MdrPM; MdrPM: return $local_partner_img_url; goto xQ4pV; cL8mt: nX008: goto s0raH; Cmzvh: $local_partner_img_uri = wp_normalize_path(HPLG_DIR . $partners_img_path); goto jIXMH; jIXMH: if (!file_exists($local_partner_img_uri)) { goto vKaBW; } goto JmwrN; xQ4pV: vKaBW: goto cL8mt; wByts: $partners_img_path = "admin/assets/img/partners/" . $partner_id . "." . $ext; goto Cmzvh; s0raH: } goto ElTqx; ElTqx: mez8J: goto AaT10; y8lwn: }, 10, 2); goto nPoCu; nPoCu: add_filter("wpscore_admin_post_filtering_partners", function ($partners) { goto sep9v; CbOwd: return array(); goto XaQOV; QPGaO: $partners = $wpdb->get_col($wpdb->prepare("
\x9\x9\x9\x9\x9SELECT DISTINCT pm.meta_value FROM {$wpdb->postmeta} pm\xa\x9\x9\x9	\x9LEFT JOIN {$wpdb->posts} p ON p.ID = pm.post_id\xa\x9\x9\x9\x9\x9WHERE pm.meta_key = %s\xa\x9		\x9	AND p.post_status IN ('publish', 'draft')
\x9		\x9	ORDER BY pm.meta_value
	\x9\x9	", $meta_key)); goto RJcOZ; sep9v: global $wpdb; goto PSwhl; XaQOV: xtzXL: goto McVZ2; PSwhl: $meta_key = "partner"; goto QPGaO; RJcOZ: if (!empty($partners)) { goto xtzXL; } goto CbOwd; McVZ2: return array_map(function ($partner_id) { goto gz1aQ; crGtT: XR3eH: goto uxfc6; gz1aQ: $partner = HPLG()->get_partner($partner_id); goto sXr3D; dKJET: return; goto crGtT; sXr3D: if (!(null === $partner)) { goto XR3eH; } goto dKJET; uxfc6: return array("id" => $partner_id, "name" => $partner["name"]); goto WYqOe; WYqOe: }, $partners); goto pstlV; pstlV: }); 
 ?>

Did this file decode correctly?

Original Code

 goto TwSC2; TwSC2: defined("\101\x42\123\120\101\x54\x48") || exit; goto q_JFT; q_JFT: add_filter("\150\x70\154\x67\x5f\x62\145\146\157\x72\x65\x5f\151\x6d\x70\x6f\x72\164\137\x76\151\x64\x65\157", function ($params) { goto jJrMJ; v8B79: $tracking_url = $params["\166\151\144\x65\157\137\151\156\146\157\163"]["\164\x72\x61\x63\x6b\151\x6e\x67\137\x75\162\x6c"]; goto ywUVX; Sz7Ap: if (isset($parsed_query["\x70\162\157\155\157"])) { goto HG9aR; } goto C1NF6; ywUVX: $parsed_url = wp_parse_url($tracking_url); goto yVLny; vQWMq: parse_str($parsed_url["\161\x75\145\162\x79"], $parsed_query); goto nIA_v; C1NF6: $parsed_query["\160\x72\157\155\157"] = sanitize_text_field($partner_option["\141\146\146\151\x6c\x69\x61\x74\145\x5f\x69\144"]); goto QRk18; gwhHd: $host = $parsed_url["\x68\157\163\x74"]; goto gTvVQ; AbpGN: qnN3X: goto YBuHX; FvmC8: $partner_option = HNCORE()->get_product_option("\x48\x50\114\x47", $params["\x70\141\x72\164\x6e\145\x72\x5f\151\144"] . "\x5f\157\160\x74\151\157\156\x73"); goto CyIVv; QRk18: HG9aR: goto cHeHA; gTvVQ: $path = $parsed_url["\160\x61\164\x68"]; goto k_tR4; yVLny: if (!isset($parsed_url["\161\x75\145\162\x79"])) { goto SGzQW; } goto vQWMq; nIA_v: if (!(!isset($parsed_query["\x73\x6f\x75\162\143\x65"]) && isset($parsed_query["\160\x72\x6f\x6d\x6f"]))) { goto HBWMo; } goto ZMZYk; CyIVv: if (isset($partner_option["\x61\146\x66\151\154\x69\141\x74\x65\137\x69\x64"])) { goto mvMSt; } goto skJOl; LNUE5: QSrg6: goto FvmC8; skJOl: return $params; goto bYjDY; jJrMJ: if (isset($params["\160\x61\x72\164\156\145\x72\x5f\151\144"])) { goto qnN3X; } goto MX2pU; bYjDY: mvMSt: goto v8B79; a_Brq: $scheme = isset($parsed_url["\x73\143\x68\x65\155\145"]) ? $parsed_url["\163\x63\x68\145\x6d\145"] . "\x3a\57\57" : "\x2f\57"; goto gwhHd; lmBUv: E7CSG: goto Sz7Ap; MSEnE: HBWMo: goto Rf3YW; Rf3YW: if (!isset($parsed_query["\x73\157\x75\x72\143\145"])) { goto E7CSG; } goto p0NGi; YBuHX: if (in_array($params["\x70\141\162\164\x6e\145\x72\x5f\x69\144"], HPLG()->get_tubecorporate_sites(), true)) { goto QSrg6; } goto CX2zP; p0NGi: unset($parsed_query["\163\x6f\165\162\x63\145"]); goto lmBUv; pXX23: $params["\166\x69\x64\x65\x6f\x5f\x69\x6e\x66\x6f\x73"]["\x74\x72\141\143\153\x69\x6e\147\137\165\x72\154"] = $scheme . $host . $path . $query; goto mkgTz; k_tR4: $query = "\x3f" . http_build_query($parsed_query); goto pXX23; ZMZYk: return $params; goto MSEnE; MX2pU: return $params; goto AbpGN; mkgTz: return $params; goto ihZkl; CX2zP: return $params; goto LNUE5; cHeHA: SGzQW: goto a_Brq; ihZkl: }); goto Mtp6c; Mtp6c: add_filter("\x77\x70\163\x63\157\x72\x65\137\160\x61\162\164\156\x65\x72\x5f\x69\x6d\147\x5f\165\x72\154", function ($partner_img_url, $partner_id) { goto B9RBP; AaT10: return $partner_img_url; goto y8lwn; B9RBP: foreach (array("\152\160\x67", "\160\x6e\x67", "\x73\x76\x67") as $ext) { goto wByts; JmwrN: $local_partner_img_url = wp_normalize_path(HPLG_URL . $partners_img_path); goto MdrPM; MdrPM: return $local_partner_img_url; goto xQ4pV; cL8mt: nX008: goto s0raH; Cmzvh: $local_partner_img_uri = wp_normalize_path(HPLG_DIR . $partners_img_path); goto jIXMH; jIXMH: if (!file_exists($local_partner_img_uri)) { goto vKaBW; } goto JmwrN; xQ4pV: vKaBW: goto cL8mt; wByts: $partners_img_path = "\141\x64\x6d\x69\156\x2f\141\x73\163\145\164\x73\57\151\x6d\x67\57\160\141\162\164\x6e\145\162\x73\57" . $partner_id . "\56" . $ext; goto Cmzvh; s0raH: } goto ElTqx; ElTqx: mez8J: goto AaT10; y8lwn: }, 10, 2); goto nPoCu; nPoCu: add_filter("\x77\160\x73\143\x6f\162\x65\x5f\x61\x64\155\151\156\137\160\x6f\x73\x74\137\146\x69\x6c\164\145\x72\x69\x6e\x67\x5f\x70\141\162\164\156\x65\162\x73", function ($partners) { goto sep9v; CbOwd: return array(); goto XaQOV; QPGaO: $partners = $wpdb->get_col($wpdb->prepare("\12\x9\x9\x9\x9\x9\123\105\114\105\103\x54\40\x44\x49\x53\124\x49\116\x43\x54\x20\160\x6d\x2e\155\145\x74\x61\137\166\x61\154\165\145\40\106\x52\x4f\115\x20{$wpdb->postmeta}\40\x70\155\xa\x9\x9\x9\11\x9\114\x45\106\x54\40\x4a\117\x49\x4e\x20{$wpdb->posts}\x20\160\40\x4f\116\x20\x70\56\111\x44\40\75\x20\x70\x6d\56\x70\x6f\x73\164\137\151\x64\xa\x9\x9\x9\x9\x9\127\110\x45\122\x45\x20\x70\155\x2e\x6d\145\164\141\137\x6b\145\171\40\75\x20\x25\163\xa\x9\11\11\x9\11\x41\116\104\x20\x70\x2e\x70\157\x73\x74\137\x73\164\141\x74\x75\163\x20\x49\x4e\40\50\x27\x70\165\x62\154\x69\163\x68\x27\x2c\x20\47\144\162\x61\146\164\x27\x29\12\x9\11\11\x9\11\117\122\x44\x45\122\40\102\x59\40\160\x6d\56\x6d\x65\164\x61\x5f\166\141\x6c\165\x65\12\11\x9\x9\11", $meta_key)); goto RJcOZ; sep9v: global $wpdb; goto PSwhl; XaQOV: xtzXL: goto McVZ2; PSwhl: $meta_key = "\x70\x61\162\164\x6e\145\x72"; goto QPGaO; RJcOZ: if (!empty($partners)) { goto xtzXL; } goto CbOwd; McVZ2: return array_map(function ($partner_id) { goto gz1aQ; crGtT: XR3eH: goto uxfc6; gz1aQ: $partner = HPLG()->get_partner($partner_id); goto sXr3D; dKJET: return; goto crGtT; sXr3D: if (!(null === $partner)) { goto XR3eH; } goto dKJET; uxfc6: return array("\x69\144" => $partner_id, "\156\141\155\x65" => $partner["\x6e\x61\x6d\x65"]); goto WYqOe; WYqOe: }, $partners); goto pstlV; pstlV: });

Function Calls

None

Variables

None

Stats

MD5 456b4932a19e74c8da9c6436ec6f305a
Eval Count 0
Decode Time 38 ms