/* * 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 324 Guests are viewing this board. | ||||
![]() |
![]() |
9 Replies
9,587 Views |
![]() by yuli |
|
![]() |
![]() |
Fishing wolves
Started by Hanna |
13 Replies
10,499 Views |
![]() by MoonStalkeR |
![]() |
![]() |
Not excited by muscle meat lately
Started by goodsamaritan |
12 Replies
10,485 Views |
![]() by yuli |
![]() |
![]() |
European summer paradise
Started by Susan |
5 Replies
5,066 Views |
![]() by raw |
![]() |
![]() |
7 Replies
7,168 Views |
![]() by raw |
|
![]() |
![]() |
0 Replies
3,369 Views |
![]() by Iguana |
|
![]() |
![]() |
35 Replies
48,843 Views |
![]() by Iguana |
|
![]() |
![]() |
Censorship
Started by Hanna |
20 Replies
12,814 Views |
![]() by goodsamaritan |
![]() |
![]() |
50 Replies
26,680 Views |
![]() by Iguana |
|
![]() |
![]() |
13 Replies
10,177 Views |
![]() by Iguana |
|
![]() |
![]() |
Mono-eating
Started by TylerDurden |
16 Replies
14,070 Views |
![]() by Iguana |
![]() |
![]() |
Alpha's best
Started by Iguana |
1 Replies
5,791 Views |
![]() by Iguana |
![]() |
![]() |
123 Replies
167,477 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Type of diet
Started by TylerDurden |
8 Replies
9,147 Views |
![]() by raw |
![]() |
![]() |
Instincto Books
Started by TylerDurden |
12 Replies
21,589 Views |
![]() by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll