gmr324
March 5, 2010, 3:19pm
1
Need Help with Encrypted Footer Code of WP Theme
Hi,
I’m trying to translate some encrypted code in a WP theme I’m using. There’s some site-wide outgoing footer links that I’d like to remove for SEO purposes. I can’t figure out what the actual code being used is because it’s all encrypted.
The site is located here: http://tinyurl.com/yl42goh
I can email the footer.php if necessary.
Advice Appreciated
What specifically are you trying to identify and/or remove?
I’ve downloaded the theme you’re using, but if you’ve made changes to the footer you can always post the contents of the file here in between [ CODE ] tags.
gmr324
March 5, 2010, 8:27pm
3
Hi,
Thanks for the reply. I’m just trying to remove the Laptops backlink in the footer. Here is the code that is contained in the footer.php file:
<?php eval(base64_decode('Pz4gCQkJPCEtLSBGb290ZXIgLS0+DQoJCQk8ZGl2IGlkPSJmb290ZXIiPg0KCQkJCTxkaXYgY2xhc3M9ImZvb3RfbCI+PGEgaHJlZj0iaHR0cDovL3dlYi1rcmVhdGlvbi5jb20iIHRpdGxlPSJXb3JkcHJlc3MgdGhlbWUgRGVzaWduZWQgYnkgV2ViLUtyZWF0aW9uLmNvbSI+Jm5ic3A7PC9hPjwvZGl2Pg0KCQkJCTxkaXYgY2xhc3M9ImZvb3RfY29udGVudCI+DQoJCQkJCTx1bD4NCgkJCQkJCTxsaT48YSBocmVmPSI8P3BocCBlY2hvIGdldF9vcHRpb24oJ2hvbWUnKTsgPz4vIj5Ib21lPC9hPjwvbGk+DQoJCQkJICAgICAgICA8P3BocCB3cF9saXN0X3BhZ2VzKCd0aXRsZV9saT0nKTsgPz4gICAgDQoJCQkJCTwvdWw+DQoJCQkJCTxwPiAmY29weTsgPGEgaHJlZj0iPD9waHAgZWNobyBnZXRfb3B0aW9uKCdob21lJyk7ID8+LyI+PD9waHAgYmxvZ2luZm8oJ25hbWUnKTsgPz48L2E+LiA8P3BocCBpZihpc19ob21lKCkpIDogPz48YSBocmVmPSJodHRwOi8vYmVzdGxhcHRvcHM0dS5jb20vIiB0aXRsZT0iTGFwdG9wIj5MYXB0b3A8L2E+PD9waHAgZW5kaWY7ID8+PC9wPg0KCQkJCTwvZGl2Pg0KCQkJCTxkaXYgY2xhc3M9ImZvb3RfciI+Jm5ic3A7PC9kaXY+DQoNCgkJCQk8ZGl2IGNsYXNzPSJiYWNrVG9Ub3AiPg0KCQkJCQk8YSBocmVmPSIjIiB0aXRsZT0iQmFjayBUbyBUb3AiPiZuYnNwOzwvYT4NCgkJCQk8L2Rpdj4NCg0KCQkJCTxkaXYgY2xhc3M9ImZvb3RfaW5mbyI+DQoJCQkJCTxwPg0KCQkJCQk8P3BocCBibG9naW5mbygnbmFtZScpOyA/PiA8L3A+DQoJCQkJPC9kaXY+DQoJCQk8L2Rpdj48IS0tIC8gZm9vdGVyIC0tPg0KDQoNCjw/cGhwID8+DQoNCgkJPD9waHAgd3BfZm9vdGVyKCk7ID8+DQoNCg0KCQk8L2Rpdj48IS0tIC8gd3JhcHBlciAtLT4NCgk8L2Rpdj48IS0tIC8gY29udGFpbmVyIC0tPiAgICAgICANCjwvYm9keT4NCjwvaHRtbD4NCiA8Pw=='));?>
Look forward to your reply
George
tophen
March 12, 2010, 12:03pm
4
It might be a condition of the licence of the WP theme to leave the link in the footer, hence the reason why, I believe, it is encoded in PHP.
Erik_J
March 13, 2010, 9:16am
5
Hi gmr324, didn’t see your post until now, sorry.
<?php eval(base64_decode('...encrypted...'));?>
The above php statement outputs this code into the page:
?> <!-- Footer -->
<div id="footer">
<div class="foot_l"><a href="http://web-kreation.com" title="Wordpress theme Designed by Web-Kreation.com"> </a></div>
<div class="foot_content">
<ul>
<li><a href="<?php echo get_option('home'); ?>/">Home</a></li>
<?php wp_list_pages('title_li='); ?>
</ul>
<p> © <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>. <?php if(is_home()) : ?><a href="http://bestlaptops4u.com/" title="Laptop">Laptop</a><?php endif; ?></p>
</div>
<div class="foot_r"> </div>
<div class="backToTop">
<a href="#" title="Back To Top"> </a>
</div>
<div class="foot_info">
<p>
<?php bloginfo('name'); ?> </p>
</div>
</div><!-- / footer -->
<?php ?>
<?php wp_footer(); ?>
</div><!-- / wrapper -->
</div><!-- / container -->
</body>
</html>
<?
Test to replace that php code snippet you posted with this block. It should work the same, and then you can edit the code in the footer.php.
If not; find where that php statement is inserted from and replace it there, or remove it there and instead have the edited output in the footer.php.