/* * 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 15 Guests are viewing this board. | ||||
![]() |
![]() |
How many carbs to un-keto-adapt?
Started by SteakNchop « 1 2 3 » |
73 Replies
42,217 Views |
![]() by sabertooth |
![]() |
![]() |
81 Replies
42,702 Views |
![]() by panacea |
|
![]() |
![]() |
62 Replies
43,869 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
72 Replies
46,181 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
66 Replies
46,350 Views |
![]() by Raw Kyle |
|
![]() |
![]() |
87 Replies
48,245 Views |
![]() by Joy2012 |
|
![]() |
![]() |
How long does it take to clear excess protein from the blood?
Started by carnivorous « 1 2 3 4 » |
87 Replies
49,662 Views |
![]() by Paleo Donk |
![]() |
![]() |
93 Replies
53,001 Views |
![]() by Poncho |
|
![]() |
![]() |
97 Replies
53,957 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
124 Replies
62,551 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Dangers of thawing and refreezing
Started by prehistorik « 1 2 » |
48 Replies
69,234 Views |
![]() by Lukthree |
![]() |
![]() |
226 Replies
91,572 Views |
![]() by Savage |
|
![]() |
![]() |
10 Replies
112,174 Views |
![]() by Snamisolnsew |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll