/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
:twisted: My evil ways of getting my sig to be a bit smoother. 0.2 is fine with me :lol:
The Signature Image has been removed for not complying with forum rules despite a 7 day grace period to do so.
Give the sig back! It wasn't 7 days yet! I am still in the process of making it..!
Let's go through this.
Monday (1) - Tuesday (2) - Wednesday (3) - Thursday (4) - Friday (5) - Saturday (6) - Sunday (7).
I thought today was Monday. *Jps just realized it was Tuesday*
<@Airline> 1 + 2 = ???
<@DDD> lol
<@Airline> Good luck Jps :)
<@Jps> -.-
<@DDD> hint: 2 = 1 + 1
<@DDD> ;)
<@Airline> You can count the wheels on the airplane if you're not sure :D
<@Airline> And no counting on your fingers, Jordan!
<@DDD> hint: try your toes
* DDD was kicked by Jps (Its 2 -.-.. now STFU :D.)
:lol: ! I found one of the sigs you made me.. long back
This image or video has been moved or deleted