/* * 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 ![]() |
Replies / Views | Last post | ||
---|---|---|---|---|
0 Members and 14 Guests are viewing this board. | ||||
![]() |
![]() |
Worrying article re diet and cats
Started by TylerDurden |
4 Replies
3,163 Views |
![]() by thehadezb |
![]() |
![]() |
Yawning linked to higher intelligence
Started by TylerDurden |
0 Replies
1,652 Views |
![]() by TylerDurden |
![]() |
![]() |
12 Replies
4,792 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
0 Replies
1,767 Views |
![]() by TylerDurden |
|
![]() |
![]() |
0 Replies
1,592 Views |
![]() by TylerDurden |
|
![]() |
![]() |
0 Replies
1,659 Views |
![]() by TylerDurden |
|
![]() |
![]() |
1 Replies
1,874 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
Yet another mammoth extinction theory
Started by TylerDurden |
1 Replies
1,762 Views |
![]() by cherimoya_kid |
![]() |
![]() |
1 Replies
1,793 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
1 Replies
2,629 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
Yet another side-effect of the Pill
Started by TylerDurden |
1 Replies
3,669 Views |
![]() by sabertooth |
![]() |
![]() |
0 Replies
2,600 Views |
![]() by TylerDurden |
|
![]() |
![]() |
0 Replies
1,806 Views |
![]() by TylerDurden |
|
![]() |
![]() |
0 Replies
1,733 Views |
![]() by TylerDurden |
|
![]() |
![]() |
1 Replies
1,836 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
0 Replies
1,724 Views |
![]() by TylerDurden |
|
![]() |
![]() |
You are what you eat
Started by TylerDurden |
1 Replies
2,585 Views |
![]() by sabertooth |
![]() |
![]() |
14 Replies
6,344 Views |
![]() by TylerDurden |
|
![]() |
![]() |
7 Replies
8,145 Views |
![]() by jessica |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll