/* * 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
Subject / Started by | Replies / Views | Last post | ||
---|---|---|---|---|
0 Members and 33 Guests are viewing this board. | ||||
Ate my first grass-fed beef today..
Started by Wolf |
11 Replies
5,883 Views |
July 23, 2010, 07:15:48 pm by Wolf |
||
Raw Bison vs Raw Grass-fed Beef
Started by Wolf |
15 Replies
15,179 Views |
June 12, 2011, 08:51:29 am by eveheart |
||
Grass-fed Rib-eye
Started by Wolf |
11 Replies
6,736 Views |
August 25, 2010, 11:49:00 am by Wolf |
||
Storing fat?
Started by Wolf |
13 Replies
8,781 Views |
November 25, 2010, 11:02:49 am by sabertooth |
||
Your usual diets?
Started by Wolf |
24 Replies
11,159 Views |
July 26, 2010, 03:37:01 pm by Cinna |
||
2 Replies
3,089 Views |
May 29, 2009, 05:27:21 am by RawZi |
|||
How should fresh pig blood taste like?
Started by xxoptionxx |
0 Replies
1,480 Views |
October 01, 2020, 11:28:17 pm by xxoptionxx |
||
Gaining weight on zerocarb?
Started by XXX |
4 Replies
3,602 Views |
June 10, 2018, 06:41:20 am by Grey-Cup |
||
Measure fat content in meat
Started by x_corina |
3 Replies
4,086 Views |
April 15, 2011, 01:57:02 am by klowcarb |
||
fat to protein ratio
Started by yon yonson |
23 Replies
24,765 Views |
August 25, 2012, 12:21:25 am by Qodesh |
||
2 Replies
2,965 Views |
February 17, 2010, 04:49:41 am by TylerDurden |
|||
raw marrow
Started by Yume |
8 Replies
4,944 Views |
April 06, 2010, 12:23:28 pm by RawZi |
||
Does anybody make high-fish?
Started by z2704186 |
5 Replies
3,683 Views |
January 27, 2013, 02:14:21 pm by Iguana |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll