/* * 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 1 Guest are viewing this board. | ||||
The art of interrupting cereals
Started by Ungullible |
3 Replies
4,279 Views |
December 07, 2013, 11:58:46 am by Ioanna |
||
5 Replies
5,455 Views |
January 10, 2016, 11:50:02 pm by TylerDurden |
|||
15 Replies
11,267 Views |
May 21, 2014, 11:25:41 pm by cherimoya_kid |
|||
Instinctive nutrition and the Army
Started by Ungullible |
18 Replies
12,727 Views |
February 23, 2014, 08:01:34 pm by Ungullible |
||
Wall Street Journal on paleo diet
Started by Ungullible |
0 Replies
3,136 Views |
February 17, 2016, 06:09:05 am by Ungullible |
||
0 Replies
3,073 Views |
May 25, 2015, 04:51:12 pm by Ungullible |
|||
0 Replies
3,329 Views |
July 05, 2015, 06:10:32 am by Ungullible |
|||
26 Replies
12,665 Views |
April 12, 2012, 07:28:11 am by sabertooth |
|||
0 Replies
3,513 Views |
January 27, 2016, 09:51:16 am by Ungullible |
|||
0 Replies
2,852 Views |
December 05, 2012, 12:10:03 am by Ungullible |
|||
neurological pathways
Started by Wattlebird |
11 Replies
8,451 Views |
February 22, 2012, 06:33:12 am by Wattlebird |
||
Feasting
Started by Wattlebird |
6 Replies
5,606 Views |
December 04, 2012, 01:52:33 pm by Wattlebird |
||
Kindred Spirits
Started by Wattlebird |
10 Replies
6,409 Views |
January 15, 2012, 11:07:55 am by Ioanna |
||
Variety
Started by Wattlebird |
17 Replies
9,223 Views |
February 26, 2012, 01:49:56 pm by Wattlebird |
||
3 Replies
4,025 Views |
November 16, 2015, 02:26:15 am by zoli |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll