/* * 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 21 Guests are viewing this board. | ||||
![]() |
![]() |
42 Replies
36,714 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
42 Replies
38,561 Views |
![]() by Hanna |
|
![]() |
![]() |
44 Replies
34,778 Views |
![]() by Hanna |
|
![]() |
![]() |
Hard Anopsology question to explain
Started by AnopsStudier « 1 2 » |
44 Replies
26,662 Views |
![]() by Iguana |
![]() |
![]() |
Question for Iguana - Instincto carbs
Started by technosmith « 1 2 3 » |
50 Replies
54,670 Views |
![]() by 00nightstorm |
![]() |
![]() |
50 Replies
27,479 Views |
![]() by Iguana |
|
![]() |
![]() |
51 Replies
36,272 Views |
![]() by Simone |
|
![]() |
![]() |
59 Replies
31,901 Views |
![]() by Iguana |
|
![]() |
![]() |
71 Replies
47,652 Views |
![]() by Wai Kai Zen |
|
![]() |
![]() |
74 Replies
83,064 Views |
![]() by FruitAndVegLover |
|
![]() |
![]() |
99 Replies
58,825 Views |
![]() by Hanna |
|
![]() |
![]() |
123 Replies
183,797 Views |
![]() by TylerDurden |
|
![]() |
![]() |
156 Replies
103,967 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
280 Replies
190,770 Views |
![]() by Iguana |
|
![]() |
![]() |
301 Replies
228,303 Views |
![]() by Hanna |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll