/* * 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 953 Guests are viewing this board. | ||||
![]() |
![]() |
9 Replies
9,600 Views |
![]() by yuli |
|
![]() |
![]() |
Fishing wolves
Started by Hanna |
13 Replies
10,521 Views |
![]() by MoonStalkeR |
![]() |
![]() |
Not excited by muscle meat lately
Started by goodsamaritan |
12 Replies
10,504 Views |
![]() by yuli |
![]() |
![]() |
European summer paradise
Started by Susan |
5 Replies
5,075 Views |
![]() by raw |
![]() |
![]() |
7 Replies
7,171 Views |
![]() by raw |
|
![]() |
![]() |
0 Replies
3,414 Views |
![]() by Iguana |
|
![]() |
![]() |
35 Replies
49,988 Views |
![]() by Iguana |
|
![]() |
![]() |
Censorship
Started by Hanna |
20 Replies
12,864 Views |
![]() by goodsamaritan |
![]() |
![]() |
50 Replies
26,920 Views |
![]() by Iguana |
|
![]() |
![]() |
13 Replies
10,224 Views |
![]() by Iguana |
|
![]() |
![]() |
Mono-eating
Started by TylerDurden |
16 Replies
14,113 Views |
![]() by Iguana |
![]() |
![]() |
Alpha's best
Started by Iguana |
1 Replies
5,931 Views |
![]() by Iguana |
![]() |
![]() |
123 Replies
174,240 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Type of diet
Started by TylerDurden |
8 Replies
9,269 Views |
![]() by raw |
![]() |
![]() |
Instincto Books
Started by TylerDurden |
12 Replies
21,598 Views |
![]() by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll