/* * 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 10 Guests are viewing this board. | ||||
1 Replies
1,527 Views |
May 01, 2020, 06:32:24 pm by RawFoodist |
|||
17 Replies
10,050 Views |
August 16, 2016, 10:02:47 pm by Iguana |
|||
0 Replies
2,681 Views |
November 02, 2017, 09:16:49 am by Bookworm |
|||
2 Replies
4,963 Views |
January 10, 2011, 08:07:30 pm by Iguana |
|||
5 Replies
4,732 Views |
August 31, 2012, 02:30:33 pm by Iguana |
|||
4 Replies
4,648 Views |
December 06, 2014, 01:10:47 pm by A_Tribe_Called_Paleo |
|||
birdfeed
Started by awesomeame |
9 Replies
7,798 Views |
February 15, 2012, 04:28:08 am by Wattlebird |
||
11 Replies
5,207 Views |
March 27, 2019, 10:32:57 pm by Iguana |
|||
Raw Venison
Started by AnopsStudier |
2 Replies
3,653 Views |
February 17, 2015, 05:49:20 am by cherimoya_kid |
||
Hard Anopsology question to explain
Started by AnopsStudier « 1 2 » |
44 Replies
19,023 Views |
January 24, 2014, 03:09:20 am by Iguana |
||
15 Replies
9,827 Views |
August 04, 2014, 11:47:18 pm by Inger |
|||
A few more instincto questions
Started by AnopsStudier |
11 Replies
7,833 Views |
May 31, 2014, 01:50:29 pm by CatTreats |
||
Can eating raw or instincto cure herpes?
Started by AnopsStudier « 1 2 » |
33 Replies
20,458 Views |
August 14, 2016, 04:02:31 pm by goodsamaritan |
||
35 Replies
37,217 Views |
September 21, 2010, 03:17:10 am by Iguana |
|||
Craving raw beef!
Started by Adam |
21 Replies
15,129 Views |
December 18, 2010, 10:18:26 am by KD |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll