/* * 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 ![]() |
Last post | ||
---|---|---|---|---|
0 Members and 19 Guests are viewing this board. | ||||
![]() |
![]() |
66 Replies
31,348 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
66 Replies
31,017 Views |
![]() by Qondrar_The_Redeemer |
|
![]() |
![]() |
66 Replies
46,312 Views |
![]() by Raw Kyle |
|
![]() |
![]() |
72 Replies
46,164 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
73 Replies
29,838 Views |
![]() by svrn |
|
![]() |
![]() |
How many carbs to un-keto-adapt?
Started by SteakNchop « 1 2 3 » |
73 Replies
42,204 Views |
![]() by sabertooth |
![]() |
![]() |
81 Replies
42,368 Views |
![]() by panacea |
|
![]() |
![]() |
How long does it take to clear excess protein from the blood?
Started by carnivorous « 1 2 3 4 » |
87 Replies
49,630 Views |
![]() by Paleo Donk |
![]() |
![]() |
87 Replies
48,210 Views |
![]() by Joy2012 |
|
![]() |
![]() |
93 Replies
52,986 Views |
![]() by Poncho |
|
![]() |
![]() |
97 Replies
53,898 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
124 Replies
62,516 Views |
![]() by TylerDurden |
|
![]() |
![]() |
226 Replies
91,530 Views |
![]() by Savage |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll