/* * 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 14 Guests are viewing this board. | ||||
![]() |
![]() |
1 Replies
1,930 Views |
![]() by tonyvee |
|
![]() |
![]() |
Questions... Raw Meat
Started by asdfuser123 |
2 Replies
2,372 Views |
![]() by asdfuser123 |
![]() |
![]() |
1 Replies
2,004 Views |
![]() by sorginzorrotz |
|
![]() |
![]() |
2 Replies
4,290 Views |
![]() by TylerDurden |
|
![]() |
![]() |
0 Replies
2,191 Views |
![]() by Apex |
|
![]() |
![]() |
Watching your macros
Started by Apani |
0 Replies
3,064 Views |
![]() by Apani |
![]() |
![]() |
Eating raw, frozen offal
Started by amidd12 |
6 Replies
5,902 Views |
![]() by surfsteve |
![]() |
![]() |
4 Replies
4,874 Views |
![]() by Chris |
|
![]() |
![]() |
Scheduled high fat diet experiment
Started by Alive |
6 Replies
5,524 Views |
![]() by Joy2012 |
![]() |
![]() |
Meat Cuts?
Started by akaikumo |
5 Replies
6,821 Views |
![]() by spear of destiny |
![]() |
![]() |
salt and melted fats
Started by a87.pal |
2 Replies
3,319 Views |
![]() by PaleoPhil |
![]() |
![]() |
One Day Off A Week?
Started by 24isours |
14 Replies
10,149 Views |
![]() by nicole |
![]() |
![]() |
Recommendations for a Meat Grinder?
Started by 00nightstorm |
2 Replies
3,909 Views |
![]() by 00nightstorm |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll