/* * 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 2 Guests are viewing this board. | ||||
![]() |
![]() |
Pictures of Caribou herders
Started by ys |
10 Replies
13,584 Views |
![]() by raw |
![]() |
![]() |
12 Replies
16,363 Views |
![]() by FoxWoman |
|
![]() |
![]() |
8 Replies
9,565 Views |
![]() by achillezzz |
|
![]() |
![]() |
Milk and Natural Selection
Started by Fermenter Zym |
8 Replies
10,726 Views |
![]() by Fermenter Zym |
![]() |
![]() |
8 Replies
10,922 Views |
![]() by raw-al |
|
![]() |
![]() |
Bone Stock
Started by Satya |
18 Replies
19,411 Views |
![]() by donrad |
![]() |
![]() |
Strictly Meat and Milk
Started by Coatue |
14 Replies
15,382 Views |
![]() by SteakNchop |
![]() |
![]() |
Anti Weston Pricer's are hypocrites
Started by ster546464@yahoo.co.uk « 1 2 » |
32 Replies
20,389 Views |
![]() by ster546464@yahoo.co.uk |
![]() |
![]() |
Beautiful People
Started by wodgina |
14 Replies
18,446 Views |
![]() by djr_81 |
![]() |
![]() |
stock made with clam shells?
Started by shannon |
2 Replies
5,143 Views |
![]() by RawZi |
![]() |
![]() |
51 Replies
35,508 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Fan of Price's work
Started by Satya |
24 Replies
19,698 Views |
![]() by raw-al |
![]() |
![]() |
coconut oil
Started by shannon |
5 Replies
6,598 Views |
![]() by TylerDurden |
![]() |
![]() |
35 Replies
29,691 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
11 Replies
9,538 Views |
![]() by sven |
|
![]() |
![]() |
12 Replies
11,909 Views |
![]() by alphagruis |
|
![]() |
![]() |
forager vs mammoth hunter
Started by sydney |
4 Replies
6,471 Views |
![]() by sydney |
![]() |
![]() |
Introduction new member
Started by sydney |
5 Replies
6,614 Views |
![]() by sydney |
![]() |
![]() |
Introduction new member part2
Started by sydney |
1 Replies
4,347 Views |
![]() by TylerDurden |
![]() |
![]() |
Nourishing Traditions E-book
Started by vril176 |
0 Replies
5,122 Views |
![]() by vril176 |
![]() |
![]() |
0 Replies
3,955 Views |
![]() by PrimalLadyRosy |
|
![]() |
![]() |
The most overrated book ever written
Started by fuggles |
9 Replies
9,228 Views |
![]() by wodgina |
![]() |
![]() |
1 Replies
5,209 Views |
![]() by intouchwithinstinct |
|
![]() |
![]() |
Price and Pottenger story
Started by Nicola |
0 Replies
4,816 Views |
![]() by Nicola |
![]() |
![]() |
0 Replies
5,037 Views |
![]() by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll