/* * 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 10 Guests are viewing this board. | ||||
7 Replies
6,035 Views |
September 30, 2010, 08:52:13 am by raw |
|||
2 Replies
1,917 Views |
May 30, 2020, 07:43:10 pm by FRANCIS HOWARD BOND |
|||
The art of interrupting cereals
Started by Ungullible |
3 Replies
4,274 Views |
December 07, 2013, 11:58:46 am by Ioanna |
||
10 Replies
9,079 Views |
October 30, 2015, 06:46:20 am by dariorpl |
|||
2 Replies
3,955 Views |
April 05, 2012, 10:47:38 am by jessica |
|||
Type of diet
Started by TylerDurden |
8 Replies
6,962 Views |
June 15, 2010, 12:41:41 pm by raw |
||
15 Replies
9,217 Views |
November 19, 2011, 11:59:47 pm by cherimoya_kid |
|||
Variety
Started by Wattlebird |
17 Replies
9,208 Views |
February 26, 2012, 01:49:56 pm by Wattlebird |
||
3 Replies
2,001 Views |
May 07, 2020, 07:32:51 pm by RawFoodist |
|||
Wall Street Journal on paleo diet
Started by Ungullible |
0 Replies
3,129 Views |
February 17, 2016, 06:09:05 am by Ungullible |
||
Web site on Clara Davis during WWI
Started by Ungullible |
2 Replies
3,841 Views |
September 21, 2013, 11:27:09 pm by Ungullible |
||
42 Replies
27,295 Views |
December 06, 2011, 04:47:09 am by Hanna |
|||
2 Replies
4,959 Views |
January 10, 2011, 08:07:30 pm by Iguana |
|||
17 Replies
10,027 Views |
August 16, 2016, 10:02:47 pm by Iguana |
|||
0 Replies
2,572 Views |
August 16, 2016, 09:20:39 pm by Bookworm |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll