/* * 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 3 Guests are viewing this board. | ||||
66 Replies
24,848 Views |
July 04, 2019, 03:30:53 am by Qondrar_The_Redeemer |
|||
66 Replies
27,025 Views |
February 18, 2010, 10:41:59 am by PaleoPhil |
|||
66 Replies
40,433 Views |
February 26, 2009, 04:41:30 am by Raw Kyle |
|||
72 Replies
42,600 Views |
May 09, 2011, 10:29:24 am by PaleoPhil |
|||
73 Replies
26,204 Views |
April 06, 2013, 03:16:07 am by svrn |
|||
How many carbs to un-keto-adapt?
Started by SteakNchop « 1 2 3 » |
73 Replies
38,275 Views |
January 29, 2011, 10:35:47 am by sabertooth |
||
81 Replies
35,938 Views |
May 06, 2016, 05:27:39 am by panacea |
|||
87 Replies
43,346 Views |
January 29, 2012, 12:40:24 pm by Joy2012 |
|||
How long does it take to clear excess protein from the blood?
Started by carnivorous « 1 2 3 4 » |
87 Replies
44,428 Views |
May 05, 2010, 04:06:35 am by Paleo Donk |
||
93 Replies
49,083 Views |
June 27, 2013, 06:22:10 am by Poncho |
|||
97 Replies
47,374 Views |
February 22, 2010, 05:11:12 am by PaleoPhil |
|||
124 Replies
56,206 Views |
January 12, 2010, 07:54:14 pm by TylerDurden |
|||
226 Replies
82,298 Views |
April 16, 2010, 02:38:02 pm by Savage |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll