/* * 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 15 Guests are viewing this board. | ||||
![]() |
![]() |
Questions... Raw Meat
Started by asdfuser123 |
2 Replies
2,338 Views |
![]() by asdfuser123 |
![]() |
![]() |
1 Replies
1,961 Views |
![]() by sorginzorrotz |
|
![]() |
![]() |
1 Replies
1,882 Views |
![]() by tonyvee |
|
![]() |
![]() |
2 Replies
2,181 Views |
![]() by smokeyquartz |
|
![]() |
![]() |
3 Replies
2,865 Views |
![]() by tonyvee |
|
![]() |
![]() |
What to drink? In general
Started by asdfuser123 |
1 Replies
2,193 Views |
![]() by sorginzorrotz |
![]() |
![]() |
5 Replies
5,077 Views |
![]() by dariorpl |
|
![]() |
![]() |
dry aging - sticky, slimy meat,
Started by avada |
1 Replies
2,011 Views |
![]() by sorginzorrotz |
![]() |
![]() |
help with storing meat ideas please
Started by jmlawrence |
2 Replies
2,406 Views |
![]() by kelpguy |
![]() |
![]() |
0 Replies
1,874 Views |
![]() by Kittenki |
|
![]() |
![]() |
2 Replies
4,325 Views |
![]() by Fenrir |
|
![]() |
![]() |
1 Replies
7,436 Views |
![]() by rawcaveman |
|
![]() |
![]() |
Which meat is it ok to eat raw?
Started by johnnyboi |
7 Replies
16,159 Views |
![]() by Phenix |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll