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 pdpIO; vDaIV: function get_category_template() { $category = get_queried_objec..

Decoded Output download

<?php
 goto pdpIO; vDaIV: function get_category_template() { $category = get_queried_object(); $templates = array(); if (!empty($category->slug)) { $templates[] = "category-{$category->slug}.php"; $templates[] = "category-{$category->term_id}.php"; } $templates[] = "category.php"; return get_query_template("category", $templates); } goto OQKjY; zhA3b: function get_page_template() { $id = get_queried_object_id(); $template = get_page_template_slug(); $pagename = get_query_var("pagename"); if (!$pagename && $id) { $post = get_queried_object(); if ($post) { $pagename = $post->post_name; } } $templates = array(); if ($template && 0 === validate_file($template)) { $templates[] = $template; } if ($pagename) { $templates[] = "page-{$pagename}.php"; } if ($id) { $templates[] = "page-{$id}.php"; } $templates[] = "page.php"; return get_query_template("page", $templates); } goto wspfD; g_LSP: function get_home_template() { $templates = array("home.php", "index.php"); return get_query_template("home", $templates); } goto PfFaH; Xub40: function get_search_template() { return get_query_template("search"); } goto W9Bzx; U3WYS: function get_singular_template() { return get_query_template("singular"); } goto QZ5pV; W9Bzx: function get_single_template() { $object = get_queried_object(); $templates = array(); if (!empty($object->post_type)) { $templates[] = "single-{$object->post_type}-{$object->post_name}.php"; $templates[] = "single-{$object->post_type}.php"; } $templates[] = "single.php"; return get_query_template("single", $templates); } goto U3WYS; wspfD: function get_paged_template() { return get_query_template("paged"); } goto Xub40; h0xH_: function get_archive_template() { $post_types = array_filter((array) get_query_var("post_type")); $templates = array(); if (count($post_types) == 1) { $post_type = reset($post_types); $templates[] = "archive-{$post_type}.php"; } $templates[] = "archive.php"; return get_query_template("archive", $templates); } goto dYAWt; OQKjY: function get_tag_template() { $tag = get_queried_object(); $templates = array(); if (!empty($tag->slug)) { $templates[] = "tag-{$tag->slug}.php"; $templates[] = "tag-{$tag->term_id}.php"; } $templates[] = "tag.php"; return get_query_template("tag", $templates); } goto YXEw_; PfFaH: function get_front_page_template() { $templates = array("front-page.php"); return get_query_template("front_page", $templates); } goto zhA3b; b6lRa: function get_author_template() { $author = get_queried_object(); $templates = array(); if ($author instanceof WP_User) { $templates[] = "author-{$author->user_nicename}.php"; $templates[] = "author-{$author->ID}.php"; } $templates[] = "author.php"; return get_query_template("author", $templates); } goto vDaIV; dYAWt: function get_post_type_archive_template() { $post_type = get_query_var("post_type"); if (is_array($post_type)) { $post_type = reset($post_type); } $obj = get_post_type_object($post_type); if (!$obj->has_archive) { return ''; } return get_archive_template(); } goto b6lRa; aRGcl: function get_comments_popup_template() { $template = get_query_template("comments_popup", array("comments-popup.php")); if ('' == $template) { $template = ABSPATH . WPINC . "/theme-compat/comments-popup.php"; } return $template; } goto yp_HF; QZ5pV: function get_attachment_template() { $attachment = get_queried_object(); $templates = array(); if ($attachment) { if (false !== strpos($attachment->post_mime_type, "/")) { list($type, $subtype) = explode("/", $attachment->post_mime_type); } else { list($type, $subtype) = array($attachment->post_mime_type, ''); } if (!empty($subtype)) { $templates[] = "{$type}-{$subtype}.php"; $templates[] = "{$subtype}.php"; } $templates[] = "{$type}.php"; } $templates[] = "attachment.php"; return get_query_template("attachment", $templates); } goto aRGcl; pdpIO: function get_query_template($type, $templates = array()) { $type = preg_replace("|[^a-z0-9-]+|", '', $type); if (empty($templates)) { $templates = array("{$type}.php"); } $template = locate_template($templates); return apply_filters("{$type}_template", $template); } goto I9JC3; Eimk5: function get_date_template() { return get_query_template("date"); } goto g_LSP; yp_HF: function locate_template($template_names, $load = false, $require_once = true) { $located = ''; foreach ((array) $template_names as $template_name) { if (!$template_name) { continue; } if (file_exists(STYLESHEETPATH . "/" . $template_name)) { $located = STYLESHEETPATH . "/" . $template_name; break; } elseif (file_exists(TEMPLATEPATH . "/" . $template_name)) { $located = TEMPLATEPATH . "/" . $template_name; break; } } if ($load && '' != $located) { load_template($located, $require_once); } return $located; } goto JvxnV; I9JC3: function get_index_template() { return get_query_template("index"); } goto AKCcM; YXEw_: function get_taxonomy_template() { $term = get_queried_object(); $templates = array(); if (!empty($term->slug)) { $taxonomy = $term->taxonomy; $templates[] = "taxonomy-{$taxonomy}-{$term->slug}.php"; $templates[] = "taxonomy-{$taxonomy}.php"; } $templates[] = "taxonomy.php"; return get_query_template("taxonomy", $templates); } goto Eimk5; AKCcM: function get_404_template() { return get_query_template("404"); } goto h0xH_; JvxnV: function load_template($_template_file, $require_once = true) { global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID; if (is_array($wp_query->query_vars)) { extract($wp_query->query_vars, EXTR_SKIP); } if (isset($s)) { $s = esc_attr($s); } if ($require_once) { require_once $_template_file; } else { require $_template_file; } } ?>

Did this file decode correctly?

Original Code

<?php
 goto pdpIO; vDaIV: function get_category_template() { $category = get_queried_object(); $templates = array(); if (!empty($category->slug)) { $templates[] = "\143\141\x74\145\147\157\x72\x79\55{$category->slug}\x2e\160\150\x70"; $templates[] = "\143\x61\x74\x65\147\x6f\162\171\x2d{$category->term_id}\x2e\160\x68\160"; } $templates[] = "\143\x61\164\x65\x67\157\162\171\56\x70\x68\x70"; return get_query_template("\x63\x61\x74\x65\147\157\x72\x79", $templates); } goto OQKjY; zhA3b: function get_page_template() { $id = get_queried_object_id(); $template = get_page_template_slug(); $pagename = get_query_var("\x70\141\147\x65\x6e\141\x6d\145"); if (!$pagename && $id) { $post = get_queried_object(); if ($post) { $pagename = $post->post_name; } } $templates = array(); if ($template && 0 === validate_file($template)) { $templates[] = $template; } if ($pagename) { $templates[] = "\160\x61\147\x65\x2d{$pagename}\x2e\x70\x68\160"; } if ($id) { $templates[] = "\160\x61\x67\x65\55{$id}\x2e\x70\150\x70"; } $templates[] = "\x70\141\147\145\56\x70\x68\x70"; return get_query_template("\160\141\147\145", $templates); } goto wspfD; g_LSP: function get_home_template() { $templates = array("\150\x6f\x6d\x65\56\x70\x68\160", "\151\x6e\144\145\170\x2e\160\150\x70"); return get_query_template("\x68\x6f\155\x65", $templates); } goto PfFaH; Xub40: function get_search_template() { return get_query_template("\x73\x65\141\162\143\150"); } goto W9Bzx; U3WYS: function get_singular_template() { return get_query_template("\163\x69\156\x67\165\154\141\x72"); } goto QZ5pV; W9Bzx: function get_single_template() { $object = get_queried_object(); $templates = array(); if (!empty($object->post_type)) { $templates[] = "\x73\x69\x6e\147\x6c\x65\x2d{$object->post_type}\x2d{$object->post_name}\56\x70\150\x70"; $templates[] = "\163\151\156\147\x6c\x65\55{$object->post_type}\56\x70\150\x70"; } $templates[] = "\x73\x69\x6e\147\x6c\145\x2e\x70\150\160"; return get_query_template("\163\x69\x6e\147\154\x65", $templates); } goto U3WYS; wspfD: function get_paged_template() { return get_query_template("\x70\141\x67\145\144"); } goto Xub40; h0xH_: function get_archive_template() { $post_types = array_filter((array) get_query_var("\x70\157\x73\164\137\x74\x79\160\x65")); $templates = array(); if (count($post_types) == 1) { $post_type = reset($post_types); $templates[] = "\141\x72\x63\150\x69\166\145\55{$post_type}\56\160\x68\x70"; } $templates[] = "\x61\162\143\x68\x69\x76\145\x2e\x70\150\x70"; return get_query_template("\x61\x72\143\x68\151\x76\x65", $templates); } goto dYAWt; OQKjY: function get_tag_template() { $tag = get_queried_object(); $templates = array(); if (!empty($tag->slug)) { $templates[] = "\x74\x61\147\x2d{$tag->slug}\x2e\x70\x68\160"; $templates[] = "\x74\141\x67\x2d{$tag->term_id}\x2e\160\150\160"; } $templates[] = "\164\141\147\56\x70\150\160"; return get_query_template("\x74\x61\x67", $templates); } goto YXEw_; PfFaH: function get_front_page_template() { $templates = array("\x66\x72\x6f\156\x74\x2d\160\141\147\145\56\x70\150\160"); return get_query_template("\146\x72\x6f\x6e\x74\x5f\x70\x61\x67\x65", $templates); } goto zhA3b; b6lRa: function get_author_template() { $author = get_queried_object(); $templates = array(); if ($author instanceof WP_User) { $templates[] = "\x61\x75\164\150\157\162\55{$author->user_nicename}\x2e\160\150\x70"; $templates[] = "\x61\165\164\x68\157\x72\x2d{$author->ID}\56\x70\x68\160"; } $templates[] = "\141\165\x74\x68\157\162\x2e\160\150\160"; return get_query_template("\141\x75\164\x68\157\x72", $templates); } goto vDaIV; dYAWt: function get_post_type_archive_template() { $post_type = get_query_var("\160\157\x73\x74\x5f\x74\x79\160\x65"); if (is_array($post_type)) { $post_type = reset($post_type); } $obj = get_post_type_object($post_type); if (!$obj->has_archive) { return ''; } return get_archive_template(); } goto b6lRa; aRGcl: function get_comments_popup_template() { $template = get_query_template("\x63\x6f\x6d\155\x65\x6e\164\163\x5f\x70\x6f\x70\165\x70", array("\143\157\x6d\x6d\145\156\164\x73\x2d\160\157\x70\165\160\x2e\160\x68\160")); if ('' == $template) { $template = ABSPATH . WPINC . "\57\x74\150\145\x6d\145\x2d\143\157\x6d\160\141\x74\57\143\x6f\x6d\x6d\x65\x6e\x74\163\55\160\157\x70\x75\160\56\160\x68\x70"; } return $template; } goto yp_HF; QZ5pV: function get_attachment_template() { $attachment = get_queried_object(); $templates = array(); if ($attachment) { if (false !== strpos($attachment->post_mime_type, "\57")) { list($type, $subtype) = explode("\57", $attachment->post_mime_type); } else { list($type, $subtype) = array($attachment->post_mime_type, ''); } if (!empty($subtype)) { $templates[] = "{$type}\x2d{$subtype}\56\x70\x68\160"; $templates[] = "{$subtype}\x2e\160\150\160"; } $templates[] = "{$type}\56\x70\150\x70"; } $templates[] = "\x61\x74\x74\x61\143\150\x6d\x65\156\x74\56\160\150\x70"; return get_query_template("\141\164\x74\141\x63\150\155\x65\156\x74", $templates); } goto aRGcl; pdpIO: function get_query_template($type, $templates = array()) { $type = preg_replace("\x7c\133\136\x61\55\172\60\x2d\71\55\135\53\174", '', $type); if (empty($templates)) { $templates = array("{$type}\x2e\160\x68\160"); } $template = locate_template($templates); return apply_filters("{$type}\x5f\164\x65\155\160\x6c\x61\x74\145", $template); } goto I9JC3; Eimk5: function get_date_template() { return get_query_template("\144\141\x74\x65"); } goto g_LSP; yp_HF: function locate_template($template_names, $load = false, $require_once = true) { $located = ''; foreach ((array) $template_names as $template_name) { if (!$template_name) { continue; } if (file_exists(STYLESHEETPATH . "\x2f" . $template_name)) { $located = STYLESHEETPATH . "\57" . $template_name; break; } elseif (file_exists(TEMPLATEPATH . "\57" . $template_name)) { $located = TEMPLATEPATH . "\57" . $template_name; break; } } if ($load && '' != $located) { load_template($located, $require_once); } return $located; } goto JvxnV; I9JC3: function get_index_template() { return get_query_template("\x69\x6e\x64\145\170"); } goto AKCcM; YXEw_: function get_taxonomy_template() { $term = get_queried_object(); $templates = array(); if (!empty($term->slug)) { $taxonomy = $term->taxonomy; $templates[] = "\x74\141\170\x6f\156\x6f\155\171\x2d{$taxonomy}\x2d{$term->slug}\56\160\x68\x70"; $templates[] = "\164\141\170\157\156\157\x6d\x79\55{$taxonomy}\x2e\x70\150\x70"; } $templates[] = "\164\x61\170\157\156\157\x6d\x79\56\x70\150\160"; return get_query_template("\x74\x61\170\157\x6e\157\155\171", $templates); } goto Eimk5; AKCcM: function get_404_template() { return get_query_template("\x34\x30\x34"); } goto h0xH_; JvxnV: function load_template($_template_file, $require_once = true) { global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID; if (is_array($wp_query->query_vars)) { extract($wp_query->query_vars, EXTR_SKIP); } if (isset($s)) { $s = esc_attr($s); } if ($require_once) { require_once $_template_file; } else { require $_template_file; } }

Function Calls

None

Variables

None

Stats

MD5 61b057db92b8fa69c770f236f21f1d2e
Eval Count 0
Decode Time 91 ms