/* * 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. | ||||
![]() |
![]() |
Forum Upgraded to SMF 2.0.1 - Bugs and Updates Here
Started by goodsamaritan « 1 2 » |
27 Replies
17,031 Views |
![]() by Löwenherz |
![]() |
![]() |
32 Replies
17,179 Views |
![]() by HIT_it_RAW |
|
![]() |
![]() |
28 Replies
17,266 Views |
![]() by Michael |
|
![]() |
![]() |
Price check on Meat
Started by sabertooth « 1 2 » |
34 Replies
17,389 Views |
![]() by sabertooth |
![]() |
![]() |
Cordain Newsletter Nightshades part 3
Started by TylerDurden |
4 Replies
17,802 Views |
![]() by letsdoiteczema |
![]() |
![]() |
26 Replies
18,897 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
27 Replies
19,036 Views |
![]() by Iguana |
|
![]() |
![]() |
34 Replies
19,273 Views |
![]() by RawZi |
|
![]() |
![]() |
28 Replies
19,772 Views |
![]() by raw |
|
![]() |
![]() |
14 Replies
19,816 Views |
![]() by Projectile Vomit |
|
![]() |
![]() |
Raw Foodist Retreat in Spain
Started by TylerDurden |
23 Replies
21,160 Views |
![]() by dair |
![]() |
![]() |
"Out of Africa" Theory Officially Debunked
Started by goodsamaritan « 1 2 » |
38 Replies
23,474 Views |
![]() by PaleoPhil |
![]() |
![]() |
34 Replies
24,091 Views |
![]() by TylerDurden |
|
![]() |
![]() |
3 Replies
24,562 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
46 Replies
25,014 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
New server. Supposed to be faster. Feedback please.
Started by goodsamaritan « 1 2 3 » |
56 Replies
25,342 Views |
![]() by bookittyrun |
![]() |
![]() |
48 Replies
27,116 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
47 Replies
27,377 Views |
![]() by Dorothy |
|
![]() |
![]() |
Hashimoto's thyroiditis & the paleo diet
Started by Nicola |
8 Replies
28,735 Views |
![]() by RawZi |
![]() |
![]() |
79 Replies
33,601 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Vitamin C and carnivorism
Started by xylothrill |
19 Replies
36,965 Views |
![]() by Xisca |
![]() |
![]() |
50 Replies
37,113 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
61 Replies
38,419 Views |
![]() by afroza |
|
![]() |
![]() |
49 Replies
39,042 Views |
![]() by Techydude |
|
![]() |
![]() |
Almost every kind of wild fish is infected with worms
Started by MaximilianKohler « 1 2 » |
49 Replies
44,186 Views |
![]() by Sol^Sa |
![]() |
![]() |
Where Have all the Cowboys Gone (Russia?)
Started by sabertooth « 1 2 3 » |
67 Replies
45,140 Views |
![]() by sabertooth |
![]() |
![]() |
2 Replies
50,108 Views |
![]() by Xisca |
|
![]() |
![]() |
482 Replies
370,940 Views |
![]() by dariorpl |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll