/* * 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. | ||||
![]() |
![]() |
Can eating raw or instincto cure herpes?
Started by AnopsStudier « 1 2 » |
33 Replies
29,283 Views |
![]() by goodsamaritan |
![]() |
![]() |
59 Replies
31,905 Views |
![]() by Iguana |
|
![]() |
![]() |
44 Replies
34,808 Views |
![]() by Hanna |
|
![]() |
![]() |
51 Replies
36,282 Views |
![]() by Simone |
|
![]() |
![]() |
42 Replies
36,727 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
42 Replies
38,594 Views |
![]() by Hanna |
|
![]() |
![]() |
71 Replies
47,666 Views |
![]() by Wai Kai Zen |
|
![]() |
![]() |
35 Replies
52,070 Views |
![]() by Iguana |
|
![]() |
![]() |
Question for Iguana - Instincto carbs
Started by technosmith « 1 2 3 » |
50 Replies
54,732 Views |
![]() by 00nightstorm |
![]() |
![]() |
99 Replies
58,848 Views |
![]() by Hanna |
|
![]() |
![]() |
74 Replies
83,094 Views |
![]() by FruitAndVegLover |
|
![]() |
![]() |
156 Replies
104,013 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
123 Replies
183,948 Views |
![]() by TylerDurden |
|
![]() |
![]() |
280 Replies
190,961 Views |
![]() by Iguana |
|
![]() |
![]() |
301 Replies
228,412 Views |
![]() by Hanna |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll