/* * 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. | ||||
10 Replies
8,336 Views |
July 04, 2015, 03:22:17 am by RogueFarmer |
|||
Censorship
Started by Hanna |
20 Replies
10,224 Views |
September 05, 2010, 08:21:50 pm by goodsamaritan |
||
35 Replies
37,230 Views |
September 21, 2010, 03:17:10 am by Iguana |
|||
3 Replies
4,030 Views |
November 16, 2015, 02:26:15 am by zoli |
|||
canteloups overload
Started by Joy2012 |
6 Replies
4,859 Views |
September 01, 2012, 02:08:12 am by Joy2012 |
||
Can eating raw or instincto cure herpes?
Started by AnopsStudier « 1 2 » |
33 Replies
20,465 Views |
August 14, 2016, 04:02:31 pm by goodsamaritan |
||
Bruno Comby's report on HIV
Started by Iguana |
5 Replies
6,211 Views |
March 05, 2011, 06:00:53 am by PaleoPhil |
||
10 Replies
6,272 Views |
August 14, 2016, 08:27:12 pm by svrn |
|||
birdfeed
Started by awesomeame |
9 Replies
7,800 Views |
February 15, 2012, 04:28:08 am by Wattlebird |
||
5 Replies
2,538 Views |
May 14, 2020, 05:00:41 am by FRANCIS HOWARD BOND |
|||
5 Replies
4,733 Views |
August 31, 2012, 02:30:33 pm by Iguana |
|||
Alpha's best
Started by Iguana |
1 Replies
4,245 Views |
July 14, 2010, 05:05:03 pm by Iguana |
||
A few more instincto questions
Started by AnopsStudier |
11 Replies
7,840 Views |
May 31, 2014, 01:50:29 pm by CatTreats |
||
26 Replies
12,685 Views |
April 12, 2012, 07:28:11 am by sabertooth |
|||
50 Replies
19,692 Views |
September 04, 2010, 07:29:25 pm by Iguana |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll