February 25, 201016 yr Hey guys, The theme I have on my site has a custom advert on it I would like to get rid of. And would also like to change the text. Instead of Copyright 2008 it should say 2010. It seems I can't get to it through styles.css. And footer.php looks like this: <?php eval(base64_decode('Pz4gCTxkaXYgY2xhc3M9ImJyZWFrIj48L2Rpdj48L2Rpdj4NCgk8IS0tIEVORCBib2R5IC0tPg0KCTxkaXYgaWQ9InJzcyI+PC9kaXY+DQoNCjwvZGl2Pg0KPCEtLSBFTkQgd3JhcHBlciAtLT4NCg0KPCEtLSBCRUdJTiBmb290ZXIgLS0+DQo8ZGl2IGlkPSJmb290ZXIiPjxkaXY+DQoJPHA+Q29weXJpZ2h0ICZjb3B5OyAyMDA4IDw/cGhwIGJsb2dpbmZvKCduYW1lJyk7ID8+LiAgPD9waHAgaWYoaXNfaG9tZSgpKSA6ID8+PGEgaHJlZj0iaHR0cDovL3d3dy53ZWlnaHRsb3NzcGlsbHMyNC5jb20vIiB0aXRsZT0iV2VpZ2h0IGRpZXQiPldlaWdodCBkaWV0PC9hPjw/cGhwIGVuZGlmOyA/PjwvcD4gDQo8L2Rpdj48L2Rpdj4NCjwhLS0gRU5EIGZvb3RlciAtLT4NCg0KPC9ib2R5Pg0KDQo8L2h0bWw+DQogPD8='));?> Why does it look like that?!
February 25, 201016 yr Hey Sanj, be careful when downloading free themes! The code you've pasted is actually harmful code! It's encrypted, so you never know what it is, but there is a great video on this problem here.
February 25, 201016 yr Author I used this site to decode it. http://www.tareeinternet.com/scripts/base.html And it's given me the actual code. I can't see anything harmful. What do you mean when you say harmful?
February 25, 201016 yr Author This is the code it gave me, I took out the advert. But the footer doesn't appear.. Any coding I need to add. Sorry for pasting it all. <?php <div class="break"></div></div> <!-- END body --> <div id="rss"></div> </div> <!-- END wrapper --> <!-- BEGIN footer --> <div id="footer"><div> <p>Copyright © 2010 <?php bloginfo('name'); ?>. <?php if(is_home()) : ?><a href="" title=""></a><?php endif; ?></p> </div></div> <!-- END footer --> </body> </html> <?
February 26, 201016 yr By harmful I mean it might be an advert, like it was in your situation, or it could be some kind of script that monitors your actions, etc. It's just a security thing really. Your footer code should look (something) like this: <div class="break"></div></div> <!-- END body --> </div> <!-- END wrapper --> <!-- BEGIN footer --> <div id="footer"><div> <p>Copyright © <?php echo date('Y'); ?> <?php bloginfo('name'); ?>. All Rights Reserved.</p> </div></div> <!-- END footer --> </body> </html> Does that work?
February 26, 201016 yr Author Yep that worked perfect. I forgot to take out "<?php". Thanks a lot mate.
February 26, 201016 yr Cool beans! If you look closely, I've also changed the year from 2010 to <?php date(Y');?>. This ensures that the year will auto update!
Create an account or sign in to comment