/* * 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 7 Guests are viewing this board. | ||||
5 Replies
2,863 Views |
September 09, 2010, 01:18:21 pm by kurite |
|||
New member: Western Australia
Started by Atu |
14 Replies
6,354 Views |
April 12, 2010, 09:47:02 pm by Atu |
||
New Member:Geoff
Started by TylerDurden |
3 Replies
6,318 Views |
May 06, 2008, 12:48:49 am by Craig |
||
0 Replies
1,689 Views |
August 02, 2010, 12:07:31 pm by SuplementosDude |
|||
3 Replies
2,704 Views |
January 02, 2012, 03:58:29 pm by RawZi |
|||
New raw eater.
Started by Nucleus |
0 Replies
1,580 Views |
February 10, 2021, 03:09:02 am by Nucleus |
||
New raw paleo woman
Started by Louna |
8 Replies
4,397 Views |
October 30, 2010, 06:30:15 am by TylerDurden |
||
New to community, Have some questions
Started by consoomer |
3 Replies
1,422 Views |
April 25, 2022, 04:41:57 pm by MarkR |
||
new to forum and question
Started by mentisafer |
12 Replies
5,893 Views |
November 28, 2009, 09:56:11 am by djr_81 |
||
8 Replies
5,606 Views |
February 17, 2009, 04:32:21 am by Satya |
|||
New to Paleo
Started by brodude |
1 Replies
2,486 Views |
October 14, 2014, 10:03:31 pm by goodsamaritan |
||
new to paleo
Started by brettie vedder |
2 Replies
2,542 Views |
April 28, 2010, 08:47:29 am by PaleoPhil |
||
New to Paleo, considering more raw
Started by CinnamonGirl |
4 Replies
2,395 Views |
August 29, 2010, 09:09:07 pm by shannon |
||
New to RAF diet
Started by magnetic |
5 Replies
3,431 Views |
February 20, 2011, 08:02:36 am by magnetic |
||
New to raw animal foods
Started by joej627 |
3 Replies
2,347 Views |
September 30, 2011, 06:33:23 am by TylerDurden |
||
New to raw animal foods
Started by moogs |
7 Replies
5,043 Views |
November 30, 2012, 11:49:57 am by jessica |
||
New to Raw Paleo
Started by QueenC |
5 Replies
3,255 Views |
November 10, 2011, 02:58:31 am by Löwenherz |
||
11 Replies
5,450 Views |
March 24, 2010, 09:34:14 pm by RawZi |
|||
New to Raw Paleo, in search of health
Started by Rob |
3 Replies
2,305 Views |
August 06, 2010, 04:04:49 am by TylerDurden |
||
20 Replies
10,337 Views |
April 15, 2010, 05:34:02 am by nummytummy |
|||
5 Replies
3,087 Views |
July 01, 2011, 06:36:32 pm by TylerDurden |
|||
2 Replies
1,999 Views |
January 31, 2011, 07:21:27 am by micelte |
|||
New to RPD, some questions !
Started by ciervo-chaman |
8 Replies
5,827 Views |
December 29, 2014, 07:43:35 am by dariorpl |
||
New to the Forum!
Started by Rawman1 |
19 Replies
7,068 Views |
August 21, 2010, 02:18:08 am by Rawman1 |
||
New to the Paleo lifestyle
Started by Johnh |
1 Replies
1,902 Views |
October 12, 2012, 11:08:44 pm by TylerDurden |
||
13 Replies
6,040 Views |
June 25, 2016, 09:30:19 pm by TylerDurden |
|||
New to this forum..
Started by Fats |
8 Replies
4,203 Views |
January 25, 2012, 06:33:22 am by TylerDurden |
||
7 Replies
4,302 Views |
February 25, 2010, 11:46:21 pm by sevenpoints |
|||
New user pookietooth
Started by pookietooth |
5 Replies
4,722 Views |
July 27, 2008, 06:38:29 am by pookietooth |
||
New User, but been on Paleo a while.
Started by WeaselWoman |
7 Replies
4,997 Views |
February 05, 2014, 03:40:03 pm by WeaselWoman |
||
New with a beginner challenge
Started by alycia |
14 Replies
7,567 Views |
May 06, 2011, 11:27:03 am by Ioanna |
||
New with many questions
Started by Tin_Man |
4 Replies
2,581 Views |
July 24, 2012, 08:33:33 am by joej627 |
||
1 Replies
2,144 Views |
January 13, 2011, 11:36:40 pm by TylerDurden |
|||
Newbie From Brazil
Started by leakybrain |
1 Replies
2,917 Views |
August 16, 2016, 08:01:08 pm by TylerDurden |
||
Newbie from Illinois
Started by xEdgexRNx |
4 Replies
3,259 Views |
May 26, 2009, 06:28:44 pm by TylerDurden |
||
6 Replies
3,382 Views |
August 16, 2012, 12:40:23 am by RomanK |
|||
Newbie here
Started by Raw Forever |
8 Replies
4,282 Views |
December 07, 2009, 05:58:11 am by Raw Forever |
||
newbie here
Started by shannon |
3 Replies
2,115 Views |
August 28, 2010, 07:35:31 pm by TylerDurden |
||
Newbie Here :)
Started by Ioanna |
11 Replies
7,044 Views |
February 03, 2009, 12:34:13 pm by RawZi |
||
5 Replies
3,202 Views |
September 03, 2010, 02:43:51 am by TylerDurden |
|||
Newbie Paleo
Started by starrytri |
7 Replies
4,349 Views |
December 30, 2010, 03:36:50 am by miles |
||
newbie query
Started by nightmare |
1 Replies
2,596 Views |
October 31, 2014, 11:50:46 pm by eveheart |
||
Newbie to Raw meat...
Started by Chronic |
9 Replies
4,435 Views |
June 15, 2013, 03:13:31 am by LifeIsExperience |
||
9 Replies
4,079 Views |
January 17, 2012, 12:09:58 pm by Carnál |
|||
1 Replies
2,843 Views |
April 22, 2016, 07:26:10 pm by TylerDurden |
|||
NEWBIE!!!! Q & A
Started by Lancelion |
18 Replies
7,300 Views |
September 04, 2010, 02:29:04 am by Lancelion |
||
7 Replies
3,843 Views |
February 12, 2014, 07:32:41 am by Celeste |
|||
Newcomer needs some expert advice
Started by zbr5 |
3 Replies
3,000 Views |
May 16, 2011, 12:15:32 am by zbr5 |
||
27 Replies
15,109 Views |
November 04, 2012, 09:21:36 pm by LePatron7 |
|||
Nice to meet you all, from Italy
Started by TheArt |
3 Replies
2,684 Views |
November 12, 2018, 06:12:14 am by norawnofun |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll