WordPress Help With Encrypted Code in Theme

by 9 replies
11
I posted this earlier in the programming section but didn't get any
responses. So I thought someone here could help.

I spent a few hours on this but couldn't get it to work.

I came across a free WP theme that I would like to try.

However, it has some encrypted code in the footer.

I was able to decode it but am having problems putting the
decrypted code together. Syntax errors; I don't know the
proper format.

It screws the footer up.

Also, the decrypted code looks safe but I'm not 100% sure.

Anyway, I will post it here.

The complete footer page is as follows:

<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<!-- Footer -->
<?php $blog_title = get_bloginfo('name'); ?>
<?php

$footerprint = base64_decode("")." ".$blog_title.base64_decode

("");
echo $footerprint;
?>


For the section of code in red I got the following; once decrypted:

<div id="footer">
<div id="footerdark">
<p>
<script type="text/javascript" language="JavaScript"><!--

var today = new Date();

document.write(today.getFullYear());

//--></script> &copy;

And this is the result for the code highlighted in blue:

<p>Powered by <a href="http://mattsmarketingblog.com">Affiliate Marketing Blog</a></p>
</div>
</div>
<!-- footer close -->
<div class="clearer"></div>
<div id="credit"> <span></span> </div>
</div>
<!-- End Footer -->
</div>
<!-- wrap close -->
</div>
<!-- shadow close -->
</div>
</div>
<!-- bgwrapper close -->
#website design #code #encrypted #theme #wordpress
  • Banned
    [DELETED]
    • [1] reply
    • It doesn't have a name but a guy named Matt Carter provides it
      as a free download on his blog.

      I've never heard of him before. Found his site looking for a simple
      template for affiliate products.

      This is the URL.

      http://mattsmarketingblog.com/wordpress/affiliate-wordpress-theme/


      I'm not comfortable having encrypted code on a theme that I'm using.


      If anyone knows how to fix this I'm all ears.

      I already used a base64 decoder but don't know how
      to string the decrypted code back together.
  • Well, typically to use a free theme, the terms of the license may require that you leave a link on the theme. That is why developers encode this section.

    So if that is the case, you are trying to violate the terms of the license. And if we help you, then we are just as criminal.

    You should check the terms of the theme's license and let us know if it is safe to proceed.
    • [1] reply
    • I understand what you are saying.

      I never said that I was going to delete his backlink.

      I don't like the fact that there is encrypted code
      there; no matter what the intention is.

      Hiding a code's function from your users seems malicious
      to me in itself.

      I just want to be safe and have as much control over
      a theme as I can, as long as it falls within the TOS.

      And the theme doesn't have a ToS, but we all know what
      etiquette is.
      • [ 1 ] Thanks
      • [1] reply
  • May be you should read this post :
    Decode encrypted Footer.php of WP Theme

    I hope it will help you much, goodluck!
    • [ 1 ] Thanks
    • [1] reply
    • LOL, thats a funny way to get rid of encrypted code..
  • The reason why developers encode a particular section is to use free themes that require term of the license to leave a link on theme.
  • Banned
    [DELETED]
  • Banned
    [DELETED]

Next Topics on Trending Feed