/* * 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 |
---|---|---|---|
0330112026-00.jpg | 895 | Can anyone identify this produce? | March 31, 2011, 06:12:14 pm |
imagesCADCEQFL.jpg | 604 | Re: Meat Is Medicine For Desertification | March 18, 2011, 12:11:06 pm |
gryffindor-cat-is-not-amused.jpg | 427 | Re: Funny vid | January 22, 2011, 03:01:24 pm |
2371838657_0b59bf392c.jpg | 692 | Re: Is Fruit Meant For Man | October 26, 2010, 10:29:50 am |
quagmire-3865.jpg | 991 | Re: Me and the lamb liver | September 30, 2010, 04:34:12 am |
pufa.jpg | 515 | Re: Should one supplement with cod oil? | September 13, 2010, 04:05:06 pm |
Durian.gif | 821 | Re: Talk about Durian | July 27, 2010, 07:12:00 am |