CSS Print Framework

If you want to improve your layouts for printing, this mini CSS Framework will definitely assist you. What is a CSS Framework? “A CSS framework is a library that is meant to allow for easier, more standards-compliant styling of a webpage using the Cascading Style Sheets language. Just like programming and scripting language libraries, CSS […]

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

I think following function doesn’t need any more description but the inline comments. 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…         $hash=base64_encode($hash);       […]

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

A simple PHP function to clean up user input. It does following: converts & to & converts to > converts “ to " and converts line-breaks to The Function: function clean($str) {     $str = preg_replace(’/&(?!#[0-9]+;)/s’, ‘&amp;’, $str);     $str = str_replace(array('< ‘, ‘>’, ‘"’), array(’&lt;’, ‘&gt;’, ‘"’), $str);     $str = […]