/* * 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. | ||||
42 Replies
27,024 Views |
June 11, 2011, 03:23:08 am by cherimoya_kid |
|||
42 Replies
27,296 Views |
December 06, 2011, 04:47:09 am by Hanna |
|||
44 Replies
21,954 Views |
March 06, 2011, 03:52:16 pm by Hanna |
|||
Hard Anopsology question to explain
Started by AnopsStudier « 1 2 » |
44 Replies
18,983 Views |
January 24, 2014, 03:09:20 am by Iguana |
||
Question for Iguana - Instincto carbs
Started by technosmith « 1 2 3 » |
50 Replies
26,815 Views |
March 26, 2011, 10:28:04 am by 00nightstorm |
||
50 Replies
19,664 Views |
September 04, 2010, 07:29:25 pm by Iguana |
|||
51 Replies
28,041 Views |
November 09, 2013, 01:21:00 am by Simone |
|||
59 Replies
20,861 Views |
October 22, 2011, 01:35:27 am by Iguana |
|||
71 Replies
39,971 Views |
March 17, 2013, 04:05:13 am by Wai Kai Zen |
|||
74 Replies
49,894 Views |
June 10, 2014, 08:31:48 pm by FruitAndVegLover |
|||
99 Replies
46,948 Views |
January 21, 2013, 05:27:32 pm by Hanna |
|||
123 Replies
121,625 Views |
June 21, 2010, 06:13:05 pm by TylerDurden |
|||
156 Replies
71,185 Views |
February 15, 2012, 07:49:56 am by goodsamaritan |
|||
280 Replies
118,410 Views |
January 14, 2011, 04:52:35 pm by Iguana |
|||
301 Replies
136,902 Views |
January 10, 2016, 03:49:23 pm by Hanna |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll