/* * 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 4 Guests are viewing this board. | ||||
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,074 Views |
May 25, 2015, 04:51:12 pm by Ungullible |
|||
Muscle Testing
Started by djr_81 |
5 Replies
2,949 Views |
November 15, 2020, 01:46:29 am by Iguana |
||
0 Replies
2,852 Views |
December 05, 2012, 12:10:03 am by Ungullible |
|||
0 Replies
2,679 Views |
November 02, 2017, 09:16:49 am by Bookworm |
|||
0 Replies
2,625 Views |
September 24, 2010, 03:08:50 am by Iguana |
|||
0 Replies
2,581 Views |
August 16, 2016, 09:20:39 pm by Bookworm |
|||
Nuts on Instinctotherapy
Started by norawnofun |
5 Replies
2,576 Views |
September 09, 2020, 05:19:05 am by Iguana |
||
5 Replies
2,529 Views |
May 14, 2020, 05:00:41 am by FRANCIS HOWARD BOND |
|||
4 Replies
2,400 Views |
October 06, 2020, 08:26:51 am by smokeyquartz |
|||
Seeking Instincto Coach
Started by David Shakun |
4 Replies
2,327 Views |
June 07, 2020, 09:40:13 pm by Paul.Houdet |
||
3 Replies
2,013 Views |
May 07, 2020, 07:32:51 pm by RawFoodist |
|||
2 Replies
1,927 Views |
May 30, 2020, 07:43:10 pm by FRANCIS HOWARD BOND |
|||
High on raw squid ?
Started by Bookworm |
1 Replies
1,836 Views |
June 29, 2020, 03:44:04 am by FRANCIS HOWARD BOND |
||
1 Replies
1,527 Views |
May 01, 2020, 06:32:24 pm by RawFoodist |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll