/* * 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 107 Guests are viewing this board. | ||||
![]() |
![]() |
26 Replies
14,231 Views |
![]() by sabertooth |
|
![]() |
![]() |
26 Replies
15,672 Views |
![]() by RawZi |
|
![]() |
![]() |
26 Replies
18,802 Views |
![]() by AlexWulf |
|
![]() |
![]() |
26 Replies
15,904 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Two questions! (buying and washing)
Started by AnopsStudier « 1 2 » |
26 Replies
13,829 Views |
![]() by Iguana |
![]() |
![]() |
26 Replies
16,626 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Dairy indecision
Started by sabertooth « 1 2 » |
26 Replies
17,236 Views |
![]() by sabertooth |
![]() |
![]() |
Tea?
Started by yon yonson « 1 2 » |
26 Replies
17,947 Views |
![]() by RawZi |
![]() |
![]() |
26 Replies
20,571 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
26 Replies
17,436 Views |
![]() by van |
|
![]() |
![]() |
Are you eating CASTRATED livestock?
Started by goodsamaritan « 1 2 » |
26 Replies
17,218 Views |
![]() by sabertooth |
![]() |
![]() |
26 Replies
19,751 Views |
![]() by eveheart |
|
![]() |
![]() |
26 Replies
33,453 Views |
![]() by CatTreats |
|
![]() |
![]() |
26 Replies
84,761 Views |
![]() by Suiren |
|
![]() |
![]() |
Brushing your teeth
Started by A_Tribe_Called_Paleo « 1 2 » |
26 Replies
17,678 Views |
![]() by svrn |
![]() |
![]() |
food monster
Started by littleElefant « 1 2 » |
26 Replies
16,769 Views |
![]() by political atheist |
![]() |
![]() |
Tongue
Started by TheWayCreatesTheWarrior « 1 2 » |
26 Replies
15,722 Views |
![]() by eveheart |
![]() |
![]() |
26 Replies
20,032 Views |
![]() by MaximilianKohler |
|
![]() |
![]() |
26 Replies
23,374 Views |
![]() by FRANCIS HOWARD BOND |
|
![]() |
![]() |
26 Replies
16,208 Views |
![]() by Lynnzard |
|
![]() |
![]() |
26 Replies
17,468 Views |
![]() by Bacchal |
|
![]() |
![]() |
26 Replies
15,728 Views |
![]() by TylerDurden |
|
![]() |
![]() |
26 Replies
20,261 Views |
![]() by Löwenherz |
|
![]() |
![]() |
The FDA again this is FUCKING FASCISM
Started by achillezzz « 1 2 » |
26 Replies
14,872 Views |
![]() by Iguana |
![]() |
![]() |
Raw sardines?
Started by spitfiredd1 « 1 2 » |
25 Replies
18,162 Views |
![]() by svrn |
![]() |
![]() |
25 Replies
14,013 Views |
![]() by tests |
|
![]() |
![]() |
25 Replies
12,209 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Fish
Started by political atheist « 1 2 » |
25 Replies
15,915 Views |
![]() by PaleoPhil |
![]() |
![]() |
25 Replies
17,266 Views |
![]() by balancing-act |
|
![]() |
![]() |
25 Replies
13,444 Views |
![]() by jessica |
|
![]() |
![]() |
25 Replies
18,993 Views |
![]() by LePatron7 |
|
![]() |
![]() |
25 Replies
11,991 Views |
![]() by RogueFarmer |
|
![]() |
![]() |
25 Replies
16,736 Views |
![]() by donrad |
|
![]() |
![]() |
25 Replies
13,899 Views |
![]() by miles |
|
![]() |
![]() |
25 Replies
19,136 Views |
![]() by raw-al |
|
![]() |
![]() |
25 Replies
14,297 Views |
![]() by van |
|
![]() |
![]() |
25 Replies
25,092 Views |
![]() by Hannibal |
|
![]() |
![]() |
25 Replies
13,862 Views |
![]() by TylerDurden |
|
![]() |
![]() |
25 Replies
13,302 Views |
![]() by Dorothy |
|
![]() |
![]() |
Question for chicken-farming RPDers
Started by TylerDurden « 1 2 » |
25 Replies
14,063 Views |
![]() by Projectile Vomit |
![]() |
![]() |
25 Replies
19,328 Views |
![]() by van |
|
![]() |
![]() |
Man the Scavenger like a Vulture?
Started by goodsamaritan « 1 2 » |
25 Replies
15,458 Views |
![]() by William |
![]() |
![]() |
25 Replies
15,894 Views |
![]() by p0wer |
|
![]() |
![]() |
25 Replies
18,610 Views |
![]() by William |
|
![]() |
![]() |
25 Replies
17,482 Views |
![]() by Charlie4444 |
|
![]() |
![]() |
25 Replies
27,060 Views |
![]() by Metallica |
|
![]() |
![]() |
25 Replies
13,111 Views |
![]() by Adora |
|
![]() |
![]() |
25 Replies
16,601 Views |
![]() by donrad |
|
![]() |
![]() |
Meat to Veg/Fruit ratio?
Started by SkinnyDevil « 1 2 » |
25 Replies
16,870 Views |
![]() by SkinnyDevil |
![]() |
![]() |
teeth decay and dairy
Started by achillezzz « 1 2 » |
25 Replies
14,248 Views |
![]() by PaleoPhil |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll