The problem that I met today is that I was confronted with the theme of changing a WP. The current situation is as follows, I want to remove the following hyperlink, the background code found in the sidebar1.php file.
Open this file discovery is a long list of characters:
After Baidu, Google, an article introduced is the PHP code encryption caused by, you can use the following code to solve the problem.
Decryption Code:
<?php
$Code = ' Fill in the code to be decrypted here '; Base64 encoding
$File = ' decoded.php ';//files saved after decoding
$Temp = Base64_decode ($Code);
$temp = Gzinflate ($Temp);
$FP = fopen ($File, "w");
Fwrite ($FP, $temp);
Fclose ($FP);
echo "Decryption succeeded! ";
?>
Practical application:
First, open your text editor, create a new text file, follow that decryption code, enter the password in my sidebar1.php file, and then look like this:
<?php$code =' Bza7b8mwdir3/wpcq9mudtcpapxyomto1gizc9mibsgykeim1qd98fujwvovbhq83n1qvsa50im0rozqijai0yst8yu /ev7uhrjyncldq+56gof9/gxyyvuoakodti097qwccpd0gop+k+ qseo9tixpm95plmcauyfgf04ygub5fmmueyrk2jgqj4hmtcqnfcesi0vpi5h4hbivbdxbq6+a1iy8gdcr69d0kv3vj+ye3hngqqwut+ x8pslvqksyomshpwmnxemrbwqf6utcy7jkursgp5ibpwyzpdat1ad3imgis2wahtusv8xgcfc6oqeqpmtck+qq0lrc5/3wcvw== '; Base64 Encoding
$File = ' decoded.php ';//files saved after decoding
$Temp = Base64_decode ($Code);
$temp = Gzinflate ($Temp);
$FP = fopen ($File, "w");
Fwrite ($FP, $temp);
Fclose ($FP);
echo "Decryption succeeded! ";
?>
The red part is the encrypted code inside the footer sidebar1.php file itself. Then save this file, a name, but it must be PHP format, my test.php. Note: The above decoded.php is the file name after the decryption is complete, you can also modify this.
Then, upload this test.php file to the root directory of your space, in fact, other directories can be, but need to be able to web access. I put it directly in the root directory of the blog.
And then through the Web Access, mine is http://ilanni.com/blogger/test.php. Prompt "decryption success", in the server can see a decoded.php file, open a look, hehe has been decrypted!
After the successful decryption of the code such as:
Then change this decoded.php to sidebar1.php replace the original file, you can.
PHP base64_decode+gzinflate Compression and decryption Code drawing tutorial