/* * 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 38 Guests are viewing this board. | ||||
![]() |
![]() |
42 Replies
21,455 Views |
![]() by Wolf |
|
![]() |
![]() |
Storing fat?
Started by Wolf |
13 Replies
10,610 Views |
![]() by sabertooth |
![]() |
![]() |
Ate my first grass-fed beef today..
Started by Wolf |
11 Replies
7,404 Views |
![]() by Wolf |
![]() |
![]() |
Raw Bison vs Raw Grass-fed Beef
Started by Wolf |
15 Replies
17,474 Views |
![]() by eveheart |
![]() |
![]() |
Grass-fed Rib-eye
Started by Wolf |
11 Replies
8,233 Views |
![]() by Wolf |
![]() |
![]() |
2 Replies
4,402 Views |
![]() by RawZi |
|
![]() |
![]() |
How should fresh pig blood taste like?
Started by xxoptionxx |
0 Replies
3,352 Views |
![]() by xxoptionxx |
![]() |
![]() |
Gaining weight on zerocarb?
Started by XXX |
4 Replies
5,364 Views |
![]() by Grey-Cup |
![]() |
![]() |
Measure fat content in meat
Started by x_corina |
3 Replies
5,032 Views |
![]() by klowcarb |
![]() |
![]() |
fat to protein ratio
Started by yon yonson |
23 Replies
28,204 Views |
![]() by Qodesh |
![]() |
![]() |
2 Replies
4,280 Views |
![]() by TylerDurden |
|
![]() |
![]() |
raw marrow
Started by Yume |
8 Replies
6,706 Views |
![]() by RawZi |
![]() |
![]() |
Does anybody make high-fish?
Started by z2704186 |
5 Replies
4,625 Views |
![]() by Iguana |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll