/* * 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 6 Guests are viewing this board. | ||||
9 Replies
8,213 Views |
November 21, 2010, 09:43:04 pm by yuli |
|||
Fishing wolves
Started by Hanna |
13 Replies
8,871 Views |
October 18, 2010, 10:32:18 am by MoonStalkeR |
||
Not excited by muscle meat lately
Started by goodsamaritan |
12 Replies
8,673 Views |
October 04, 2010, 04:23:02 am by yuli |
||
European summer paradise
Started by Susan |
5 Replies
4,127 Views |
September 30, 2010, 08:57:29 am by raw |
||
7 Replies
6,051 Views |
September 30, 2010, 08:52:13 am by raw |
|||
0 Replies
2,628 Views |
September 24, 2010, 03:08:50 am by Iguana |
|||
35 Replies
37,281 Views |
September 21, 2010, 03:17:10 am by Iguana |
|||
Censorship
Started by Hanna |
20 Replies
10,239 Views |
September 05, 2010, 08:21:50 pm by goodsamaritan |
||
50 Replies
19,733 Views |
September 04, 2010, 07:29:25 pm by Iguana |
|||
13 Replies
8,052 Views |
August 15, 2010, 04:27:29 am by Iguana |
|||
Mono-eating
Started by TylerDurden |
16 Replies
11,973 Views |
July 16, 2010, 08:30:42 pm by Iguana |
||
Alpha's best
Started by Iguana |
1 Replies
4,249 Views |
July 14, 2010, 05:05:03 pm by Iguana |
||
123 Replies
122,165 Views |
June 21, 2010, 06:13:05 pm by TylerDurden |
|||
Type of diet
Started by TylerDurden |
8 Replies
6,986 Views |
June 15, 2010, 12:41:41 pm by raw |
||
Instincto Books
Started by TylerDurden |
12 Replies
18,534 Views |
February 04, 2010, 01:01:02 am by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll