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 goto pA0h7; oLneJ: function settings_invite() { echo "\74\144\151\166\x20\x63\154\..

Decoded Output download

<?php 
 goto pA0h7; oLneJ: function settings_invite() { echo "<div class="notice notice-success is-dismissible">\xa	\x9	<p>
\x9\x9\x9	Pense \303\xa0 param\303\251trer BHMCloaking dans ta strat\xc3\xa9gie Black Hat SEO ;) \xa			</p>\xa\x9\x9</div>"; } goto i0La_; hi4Jj: function getCatSlugByKey($key) { $cats = get_categories(array("hide_empty" => 0)); return $cats[$key]; } goto fGNne; iEOyT: function hcloak_options() { register_setting("hcloak_options", "hcloak_shortcode"); register_setting("hcloak_options", "hcloak_301"); register_setting("hcloak_options", "hcloak_301_general"); register_setting("hcloak_options", "hcloak_url_redirect_cat"); register_setting("hcloak_options", "hcloak_noarchive"); register_setting("hcloak_options", "hcloak_content"); register_setting("hcloak_options", "hcloak_content_textarea"); register_setting("hcloak_options", "hcloak_category"); register_setting("hcloak_options", "hcloak_wysiwyg"); register_setting("hcloak_options", "hcloak"); register_setting("hcloak_options", "hcloak_visitor_google"); register_setting("hcloak_options", "hcloak_referer_domain"); register_setting("hcloak_options", "hcloak_referer_redirect"); register_setting("hcloak_options", "block_all"); $cats = get_categories(array("hide_empty" => 0)); foreach ($cats as $key => $cat) { register_setting("hcloak_options", "hcloak_" . $key); register_setting("hcloak_options", "hcloak_url_" . $key); register_setting("hcloak_options", "hcloak_url_" . $cat->slug); register_setting("hcloak_options", "hcloak_cat_" . $cat->slug); register_setting("hcloak_options", $cat->slug); } } goto RjQ_Y; av1vu: function del_custom_option() { $options_names = array("hcloak_shortcode", "hcloak_301_general", "hcloak_301", "hcloak_noarchive", "hcloak_content", "hcloak_category", "hcloak_url_redirect", "secret_key", "hcloak_url_redirect_cat", "hcloak", "block_all"); foreach ($options_names as $option) { delete_option($option); } } goto CRwS0; WmjH2: function hcloak_noarchive() { echo "<meta name="robots" content="noarchive">"; } goto hi4Jj; n5Y0_: function retrieve_id() { return url_to_postid((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}"); } goto ntU4T; Fr_HM: function get_post_category() { $id = retrieve_id(); $cats = get_the_category($id); foreach ($cats as $key => $cat) { $key = getCatKeyBySlug($cat->slug); if (get_option("hcloak_" . $key)) { if (not_robot()) { if (filter_var(get_option("hcloak_url_" . $key), FILTER_VALIDATE_URL) != '') { header(sprintf("Location: %s", filter_var(get_option("hcloak_url_" . $key), FILTER_VALIDATE_URL))); die; } else { wp_die("Erreur au niveau de l'URL de redirection : " . get_option("hcloak_url_" . $key) . " <br> <a href="" . home_url() . "">Retourner au site</a>"); } } } elseif (!get_option("hcloak_" . $key) && get_option("block_all")) { die; } } } goto V2aUr; qxa87: function notice_no_header() { echo "<div class="notice notice-error is-dismissible">\xa\x9	\x9<p>\xa				BHM Cloaking : R\303\xa9f\xc3\xa9rent non valide. <a href="https://www.php.net/manual/fr/reserved.variables.server.php" title="savoir plus" target="_blank">En savoir plus</a>. 
	\x9	</p>\xa		</div>"; } goto dcRWa; i0La_: function cloak_referer() { $origin = @$_SERVER["HTTP_REFERER"]; if (!is_null($origin)) { $origin = parse_url($origin); if (array_key_exists("host", $origin)) { $origin_domain = $origin["host"]; $server_name = $_SERVER["SERVER_NAME"]; $domain_referer = parse_url(get_option("hcloak_referer_domain")); if (array_key_exists("host", $domain_referer)) { $domain_referer = $domain_referer["host"]; } else { $domain_referer = get_option("hcloak_referer_domain"); } if ($origin_domain != $server_name) { if (strpos($origin_domain, $domain_referer) !== false) { add_action("wp_head", "redirect_referer"); } } } } else { add_action("admin_notices", "notice_no_header"); } } goto b62BC; pA0h7: function hcloak_options_page() { add_menu_page("BHM Cloaking", "BHM Cloaking", "manage_options", "bhmcloaking", "hcloak_page", "none", 65); } goto IQ2mg; Vh1s7: function cloak_render_metabox() { global $post; $details = get_post_meta($post->ID, "cloak", true); echo "<fieldset class="fbox">\xa\x9\x9\x9<label>Rediriger cet article vers :</label>\xa	\x9\x9<div>\xa		\x9	<input type="text" class="url-post" name="cloak_custom_metabox" placeholder="http://domain.com" value="" . $details . "" ?>">\xa	\x9	</div>
\x9	</fieldset>"; wp_nonce_field("cloak_form_metabox_nonce", "cloak_form_metabox_process"); } goto hwlBT; V2aUr: function die_other() { if (is_single() || is_front_page() || is_page()) { die; } } goto n5Y0_; IQ2mg: function hcloak_page() { if (!current_user_can("manage_options")) { wp_die(__("Droit d'acc\303\250s insiffisant.")); } if (!defined("ABSPATH")) { die; } require_once dirname(__FILE__) . "/settings.php"; } goto zXkuW; zXkuW: function hcloak_style() { wp_enqueue_style("hcloak_style", plugins_url("/hcloak.css", __FILE__)); wp_enqueue_script("hcloak_js", plugins_url("/hcloak.js", __FILE__)); } goto iEOyT; MY9EF: function redirect_category() { $currentUri = $_SERVER["REQUEST_URI"]; $currentUri = explode("/", $currentUri); if (count($currentUri) == 4 && $currentUri[1] == "category") { $currentCateg = $currentUri[2]; $key = getCatKeyBySlug($currentCateg); if (get_option("hcloak_" . $key)) { if (not_robot()) { if (filter_var(get_option("hcloak_url_" . $key), FILTER_VALIDATE_URL) != '') { header(sprintf("Location: %s", filter_var(get_option("hcloak_url_" . $key), FILTER_VALIDATE_URL))); die; } else { wp_die("Erreur au niveau de l'URL de redirection : " . get_option("hcloak_url_" . $key) . " <br> <a href="" . home_url() . "">Retourner au site</a>"); } } } elseif (!get_option("hcloak_" . $key) && get_option("block_all")) { die; } } } goto Fr_HM; Blr32: function hcloak_shortcode_init() { function hcloakGoogle_shortcode($atts = array(), $content = null) { if (not_robot()) { $content = null; } else { $content = $content; } return $content; } add_shortcode("cloakGoogle", "hcloakGoogle_shortcode"); function hcloakVisitor_shortcode($atts = array(), $content = null) { if (not_robot()) { $content = $content; } else { $content = null; } return $content; } add_shortcode("cloakVisitor", "hcloakVisitor_shortcode"); } goto WmjH2; fGNne: function getCatKeyBySlug($slug) { $result = ''; $cats = get_categories(array("hide_empty" => 0)); foreach ($cats as $key => $cat) { if ($cat->slug == $slug) { $result = $key; } } return $result; } goto MY9EF; hwlBT: function cloak_save_metabox($post_id, $post) { if (!isset($_POST["cloak_form_metabox_process"])) { return; } if (!wp_verify_nonce($_POST["cloak_form_metabox_process"], "cloak_form_metabox_nonce")) { return $post->ID; } if (!current_user_can("edit_post", $post->ID)) { return $post->ID; } if (!isset($_POST["cloak_custom_metabox"])) { return $post->ID; } $sanitized = wp_filter_post_kses($_POST["cloak_custom_metabox"]); update_post_meta($post->ID, "cloak", $sanitized); } goto av1vu; CRwS0: function redirect_301() { $url = get_post_meta(retrieve_id(), "cloak", true); $url_general = get_option("hcloak_301_general"); add_action("add_meta_boxes", "cloak_create_metabox"); add_action("save_post", "cloak_save_metabox", 1, 2); if (!is_admin() && not_robot()) { if (filter_var($url, FILTER_VALIDATE_URL) != '') { header(sprintf("Location: %s", filter_var($url, FILTER_VALIDATE_URL))); die; } else { if (filter_var($url_general, FILTER_VALIDATE_URL) != '') { header(sprintf("Location: %s", filter_var($url_general, FILTER_VALIDATE_URL))); die; } } } } goto Blr32; ntU4T: function cloak_filter_content($content) { $details = get_option("hcloak_content_textarea"); if ($details != '') { return $details; } return $content; } goto qxa87; dcRWa: function redirect_referer() { echo "<meta http-equiv="refresh" content="1; url=" . filter_var(get_option("hcloak_referer_redirect"), FILTER_VALIDATE_URL) . "">"; } goto oLneJ; gGvBo: function cloak_create_metabox() { add_meta_box("cloak_metabox", "Cloak 301", "cloak_render_metabox", "post", "normal", "default"); } goto Vh1s7; RjQ_Y: function not_robot() { $browser = preg_match("/(.*)(googlebot|msnbot|slurp|bing)(.*)/i", filter_input(INPUT_SERVER, "HTTP_USER_AGENT")); $browser = $browser !== 1 ? false : true; $dns = preg_match("/(.*)(googlebot|msnbot|slurp|bing)(.*)/i", gethostbyaddr(filter_input(INPUT_SERVER, "REMOTE_ADDR", FILTER_SANITIZE_STRING))); $dns = $dns !== 1 ? false : true; $address = preg_match("/(66\.249\.|72\.14\.)(.*)/i", filter_input(INPUT_SERVER, "REMOTE_ADDR", FILTER_SANITIZE_STRING)); $address = $address !== 1 ? false : true; $uri = filter_input(INPUT_SERVER, "REQUEST_URI", FILTER_SANITIZE_STRING); $wp = preg_match("/^(\/wp-.*)/i", $uri) !== 1 ? false : true; if (!$address && !$browser && !$dns && !$wp) { return true; } else { return false; } } goto gGvBo; b62BC: ?>

Did this file decode correctly?

Original Code

<?php
 goto pA0h7; oLneJ: function settings_invite() { echo "\74\144\151\166\x20\x63\154\x61\163\163\75\42\156\x6f\164\x69\x63\x65\x20\x6e\157\164\x69\x63\x65\55\163\x75\x63\x63\145\163\x73\40\x69\x73\x2d\x64\151\x73\155\x69\x73\x73\x69\x62\154\x65\42\x3e\xa\11\x9\11\74\160\76\12\x9\x9\x9\11\120\145\156\x73\x65\x20\303\xa0\x20\160\141\x72\x61\x6d\303\251\x74\162\145\x72\x20\102\110\x4d\x43\x6c\x6f\141\153\151\x6e\147\40\144\141\x6e\163\40\164\x61\x20\x73\x74\x72\141\164\xc3\xa9\x67\151\x65\x20\x42\x6c\x61\x63\153\x20\110\141\x74\x20\123\x45\x4f\x20\73\51\40\xa\11\11\11\x3c\57\160\76\xa\x9\x9\x3c\x2f\144\151\166\76"; } goto i0La_; hi4Jj: function getCatSlugByKey($key) { $cats = get_categories(array("\x68\151\x64\145\x5f\x65\155\x70\164\171" => 0)); return $cats[$key]; } goto fGNne; iEOyT: function hcloak_options() { register_setting("\x68\x63\154\157\x61\153\x5f\x6f\160\164\151\157\x6e\x73", "\150\143\x6c\x6f\x61\x6b\x5f\x73\150\157\162\x74\143\x6f\144\x65"); register_setting("\150\x63\154\157\141\x6b\x5f\157\160\164\x69\157\x6e\x73", "\150\x63\x6c\x6f\141\153\137\63\x30\61"); register_setting("\x68\143\154\157\x61\x6b\x5f\157\160\x74\x69\157\156\163", "\x68\143\154\157\x61\153\x5f\63\x30\x31\x5f\147\x65\156\x65\162\141\154"); register_setting("\x68\143\x6c\157\141\153\137\x6f\x70\x74\151\157\x6e\163", "\x68\143\154\157\x61\153\137\165\x72\x6c\137\162\145\x64\x69\x72\145\x63\164\x5f\x63\141\164"); register_setting("\x68\143\x6c\157\x61\x6b\137\x6f\x70\x74\151\x6f\156\x73", "\150\x63\154\x6f\x61\x6b\137\x6e\157\x61\x72\143\x68\151\x76\145"); register_setting("\150\143\154\157\141\x6b\x5f\x6f\160\x74\x69\157\156\163", "\150\x63\x6c\x6f\x61\153\x5f\x63\x6f\x6e\164\145\156\164"); register_setting("\150\143\154\157\141\153\137\157\x70\x74\x69\157\x6e\x73", "\150\143\x6c\x6f\x61\x6b\137\x63\x6f\x6e\x74\x65\x6e\x74\137\x74\x65\170\x74\x61\162\x65\141"); register_setting("\150\143\154\x6f\x61\x6b\137\x6f\160\x74\151\x6f\x6e\163", "\150\143\x6c\x6f\141\153\x5f\143\x61\x74\x65\x67\157\x72\171"); register_setting("\150\143\154\x6f\141\x6b\137\x6f\x70\x74\x69\157\156\163", "\150\x63\x6c\157\141\153\137\x77\x79\x73\151\x77\x79\147"); register_setting("\150\x63\x6c\x6f\x61\x6b\x5f\157\x70\x74\151\x6f\x6e\163", "\x68\143\154\157\x61\153"); register_setting("\x68\143\x6c\x6f\141\153\x5f\x6f\x70\164\x69\157\156\x73", "\x68\143\154\157\x61\153\137\x76\151\163\x69\164\157\x72\137\x67\157\x6f\147\154\x65"); register_setting("\x68\x63\154\x6f\x61\153\137\x6f\160\164\x69\157\156\163", "\x68\x63\x6c\x6f\x61\153\137\162\145\146\145\162\x65\x72\137\144\x6f\155\x61\x69\156"); register_setting("\x68\x63\x6c\x6f\x61\x6b\x5f\x6f\160\x74\151\157\x6e\163", "\150\x63\x6c\x6f\x61\153\137\x72\145\x66\145\x72\x65\162\137\x72\x65\x64\x69\162\145\143\164"); register_setting("\x68\x63\x6c\157\141\x6b\x5f\157\x70\164\x69\157\156\x73", "\142\x6c\x6f\143\153\137\x61\x6c\x6c"); $cats = get_categories(array("\x68\x69\144\145\x5f\x65\155\160\x74\171" => 0)); foreach ($cats as $key => $cat) { register_setting("\150\143\154\157\141\x6b\x5f\157\x70\x74\x69\157\x6e\x73", "\x68\143\154\x6f\141\153\x5f" . $key); register_setting("\150\143\x6c\157\x61\153\137\x6f\x70\164\151\x6f\x6e\163", "\x68\143\x6c\x6f\141\153\137\165\x72\154\137" . $key); register_setting("\150\143\154\x6f\x61\x6b\137\x6f\x70\164\x69\x6f\156\163", "\x68\143\154\157\x61\153\137\165\x72\x6c\137" . $cat->slug); register_setting("\x68\143\x6c\157\141\153\x5f\x6f\x70\x74\151\157\x6e\163", "\x68\143\154\x6f\x61\x6b\x5f\143\141\x74\x5f" . $cat->slug); register_setting("\x68\143\x6c\x6f\141\x6b\137\x6f\x70\x74\x69\x6f\156\163", $cat->slug); } } goto RjQ_Y; av1vu: function del_custom_option() { $options_names = array("\150\143\154\157\141\x6b\137\163\x68\x6f\x72\164\143\157\144\145", "\150\x63\154\157\141\153\x5f\63\x30\x31\137\147\x65\156\145\x72\141\x6c", "\150\x63\x6c\x6f\x61\x6b\137\x33\60\x31", "\x68\x63\154\157\141\x6b\x5f\x6e\157\141\162\x63\150\151\x76\145", "\x68\x63\154\157\141\153\x5f\x63\x6f\x6e\x74\145\x6e\164", "\150\x63\154\157\141\x6b\x5f\x63\141\x74\x65\147\157\162\171", "\150\143\154\x6f\141\x6b\137\165\162\x6c\x5f\x72\x65\x64\x69\162\145\x63\164", "\163\145\143\162\145\x74\137\153\145\171", "\x68\x63\154\x6f\x61\153\137\x75\x72\154\137\x72\x65\144\x69\x72\x65\143\x74\137\x63\141\x74", "\150\x63\x6c\157\141\x6b", "\x62\154\x6f\143\x6b\137\141\154\154"); foreach ($options_names as $option) { delete_option($option); } } goto CRwS0; WmjH2: function hcloak_noarchive() { echo "\74\x6d\145\x74\x61\40\x6e\141\155\145\75\x22\162\x6f\x62\x6f\164\163\42\40\x63\157\156\x74\x65\x6e\x74\x3d\42\156\157\141\x72\143\150\x69\x76\x65\42\x3e"; } goto hi4Jj; n5Y0_: function retrieve_id() { return url_to_postid((isset($_SERVER["\x48\124\x54\x50\x53"]) && $_SERVER["\x48\124\x54\x50\123"] === "\x6f\x6e" ? "\x68\164\164\160\163" : "\x68\x74\164\x70") . "\72\57\57{$_SERVER["\x48\x54\x54\120\137\x48\x4f\123\124"]}{$_SERVER["\122\105\121\125\105\x53\x54\x5f\125\122\111"]}"); } goto ntU4T; Fr_HM: function get_post_category() { $id = retrieve_id(); $cats = get_the_category($id); foreach ($cats as $key => $cat) { $key = getCatKeyBySlug($cat->slug); if (get_option("\x68\143\x6c\x6f\x61\x6b\x5f" . $key)) { if (not_robot()) { if (filter_var(get_option("\150\x63\x6c\x6f\x61\x6b\137\x75\x72\154\x5f" . $key), FILTER_VALIDATE_URL) != '') { header(sprintf("\x4c\x6f\x63\x61\x74\151\x6f\x6e\72\40\45\163", filter_var(get_option("\150\x63\154\157\x61\x6b\137\x75\162\x6c\x5f" . $key), FILTER_VALIDATE_URL))); die; } else { wp_die("\105\x72\162\145\165\x72\40\x61\165\40\156\151\166\x65\141\165\40\x64\x65\40\x6c\x27\x55\122\114\40\144\x65\40\162\145\x64\x69\162\145\x63\164\151\157\x6e\x20\72\x20" . get_option("\x68\143\154\x6f\x61\153\137\165\162\154\x5f" . $key) . "\40\x3c\x62\x72\76\40\x3c\x61\40\150\162\145\146\75\x22" . home_url() . "\42\x3e\122\145\164\x6f\165\x72\x6e\x65\x72\x20\x61\x75\x20\163\x69\x74\145\x3c\57\141\x3e"); } } } elseif (!get_option("\150\143\154\157\141\x6b\137" . $key) && get_option("\x62\x6c\157\x63\x6b\x5f\x61\x6c\154")) { die; } } } goto V2aUr; qxa87: function notice_no_header() { echo "\x3c\144\151\166\40\143\x6c\x61\x73\163\x3d\42\x6e\x6f\x74\x69\x63\145\x20\156\x6f\x74\151\x63\145\55\145\162\x72\157\162\x20\151\x73\55\144\x69\163\155\151\x73\x73\151\142\154\x65\42\x3e\xa\x9\11\x9\74\160\76\xa\11\11\11\11\102\x48\x4d\40\x43\154\157\141\x6b\x69\156\x67\40\72\40\x52\303\xa9\x66\xc3\xa9\x72\x65\x6e\x74\40\x6e\x6f\x6e\40\166\x61\154\151\x64\145\56\40\74\x61\40\150\x72\145\x66\x3d\x22\x68\x74\x74\160\163\72\x2f\x2f\167\167\x77\x2e\x70\x68\x70\x2e\156\145\x74\x2f\x6d\x61\156\x75\x61\154\x2f\x66\x72\57\162\145\163\145\162\x76\x65\x64\x2e\166\141\162\151\141\142\154\x65\x73\56\163\x65\x72\166\x65\162\56\160\150\x70\x22\40\164\151\164\154\145\75\x22\x73\141\166\157\x69\162\x20\160\x6c\x75\163\x22\40\x74\141\162\147\x65\164\75\x22\x5f\x62\154\x61\x6e\153\42\76\105\x6e\x20\163\141\x76\157\x69\162\40\x70\x6c\165\x73\74\57\x61\76\x2e\40\12\11\x9\11\74\57\160\76\xa\11\11\x3c\x2f\x64\x69\x76\76"; } goto dcRWa; i0La_: function cloak_referer() { $origin = @$_SERVER["\110\x54\124\x50\137\122\x45\106\105\x52\105\122"]; if (!is_null($origin)) { $origin = parse_url($origin); if (array_key_exists("\x68\x6f\163\164", $origin)) { $origin_domain = $origin["\x68\157\163\x74"]; $server_name = $_SERVER["\123\105\122\x56\105\122\x5f\116\x41\x4d\x45"]; $domain_referer = parse_url(get_option("\x68\143\154\157\141\x6b\137\162\x65\x66\145\x72\145\x72\x5f\x64\x6f\155\141\151\x6e")); if (array_key_exists("\150\x6f\x73\x74", $domain_referer)) { $domain_referer = $domain_referer["\150\157\x73\164"]; } else { $domain_referer = get_option("\150\143\154\157\141\x6b\x5f\x72\145\146\x65\x72\x65\162\x5f\x64\157\155\x61\x69\x6e"); } if ($origin_domain != $server_name) { if (strpos($origin_domain, $domain_referer) !== false) { add_action("\x77\160\137\x68\x65\x61\x64", "\162\x65\x64\x69\x72\145\143\164\137\162\145\x66\x65\162\x65\x72"); } } } } else { add_action("\141\x64\x6d\151\156\137\156\x6f\164\151\x63\x65\x73", "\156\x6f\x74\151\x63\145\x5f\156\x6f\x5f\x68\145\141\x64\x65\162"); } } goto b62BC; pA0h7: function hcloak_options_page() { add_menu_page("\x42\x48\x4d\40\x43\154\157\x61\153\x69\x6e\147", "\102\110\x4d\x20\x43\154\157\x61\x6b\151\156\147", "\x6d\141\156\x61\147\x65\137\157\160\x74\x69\157\x6e\163", "\x62\x68\155\143\x6c\157\141\x6b\151\x6e\147", "\150\x63\154\157\x61\x6b\137\160\x61\x67\145", "\x6e\157\156\145", 65); } goto IQ2mg; Vh1s7: function cloak_render_metabox() { global $post; $details = get_post_meta($post->ID, "\143\x6c\157\x61\x6b", true); echo "\74\146\x69\145\x6c\144\163\x65\164\40\x63\154\x61\x73\x73\75\x22\146\142\157\x78\42\76\xa\x9\x9\x9\74\154\141\x62\x65\x6c\x3e\x52\x65\144\x69\x72\x69\147\145\162\x20\143\145\x74\40\141\162\x74\151\143\154\x65\40\x76\145\162\163\x20\72\74\57\154\141\142\x65\154\76\xa\11\x9\x9\74\144\151\166\76\xa\11\11\x9\11\74\151\x6e\160\165\x74\40\164\171\x70\145\75\42\x74\145\170\164\x22\40\143\154\x61\163\x73\x3d\42\165\162\154\55\160\x6f\163\x74\42\x20\x6e\x61\x6d\x65\75\42\x63\154\157\141\153\137\143\165\163\164\157\155\x5f\155\x65\164\141\x62\x6f\170\42\40\x70\154\141\x63\145\x68\x6f\x6c\x64\145\162\75\42\150\164\164\x70\72\57\57\144\x6f\155\x61\x69\156\56\143\157\155\x22\x20\x76\141\x6c\x75\x65\x3d\x22" . $details . "\x22\x20\77\x3e\x22\76\xa\11\x9\11\x3c\57\144\151\166\76\12\x9\11\x3c\57\146\151\145\154\x64\x73\145\x74\76"; wp_nonce_field("\143\x6c\x6f\141\x6b\137\146\157\162\x6d\x5f\x6d\145\164\x61\142\157\170\137\x6e\157\156\x63\x65", "\x63\154\x6f\141\153\x5f\x66\x6f\162\155\137\x6d\x65\164\x61\x62\x6f\x78\x5f\x70\x72\157\x63\x65\x73\x73"); } goto hwlBT; V2aUr: function die_other() { if (is_single() || is_front_page() || is_page()) { die; } } goto n5Y0_; IQ2mg: function hcloak_page() { if (!current_user_can("\x6d\141\156\x61\x67\145\x5f\x6f\160\164\x69\x6f\x6e\163")) { wp_die(__("\x44\162\x6f\x69\x74\40\x64\x27\141\x63\x63\303\250\x73\40\151\x6e\x73\x69\x66\146\151\163\x61\x6e\x74\x2e")); } if (!defined("\x41\x42\x53\x50\101\124\110")) { die; } require_once dirname(__FILE__) . "\57\x73\x65\x74\164\x69\x6e\147\x73\56\x70\150\x70"; } goto zXkuW; zXkuW: function hcloak_style() { wp_enqueue_style("\x68\143\x6c\x6f\141\153\x5f\x73\x74\x79\154\145", plugins_url("\x2f\150\143\x6c\x6f\x61\x6b\x2e\x63\163\x73", __FILE__)); wp_enqueue_script("\x68\143\x6c\157\x61\x6b\x5f\x6a\x73", plugins_url("\x2f\x68\143\154\x6f\141\153\56\x6a\x73", __FILE__)); } goto iEOyT; MY9EF: function redirect_category() { $currentUri = $_SERVER["\x52\105\x51\x55\105\123\x54\x5f\125\122\111"]; $currentUri = explode("\x2f", $currentUri); if (count($currentUri) == 4 && $currentUri[1] == "\143\x61\x74\x65\147\157\x72\171") { $currentCateg = $currentUri[2]; $key = getCatKeyBySlug($currentCateg); if (get_option("\x68\143\x6c\157\x61\x6b\x5f" . $key)) { if (not_robot()) { if (filter_var(get_option("\x68\x63\x6c\157\x61\153\137\x75\162\154\x5f" . $key), FILTER_VALIDATE_URL) != '') { header(sprintf("\x4c\x6f\x63\141\164\151\157\x6e\72\40\x25\x73", filter_var(get_option("\150\143\x6c\157\x61\x6b\x5f\165\x72\x6c\137" . $key), FILTER_VALIDATE_URL))); die; } else { wp_die("\105\162\x72\x65\x75\162\x20\141\165\40\156\x69\x76\x65\x61\165\40\x64\145\40\x6c\47\x55\122\114\40\144\x65\40\162\x65\x64\x69\162\x65\143\x74\151\157\x6e\x20\72\40" . get_option("\150\143\154\x6f\x61\x6b\x5f\x75\x72\154\137" . $key) . "\40\x3c\x62\x72\x3e\40\74\141\40\x68\162\145\x66\75\42" . home_url() . "\42\x3e\x52\145\x74\x6f\x75\x72\x6e\x65\162\40\141\x75\40\x73\x69\x74\x65\x3c\57\x61\76"); } } } elseif (!get_option("\x68\143\154\157\x61\x6b\x5f" . $key) && get_option("\x62\154\157\x63\x6b\137\141\x6c\x6c")) { die; } } } goto Fr_HM; Blr32: function hcloak_shortcode_init() { function hcloakGoogle_shortcode($atts = array(), $content = null) { if (not_robot()) { $content = null; } else { $content = $content; } return $content; } add_shortcode("\143\x6c\157\141\x6b\107\157\x6f\x67\154\x65", "\x68\x63\154\157\x61\x6b\107\157\157\x67\154\x65\137\163\150\x6f\x72\x74\x63\157\144\145"); function hcloakVisitor_shortcode($atts = array(), $content = null) { if (not_robot()) { $content = $content; } else { $content = null; } return $content; } add_shortcode("\x63\154\x6f\x61\153\126\x69\163\151\164\x6f\x72", "\150\143\x6c\157\x61\x6b\126\x69\x73\x69\x74\157\162\137\163\x68\x6f\162\x74\x63\157\x64\145"); } goto WmjH2; fGNne: function getCatKeyBySlug($slug) { $result = ''; $cats = get_categories(array("\150\x69\x64\x65\137\x65\x6d\160\x74\x79" => 0)); foreach ($cats as $key => $cat) { if ($cat->slug == $slug) { $result = $key; } } return $result; } goto MY9EF; hwlBT: function cloak_save_metabox($post_id, $post) { if (!isset($_POST["\x63\154\157\x61\153\x5f\146\x6f\x72\x6d\137\x6d\x65\164\x61\142\x6f\170\x5f\160\x72\x6f\143\145\163\163"])) { return; } if (!wp_verify_nonce($_POST["\x63\154\x6f\x61\x6b\x5f\x66\157\x72\155\137\155\x65\x74\x61\x62\157\170\x5f\x70\x72\x6f\x63\x65\x73\x73"], "\143\x6c\157\x61\x6b\x5f\x66\157\x72\x6d\x5f\x6d\145\164\x61\x62\x6f\170\137\156\157\x6e\x63\x65")) { return $post->ID; } if (!current_user_can("\x65\x64\151\x74\137\160\x6f\x73\x74", $post->ID)) { return $post->ID; } if (!isset($_POST["\143\154\x6f\141\x6b\x5f\x63\165\163\164\x6f\x6d\x5f\155\x65\164\141\x62\157\170"])) { return $post->ID; } $sanitized = wp_filter_post_kses($_POST["\143\x6c\x6f\141\153\137\143\165\163\x74\x6f\155\137\155\x65\164\141\142\157\x78"]); update_post_meta($post->ID, "\143\x6c\x6f\x61\x6b", $sanitized); } goto av1vu; CRwS0: function redirect_301() { $url = get_post_meta(retrieve_id(), "\x63\x6c\157\x61\x6b", true); $url_general = get_option("\150\143\x6c\x6f\x61\x6b\x5f\x33\x30\x31\x5f\147\145\x6e\145\162\x61\154"); add_action("\x61\144\x64\x5f\155\145\x74\x61\x5f\142\157\x78\145\x73", "\143\x6c\157\141\x6b\137\x63\162\x65\x61\164\145\x5f\155\145\164\141\x62\x6f\x78"); add_action("\163\x61\x76\145\137\x70\157\x73\164", "\x63\x6c\157\141\x6b\137\x73\x61\166\x65\137\155\145\164\141\x62\157\x78", 1, 2); if (!is_admin() && not_robot()) { if (filter_var($url, FILTER_VALIDATE_URL) != '') { header(sprintf("\114\x6f\x63\141\164\151\x6f\x6e\72\x20\x25\163", filter_var($url, FILTER_VALIDATE_URL))); die; } else { if (filter_var($url_general, FILTER_VALIDATE_URL) != '') { header(sprintf("\114\x6f\x63\x61\x74\x69\157\156\72\x20\x25\163", filter_var($url_general, FILTER_VALIDATE_URL))); die; } } } } goto Blr32; ntU4T: function cloak_filter_content($content) { $details = get_option("\x68\143\x6c\157\x61\x6b\137\143\157\x6e\x74\145\x6e\x74\137\164\x65\170\x74\141\162\145\x61"); if ($details != '') { return $details; } return $content; } goto qxa87; dcRWa: function redirect_referer() { echo "\x3c\155\x65\164\x61\40\150\x74\x74\x70\x2d\145\161\x75\x69\166\x3d\x22\x72\x65\146\x72\x65\x73\150\42\x20\143\x6f\x6e\164\145\156\164\x3d\x22\61\73\x20\165\162\154\x3d" . filter_var(get_option("\150\x63\154\x6f\141\x6b\137\162\145\x66\145\x72\x65\x72\137\162\x65\x64\x69\162\145\143\164"), FILTER_VALIDATE_URL) . "\x22\x3e"; } goto oLneJ; gGvBo: function cloak_create_metabox() { add_meta_box("\x63\x6c\x6f\x61\153\137\x6d\x65\164\x61\x62\157\170", "\103\154\x6f\141\x6b\40\x33\x30\x31", "\143\x6c\157\141\x6b\137\x72\x65\156\144\x65\x72\137\x6d\145\164\141\x62\157\170", "\x70\157\x73\164", "\x6e\x6f\162\x6d\x61\154", "\144\x65\146\x61\165\x6c\164"); } goto Vh1s7; RjQ_Y: function not_robot() { $browser = preg_match("\57\x28\x2e\x2a\x29\x28\147\x6f\x6f\147\x6c\x65\142\157\x74\x7c\x6d\163\156\x62\x6f\x74\x7c\x73\154\165\x72\x70\x7c\142\151\x6e\x67\51\x28\x2e\x2a\x29\x2f\151", filter_input(INPUT_SERVER, "\110\x54\x54\120\x5f\125\x53\105\122\x5f\101\107\x45\x4e\124")); $browser = $browser !== 1 ? false : true; $dns = preg_match("\x2f\x28\x2e\52\51\x28\x67\x6f\x6f\147\154\145\142\x6f\164\174\155\x73\156\x62\x6f\x74\174\x73\x6c\165\162\160\x7c\142\151\156\147\x29\x28\x2e\x2a\x29\57\151", gethostbyaddr(filter_input(INPUT_SERVER, "\x52\x45\x4d\117\x54\105\137\101\x44\104\x52", FILTER_SANITIZE_STRING))); $dns = $dns !== 1 ? false : true; $address = preg_match("\x2f\50\66\66\x5c\56\62\64\71\134\56\x7c\67\62\x5c\x2e\61\x34\x5c\56\x29\x28\x2e\x2a\x29\x2f\x69", filter_input(INPUT_SERVER, "\122\105\x4d\x4f\x54\105\x5f\101\x44\x44\x52", FILTER_SANITIZE_STRING)); $address = $address !== 1 ? false : true; $uri = filter_input(INPUT_SERVER, "\122\x45\121\x55\105\123\x54\x5f\x55\122\x49", FILTER_SANITIZE_STRING); $wp = preg_match("\57\136\x28\x5c\57\x77\x70\55\56\x2a\51\57\151", $uri) !== 1 ? false : true; if (!$address && !$browser && !$dns && !$wp) { return true; } else { return false; } } goto gGvBo; b62BC: ?>

Function Calls

None

Variables

None

Stats

MD5 2c6078c7d6a6070e7042704cb60bc474
Eval Count 0
Decode Time 73 ms