WordPress Help With Encrypted Code in Theme
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("PGRpdiBpZD0iZm9vdGVyIj4KICA8ZGl2IGlkPSJmb290ZXJkYX JrIj4KICAgIDxwPgogICAgICA8c2NyaXB0IHR5cGU9InRleHQv amF2YXNjcmlwdCIgbGFuZ3VhZ2U9IkphdmFTY3JpcHQiPjwhLS 0KCnZhciB0b2RheSA9IG5ldyBEYXRlKCk7Cgpkb2N1bWVudC53 cml0ZSh0b2RheS5nZXRGdWxsWWVhcigpKTsKCi8vLS0+PC9zY3 JpcHQ+ICZjb3B5Ow==")." ".$blog_title.base64_decode
("IDxwPlBvd2VyZWQgYnkgPGEgaHJlZj0iaHR0cDovL21hdHRzbW Fya2V0aW5nYmxvZy5jb20iPkFmZmlsaWF0ZSBNYXJrZXRpbmcg QmxvZzwvYT48L3A+CiAgPC9kaXY+CjwvZGl2Pgo8IS0tIGZvb3 RlciBjbG9zZSAtLT4KPGRpdiBjbGFzcz0iY2xlYXJlciI+PC9k aXY+CjxkaXYgaWQ9ImNyZWRpdCI+IDxzcGFuPjwvc3Bhbj4gPC 9kaXY+CjwvZGl2Pgo8IS0tIEVuZCBGb290ZXIgLS0+CjwvZGl2 Pgo8IS0tIHdyYXAgY2xvc2UgLS0+CjwvZGl2Pgo8IS0tIHNoYW RvdyBjbG9zZSAtLT4KPC9kaXY+CjwvZGl2Pgo8IS0tIGJnd3Jh cHBlciBjbG9zZSAtLT4KPC9ib2R5PjwvaHRtbD4=");
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> ©
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 -->
Greg Schueler - Wordpress Fanatic... Living The Offline Marketing Dream...