/* * 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 24 Guests are viewing this board. | ||||
5 Replies
5,792 Views |
November 05, 2009, 08:06:04 am by RawpaleoHealthdiet |
|||
4 Replies
3,285 Views |
November 05, 2009, 11:35:15 am by RawZi |
|||
quickly getting rid of flu
Started by uph0 |
7 Replies
5,696 Views |
November 07, 2009, 09:50:56 pm by livingthelife |
||
What's your Body Mass Index? BMI?
Started by goodsamaritan |
16 Replies
8,992 Views |
November 12, 2009, 06:54:04 pm by niken |
||
25 Replies
16,192 Views |
November 13, 2009, 12:03:08 am by raw |
|||
6 Replies
5,477 Views |
November 13, 2009, 03:54:43 am by raw |
|||
Hypothyroidism
Started by Felicie |
4 Replies
8,353 Views |
November 15, 2009, 08:26:01 am by jessica |
||
5 Replies
4,400 Views |
November 17, 2009, 01:15:55 pm by RawZi |
|||
Food Sensitivities
Started by Spearhead |
4 Replies
3,612 Views |
November 19, 2009, 07:54:09 am by Ioanna |
||
Lower Blood Pressure?
Started by Spearhead |
6 Replies
7,232 Views |
November 28, 2009, 04:13:47 am by Michael |
||
4 Replies
3,711 Views |
December 01, 2009, 04:08:00 am by raw |
|||
51 Replies
30,993 Views |
December 07, 2009, 08:57:10 am by RawZi |
|||
35 Replies
17,857 Views |
December 08, 2009, 01:26:25 am by RawZi |
|||
6 Replies
5,363 Views |
December 10, 2009, 12:40:24 pm by raw |
|||
37 Replies
20,431 Views |
December 10, 2009, 05:49:05 pm by TylerDurden |
|||
RAF and pH levels
Started by Dissident |
15 Replies
9,128 Views |
December 13, 2009, 11:10:48 pm by Dissident |
||
lip remedy
Started by Ioanna |
5 Replies
4,032 Views |
December 16, 2009, 08:26:51 pm by PaleoPhil |
||
Lex: Fat high v low
Started by SkinnyDevil |
18 Replies
10,092 Views |
December 22, 2009, 12:30:22 pm by PaleoPhil |
||
acceptable substitute?
Started by jessica |
7 Replies
6,358 Views |
December 25, 2009, 03:16:26 am by alphagruis |
||
3 Replies
3,909 Views |
December 26, 2009, 12:56:43 am by PaleoPhil |
|||
My 8 year old son has been diagnosed with tuberculosis
Started by goodsamaritan « 1 2 3 » |
51 Replies
24,289 Views |
December 27, 2009, 06:38:57 am by RawZi |
||
Heart Hurts When Sleeping On My Left Side
Started by marshel |
3 Replies
5,649 Views |
December 29, 2009, 09:29:20 pm by RawZi |
||
Nail Care Tips
Started by marshel |
5 Replies
4,165 Views |
January 04, 2010, 03:45:40 am by redfulcrum |
||
Scabies and scary western medicine
Started by phatdave |
3 Replies
3,746 Views |
January 04, 2010, 05:28:04 am by redfulcrum |
||
57 Replies
27,945 Views |
January 04, 2010, 05:32:10 am by redfulcrum |
|||
Packaking Of (children's) Foods
Started by marshel |
2 Replies
2,769 Views |
January 04, 2010, 06:43:50 am by redfulcrum |
||
Foot Fungus
Started by Guittarman03 |
19 Replies
11,743 Views |
January 04, 2010, 10:54:39 am by van |
||
18 Replies
10,040 Views |
January 04, 2010, 06:28:08 pm by TylerDurden |
|||
Neuro-lymphatic points
Started by majormark |
2 Replies
3,802 Views |
January 12, 2010, 03:51:13 pm by majormark |
||
6 Replies
4,048 Views |
January 19, 2010, 12:30:16 am by TylerDurden |
|||
3 Replies
2,633 Views |
January 20, 2010, 01:55:34 am by van |
|||
Sedentary Lifestyles
Started by extralizard13 « 1 2 » |
26 Replies
16,687 Views |
January 20, 2010, 05:20:19 am by extralizard13 |
||
1 Replies
2,583 Views |
January 21, 2010, 03:45:37 am by RawZi |
|||
infected wound?
Started by yon yonson « 1 2 » |
25 Replies
14,308 Views |
January 21, 2010, 09:16:52 am by roony |
||
Were we meant to be extinct?
Started by goodsamaritan |
21 Replies
10,525 Views |
January 22, 2010, 12:04:51 pm by William |
||
14 Replies
7,209 Views |
January 22, 2010, 08:54:18 pm by roony |
|||
36 Replies
17,565 Views |
January 23, 2010, 10:12:53 am by PaleoPhil |
|||
42 Replies
17,553 Views |
January 24, 2010, 02:43:39 am by klowcarb |
|||
really red lips
Started by nicolegreen |
13 Replies
8,505 Views |
January 26, 2010, 01:41:23 am by nicolegreen |
||
6 Replies
5,912 Views |
January 27, 2010, 12:12:40 pm by PaleoPhil |
|||
13 Replies
8,028 Views |
January 29, 2010, 01:49:39 am by majormark |
|||
39 Replies
27,480 Views |
January 31, 2010, 01:42:59 am by TylerDurden |
|||
26 Replies
12,577 Views |
January 31, 2010, 04:50:44 am by William |
|||
I dont understand raw meat???
Started by kurite |
9 Replies
6,518 Views |
February 14, 2010, 11:54:12 pm by lex_rooker |
||
Broken bone
Started by afroza |
6 Replies
5,287 Views |
February 15, 2010, 12:25:36 am by RawZi |
||
I think I might need a Root Canal
Started by Dwight |
20 Replies
11,330 Views |
February 15, 2010, 05:11:29 am by Stig of the Dump |
||
Great Article on Healing a Persons Eyesight
Started by roony |
1 Replies
2,913 Views |
February 16, 2010, 12:52:48 am by Ronaldo10 |
||
2 Replies
2,768 Views |
February 16, 2010, 12:54:21 am by Ronaldo10 |
|||
RPD inspired advice for dry skin
Started by goodsamaritan |
4 Replies
3,450 Views |
February 16, 2010, 04:18:43 am by van |
||
Hair loss!
Started by anu |
5 Replies
4,422 Views |
February 16, 2010, 07:52:01 pm by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll