Decrypt Files
There have been many Wordpress Theme sites encrypting their files so the basic novice wordpress theme user could not edit. These encrypted files could also contain code which could make which ever site you upload the theme to vulnerable to attacks or hackers.
The most common files that are encrypted would be “footer.php” or “functions.php”
If you open either of these files in notepad and see the following:
<?php $o=”encrypted text“;eval(base64_decode(‘rubbish‘));return;?>
With lots of code and letters and numbers its more than likely encrypted. You should delete this theme as it should not be trusted on your server. Why hide code? These free theme sites love to link back to them selves, which is no good if you wish to use your downloaded theme for business purposes.
Their are ways of decrypting this code:
- For code that looks like
$o=whatever:you can use this tool to decrypt it:http://ottodestruct.com/decoder.php - For code that looks like
$_F=__FILE__:you can use the following tool to decrypt it:http://www.tareeinternet.com/scripts/byterun.php - For code that looks like
eval(gzinflate(base64_decode('...')));:you can use the following tool to decrypt it: http://www.tareeinternet.com/scripts/decrypt.php - PHP Lock It decoder – http://www.region59.net/unlockit/
But as we have warned, if the themes are encrypted they more than likely should NOT be trusted!
Another way!
Step 1
Open index.php
Find the include code for the footer. Normally, the footer include code shows like this:
<?php get_footer(); ?>
Step 2
Add this comment code on the top and bottom of the footer code:
<!--Footer code starts here say's ThemeDump.com--> <?php get_footer(); ?> <!--Footer code ends here say's ThemeDump.com-->
Save the file and upload it to the server.
Step 3
Load the theme in a browser. View the source code by clicking
View -> Source (If you view in IE) or
Ctrl + U (If you view in Firefox)
Step 4
The source code in between <!--Footer code starts here say's ThemeDump.com--> and <!--Footer code ends here say's ThemeDump.com--> is the source code for the footer.
Now, open footer.php and replace the encrypted code with the actual source code.
You can then start to modify the footer in anyway you want.
No matter what you modify, please make sure that you give the credits back to the ThemeDump.com!
