/* * 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 64 Guests are viewing this board. | ||||
26 Replies
14,821 Views |
April 22, 2016, 11:23:40 am by van |
|||
26 Replies
13,321 Views |
February 23, 2010, 03:29:59 am by RawZi |
|||
Dairy indecision
Started by sabertooth « 1 2 » |
26 Replies
12,631 Views |
October 22, 2015, 10:04:33 am by sabertooth |
||
food monster
Started by littleElefant « 1 2 » |
26 Replies
13,546 Views |
May 24, 2015, 07:08:13 pm by political atheist |
||
26 Replies
11,963 Views |
March 27, 2011, 09:28:55 pm by sabertooth |
|||
26 Replies
14,049 Views |
September 12, 2010, 03:39:05 am by PaleoPhil |
|||
26 Replies
16,151 Views |
September 24, 2011, 11:04:27 pm by PaleoPhil |
|||
26 Replies
12,768 Views |
April 06, 2012, 08:28:22 am by Lynnzard |
|||
26 Replies
15,741 Views |
October 12, 2010, 10:49:58 pm by AlexWulf |
|||
The FDA again this is FUCKING FASCISM
Started by achillezzz « 1 2 » |
26 Replies
11,802 Views |
August 10, 2011, 04:27:11 am by Iguana |
||
Two questions! (buying and washing)
Started by AnopsStudier « 1 2 » |
26 Replies
10,307 Views |
January 28, 2014, 03:28:09 am by Iguana |
||
26 Replies
12,610 Views |
September 20, 2009, 05:07:31 pm by TylerDurden |
|||
26 Replies
81,754 Views |
June 27, 2012, 07:17:12 am by Suiren |
|||
Brushing your teeth
Started by A_Tribe_Called_Paleo « 1 2 » |
26 Replies
13,511 Views |
August 10, 2016, 05:37:46 am by svrn |
||
26 Replies
30,387 Views |
May 23, 2014, 03:35:17 am by CatTreats |
|||
26 Replies
16,119 Views |
February 15, 2015, 12:19:20 am by eveheart |
|||
Tea?
Started by yon yonson « 1 2 » |
26 Replies
14,622 Views |
October 06, 2010, 06:48:25 pm by RawZi |
||
26 Replies
14,089 Views |
February 08, 2013, 05:58:51 am by Bacchal |
|||
26 Replies
13,337 Views |
August 07, 2009, 07:46:54 pm by PaleoPhil |
|||
26 Replies
17,522 Views |
March 05, 2011, 02:15:14 am by Löwenherz |
|||
Are you eating CASTRATED livestock?
Started by goodsamaritan « 1 2 » |
26 Replies
14,009 Views |
May 25, 2014, 03:49:18 am by sabertooth |
||
26 Replies
18,139 Views |
July 15, 2014, 03:16:21 am by FRANCIS HOWARD BOND |
|||
Tongue
Started by TheWayCreatesTheWarrior « 1 2 » |
26 Replies
11,599 Views |
January 12, 2013, 03:22:37 am by eveheart |
||
26 Replies
17,508 Views |
January 20, 2013, 10:36:32 pm by MaximilianKohler |
|||
25 Replies
15,160 Views |
August 08, 2013, 11:10:55 am by LePatron7 |
|||
25 Replies
10,973 Views |
February 17, 2012, 03:26:10 am by Adora |
|||
25 Replies
10,703 Views |
February 14, 2010, 11:57:38 pm by miles |
|||
25 Replies
11,083 Views |
February 03, 2014, 06:16:51 am by tests |
|||
25 Replies
22,777 Views |
March 01, 2010, 02:15:06 pm by Hannibal |
|||
Fish
Started by political atheist « 1 2 » |
25 Replies
11,556 Views |
October 30, 2015, 10:57:42 am by PaleoPhil |
||
Man the Scavenger like a Vulture?
Started by goodsamaritan « 1 2 » |
25 Replies
12,578 Views |
August 01, 2009, 10:42:18 pm by William |
||
25 Replies
14,462 Views |
November 19, 2011, 11:27:35 pm by balancing-act |
|||
25 Replies
10,155 Views |
November 25, 2012, 06:38:15 am by PaleoPhil |
|||
25 Replies
13,474 Views |
February 09, 2009, 08:21:38 pm by donrad |
|||
25 Replies
11,685 Views |
September 24, 2009, 09:19:22 am by van |
|||
25 Replies
13,072 Views |
May 31, 2011, 04:07:24 am by p0wer |
|||
25 Replies
10,855 Views |
January 20, 2010, 08:16:14 am by jessica |
|||
25 Replies
10,668 Views |
December 31, 2010, 09:42:58 am by TylerDurden |
|||
teeth decay and dairy
Started by achillezzz « 1 2 » |
25 Replies
11,740 Views |
January 05, 2012, 10:55:28 am by PaleoPhil |
||
25 Replies
15,541 Views |
May 30, 2013, 04:40:59 am by van |
|||
Meat to Veg/Fruit ratio?
Started by SkinnyDevil « 1 2 » |
25 Replies
14,270 Views |
June 17, 2009, 12:33:36 am by SkinnyDevil |
||
Question for chicken-farming RPDers
Started by TylerDurden « 1 2 » |
25 Replies
9,687 Views |
August 03, 2016, 02:13:54 am by Projectile Vomit |
||
25 Replies
15,513 Views |
February 26, 2010, 10:25:57 pm by William |
|||
25 Replies
10,213 Views |
November 04, 2012, 08:10:08 pm by Dorothy |
|||
25 Replies
23,619 Views |
July 26, 2008, 10:37:27 am by Metallica |
|||
25 Replies
14,036 Views |
October 15, 2010, 10:20:05 am by donrad |
|||
25 Replies
16,628 Views |
August 25, 2011, 09:52:41 pm by raw-al |
|||
Raw sardines?
Started by spitfiredd1 « 1 2 » |
25 Replies
15,790 Views |
April 03, 2012, 01:22:42 am by svrn |
||
25 Replies
10,148 Views |
October 01, 2011, 11:47:41 pm by RogueFarmer |
|||
25 Replies
13,015 Views |
March 16, 2012, 08:06:33 am by Charlie4444 |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll