/* * 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 6 Guests are viewing this board. | ||||
![]() |
![]() |
Can I change my sign on name?
Started by RogueFarmer |
2 Replies
5,166 Views |
![]() by goodsamaritan |
![]() |
![]() |
Increase QUOTE Font to 10
Started by PaleoPhil |
9 Replies
8,452 Views |
![]() by goodsamaritan |
![]() |
![]() |
68 Replies
40,787 Views |
![]() by KD |
|
![]() |
![]() |
Delete account
Started by p0wer |
5 Replies
6,560 Views |
![]() by Projectile Vomit |
![]() |
![]() |
Recommendation
Started by TylerDurden |
1 Replies
5,815 Views |
![]() by HIT_it_RAW |
![]() |
![]() |
Vague notes re improvements
Started by TylerDurden |
11 Replies
12,452 Views |
![]() by zbr5 |
![]() |
![]() |
Advice to members
Started by TylerDurden |
1 Replies
4,788 Views |
![]() by goodsamaritan |
![]() |
![]() |
RSS - please add RSS to this forum
Started by majormark |
1 Replies
5,595 Views |
![]() by majormark |
![]() |
![]() |
Symantics of raw meat
Started by Sitting Coyote |
4 Replies
6,313 Views |
![]() by kurite |
![]() |
![]() |
'Type-writer' Effect
Started by miles |
9 Replies
7,838 Views |
![]() by Löwenherz |
![]() |
![]() |
Research Category
Started by kurite |
7 Replies
8,494 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor hypocrisy
Started by TylerDurden |
1 Replies
4,840 Views |
![]() by sabertooth |
![]() |
![]() |
3 Replies
5,289 Views |
![]() by the PresiDenT |
|
![]() |
![]() |
notifications
Started by MaximilianKohler |
1 Replies
5,162 Views |
![]() by MaximilianKohler |
![]() |
![]() |
Website loading problem
Started by Josh |
9 Replies
8,249 Views |
![]() by reyyzl |
![]() |
![]() |
Expand "Diet Gallery"/sub-categories?
Started by Cinna |
2 Replies
4,624 Views |
![]() by goodsamaritan |
![]() |
![]() |
New Moderators
Started by TylerDurden |
22 Replies
15,617 Views |
![]() by djr_81 |
![]() |
![]() |
Request
Started by TylerDurden |
4 Replies
6,784 Views |
![]() by TylerDurden |
![]() |
![]() |
Spam links
Started by Josh |
11 Replies
9,271 Views |
![]() by Josh |
![]() |
![]() |
Reviews of diet books
Started by TylerDurden |
6 Replies
6,471 Views |
![]() by cherimoya_kid |
![]() |
![]() |
Moderators2
Started by William |
9 Replies
7,373 Views |
![]() by cherimoya_kid |
![]() |
![]() |
Reminder
Started by TylerDurden |
0 Replies
3,267 Views |
![]() by TylerDurden |
![]() |
![]() |
Moderators
Started by William |
2 Replies
3,793 Views |
![]() by TylerDurden |
![]() |
![]() |
Palaeo cave-paintings
Started by TylerDurden |
0 Replies
3,628 Views |
![]() by TylerDurden |
![]() |
![]() |
Request to members
Started by TylerDurden |
0 Replies
3,468 Views |
![]() by TylerDurden |
![]() |
![]() |
Editing posts?
Started by nummytummy |
7 Replies
7,070 Views |
![]() by nummytummy |
![]() |
![]() |
2 Replies
4,165 Views |
![]() by TylerDurden |
|
![]() |
![]() |
ACTIVISM!
Started by intouchwithinstinct |
1 Replies
4,208 Views |
![]() by TylerDurden |
![]() |
![]() |
2 Replies
5,076 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Recent Posts
Started by majormark |
0 Replies
3,965 Views |
![]() by majormark |
![]() |
![]() |
Forum policy
Started by TylerDurden |
6 Replies
6,299 Views |
![]() by RawZi |
![]() |
![]() |
New thread idea
Started by Paleo Donk |
1 Replies
5,238 Views |
![]() by TylerDurden |
![]() |
![]() |
Spelling Mistakes
Started by TylerDurden |
0 Replies
3,415 Views |
![]() by TylerDurden |
![]() |
![]() |
Further rawpaleodiet.com updates
Started by TylerDurden |
5 Replies
5,879 Views |
![]() by TylerDurden |
![]() |
![]() |
Glossary of Acronyms
Started by majormark |
2 Replies
4,450 Views |
![]() by TylerDurden |
![]() |
![]() |
Promotion
Started by TylerDurden |
0 Replies
3,676 Views |
![]() by TylerDurden |
![]() |
![]() |
Are my pictures showing up?
Started by livingthelife |
3 Replies
5,161 Views |
![]() by Roselene |
![]() |
![]() |
More additions
Started by TylerDurden |
5 Replies
7,473 Views |
![]() by RawZi |
![]() |
![]() |
Further suggestions wanted
Started by TylerDurden |
2 Replies
4,262 Views |
![]() by TylerDurden |
![]() |
![]() |
Spam post removed
Started by TylerDurden |
3 Replies
4,662 Views |
![]() by TylerDurden |
![]() |
![]() |
Glitch
Started by William |
2 Replies
3,825 Views |
![]() by William |
![]() |
![]() |
Brilliant!
Started by TylerDurden |
0 Replies
3,763 Views |
![]() by TylerDurden |
![]() |
![]() |
0 Replies
3,852 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Added review of Stefansson's book
Started by TylerDurden |
4 Replies
5,917 Views |
![]() by PaleoPhil |
![]() |
![]() |
10 Replies
10,358 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Topics in the right forums
Started by TylerDurden |
0 Replies
3,565 Views |
![]() by TylerDurden |
![]() |
![]() |
Maybe a hygiene or cosmetic section?
Started by Raw Rob |
9 Replies
11,691 Views |
![]() by yon yonson |
![]() |
![]() |
More sub categories
Started by Eurofusion |
2 Replies
5,370 Views |
![]() by wodgina |
![]() |
![]() |
Minor advice
Started by TylerDurden |
0 Replies
3,651 Views |
![]() by TylerDurden |
![]() |
![]() |
Rawpaleodiet.com suggestions
Started by TylerDurden |
1 Replies
4,098 Views |
![]() by Ironbeef |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll