/* * 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 ![]() |
Last post | ||
---|---|---|---|---|
0 Members and 17 Guests are viewing this board. | ||||
![]() |
![]() |
The Truth About Ketons & Ketosis
Started by Nicola |
21 Replies
16,920 Views |
![]() by wodgina |
![]() |
![]() |
more raw paleo in the news
Started by Vlad |
22 Replies
14,655 Views |
![]() by Cinna |
![]() |
![]() |
Why drinking water is bad.
Started by kurite |
22 Replies
14,190 Views |
![]() by KD |
![]() |
![]() |
Raw Foodist Retreat in Spain
Started by TylerDurden |
23 Replies
21,250 Views |
![]() by dair |
![]() |
![]() |
25 Replies
13,462 Views |
![]() by svrn |
|
![]() |
![]() |
26 Replies
19,012 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
26 Replies
13,735 Views |
![]() by Projectile Vomit |
|
![]() |
![]() |
27 Replies
19,224 Views |
![]() by Iguana |
|
![]() |
![]() |
Forum Upgraded to SMF 2.0.1 - Bugs and Updates Here
Started by goodsamaritan « 1 2 » |
27 Replies
17,135 Views |
![]() by Löwenherz |
![]() |
![]() |
28 Replies
16,738 Views |
![]() by infinitenexus |
|
![]() |
![]() |
28 Replies
19,907 Views |
![]() by raw |
|
![]() |
![]() |
28 Replies
17,346 Views |
![]() by Michael |
|
![]() |
![]() |
32 Replies
17,210 Views |
![]() by HIT_it_RAW |
|
![]() |
![]() |
Price check on Meat
Started by sabertooth « 1 2 » |
34 Replies
17,511 Views |
![]() by sabertooth |
![]() |
![]() |
34 Replies
24,261 Views |
![]() by TylerDurden |
|
![]() |
![]() |
34 Replies
19,451 Views |
![]() by RawZi |
|
![]() |
![]() |
"Out of Africa" Theory Officially Debunked
Started by goodsamaritan « 1 2 » |
38 Replies
23,669 Views |
![]() by PaleoPhil |
![]() |
![]() |
46 Replies
25,311 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
47 Replies
27,471 Views |
![]() by Dorothy |
|
![]() |
![]() |
48 Replies
27,296 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Almost every kind of wild fish is infected with worms
Started by MaximilianKohler « 1 2 » |
49 Replies
44,395 Views |
![]() by Sol^Sa |
![]() |
![]() |
49 Replies
39,176 Views |
![]() by Techydude |
|
![]() |
![]() |
50 Replies
37,325 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
New server. Supposed to be faster. Feedback please.
Started by goodsamaritan « 1 2 3 » |
56 Replies
25,520 Views |
![]() by bookittyrun |
![]() |
![]() |
61 Replies
38,679 Views |
![]() by afroza |
|
![]() |
![]() |
Where Have all the Cowboys Gone (Russia?)
Started by sabertooth « 1 2 3 » |
67 Replies
45,359 Views |
![]() by sabertooth |
![]() |
![]() |
79 Replies
33,888 Views |
![]() by TylerDurden |
|
![]() |
![]() |
482 Replies
373,562 Views |
![]() by dariorpl |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll