/* * 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 17 Guests are viewing this board. | ||||
![]() |
![]() |
Your usual diets?
Started by Wolf |
24 Replies
12,694 Views |
![]() by Cinna |
![]() |
![]() |
66 Replies
31,348 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
4 Replies
5,551 Views |
![]() by van |
|
![]() |
![]() |
Zero Carb and Athletic Performance
Started by Neone |
14 Replies
12,123 Views |
![]() by political atheist |
![]() |
![]() |
36 Replies
38,976 Views |
![]() by Suiren |
|
![]() |
![]() |
42 Replies
32,409 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
2 Replies
3,131 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Zero Carb TEA? thoughts/opinion
Started by the PresiDenT |
15 Replies
10,862 Views |
![]() by klowcarb |
![]() |
![]() |
Zero Carb Terminology
Started by King Salmon |
19 Replies
13,583 Views |
![]() by klowcarb |
![]() |
![]() |
Zero-carb and salt
Started by TylerDurden |
5 Replies
15,918 Views |
![]() by Dorothy |
![]() |
![]() |
Zero-Carb Scientific Endorsement?
Started by TylerDurden |
7 Replies
6,798 Views |
![]() by cherimoya_kid |
![]() |
![]() |
Zero-carb trials re well-done meats
Started by TylerDurden |
10 Replies
9,965 Views |
![]() by moises |
![]() |
![]() |
Zero-carbers accelerated aging
Started by TylerDurden |
7 Replies
8,937 Views |
![]() by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll