/* * 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 9 Guests are viewing this board. | ||||
![]() |
![]() |
Can I change my sign on name?
Started by RogueFarmer |
2 Replies
5,084 Views |
![]() by goodsamaritan |
![]() |
![]() |
Increase QUOTE Font to 10
Started by PaleoPhil |
9 Replies
8,300 Views |
![]() by goodsamaritan |
![]() |
![]() |
68 Replies
39,869 Views |
![]() by KD |
|
![]() |
![]() |
Delete account
Started by p0wer |
5 Replies
6,465 Views |
![]() by Projectile Vomit |
![]() |
![]() |
Recommendation
Started by TylerDurden |
1 Replies
5,734 Views |
![]() by HIT_it_RAW |
![]() |
![]() |
Vague notes re improvements
Started by TylerDurden |
11 Replies
12,355 Views |
![]() by zbr5 |
![]() |
![]() |
Advice to members
Started by TylerDurden |
1 Replies
4,733 Views |
![]() by goodsamaritan |
![]() |
![]() |
RSS - please add RSS to this forum
Started by majormark |
1 Replies
5,534 Views |
![]() by majormark |
![]() |
![]() |
Symantics of raw meat
Started by Sitting Coyote |
4 Replies
6,215 Views |
![]() by kurite |
![]() |
![]() |
'Type-writer' Effect
Started by miles |
9 Replies
7,639 Views |
![]() by Löwenherz |
![]() |
![]() |
Research Category
Started by kurite |
7 Replies
8,308 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor hypocrisy
Started by TylerDurden |
1 Replies
4,788 Views |
![]() by sabertooth |
![]() |
![]() |
3 Replies
5,208 Views |
![]() by the PresiDenT |
|
![]() |
![]() |
notifications
Started by MaximilianKohler |
1 Replies
5,109 Views |
![]() by MaximilianKohler |
![]() |
![]() |
Website loading problem
Started by Josh |
9 Replies
8,112 Views |
![]() by reyyzl |
![]() |
![]() |
Expand "Diet Gallery"/sub-categories?
Started by Cinna |
2 Replies
4,529 Views |
![]() by goodsamaritan |
![]() |
![]() |
New Moderators
Started by TylerDurden |
22 Replies
15,194 Views |
![]() by djr_81 |
![]() |
![]() |
Request
Started by TylerDurden |
4 Replies
6,690 Views |
![]() by TylerDurden |
![]() |
![]() |
Spam links
Started by Josh |
11 Replies
9,104 Views |
![]() by Josh |
![]() |
![]() |
Reviews of diet books
Started by TylerDurden |
6 Replies
6,346 Views |
![]() by cherimoya_kid |
![]() |
![]() |
Moderators2
Started by William |
9 Replies
7,220 Views |
![]() by cherimoya_kid |
![]() |
![]() |
Reminder
Started by TylerDurden |
0 Replies
3,212 Views |
![]() by TylerDurden |
![]() |
![]() |
Moderators
Started by William |
2 Replies
3,731 Views |
![]() by TylerDurden |
![]() |
![]() |
Palaeo cave-paintings
Started by TylerDurden |
0 Replies
3,572 Views |
![]() by TylerDurden |
![]() |
![]() |
Request to members
Started by TylerDurden |
0 Replies
3,408 Views |
![]() by TylerDurden |
![]() |
![]() |
Editing posts?
Started by nummytummy |
7 Replies
6,937 Views |
![]() by nummytummy |
![]() |
![]() |
2 Replies
4,098 Views |
![]() by TylerDurden |
|
![]() |
![]() |
ACTIVISM!
Started by intouchwithinstinct |
1 Replies
4,143 Views |
![]() by TylerDurden |
![]() |
![]() |
2 Replies
4,982 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Recent Posts
Started by majormark |
0 Replies
3,907 Views |
![]() by majormark |
![]() |
![]() |
Forum policy
Started by TylerDurden |
6 Replies
6,156 Views |
![]() by RawZi |
![]() |
![]() |
New thread idea
Started by Paleo Donk |
1 Replies
5,176 Views |
![]() by TylerDurden |
![]() |
![]() |
Spelling Mistakes
Started by TylerDurden |
0 Replies
3,351 Views |
![]() by TylerDurden |
![]() |
![]() |
Further rawpaleodiet.com updates
Started by TylerDurden |
5 Replies
5,760 Views |
![]() by TylerDurden |
![]() |
![]() |
Glossary of Acronyms
Started by majormark |
2 Replies
4,388 Views |
![]() by TylerDurden |
![]() |
![]() |
Promotion
Started by TylerDurden |
0 Replies
3,620 Views |
![]() by TylerDurden |
![]() |
![]() |
Are my pictures showing up?
Started by livingthelife |
3 Replies
5,089 Views |
![]() by Roselene |
![]() |
![]() |
More additions
Started by TylerDurden |
5 Replies
7,383 Views |
![]() by RawZi |
![]() |
![]() |
Further suggestions wanted
Started by TylerDurden |
2 Replies
4,179 Views |
![]() by TylerDurden |
![]() |
![]() |
Spam post removed
Started by TylerDurden |
3 Replies
4,578 Views |
![]() by TylerDurden |
![]() |
![]() |
Glitch
Started by William |
2 Replies
3,749 Views |
![]() by William |
![]() |
![]() |
Brilliant!
Started by TylerDurden |
0 Replies
3,695 Views |
![]() by TylerDurden |
![]() |
![]() |
0 Replies
3,791 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Added review of Stefansson's book
Started by TylerDurden |
4 Replies
5,795 Views |
![]() by PaleoPhil |
![]() |
![]() |
10 Replies
10,157 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Topics in the right forums
Started by TylerDurden |
0 Replies
3,508 Views |
![]() by TylerDurden |
![]() |
![]() |
Maybe a hygiene or cosmetic section?
Started by Raw Rob |
9 Replies
11,495 Views |
![]() by yon yonson |
![]() |
![]() |
More sub categories
Started by Eurofusion |
2 Replies
5,275 Views |
![]() by wodgina |
![]() |
![]() |
Minor advice
Started by TylerDurden |
0 Replies
3,603 Views |
![]() by TylerDurden |
![]() |
![]() |
Rawpaleodiet.com suggestions
Started by TylerDurden |
1 Replies
4,024 Views |
![]() by Ironbeef |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll