/* * 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 6 Guests are viewing this board. | ||||
I found this in my lamb. What is this?
Started by jackobecek |
4 Replies
2,550 Views |
February 19, 2021, 04:35:32 am by sabertooth |
||
Questions... Raw Meat
Started by asdfuser123 |
2 Replies
1,185 Views |
November 24, 2021, 08:32:53 pm by asdfuser123 |
||
1 Replies
945 Views |
December 19, 2021, 10:42:54 pm by sorginzorrotz |
|||
1 Replies
903 Views |
December 28, 2021, 07:06:07 am by tonyvee |
|||
2 Replies
1,075 Views |
December 29, 2021, 12:36:44 am by smokeyquartz |
|||
3 Replies
1,712 Views |
February 06, 2022, 06:05:15 am by tonyvee |
|||
What to drink? In general
Started by asdfuser123 |
1 Replies
1,209 Views |
March 25, 2022, 11:27:39 pm by sorginzorrotz |
||
5 Replies
3,319 Views |
March 29, 2022, 12:59:10 am by dariorpl |
|||
dry aging - sticky, slimy meat,
Started by avada |
1 Replies
719 Views |
September 19, 2022, 08:51:40 pm by sorginzorrotz |
||
help with storing meat ideas please
Started by jmlawrence |
2 Replies
1,028 Views |
October 14, 2022, 06:10:09 pm by kelpguy |
||
0 Replies
560 Views |
April 26, 2023, 04:30:08 am by Kittenki |
|||
2 Replies
1,652 Views |
July 20, 2023, 10:04:35 pm by Fenrir |
|||
1 Replies
813 Views |
September 20, 2023, 04:10:10 pm by rawcaveman |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll