/* * 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 16 Guests are viewing this board. | ||||
25 Replies
39,175 Views |
January 24, 2021, 05:40:48 am by Christine |
|||
The Dangers of (Raw and Pasteurised) Dairy Consumption
Started by TylerDurden « 1 2 3 » |
66 Replies
52,921 Views |
December 19, 2018, 05:42:46 am by norawnofun |
||
0 Replies
2,993 Views |
June 03, 2018, 02:16:50 am by TylerDurden |
|||
10 Replies
6,931 Views |
December 02, 2017, 09:52:23 am by TylerDurden |
|||
3 Replies
14,308 Views |
August 23, 2013, 01:27:04 am by Poncho |
|||
Sticky-Essay on The Advent of Cooking
Started by TylerDurden |
2 Replies
8,419 Views |
June 07, 2010, 05:04:06 pm by TylerDurden |
||
Abbreviated Terms Used By Rawpalaeos
Started by TylerDurden |
5 Replies
11,220 Views |
April 06, 2010, 08:59:52 pm by majormark |
||
Grassfed meat sites by country
Started by TylerDurden |
0 Replies
6,447 Views |
February 23, 2010, 05:56:11 pm by TylerDurden |
||
The Benefits of Bacteria
Started by TylerDurden |
0 Replies
8,709 Views |
October 22, 2008, 12:55:58 am by TylerDurden |
||
The Dangers of Grain-Consumption
Started by TylerDurden |
0 Replies
10,259 Views |
October 03, 2008, 12:47:41 am by TylerDurden |
||
0 Replies
10,479 Views |
August 07, 2008, 12:10:21 am by TylerDurden |
|||
20 Replies
10,166 Views |
November 23, 2018, 08:24:31 am by PaganGoy |
|||
Initial side effect-is this normal?
Started by jsafar |
6 Replies
7,049 Views |
June 27, 2017, 12:08:19 pm by cobalamin |
||
Milk is not palaeo
Started by TylerDurden |
0 Replies
4,527 Views |
October 13, 2013, 10:26:00 pm by TylerDurden |
||
Most important books
Started by Suoaei |
10 Replies
9,807 Views |
September 14, 2013, 04:17:22 am by Iguana |
||
veggies question
Started by LACHY |
7 Replies
7,900 Views |
June 04, 2013, 06:07:07 am by cherimoya_kid |
||
Ongoing miscellaneous list of studies
Started by TylerDurden |
1 Replies
6,066 Views |
December 09, 2012, 09:18:36 am by LePatron7 |
||
Fermented plant foods
Started by LePatron7 |
4 Replies
6,444 Views |
December 08, 2012, 11:34:47 pm by PaleoPhil |
||
Info on antinutrients
Started by TylerDurden |
1 Replies
5,236 Views |
May 03, 2012, 10:30:35 pm by CitrusHigh |
||
3 Replies
11,390 Views |
January 23, 2012, 04:31:17 am by CitrusHigh |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll