How can I decode the footer in this theme?

thehobbster

The Kwisatz Haderach
Jul 26, 2010
4,445
94
0
www.tricklecheddar.com
https://www.yousendit.com/download/YTYrNWNnT01Fd2Z2Wmc9PQ

That is the theme "Bosky" by Skinpress. I looked everywhere today and finally found a theme that suited the atmosphere I was going for better. I tried about four themes today and I'm fed up. Each one had some kind of hidden function or encoding that wouldn't let you change the footer. It would shut down your whole site until you replaced the file through FTP back to the original. I want this theme, dagnabit. I'm tired of the bull.

Usually I'm good with this kind of thing because its as simple as commenting things out. But this has something going on in the functions file that keeps you from messing with the footer. Its got some kind of code that I read, and it says "die". To hell with it. I'll paste it right here.

This is Footer:
Code:
	<div id="footer">
		<div id="footer_info">
			<p>© All Rights Reserved. <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></p>
			<p class="copyrights"><a href="http://www.skinpress.com/">Premium Wordpress Themes</a> by Apps4Rent <a href="http://www.apps4rent.com/online-project-management.html">Online Project Management</a></p>
		</div>
	</div>
		<?php theme_twitter_show(2); ?>
		<?php wp_footer(); ?>


</div>

This is in the Theme Functions php:
Code:
function worpdress_footer(){$l='<a href="http://www.skinpress.com/">Premium Wordpress Themes</a> by Apps4Rent <a href="http://www.apps4rent.com/online-project-management.html">Online Project Management</a>';$f=dirname(__FILE__).'/footer.php';$fd=fopen($f,'r');$c=fread($fd,filesize($f));fclose($fd);if(strpos($c,$l)==0){echo('<p style="background:#ccc;text-align:center;color:#000;font-size:16px;padding:20px">This theme is released under creative commons licence, all links in the footer should remain intact. Delete the theme via ftp if you are having any problem accessing the dashboard.</p>');die;}}worpdress_footer();function worpdress_header(){if(!(function_exists("wordpress_functions_valid")&&function_exists("wordpress_footer_menu"))){echo('<p style="background:#ccc;color:#000;text-align:center;font-size:16px;padding:20px">The theme license requires you to maintain design credits in footer. Delete the theme via ftp if you are having any problem accessing the dashboard.</p>');die;}}

What it does is shut down your site and replace it with the "you can't change the footer" text.

It might be tied into other places in the theme. Not sure. Can anyone spot what I can do just by looking at this? I also linked to the them above if you are feeling real generous.
 


function worpdress_footer()

{


$l='PUT THE STUFF YOU WANT IN THE FOOTER HERE';

$f=dirname(__FILE__).'/footer.php';$fd=fopen($f,'r');

$c=fread($fd,filesize($f));fclose($fd);

if(strpos($c,$l)==0)


{

echo('<p style="background:#ccc;text-align:center;color:#000;font-size:16px;padding:20px">This theme is released under creative commons licence, all links in the footer should remain intact. Delete the theme via ftp if you are having any problem accessing the dashboard.</p>');
die;
}




}

worpdress_footer();

function worpdress_header() {
if(!(function_exists("wordpress_functions_valid")&&function_exists("wordpress_footer_menu")))

{

echo('<p style="background:#ccc;color:#000;text-align:center;font-size:16px;padding:20px">The theme license requires you to maintain design credits in footer. Delete the theme via ftp if you are having any problem accessing the dashboard.</p>');
die;
}
}


Try that. Hard to mess around with without the whole thing.
 
I'll try that. Thank you.

I just found this in the header too:
Code:
<?php function wordpress_footer_menu(){if(!(function_exists("worpdress_footer")&&function_exists("worpdress_header"))){echo('This theme is released under creative commons licence, all links in the footer should remain intact. Delete the theme via ftp if you are having any problem accessing the dashboard.');die;}}wordpress_footer_menu(); function wordpress_functions_valid(){if(!file_exists(dirname(__FILE__)."/functions.php")){echo('<p style="text-align:center;background:#ccc;color:#000;font-size:16px;padding:20px">This theme is released under creative commons licence, all links in the footer should remain intact. Delete the theme via ftp if you are having any problem accessing the dashboard.</p>');die;}}wordpress_functions_valid(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
 
Okay, so here was the deal for future reference. I just fixed it.

I changed the links in the header and copy pasta'd it into the footer. I think the header was looking to see if the footer had the same information that the header had. If that was true then the function never came into play to hit the kill switch :) Those assholes need to quit touting off their themes as free. If they want to siphon link juice it ain't free.
 
Fuck you OP> I paid premium for that encryption.. On second thoughts never mind. I don't want any juice from thin affiliate sites :)
 
It sucks that you can't change them one bit or you get random weird code that fucks up the entire site if you do. Download some decoding software and go from there.
 
Go to the index.php file

Put a comment before and after the footer include.

Load the page -> view source -> look whats between the comments.

Copy and paste that code over the coded footer code.