/* * 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 3 Guests are viewing this board. | ||||
![]() |
![]() |
Can I change my sign on name?
Started by RogueFarmer |
2 Replies
5,058 Views |
![]() by goodsamaritan |
![]() |
![]() |
Increase QUOTE Font to 10
Started by PaleoPhil |
9 Replies
8,239 Views |
![]() by goodsamaritan |
![]() |
![]() |
68 Replies
39,588 Views |
![]() by KD |
|
![]() |
![]() |
Delete account
Started by p0wer |
5 Replies
6,426 Views |
![]() by Projectile Vomit |
![]() |
![]() |
Recommendation
Started by TylerDurden |
1 Replies
5,714 Views |
![]() by HIT_it_RAW |
![]() |
![]() |
Vague notes re improvements
Started by TylerDurden |
11 Replies
12,314 Views |
![]() by zbr5 |
![]() |
![]() |
Advice to members
Started by TylerDurden |
1 Replies
4,712 Views |
![]() by goodsamaritan |
![]() |
![]() |
RSS - please add RSS to this forum
Started by majormark |
1 Replies
5,507 Views |
![]() by majormark |
![]() |
![]() |
Symantics of raw meat
Started by Sitting Coyote |
4 Replies
6,188 Views |
![]() by kurite |
![]() |
![]() |
'Type-writer' Effect
Started by miles |
9 Replies
7,569 Views |
![]() by Löwenherz |
![]() |
![]() |
Research Category
Started by kurite |
7 Replies
8,258 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor hypocrisy
Started by TylerDurden |
1 Replies
4,765 Views |
![]() by sabertooth |
![]() |
![]() |
3 Replies
5,167 Views |
![]() by the PresiDenT |
|
![]() |
![]() |
notifications
Started by MaximilianKohler |
1 Replies
5,074 Views |
![]() by MaximilianKohler |
![]() |
![]() |
Website loading problem
Started by Josh |
9 Replies
8,063 Views |
![]() by reyyzl |
![]() |
![]() |
Expand "Diet Gallery"/sub-categories?
Started by Cinna |
2 Replies
4,496 Views |
![]() by goodsamaritan |
![]() |
![]() |
New Moderators
Started by TylerDurden |
22 Replies
15,098 Views |
![]() by djr_81 |
![]() |
![]() |
Request
Started by TylerDurden |
4 Replies
6,661 Views |
![]() by TylerDurden |
![]() |
![]() |
Spam links
Started by Josh |
11 Replies
9,052 Views |
![]() by Josh |
![]() |
![]() |
Reviews of diet books
Started by TylerDurden |
6 Replies
6,309 Views |
![]() by cherimoya_kid |
![]() |
![]() |
Moderators2
Started by William |
9 Replies
7,162 Views |
![]() by cherimoya_kid |
![]() |
![]() |
Reminder
Started by TylerDurden |
0 Replies
3,194 Views |
![]() by TylerDurden |
![]() |
![]() |
Moderators
Started by William |
2 Replies
3,710 Views |
![]() by TylerDurden |
![]() |
![]() |
Palaeo cave-paintings
Started by TylerDurden |
0 Replies
3,554 Views |
![]() by TylerDurden |
![]() |
![]() |
Request to members
Started by TylerDurden |
0 Replies
3,386 Views |
![]() by TylerDurden |
![]() |
![]() |
Editing posts?
Started by nummytummy |
7 Replies
6,885 Views |
![]() by nummytummy |
![]() |
![]() |
2 Replies
4,063 Views |
![]() by TylerDurden |
|
![]() |
![]() |
ACTIVISM!
Started by intouchwithinstinct |
1 Replies
4,105 Views |
![]() by TylerDurden |
![]() |
![]() |
2 Replies
4,939 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Recent Posts
Started by majormark |
0 Replies
3,881 Views |
![]() by majormark |
![]() |
![]() |
Forum policy
Started by TylerDurden |
6 Replies
6,108 Views |
![]() by RawZi |
![]() |
![]() |
New thread idea
Started by Paleo Donk |
1 Replies
5,157 Views |
![]() by TylerDurden |
![]() |
![]() |
Spelling Mistakes
Started by TylerDurden |
0 Replies
3,329 Views |
![]() by TylerDurden |
![]() |
![]() |
Further rawpaleodiet.com updates
Started by TylerDurden |
5 Replies
5,724 Views |
![]() by TylerDurden |
![]() |
![]() |
Glossary of Acronyms
Started by majormark |
2 Replies
4,365 Views |
![]() by TylerDurden |
![]() |
![]() |
Promotion
Started by TylerDurden |
0 Replies
3,603 Views |
![]() by TylerDurden |
![]() |
![]() |
Are my pictures showing up?
Started by livingthelife |
3 Replies
5,064 Views |
![]() by Roselene |
![]() |
![]() |
More additions
Started by TylerDurden |
5 Replies
7,350 Views |
![]() by RawZi |
![]() |
![]() |
Further suggestions wanted
Started by TylerDurden |
2 Replies
4,146 Views |
![]() by TylerDurden |
![]() |
![]() |
Spam post removed
Started by TylerDurden |
3 Replies
4,549 Views |
![]() by TylerDurden |
![]() |
![]() |
Glitch
Started by William |
2 Replies
3,729 Views |
![]() by William |
![]() |
![]() |
Brilliant!
Started by TylerDurden |
0 Replies
3,677 Views |
![]() by TylerDurden |
![]() |
![]() |
0 Replies
3,769 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Added review of Stefansson's book
Started by TylerDurden |
4 Replies
5,768 Views |
![]() by PaleoPhil |
![]() |
![]() |
10 Replies
10,081 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Topics in the right forums
Started by TylerDurden |
0 Replies
3,490 Views |
![]() by TylerDurden |
![]() |
![]() |
Maybe a hygiene or cosmetic section?
Started by Raw Rob |
9 Replies
11,444 Views |
![]() by yon yonson |
![]() |
![]() |
More sub categories
Started by Eurofusion |
2 Replies
5,243 Views |
![]() by wodgina |
![]() |
![]() |
Minor advice
Started by TylerDurden |
0 Replies
3,578 Views |
![]() by TylerDurden |
![]() |
![]() |
Rawpaleodiet.com suggestions
Started by TylerDurden |
1 Replies
3,999 Views |
![]() by Ironbeef |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll