Defeating Base64 Decode virus in WordPress
Hello, ever noticed some weird keywords in your Google Webmaster Tools? This is how i actually draw attention to a problem on one site, i was cleaning from BASE64_DECODE problem in recent days.
If you open your website and view source (ctrl+u) scroll to footer and you may notice all the junk stuff in there with padding -5000px (this is done for this viagra and cialis links not to appear on the visible part of main page - they are hidden, but they exist).
So how do we fight it? My experience says, that you should start with a database. Because if you don't clean your database, it is useless to clean injected code in your php files, since it will appear over and over again.
1. Database cleanup
Open your wp-config.php and find username (MySQL database username) and password (MySQL database password), as well as url for your PHPMyAdmin (MySQL hostname). Login, click your database and go to SQL tab. Enter this:
SELECT * FROM wp_options WHERE (option_id LIKE '%base64_decode%' OR blog_id LIKE '%base64_decode%' OR option_name LIKE '%base64_decode%' OR option_value LIKE '%base64_decode%' OR autoload LIKE '%base64_decode%' OR option_id LIKE '%edoced_46esab%' OR blog_id LIKE '%edoced_46esab%' OR option_name LIKE '%edoced_46esab%' OR option_value LIKE '%edoced_46esab%' OR autoload LIKE '%edoced_46esab%' OR option_name LIKE 'wp_check_hash' OR option_name LIKE 'class_generic_support' OR option_name LIKE 'widget_generic_support' OR option_name LIKE 'ftp_credentials' OR option_name LIKE 'fwp' OR option_name LIKE 'rss_%') order by option_id
Your wp_options table may have a different name, if so change to your name.
It will show up all entries in wp_options, which are not relevant to this table and should be deleted.
2. Plugins and themes
Plugins and themes are also vulnerable if they are outdated or even worse - not supported anymore. Update all your plugins (and delete unnecessary), all your themes and DO delete the ones you are not using. It is a must! When i was fighting the virus i spend lots of time cleaning database and garbage from php files, but the problem was in func.php file in default wordpress theme, which was outdated and had a hole obviously. Quite stupid wasting so much time, when solution is so simple, isn't it?
3. Cleaning .php files
Only after part 1 and 2 are done you may start to clean the code. Otherwise you will loose time, patience and may be even your blog. I suggest to download your site completely to your HDD. If you have windows, turn on indexing inside .php files. After you are done, search in your directory, you have downloaded, for base64_decode and all the garbage, which comes with it and clean your .php files from it.
Check PHP version of you hosting or a web-server
If you would like to know all the information about PHP version of the hosting you are using, make a file phpinfo.php with this code <?php phpinfo() ?> inside and then just upload to your web-server and run it!
Disabling your Recent activity on Odnoklassniki.ru
Never wondered how to disable your recent activity on Odnoklassniki.ru? You won't actually find it in any settings on the site, which is really stupid.
Disabling is easy - just visit this link: http://www.odnoklassniki.ru/dk?st.cmd=userMain&st.layer.cmd=PopLayerConfigUserFeed and click disable. To enable your own feed just visit this link again.
Angry Birds now on your Google Chrome
Great news - you can now play your favorite Angry Birds at work, at home or wherever you want with Google Chrome browser.
Just visit this link and install the application - totally free. You need Google Chrome of course.
Controlling uTorrent remotely through web
Many of you probably are wondering how to download files from office, and when you get home your movies are ready to be watched. It is possible with uTorrent too!
Just go to Options → Preferences (or ctrl+p) → Web UI

To control uTorrent from the web use this url: http://yourip:port/gui. To determine what ip address you own you may visit: whatismyipaddress.com
Adding Favorites icon for your website
If you want to customize your visitors' experience, when visiting your website you would probably want to draw an icon. If so add this line inside <head></head> tags on every page of your website.
Add this line between head tags:
<link rel="shortcut icon" href="http://yoursite.com/favicon.ico" type="image/x-icon" />
For drawing a favicon i would probably recommend this site: Favicon.cc. Or use Adobe Photoshop.
If you would like to create your favicon.ico from the image the best solution would be: this solution.
Specifying a subject and a body of the message in e-mail link
Very simple solution, which is very useful and saves your website visitors time when writing you a letter.
<a href="mailto:email@gmail.com?subject=Hello Web master&body=Howdy master">email@gmail.com</a>
Result — email@gmail.com
If you want to add another line in body, add another &body=text in the end!
Showing certain number of items in archive category in WordPress
Probably many of you faced a lot of items in archive showing on first page and all other pages in wordpress.
To fix that go to you theme editor in wordpress, find sidebar.php, or left_sidebar.php/right_sidebar.php (depending on the theme you are using). Find something like that:
<?php wp_get_archives('type=monthly'); ?>
Replace with:
<?php wp_get_archives('type=monthly&limit=5'); ?>
Where 5 is the number of items to be displayed.