/* * 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 25 Guests are viewing this board. | ||||
![]() |
![]() |
4 Replies
7,985 Views |
![]() by van |
|
![]() |
![]() |
Eat what when? (especially meat)
Started by JeuneKoq |
10 Replies
12,407 Views |
![]() by Arrow |
![]() |
![]() |
11 Replies
9,646 Views |
![]() by Iguana |
|
![]() |
![]() |
1 Replies
9,232 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Fighting fire with fire
Started by JeuneKoq |
11 Replies
11,469 Views |
![]() by FRANCIS HOWARD BOND |
![]() |
![]() |
1 Replies
3,403 Views |
![]() by RawFoodist |
|
![]() |
![]() |
13 Replies
8,445 Views |
![]() by RawFoodist |
|
![]() |
![]() |
3 Replies
4,563 Views |
![]() by RawFoodist |
|
![]() |
![]() |
5 Replies
5,853 Views |
![]() by FRANCIS HOWARD BOND |
|
![]() |
![]() |
2 Replies
4,320 Views |
![]() by FRANCIS HOWARD BOND |
|
![]() |
![]() |
Seeking Instincto Coach
Started by David Shakun |
4 Replies
5,376 Views |
![]() by Paul.Houdet |
![]() |
![]() |
High on raw squid ?
Started by Bookworm |
1 Replies
4,228 Views |
![]() by FRANCIS HOWARD BOND |
![]() |
![]() |
Nuts on Instinctotherapy
Started by norawnofun |
5 Replies
6,234 Views |
![]() by Iguana |
![]() |
![]() |
4 Replies
5,384 Views |
![]() by smokeyquartz |
|
![]() |
![]() |
Muscle Testing
Started by djr_81 |
5 Replies
6,805 Views |
![]() by Iguana |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll