/* * 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 105 Guests are viewing this board. | ||||
![]() |
![]() |
5 Replies
9,479 Views |
![]() by Satya |
|
![]() |
![]() |
34 Replies
41,662 Views |
![]() by fanbrits |
|
![]() |
![]() |
Pole fitness
Started by sabertooth |
24 Replies
28,203 Views |
![]() by fanbrits |
![]() |
![]() |
82 Replies
66,122 Views |
![]() by fanbrits |
|
![]() |
![]() |
23 Replies
23,228 Views |
![]() by eveheart |
|
![]() |
![]() |
2 Replies
6,418 Views |
![]() by PaleoPatsy |
|
![]() |
![]() |
7 Replies
10,022 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Armand Tanny and Raw Meat Bodybuilding
Started by surfsteve |
1 Replies
5,475 Views |
![]() by surfsteve |
![]() |
![]() |
50 Replies
51,941 Views |
![]() by surfsteve |
|
![]() |
![]() |
Calories or macros (protein)?
Started by Pumkin |
4 Replies
6,760 Views |
![]() by TylerDurden |
![]() |
![]() |
1 Replies
4,944 Views |
![]() by TylerDurden |
|
![]() |
![]() |
25 Replies
20,437 Views |
![]() by Xisca |
|
![]() |
![]() |
Cutting Weight for Competition
Started by havoxxlol |
3 Replies
6,533 Views |
![]() by havoxxlol |
![]() |
![]() |
3 Replies
5,816 Views |
![]() by thehadezb |
|
![]() |
![]() |
19 Replies
23,665 Views |
![]() by Grey-Cup |
|
![]() |
![]() |
55 Replies
59,030 Views |
![]() by surfsteve |
|
![]() |
![]() |
FLAT BELLY FIX
Started by albertora |
0 Replies
4,273 Views |
![]() by albertora |
![]() |
![]() |
10 Replies
17,513 Views |
![]() by norawnofun |
|
![]() |
![]() |
Improving Your Posture
Started by surfsteve |
17 Replies
32,762 Views |
![]() by Dwighthar |
![]() |
![]() |
Fueling your workout
Started by political atheist |
9 Replies
11,522 Views |
![]() by Cesarrr |
![]() |
![]() |
Any Runners or Cyclists?
Started by Poppy |
0 Replies
3,589 Views |
![]() by Poppy |
![]() |
![]() |
9 Replies
12,022 Views |
![]() by biowolf |
|
![]() |
![]() |
Whey Protein Isolate on Paleo Diet
Started by walidsarkis3 |
0 Replies
11,307 Views |
![]() by walidsarkis3 |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll