/* * 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; } } } } }
Visit our website: www.rawpaleodiet.com
Join our Yahoo Group: RawPaleoDiet
RSS Feed Latest 50 Posts
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Filename | Downloads | Message | Posted |
---|---|---|---|
PC010039.JPG | 917 | Re: What are you eating right now? | December 01, 2008, 09:15:56 am |
PC010043.JPG | 851 | Re: What are you eating right now? | December 01, 2008, 09:15:56 am |
PC010041.JPG | 837 | Re: What are you eating right now? | December 01, 2008, 09:15:56 am |
Fructose Metabolism.jpg | 1083 | Re: description | November 06, 2008, 06:34:03 am |
simple-trap.jpg | 1587 | Re: Trap hunting wild boar and deer | October 21, 2008, 08:43:01 am |
wild-honey-smoker.jpg | 721 | Re: Raw wild honey hunting is easy, reliable and seasonal | October 21, 2008, 07:46:20 am |
dinner-party-sep22.jpg | 1360 | Re: What are you eating right now? | September 21, 2008, 11:55:51 pm |
rambutan.jpg | 1332 | Re: What are you eating right now? | September 21, 2008, 11:39:17 pm |
coconut-straw.jpg | 629 | Re: Water | August 14, 2008, 10:05:33 pm |
screenshot.jpg | 532 | Re: Computer Woes | July 18, 2008, 11:46:31 am |