/* * 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. | ||||
Useful anti-cooking studies
Started by TylerDurden |
0 Replies
14,535 Views |
June 04, 2009, 09:50:03 pm by TylerDurden |
||
34 Replies
34,585 Views |
August 12, 2019, 10:58:56 pm by surfsteve |
|||
6 Replies
11,058 Views |
December 17, 2017, 02:38:40 am by dair |
|||
53 Replies
41,598 Views |
March 16, 2016, 05:08:20 pm by jessica121turner |
|||
17 Replies
21,705 Views |
February 15, 2015, 08:14:07 am by PaleoPhil |
|||
RAW MEAT DIET
Started by raw |
7 Replies
13,657 Views |
January 03, 2015, 06:27:13 pm by zeeshan |
||
2 Replies
6,257 Views |
August 26, 2014, 09:46:59 am by PaleoPhil |
|||
87 Replies
77,787 Views |
January 11, 2013, 09:38:01 pm by Suiren |
|||
wai diet + acne/dermatitis
Started by tests |
3 Replies
8,266 Views |
July 02, 2012, 08:06:36 am by cherimoya_kid |
||
Anyone here doing the wai diet?
Started by formerfruitarian |
22 Replies
36,717 Views |
June 03, 2011, 02:40:53 pm by masterducky |
||
109 Replies
110,750 Views |
May 30, 2011, 03:30:01 am by PaleoPhil |
|||
Fat on the Wai Diet
Started by magnetic |
16 Replies
28,155 Views |
March 22, 2011, 03:37:54 pm by Löwenherz |
||
Wai and Spirituality
Started by RawZi |
6 Replies
12,563 Views |
April 15, 2010, 11:04:34 pm by carnivore |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll