/* * 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 19 Guests are viewing this board. | ||||
![]() |
![]() |
9 Replies
10,384 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Web site on Clara Davis during WWI
Started by Ungullible |
2 Replies
5,307 Views |
![]() by Ungullible |
![]() |
![]() |
10 Replies
11,811 Views |
![]() by RogueFarmer |
|
![]() |
![]() |
7 Replies
10,801 Views |
![]() by eveheart |
|
![]() |
![]() |
The art of interrupting cereals
Started by Ungullible |
3 Replies
6,176 Views |
![]() by Ioanna |
![]() |
![]() |
5 Replies
9,424 Views |
![]() by TylerDurden |
|
![]() |
![]() |
15 Replies
15,878 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
Instinctive nutrition and the Army
Started by Ungullible |
18 Replies
19,167 Views |
![]() by Ungullible |
![]() |
![]() |
Wall Street Journal on paleo diet
Started by Ungullible |
0 Replies
4,587 Views |
![]() by Ungullible |
![]() |
![]() |
0 Replies
4,622 Views |
![]() by Ungullible |
|
![]() |
![]() |
Variety
Started by Wattlebird |
17 Replies
12,422 Views |
![]() by Wattlebird |
![]() |
![]() |
neurological pathways
Started by Wattlebird |
11 Replies
13,271 Views |
![]() by Wattlebird |
![]() |
![]() |
Feasting
Started by Wattlebird |
6 Replies
7,624 Views |
![]() by Wattlebird |
![]() |
![]() |
Kindred Spirits
Started by Wattlebird |
10 Replies
8,797 Views |
![]() by Ioanna |
![]() |
![]() |
3 Replies
7,390 Views |
![]() by zoli |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll