/* * 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 10 Guests are viewing this board. | ||||
New with a beginner challenge
Started by alycia |
14 Replies
7,397 Views |
May 06, 2011, 11:27:03 am by Ioanna |
||
Introduction and a question
Started by larrymagee « 1 2 » |
28 Replies
11,820 Views |
May 05, 2011, 03:52:05 am by elysianisis |
||
Getting back into the swing of things
Started by nicolegreen |
15 Replies
6,185 Views |
April 05, 2011, 11:14:12 am by Ioanna |
||
finally there
Started by HIT_it_RAW |
4 Replies
2,778 Views |
April 01, 2011, 11:36:25 pm by HIT_it_RAW |
||
MXV introduction
Started by MXV |
6 Replies
3,477 Views |
March 29, 2011, 06:14:23 pm by MXV |
||
3 Replies
2,984 Views |
March 24, 2011, 08:43:53 am by CitrusHigh |
|||
15 Replies
7,313 Views |
March 17, 2011, 11:59:55 am by Techydude |
|||
Hey - Questions on Raw Meat (Surprise!)
Started by Isthmus |
7 Replies
4,570 Views |
March 12, 2011, 02:52:10 am by magnetic |
||
1 Replies
2,505 Views |
March 10, 2011, 09:32:03 pm by goodsamaritan |
|||
34 Replies
14,726 Views |
March 09, 2011, 06:45:39 am by goodsamaritan |
|||
Another dietary freak
Started by caban |
13 Replies
7,301 Views |
March 03, 2011, 03:59:41 am by caban |
||
Hi RPDers Alex here
Started by Alex |
12 Replies
6,493 Views |
February 23, 2011, 02:47:37 pm by presynaras |
||
Just a new guy that scared of raw paleo
Started by achillezzz « 1 2 » |
31 Replies
12,927 Views |
February 20, 2011, 11:02:43 am by miles |
||
Hi! Salutations from spain
Started by Living all Raw |
16 Replies
8,073 Views |
February 20, 2011, 10:05:04 am by magnetic |
||
New to RAF diet
Started by magnetic |
5 Replies
3,395 Views |
February 20, 2011, 08:02:36 am by magnetic |
||
Hi Everyone!
Started by Viola |
14 Replies
6,156 Views |
February 19, 2011, 09:21:03 pm by magnetic |
||
Hello RAW-PALEO-WORLD!! Party ON!
Started by Löwenherz « 1 2 3 » |
50 Replies
18,867 Views |
February 18, 2011, 04:37:22 am by Gwadatraveller |
||
insects anyone?
Started by jaktron |
22 Replies
9,634 Views |
February 18, 2011, 04:21:52 am by Gwadatraveller |
||
Hey guys!
Started by trevowens20 |
6 Replies
7,285 Views |
February 17, 2011, 07:12:53 am by goodsamaritan |
||
Jasper Lawrence here
Started by JasperLawrence « 1 2 » |
36 Replies
15,864 Views |
February 14, 2011, 05:25:05 pm by JasperLawrence |
||
29 Replies
12,981 Views |
February 13, 2011, 07:39:59 pm by Bronwen |
|||
Greg, Poland
Started by tiamat |
3 Replies
2,268 Views |
February 06, 2011, 01:34:01 pm by goodsamaritan |
||
7 Replies
4,060 Views |
February 06, 2011, 06:56:19 am by achillezzz |
|||
Hello from the Queen City!
Started by Hannah |
10 Replies
4,947 Views |
February 01, 2011, 08:03:03 am by deletemyaccount |
||
food amounts
Started by jamiekelly |
10 Replies
4,778 Views |
February 01, 2011, 07:08:02 am by deletemyaccount |
||
2 Replies
1,976 Views |
January 31, 2011, 07:21:27 am by micelte |
|||
Hello. I am new to this forum
Started by dillis14 |
2 Replies
1,933 Views |
January 30, 2011, 02:16:49 am by Bronwen |
||
8 Replies
3,671 Views |
January 27, 2011, 09:27:21 am by Paleo93 |
|||
My intro
Started by raw_iz_good |
1 Replies
1,891 Views |
January 24, 2011, 04:48:44 pm by TylerDurden |
||
Hi everyone! just taking a look around
Started by babetteq |
1 Replies
1,863 Views |
January 23, 2011, 12:38:03 am by TylerDurden |
||
Hellllo nurse!
Started by CitrusHigh |
7 Replies
3,626 Views |
January 20, 2011, 05:55:53 pm by Bowen |
||
26 Replies
11,722 Views |
January 14, 2011, 02:39:07 am by Brother |
|||
1 Replies
2,073 Views |
January 13, 2011, 11:36:40 pm by TylerDurden |
|||
122 Replies
41,083 Views |
January 12, 2011, 04:15:33 pm by Stig of the Dump |
|||
Hello from NJ
Started by Dima |
23 Replies
9,854 Views |
January 08, 2011, 01:07:38 am by turkish |
||
Weight Training
Started by jliska |
1 Replies
1,932 Views |
January 07, 2011, 12:24:38 pm by Sully |
||
1 Replies
1,845 Views |
January 06, 2011, 02:08:06 am by TylerDurden |
|||
Jumping in Cold Turkey
Started by Beyonder |
5 Replies
3,383 Views |
January 05, 2011, 06:16:19 am by TylerDurden |
||
A Quick Peep
Started by David Howe |
4 Replies
2,705 Views |
January 03, 2011, 12:39:54 pm by David Howe |
||
A guy searching for good health...
Started by CHK91 |
9 Replies
5,501 Views |
January 01, 2011, 11:19:45 pm by sabertooth |
||
Newbie Paleo
Started by starrytri |
7 Replies
4,270 Views |
December 30, 2010, 03:36:50 am by miles |
||
day1: raw salmon
Started by rjawad |
7 Replies
4,372 Views |
December 29, 2010, 02:13:00 am by miles |
||
5 Replies
3,140 Views |
December 28, 2010, 05:32:28 pm by TylerDurden |
|||
Colorado off-grid
Started by Snowflower |
3 Replies
2,439 Views |
December 27, 2010, 10:53:08 am by goodsamaritan |
||
33 Replies
11,991 Views |
December 20, 2010, 04:24:04 pm by rawgypsy |
|||
Hello everyone
Started by Steve2403 |
8 Replies
3,385 Views |
December 20, 2010, 10:36:52 am by TylerDurden |
||
another newbie.... or actually not quite yet
Started by UB |
6 Replies
3,685 Views |
December 08, 2010, 12:02:13 am by UB |
||
3 Replies
2,324 Views |
December 04, 2010, 10:29:04 pm by Ioanna |
|||
Hey
Started by SteakNchop |
11 Replies
4,667 Views |
December 04, 2010, 09:46:37 am by PaleoPhil |
||
Greetings to everyone!
Started by Caveman |
3 Replies
2,192 Views |
December 02, 2010, 11:22:08 am by goodsamaritan |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll