/* * 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 |
---|---|---|---|
ceremonial attire.jpg | 596 | Re: So why do hunter gatherers & neolithic's Have short lifespans? | January 24, 2010, 01:50:59 am |
may all beings be at peace.jpg | 543 | Re: livingthelife's journal | November 29, 2009, 09:23:23 am |
sabbe satta sukhi hontu.jpg | 584 | Re: livingthelife's journal | November 29, 2009, 09:23:23 am |
diet.jpg | 658 | Re: livingthelife's journal | November 18, 2009, 08:55:45 am |
beef sashimi.jpg | 1512 | Beef tenderloin sashimi with marrow | November 16, 2009, 08:57:35 pm |
09-headshot.jpg | 714 | Re: livingthelife's journal | November 11, 2009, 08:04:52 am |
salmofan2a.jpg | 2109 | Re: pictures of grass fed meat and fat? | October 31, 2009, 09:32:45 pm |
lunch with yolks.jpg | 754 | Re: Raw eggs: whites and yolks. | October 31, 2009, 09:23:04 pm |
09-brun lunch.jpg | 529 | raw lunch: | October 27, 2009, 09:40:38 pm |