/* * 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 37 Guests are viewing this board. | ||||
34 Replies
14,891 Views |
October 23, 2013, 09:33:23 pm by goodsamaritan |
|||
27 Replies
14,867 Views |
January 04, 2013, 08:34:43 am by PaleoPhil |
|||
11 Replies
14,861 Views |
April 23, 2010, 06:25:00 pm by Raw Kyle |
|||
29 Replies
14,815 Views |
January 17, 2010, 07:17:37 am by PaleoPhil |
|||
22 Replies
14,741 Views |
November 08, 2009, 09:29:55 pm by TylerDurden |
|||
23 Replies
14,697 Views |
November 10, 2011, 08:54:54 am by PaleoPhil |
|||
34 Replies
14,634 Views |
May 01, 2010, 12:06:41 am by alphagruis |
|||
36 Replies
14,624 Views |
September 09, 2010, 08:05:01 am by goodsamaritan |
|||
Bioengineered herpes is good for you
Started by sabertooth « 1 2 » |
33 Replies
14,588 Views |
August 21, 2010, 10:58:02 pm by Raw Kyle |
||
Eating Algae?
Started by laterade |
23 Replies
14,505 Views |
April 08, 2015, 02:06:10 am by sabertooth |
||
34 Replies
14,474 Views |
January 31, 2010, 01:52:47 am by TylerDurden |
|||
28 Replies
14,286 Views |
November 20, 2009, 12:34:00 pm by invisible |
|||
Raw Nut Digestion
Started by Wolf |
12 Replies
14,251 Views |
February 23, 2011, 01:33:23 pm by Wolf |
||
29 Replies
14,202 Views |
November 15, 2010, 04:26:04 am by PaleoPhil |
|||
39 Replies
14,193 Views |
April 09, 2017, 01:19:32 am by cobalamin |
|||
Cooked meat and health
Started by Daryl |
23 Replies
14,184 Views |
March 09, 2009, 05:16:09 am by van |
||
Fruitarian Horror Movie
Started by Löwenherz |
21 Replies
14,162 Views |
February 26, 2012, 05:48:37 am by Löwenherz |
||
39 Replies
14,091 Views |
October 02, 2009, 10:23:50 am by PaleoPhil |
|||
32 Replies
13,994 Views |
July 24, 2011, 03:08:30 am by RawZi |
|||
Too many bananas? What's the story?
Started by cobalamin |
21 Replies
13,975 Views |
June 15, 2012, 05:36:04 am by cobalamin |
||
I want to keep my appendix/appendicitis
Started by Techydude |
22 Replies
13,932 Views |
March 25, 2011, 05:54:28 pm by magnetic |
||
Operation Osmin: FISH SALAD AND WATER!
Started by Sully |
4 Replies
13,927 Views |
February 28, 2012, 12:35:03 pm by Sully |
||
26 Replies
13,660 Views |
May 03, 2011, 03:36:14 am by Löwenherz |
|||
Anomaly
Started by TylerDurden « 1 2 » |
34 Replies
13,602 Views |
October 06, 2013, 12:07:24 pm by paper_clips43 |
||
27 Replies
13,544 Views |
December 02, 2008, 07:11:47 am by TylerDurden |
|||
109 Year Old Man health secrets
Started by King Salmon |
23 Replies
13,506 Views |
February 10, 2011, 07:51:03 am by michaelwh |
||
Eat healthy, eat fast food!
Started by Nicola |
18 Replies
13,496 Views |
December 30, 2009, 03:04:24 am by TylerDurden |
||
26 Replies
13,417 Views |
June 02, 2010, 05:18:04 pm by miles |
|||
34 Replies
13,407 Views |
August 16, 2010, 05:48:39 am by Wolf |
|||
Got a parasite!
Started by technosmith « 1 2 » |
31 Replies
13,396 Views |
February 23, 2011, 02:12:22 pm by goodsamaritan |
||
38 Replies
13,308 Views |
February 20, 2010, 07:50:09 am by kurite |
|||
31 Replies
13,241 Views |
February 20, 2012, 12:59:21 pm by svrn |
|||
Is salami raw?
Started by Stancel |
15 Replies
13,217 Views |
December 20, 2010, 11:48:19 am by yon yonson |
||
29 Replies
13,111 Views |
July 03, 2013, 01:00:10 pm by svrn |
|||
23 Replies
13,050 Views |
April 12, 2016, 09:45:07 pm by drewpalermo |
|||
Another Dairy Topic
Started by yon yonson « 1 2 » |
30 Replies
12,954 Views |
March 23, 2010, 04:41:42 am by RawZi |
||
33 Replies
12,858 Views |
June 25, 2013, 04:52:34 am by PaleoPhil |
|||
29 Replies
12,723 Views |
February 20, 2013, 09:39:55 pm by Löwenherz |
|||
26 Replies
12,642 Views |
February 29, 2012, 04:49:22 am by svrn |
|||
31 Replies
12,575 Views |
August 14, 2011, 11:55:07 pm by Dorothy |
|||
Glucomannan noodles?
Started by yuli |
15 Replies
12,548 Views |
November 15, 2010, 11:24:27 am by TylerDurden |
||
34 Replies
12,547 Views |
November 01, 2010, 06:12:31 am by TylerDurden |
|||
Kombucha tea anyone?
Started by HIT_it_RAW |
23 Replies
12,538 Views |
April 30, 2012, 04:01:53 am by eveheart |
||
34 Replies
12,500 Views |
May 31, 2012, 05:11:42 am by svrn |
|||
29 Replies
12,454 Views |
June 07, 2010, 11:48:28 am by tehshyt |
|||
27 Replies
12,422 Views |
August 01, 2010, 03:36:06 am by raw-al |
|||
29 Replies
12,378 Views |
July 09, 2012, 08:39:41 am by Dorothy |
|||
25 Replies
12,376 Views |
August 05, 2010, 10:35:19 am by Sully |
|||
30 Replies
12,358 Views |
March 31, 2010, 04:44:04 pm by TylerDurden |
|||
I've been experimenting with coffee
Started by cherimoya_kid |
19 Replies
12,269 Views |
November 23, 2015, 04:30:18 am by cherimoya_kid |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll