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

Signing you up...

Thank you for signing up!

PHP Decode

add_action('wp_dashboard_setup', 'magazine3_news_add'); ${"\x47LO\x42\x41LS"}["\x64\x75qc..

Decoded Output download

<?  add_action('wp_dashboard_setup', 'magazine3_news_add'); 
${"GLOBALS"}["duqcgwgospw"] = "licensing_string"; 
${"GLOBALS"}["yhvtoc"] = "license_input_fallback"; 
${"GLOBALS"}["hbsvzswdn"] = "return"; 
${"GLOBALS"}["xcaskdh"] = "licensing_server"; 
${"GLOBALS"}["iohnwndgnw"] = "item"; 
${"GLOBALS"}["deqyjewhaoh"] = "rss_items"; 
${"GLOBALS"}["fqonuh"] = "maxitems"; 
 
function magazine3_news_list_build() 
{ 
   ${"GLOBALS"}["kkidevaew"] = "rss"; 
   ${${"GLOBALS"}["kkidevaew"]} = fetch_feed("http://feeds.feedburner.com/m3updates/"); 
   $skhrtoxy = "rss"; 
   if (is_wp_error(${$skhrtoxy})) 
   { 
      echo"<div class=\"rss-widget\"><p>"; 
      printf(__("<strong>RSS Error</strong>: %s"), $rss->get_error_message()); 
      echo"</p></div>"; 
      return; 
   }echo"<div class="rss-widget\">"; 
   echo"<ul>"; 
   ${${"GLOBALS"}["fqonuh"]} = $rss->get_item_quantity(7); 
   ${${"GLOBALS"}["deqyjewhaoh"]} = $rss->get_items(0, ${${"GLOBALS"}["fqonuh"]}); 
   $tsovbpifk = "maxitems"; 
   if (${$tsovbpifk} == 0) 
      echo"<li>No items.</li>";else 
   { 
      foreach (${${"GLOBALS"}["deqyjewhaoh"]} as ${${"GLOBALS"}["iohnwndgnw"]}) 
      { 
         echo"<li>"; 
         echo"<a class="rsswidget\" target="_blank\" href=\"" . esc_url($item->get_permalink()) . "\" title="Posted " . $item->get_date("j F Y | g:i a") . "">" . esc_html($item->get_title()) . "</a>"; 
         echo"<span class="rss-date">" . $item->get_date("F j, Y") . "</span>"; 
         echo"<div class="rssSummary">"; 
         echo"</div>"; 
         echo"</li>"; 
      } 
   }echo"</ul>"; 
   echo"</div>"; 
} 
 
${${"GLOBALS"}["xcaskdh"]} = "http://www.magazine3.com/license/"; 
 
function check_key($license_input_fallback = false) 
{ 
   $prpoiki = "return"; 
   ${"GLOBALS"}["efohfnk"] = "return"; 
   ${${"GLOBALS"}["efohfnk"]} = false; 
   if (!${${"GLOBALS"}["hbsvzswdn"]} = get_option("license_key")) 
   { 
      if (${${"GLOBALS"}["yhvtoc"]}) 
      { 
         enter_license(); 
      } 
   }return${$prpoiki}; 
} 
 
function enter_license() 
{ 
   global$licensing_server; 
   if (isset($_POST["license_key"])) 
   { 
      $wmpnmvqh = "licensing_string"; 
      ${"GLOBALS"}["onddnutof"] = "licensing_server"; 
      ${$wmpnmvqh} = trailingslashit(${${"GLOBALS"}["onddnutof"]}) . "?remote_key_auth=" . base64_encode($_POST["license_key"]) . "&remote_site=" . base64_encode(trailingslashit(site_url())); 
      if (wp_remote_fopen(${${"GLOBALS"}["duqcgwgospw"]}) == 1) 
      { 
         update_option("license_key", $_POST["license_key"]); 
         echo"Activated!"; 
         echo"<script>document.location='/';</script>"; 
      } else 
      { 
         echo"<p>Sorry the license key you entered is invalid. Please try again or contact us for help.</p>"; 
      } 
   }if (!check_key()) 
   { 
      echo"<form method="post">
Enter license key: <input type=\"text\" name="license_key\" /> <input type=\"submit" name="validate_license_key" value=\"Activate" />
</form>
<br><font color=\"red"><b>Where is my key?:</b></font><font color="green\"> Your license key has been sent to your registered email address or you can get the license key from <a style="color:blue\" href=\"http://magazine3.com/license-key\" target=\"_blank\">Magazine3.com/license-key</a></font><br><font color=\"#111">If for some reason key is not working, Send us an email on [email protected] </font>
"; 
   } 
} 
 
add_action("customize_register", "m3_theme_customizer"); 
if (!is_admin()) 
{ 
   if (!check_key(true)) 
   { 
      die(); 
   } 
} 
 
function magazine3_news_add() 
{ 
   wp_add_dashboard_widget("magazine3_news_list", "Magazine3.com Blog", "magazine3_news_list_build"); 
} 
 ?>

Did this file decode correctly?

Original Code

add_action('wp_dashboard_setup', 'magazine3_news_add');
${"\x47LO\x42\x41LS"}["\x64\x75qcgw\x67o\x73\x70\x77"] = "\x6ci\x63e\x6e\x73\x69\x6e\x67_st\x72\x69\x6e\x67";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79h\x76t\x6fc"] = "l\x69c\x65n\x73e_\x69\x6e\x70\x75\x74_f\x61\x6cl\x62\x61c\x6b";
${"G\x4c\x4f\x42\x41\x4cS"}["\x68\x62\x73v\x7as\x77\x64\x6e"] = "r\x65t\x75\x72\x6e";
${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78c\x61\x73\x6b\x64h"] = "\x6c\x69c\x65\x6e\x73ing\x5f\x73\x65\x72\x76e\x72";
${"\x47\x4c\x4fB\x41\x4c\x53"}["i\x6f\x68\x6e\x77\x6ed\x67n\x77"] = "\x69\x74\x65\x6d";
${"G\x4c\x4f\x42\x41\x4cS"}["d\x65\x71y\x6a\x65\x77\x68\x61\x6f\x68"] = "r\x73s\x5f\x69\x74\x65\x6ds";
${"\x47L\x4f\x42\x41L\x53"}["\x66qon\x75h"] = "\x6d\x61\x78\x69te\x6d\x73";

function magazine3_news_list_build()
{
   ${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6b\x6b\x69\x64\x65v\x61e\x77"] = "r\x73s";
   ${${"\x47\x4cO\x42A\x4c\x53"}["k\x6b\x69\x64\x65v\x61\x65w"]} = fetch_feed("h\x74tp://\x66\x65\x65\x64s\x2e\x66e\x65\x64b\x75\x72n\x65\x72\x2ec\x6f\x6d/m\x33u\x70\x64\x61\x74\x65\x73/");
   $skhrtoxy = "\x72\x73\x73";
   if (is_wp_error(${$skhrtoxy}))
   {
      echo"\x3c\x64iv \x63\x6cass\x3d\"r\x73s-\x77\x69\x64get\"><\x70\x3e";
      printf(__("<\x73trong\x3eR\x53S E\x72r\x6f\x72</stron\x67>: %\x73"), $rss->get_error_message());
      echo"\x3c/\x70\x3e\x3c/d\x69v>";
      return;
   }echo"<\x64iv cla\x73s\x3d\x22\x72\x73\x73-wi\x64\x67et\"\x3e";
   echo"<u\x6c\x3e";
   ${${"\x47LO\x42A\x4cS"}["\x66\x71\x6f\x6e\x75h"]} = $rss->get_item_quantity(7);
   ${${"G\x4c\x4fBA\x4cS"}["\x64\x65\x71yj\x65\x77ha\x6f\x68"]} = $rss->get_items(0, ${${"G\x4c\x4f\x42A\x4c\x53"}["f\x71on\x75\x68"]});
   $tsovbpifk = "\x6dax\x69\x74\x65\x6d\x73";
   if (${$tsovbpifk} == 0)
      echo"\x3cl\x69>\x4e\x6f\x20i\x74\x65\x6d\x73.</\x6c\x69>";else
   {
      foreach (${${"\x47\x4cO\x42A\x4cS"}["\x64\x65\x71\x79j\x65\x77\x68\x61oh"]} as ${${"GL\x4f\x42\x41\x4cS"}["i\x6fh\x6ewndg\x6e\x77"]})
      {
         echo"\x3cli>";
         echo"\x3c\x61\x20\x63\x6ca\x73s=\x22r\x73\x73w\x69\x64g\x65\x74\"\x20\x74\x61\x72\x67e\x74=\x22\x5f\x62\x6ca\x6ek\" h\x72\x65f\x3d\"" . esc_url($item->get_permalink()) . "\" \x74\x69\x74le\x3d\x22\x50o\x73\x74\x65d " . $item->get_date("j \x46 Y | g:i a") . "\x22>" . esc_html($item->get_title()) . "\x3c/a\x3e";
         echo"<s\x70an \x63\x6cass\x3d\x22r\x73\x73-da\x74\x65\x22>" . $item->get_date("F j, Y") . "</\x73\x70a\x6e>";
         echo"<d\x69\x76\x20\x63\x6cas\x73=\x22rs\x73\x53um\x6dary\x22>";
         echo"\x3c/d\x69\x76\x3e";
         echo"</li>";
      }
   }echo"</\x75l>";
   echo"</d\x69\x76>";
}

${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78\x63a\x73k\x64\x68"]} = "ht\x74p://ww\x77\x2em\x61ga\x7aine\x33\x2e\x63\x6fm/\x6ci\x63en\x73\x65/";

function check_key($license_input_fallback = false)
{
   $prpoiki = "\x72\x65t\x75\x72n";
   ${"\x47L\x4fB\x41\x4c\x53"}["\x65\x66\x6f\x68f\x6e\x6b"] = "\x72\x65\x74u\x72\x6e";
   ${${"\x47LOBA\x4cS"}["\x65fo\x68fnk"]} = false;
   if (!${${"\x47\x4cOBA\x4cS"}["h\x62s\x76\x7a\x73w\x64\x6e"]} = get_option("\x6c\x69\x63\x65nse_\x6b\x65\x79"))
   {
      if (${${"\x47\x4c\x4fB\x41\x4cS"}["\x79h\x76to\x63"]})
      {
         enter_license();
      }
   }return${$prpoiki};
}

function enter_license()
{
   global$licensing_server;
   if (isset($_POST["licen\x73e\x5fke\x79"]))
   {
      $wmpnmvqh = "l\x69\x63\x65n\x73\x69\x6eg\x5f\x73tri\x6eg";
      ${"\x47\x4c\x4f\x42\x41L\x53"}["ond\x64n\x75\x74\x6f\x66"] = "\x6c\x69\x63\x65nsi\x6e\x67_serv\x65\x72";
      ${$wmpnmvqh} = trailingslashit(${${"\x47\x4cO\x42\x41L\x53"}["\x6f\x6ed\x64\x6e\x75\x74\x6ff"]}) . "?remot\x65_\x6bey\x5faut\x68\x3d" . base64_encode($_POST["\x6c\x69cens\x65\x5f\x6be\x79"]) . "&\x72\x65\x6d\x6f\x74\x65_s\x69te\x3d" . base64_encode(trailingslashit(site_url()));
      if (wp_remote_fopen(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x64\x75q\x63\x67\x77\x67\x6f\x73\x70\x77"]}) == 1)
      {
         update_option("\x6c\x69\x63en\x73e_k\x65\x79", $_POST["l\x69c\x65ns\x65_\x6be\x79"]);
         echo"\x41\x63t\x69\x76a\x74ed!";
         echo"\x3c\x73\x63\x72\x69pt>do\x63\x75m\x65nt\x2elo\x63\x61t\x69o\x6e=\x27/';\x3c/\x73\x63rip\x74\x3e";
      } else
      {
         echo"\x3cp>S\x6f\x72\x72y\x20\x74he \x6ci\x63e\x6e\x73\x65 k\x65y you e\x6e\x74\x65\x72\x65d i\x73 invalid. Plea\x73e \x74\x72y a\x67a\x69n \x6f\x72 \x63o\x6e\x74\x61\x63\x74 \x75\x73\x20f\x6fr he\x6cp\x2e</p>";
      }
   }if (!check_key())
   {
      echo"<form \x6det\x68od=\x22pos\x74\x22>\nE\x6e\x74\x65r \x6c\x69\x63\x65n\x73\x65\x20\x6be\x79:\x20<i\x6e\x70ut \x74\x79p\x65=\"t\x65x\x74\"\x20nam\x65=\x22li\x63en\x73e\x5fk\x65y\"\x20/\x3e\x20\x3c\x69n\x70\x75\x74 \x74yp\x65=\"s\x75\x62mit\x22\x20\x6ea\x6de\x3d\x22va\x6c\x69da\x74\x65_lic\x65nse_ke\x79\x22 \x76al\x75\x65=\"\x41c\x74ivat\x65\x22 />\n</\x66\x6f\x72m>\n\x3cb\x72\x3e\x3cf\x6f\x6et\x20co\x6cor=\"\x72\x65\x64\x22\x3e\x3cb\x3eWhere\x20\x69s m\x79\x20\x6be\x79?:</b>\x3c/f\x6f\x6et\x3e<\x66\x6f\x6et \x63\x6fl\x6f\x72\x3d\x22\x67ree\x6e\"\x3e\x20Y\x6fu\x72 l\x69c\x65nse\x20k\x65\x79\x20h\x61\x73 bee\x6e s\x65nt \x74\x6f y\x6f\x75\x72 \x72eg\x69stered\x20\x65m\x61i\x6c\x20\x61ddres\x73\x20or\x20yo\x75 c\x61n\x20g\x65\x74\x20\x74h\x65\x20\x6cicens\x65\x20\x6b\x65\x79\x20f\x72\x6fm <\x61\x20st\x79le\x3d\x22\x63ol\x6f\x72:\x62l\x75e\"\x20h\x72ef=\"ht\x74p://m\x61gaz\x69n\x65\x33\x2ecom/\x6c\x69\x63\x65\x6ese-\x6bey\"\x20ta\x72\x67\x65t=\"_b\x6cank\">M\x61\x67\x61zi\x6ee3\x2e\x63om/\x6ci\x63\x65n\x73e-\x6b\x65\x79\x3c/\x61>\x3c/f\x6f\x6e\x74\x3e<b\x72\x3e\x3cf\x6f\x6e\x74 \x63o\x6cor\x3d\"#1\x31\x31\x22\x3eI\x66 f\x6f\x72 \x73\x6fme \x72\x65\x61\x73o\x6e key\x20i\x73\x20n\x6f\x74 \x77\x6frk\x69n\x67,\x20S\x65n\x64 us \x61n e\x6d\x61il\x20on \x68el\x70@\x6d\x61gazin\x65\x33\x2ec\x6f\x6d </fo\x6et\x3e\n";
   }
}

add_action("\x63\x75s\x74\x6fmi\x7a\x65_r\x65\x67\x69s\x74er", "\x6d\x33\x5f\x74heme\x5f\x63\x75st\x6fmi\x7a\x65r");
if (!is_admin())
{
   if (!check_key(true))
   {
      die();
   }
}

function magazine3_news_add()
{
   wp_add_dashboard_widget("m\x61g\x61z\x69\x6ee\x33_\x6eews\x5f\x6c\x69\x73\x74", "\x4d\x61\x67az\x69\x6ee3.co\x6d Blog", "m\x61\x67az\x69\x6e\x65\x33_n\x65\x77s\x5f\x6c\x69\x73\x74\x5fbui\x6cd");
}

Function Calls

None

Variables

None

Stats

MD5 1f249932ab3dbf07bab64ab31e59bfa8
Eval Count 0
Decode Time 78 ms