/* * 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 ![]() |
Replies / Views | Last post | ||
---|---|---|---|---|
0 Members and 10 Guests are viewing this board. | ||||
![]() |
![]() |
7 Replies
7,273 Views |
![]() by raw |
|
![]() |
![]() |
2 Replies
4,312 Views |
![]() by FRANCIS HOWARD BOND |
|
![]() |
![]() |
The art of interrupting cereals
Started by Ungullible |
3 Replies
6,179 Views |
![]() by Ioanna |
![]() |
![]() |
10 Replies
12,574 Views |
![]() by dariorpl |
|
![]() |
![]() |
2 Replies
5,527 Views |
![]() by jessica |
|
![]() |
![]() |
Type of diet
Started by TylerDurden |
8 Replies
9,500 Views |
![]() by raw |
![]() |
![]() |
15 Replies
14,148 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
Variety
Started by Wattlebird |
17 Replies
12,432 Views |
![]() by Wattlebird |
![]() |
![]() |
3 Replies
4,555 Views |
![]() by RawFoodist |
|
![]() |
![]() |
Wall Street Journal on paleo diet
Started by Ungullible |
0 Replies
4,593 Views |
![]() by Ungullible |
![]() |
![]() |
Web site on Clara Davis during WWI
Started by Ungullible |
2 Replies
5,312 Views |
![]() by Ungullible |
![]() |
![]() |
42 Replies
38,536 Views |
![]() by Hanna |
|
![]() |
![]() |
2 Replies
7,803 Views |
![]() by Iguana |
|
![]() |
![]() |
17 Replies
15,000 Views |
![]() by Iguana |
|
![]() |
![]() |
0 Replies
4,205 Views |
![]() by Bookworm |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll