/* * 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 12 Guests are viewing this board. | ||||
25 Replies
39,939 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
53,326 Views |
December 19, 2018, 05:42:46 am by norawnofun |
||
0 Replies
3,018 Views |
June 03, 2018, 02:16:50 am by TylerDurden |
|||
10 Replies
6,970 Views |
December 02, 2017, 09:52:23 am by TylerDurden |
|||
3 Replies
14,602 Views |
August 23, 2013, 01:27:04 am by Poncho |
|||
Sticky-Essay on The Advent of Cooking
Started by TylerDurden |
2 Replies
8,704 Views |
June 07, 2010, 05:04:06 pm by TylerDurden |
||
Abbreviated Terms Used By Rawpalaeos
Started by TylerDurden |
5 Replies
11,245 Views |
April 06, 2010, 08:59:52 pm by majormark |
||
Grassfed meat sites by country
Started by TylerDurden |
0 Replies
6,467 Views |
February 23, 2010, 05:56:11 pm by TylerDurden |
||
The Benefits of Bacteria
Started by TylerDurden |
0 Replies
8,995 Views |
October 22, 2008, 12:55:58 am by TylerDurden |
||
The Dangers of Grain-Consumption
Started by TylerDurden |
0 Replies
10,546 Views |
October 03, 2008, 12:47:41 am by TylerDurden |
||
0 Replies
10,776 Views |
August 07, 2008, 12:10:21 am by TylerDurden |
|||
20 Replies
10,233 Views |
November 23, 2018, 08:24:31 am by PaganGoy |
|||
Initial side effect-is this normal?
Started by jsafar |
6 Replies
7,073 Views |
June 27, 2017, 12:08:19 pm by cobalamin |
||
Milk is not palaeo
Started by TylerDurden |
0 Replies
4,544 Views |
October 13, 2013, 10:26:00 pm by TylerDurden |
||
Most important books
Started by Suoaei |
10 Replies
9,839 Views |
September 14, 2013, 04:17:22 am by Iguana |
||
veggies question
Started by LACHY |
7 Replies
7,932 Views |
June 04, 2013, 06:07:07 am by cherimoya_kid |
||
Ongoing miscellaneous list of studies
Started by TylerDurden |
1 Replies
6,087 Views |
December 09, 2012, 09:18:36 am by LePatron7 |
||
Fermented plant foods
Started by LePatron7 |
4 Replies
6,467 Views |
December 08, 2012, 11:34:47 pm by PaleoPhil |
||
Info on antinutrients
Started by TylerDurden |
1 Replies
5,255 Views |
May 03, 2012, 10:30:35 pm by CitrusHigh |
||
3 Replies
11,419 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