The Ultimate Guide to Extend, Modify or remove the WordPress 3.1 Admin-Bar

Oh, already forgot this article in my drafts: Since WordPress 3.1, a lot of new cool features were added. One of the most hated loved ones is the admin-bar. In this article I will cover some of the basic hooks to modify it to suit your needs. Let’s go: [ad name=”Adsense – text only”] How […]

Get Accurate Script Execution Time in PHP

This small code can be quite helpful if you need to find out what is taking so long to load in your script(s). It will determine the time taken for your PHP script(s) to execute, accurate to 0.000000000000001 seconds. [ad name=”Adsense – text only”] The Code // put this at the top of your page/script […]

The F(ucking) U(ncrackable) E(ncryption) Function in PHP

I think following function doesn’t need any more description but the inline comments. [ad name=”Adsense – text only”] The Function: // f(ucking) u(ncrackable) e(ncryption) function function fue($hash,$times){     // Execute the encryptions as many times as the user wants     for($i=$times;$i>0;$i–) {         // Encode with base64…       […]

Clean Up User-Input & Convert Line-Breaks To BR-tags

A simple PHP function to clean up user input. It does following: converts & to &amp; converts < to &lt; converts > to &gt; converts “ to &quot; and converts line-breaks to <br /> [ad name=”Adsense – text only”] The Function: function clean($str) {     $str = preg_replace(’/&(?!#[0-9]+;)/s’, ‘&amp;’, $str);     $str = […]