/* * 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 5 Guests are viewing this board. | ||||
breathalyzers for measuring blood ketones
Started by Dr. D |
0 Replies
3,578 Views |
September 03, 2013, 02:15:03 am by Dr. D |
||
0 Replies
2,583 Views |
May 28, 2014, 01:53:50 pm by TylerDurden |
|||
MOVED: Pemmican
Started by TylerDurden |
0 Replies
2,691 Views |
May 23, 2009, 09:29:10 pm by TylerDurden |
||
Century eggs
Started by Leonidas |
0 Replies
2,140 Views |
September 14, 2018, 04:28:05 pm by Leonidas |
||
How should fresh pig blood taste like?
Started by xxoptionxx |
0 Replies
1,477 Views |
October 01, 2020, 11:28:17 pm by xxoptionxx |
||
0 Replies
1,259 Views |
January 17, 2021, 10:07:46 pm by Apex |
|||
Can you eat rooster combs raw?
Started by sleepstalker |
0 Replies
2,794 Views |
August 13, 2009, 10:31:07 am by sleepstalker |
||
The Sacred Hunt
Started by PaleoPhil |
0 Replies
2,683 Views |
September 14, 2009, 03:46:37 am by PaleoPhil |
||
0 Replies
3,439 Views |
October 19, 2009, 07:10:01 am by reyyzl |
|||
The African Bushmen
Started by Sully |
0 Replies
2,928 Views |
October 07, 2008, 11:23:39 pm by Sully |
||
New Zealand Raw meat eaters
Started by Perfect Health |
0 Replies
1,294 Views |
June 03, 2020, 05:16:04 pm by Perfect Health |
||
Fruits and veggies don't protect against cancer
Started by carnivore |
0 Replies
2,695 Views |
January 19, 2010, 03:33:48 am by carnivore |
||
Eades post on ketosis and macronutrients
Started by Josh |
0 Replies
3,284 Views |
May 13, 2009, 07:39:33 pm by Josh |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll