/* * 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 83 Guests are viewing this board. | ||||
Please vote: Are we meant to live in the tropics?
Started by Löwenherz « 1 2 3 4 » |
85 Replies
34,162 Views |
November 10, 2011, 02:46:31 am by RawZi |
||
Goats butter vs cow butter
Started by achillezzz |
17 Replies
34,538 Views |
April 03, 2016, 05:14:05 pm by political atheist |
||
57 Replies
34,712 Views |
October 14, 2010, 05:33:32 am by Michael |
|||
Constipation
Started by technosmith « 1 2 3 » |
62 Replies
36,032 Views |
October 14, 2010, 01:32:47 pm by Hannibal |
||
74 Replies
36,140 Views |
February 11, 2011, 02:30:15 pm by RawZi |
|||
57 Replies
36,212 Views |
January 24, 2015, 04:06:57 am by eveheart |
|||
Avidin in raw eggs one more time
Started by masterducky « 1 2 3 » |
65 Replies
36,327 Views |
August 12, 2011, 12:20:21 am by Dorothy |
||
73 Replies
37,293 Views |
June 22, 2017, 04:54:16 am by surfsteve |
|||
54 Replies
37,568 Views |
July 01, 2018, 11:53:33 pm by dair |
|||
36 Replies
38,550 Views |
January 05, 2018, 10:54:32 am by Cubo |
|||
80 Replies
39,342 Views |
December 26, 2009, 05:55:01 pm by Kokki |
|||
92 Replies
39,519 Views |
February 03, 2011, 10:53:41 am by KD |
|||
72 Replies
39,605 Views |
February 09, 2012, 04:00:30 pm by Joy2012 |
|||
91 Replies
41,430 Views |
February 03, 2011, 12:42:34 pm by PaleoPhil |
|||
40 Replies
42,975 Views |
September 04, 2010, 02:51:44 am by MaximilianKohler |
|||
32 Replies
44,715 Views |
November 04, 2019, 11:39:10 pm by goodsamaritan |
|||
76 Replies
45,546 Views |
January 23, 2010, 07:03:27 am by RawZi |
|||
73 Replies
49,910 Views |
January 29, 2015, 03:57:25 am by FRANCIS HOWARD BOND |
|||
117 Replies
50,715 Views |
July 14, 2015, 08:22:53 am by kalo |
|||
New post on advanced glycation end products
Started by Projectile Vomit « 1 2 » |
49 Replies
52,231 Views |
September 30, 2014, 01:36:17 pm by Joy2012 |
||
97 Replies
52,637 Views |
August 19, 2012, 12:35:54 am by van |
|||
142 Replies
55,317 Views |
May 20, 2010, 03:45:36 am by Sully |
|||
41 Replies
56,778 Views |
August 05, 2013, 12:11:33 pm by jessica |
|||
104 Replies
57,093 Views |
December 15, 2013, 04:17:33 am by PaleoPhil |
|||
62 Replies
57,145 Views |
January 14, 2018, 04:23:55 pm by political atheist |
|||
147 Replies
60,350 Views |
June 27, 2016, 12:07:34 am by raw-al |
|||
Iris colour change on a raw animal food diet
Started by TylerDurden « 1 2 » |
42 Replies
61,114 Views |
August 19, 2014, 05:40:55 am by jrawsychuk |
||
152 Replies
61,861 Views |
January 09, 2018, 01:21:00 am by political atheist |
|||
111 Replies
78,067 Views |
November 06, 2015, 11:16:09 pm by cherimoya_kid |
|||
26 Replies
81,844 Views |
June 27, 2012, 07:17:12 am by Suiren |
|||
29 Replies
82,308 Views |
September 10, 2009, 11:03:02 pm by Raw Kyle |
|||
268 Replies
88,972 Views |
October 10, 2014, 08:42:35 pm by FRANCIS HOWARD BOND |
|||
280 Replies
94,385 Views |
September 19, 2015, 05:35:35 am by PaleoPhil |
|||
227 Replies
96,253 Views |
July 26, 2013, 06:09:00 am by PaleoPhil |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll