/* * 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. | ||||
Pictures of Caribou herders
Started by ys |
10 Replies
11,609 Views |
March 16, 2011, 12:26:37 pm by raw |
||
12 Replies
13,971 Views |
March 08, 2011, 04:36:54 am by FoxWoman |
|||
8 Replies
7,755 Views |
February 25, 2011, 02:24:33 am by achillezzz |
|||
Milk and Natural Selection
Started by Fermenter Zym |
8 Replies
8,836 Views |
February 01, 2011, 02:31:55 am by Fermenter Zym |
||
8 Replies
9,065 Views |
December 31, 2010, 01:34:18 am by raw-al |
|||
Bone Stock
Started by Satya |
18 Replies
17,050 Views |
December 28, 2010, 11:46:01 pm by donrad |
||
Strictly Meat and Milk
Started by Coatue |
14 Replies
13,309 Views |
December 14, 2010, 08:45:29 am by SteakNchop |
||
Anti Weston Pricer's are hypocrites
Started by ster546464@yahoo.co.uk « 1 2 » |
32 Replies
17,029 Views |
October 31, 2010, 11:46:38 pm by ster546464@yahoo.co.uk |
||
Beautiful People
Started by wodgina |
14 Replies
15,396 Views |
September 18, 2010, 07:01:27 am by djr_81 |
||
stock made with clam shells?
Started by shannon |
2 Replies
3,838 Views |
September 17, 2010, 07:24:31 pm by RawZi |
||
51 Replies
28,185 Views |
September 13, 2010, 06:17:30 pm by TylerDurden |
|||
Fan of Price's work
Started by Satya |
24 Replies
15,356 Views |
September 12, 2010, 02:54:24 am by raw-al |
||
coconut oil
Started by shannon |
5 Replies
5,026 Views |
August 31, 2010, 12:56:17 am by TylerDurden |
||
35 Replies
25,997 Views |
August 10, 2010, 11:02:50 am by PaleoPhil |
|||
11 Replies
7,539 Views |
July 03, 2010, 04:09:15 am by sven |
|||
12 Replies
9,979 Views |
June 16, 2010, 11:45:37 pm by alphagruis |
|||
forager vs mammoth hunter
Started by sydney |
4 Replies
4,970 Views |
May 12, 2010, 03:22:10 am by sydney |
||
Introduction new member
Started by sydney |
5 Replies
5,147 Views |
May 11, 2010, 06:12:09 am by sydney |
||
Introduction new member part2
Started by sydney |
1 Replies
3,116 Views |
May 07, 2010, 04:34:09 pm by TylerDurden |
||
Nourishing Traditions E-book
Started by vril176 |
0 Replies
3,949 Views |
May 04, 2010, 02:19:04 am by vril176 |
||
0 Replies
2,754 Views |
April 13, 2010, 08:53:41 am by PrimalLadyRosy |
|||
The most overrated book ever written
Started by fuggles |
9 Replies
7,047 Views |
April 09, 2010, 05:19:35 pm by wodgina |
||
1 Replies
3,726 Views |
February 21, 2010, 02:45:08 pm by intouchwithinstinct |
|||
Price and Pottenger story
Started by Nicola |
0 Replies
3,490 Views |
May 21, 2009, 08:44:33 pm by Nicola |
||
0 Replies
3,718 Views |
March 22, 2009, 04:09:06 am by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll