/* * 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. | ||||
![]() |
![]() |
rawpaleodiet.com improvements
Started by TylerDurden |
0 Replies
3,177 Views |
![]() by TylerDurden |
![]() |
![]() |
Reminder
Started by TylerDurden |
0 Replies
3,209 Views |
![]() by TylerDurden |
![]() |
![]() |
Spelling Mistakes
Started by TylerDurden |
0 Replies
3,345 Views |
![]() by TylerDurden |
![]() |
![]() |
Request to members
Started by TylerDurden |
0 Replies
3,403 Views |
![]() by TylerDurden |
![]() |
![]() |
0 Replies
3,495 Views |
![]() by Sully |
|
![]() |
![]() |
Topics in the right forums
Started by TylerDurden |
0 Replies
3,502 Views |
![]() by TylerDurden |
![]() |
![]() |
0 Replies
3,549 Views |
![]() by MaverickHunter40245 |
|
![]() |
![]() |
Palaeo cave-paintings
Started by TylerDurden |
0 Replies
3,568 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor advice
Started by TylerDurden |
0 Replies
3,598 Views |
![]() by TylerDurden |
![]() |
![]() |
Promotion
Started by TylerDurden |
0 Replies
3,616 Views |
![]() by TylerDurden |
![]() |
![]() |
Brilliant!
Started by TylerDurden |
0 Replies
3,691 Views |
![]() by TylerDurden |
![]() |
![]() |
Moderators
Started by William |
2 Replies
3,727 Views |
![]() by TylerDurden |
![]() |
![]() |
Glitch
Started by William |
2 Replies
3,744 Views |
![]() by William |
![]() |
![]() |
Contact Us
Started by Satya |
1 Replies
3,747 Views |
![]() by xylothrill |
![]() |
![]() |
0 Replies
3,784 Views |
![]() by TylerDurden |
|
![]() |
![]() |
RSS feed question
Started by glennm01 |
1 Replies
3,862 Views |
![]() by goodsamaritan |
![]() |
![]() |
Recent Posts
Started by majormark |
0 Replies
3,905 Views |
![]() by majormark |
![]() |
![]() |
Rawpaleodiet.com suggestions
Started by TylerDurden |
1 Replies
4,019 Views |
![]() by Ironbeef |
![]() |
![]() |
2 Replies
4,095 Views |
![]() by TylerDurden |
|
![]() |
![]() |
ACTIVISM!
Started by intouchwithinstinct |
1 Replies
4,140 Views |
![]() by TylerDurden |
![]() |
![]() |
chat room for raw paleo?
Started by smokeyquartz |
1 Replies
4,161 Views |
![]() by tonyvee |
![]() |
![]() |
Further suggestions wanted
Started by TylerDurden |
2 Replies
4,165 Views |
![]() by TylerDurden |
![]() |
![]() |
Our search engine
Started by Satya |
4 Replies
4,302 Views |
![]() by xylothrill |
![]() |
![]() |
Glossary of Acronyms
Started by majormark |
2 Replies
4,381 Views |
![]() by TylerDurden |
![]() |
![]() |
Expand "Diet Gallery"/sub-categories?
Started by Cinna |
2 Replies
4,521 Views |
![]() by goodsamaritan |
![]() |
![]() |
Spam post removed
Started by TylerDurden |
3 Replies
4,571 Views |
![]() by TylerDurden |
![]() |
![]() |
Advice to members
Started by TylerDurden |
1 Replies
4,729 Views |
![]() by goodsamaritan |
![]() |
![]() |
Minor hypocrisy
Started by TylerDurden |
1 Replies
4,782 Views |
![]() by sabertooth |
![]() |
![]() |
3 Replies
4,811 Views |
![]() by JaX |
|
![]() |
![]() |
Country flags
Started by Löwenherz |
0 Replies
4,891 Views |
![]() by Löwenherz |
![]() |
![]() |
Background color
Started by Iguana |
0 Replies
4,912 Views |
![]() by Iguana |
![]() |
![]() |
2 Replies
4,976 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Further reminder
Started by TylerDurden |
0 Replies
4,979 Views |
![]() by TylerDurden |
![]() |
![]() |
Install Google/Scroogle Search Engine
Started by zeno |
0 Replies
4,985 Views |
![]() by zeno |
![]() |
![]() |
Back button on Browser
Started by Fermenter Zym |
0 Replies
4,985 Views |
![]() by Fermenter Zym |
![]() |
![]() |
Can I change my sign on name?
Started by RogueFarmer |
2 Replies
5,077 Views |
![]() by goodsamaritan |
![]() |
![]() |
Are my pictures showing up?
Started by livingthelife |
3 Replies
5,083 Views |
![]() by Roselene |
![]() |
![]() |
notifications
Started by MaximilianKohler |
1 Replies
5,100 Views |
![]() by MaximilianKohler |
![]() |
![]() |
New thread idea
Started by Paleo Donk |
1 Replies
5,173 Views |
![]() by TylerDurden |
![]() |
![]() |
Paleo Library and Mediateka
Started by Aura |
0 Replies
5,181 Views |
![]() by Aura |
![]() |
![]() |
3 Replies
5,200 Views |
![]() by the PresiDenT |
|
![]() |
![]() |
I Suggest you Improve the Suggestion Box
Started by Chris |
0 Replies
5,228 Views |
![]() by Chris |
![]() |
![]() |
More sub categories
Started by Eurofusion |
2 Replies
5,264 Views |
![]() by wodgina |
![]() |
![]() |
Better grammar etc.
Started by TylerDurden |
1 Replies
5,512 Views |
![]() by CitrusHigh |
![]() |
![]() |
RSS - please add RSS to this forum
Started by majormark |
1 Replies
5,524 Views |
![]() by majormark |
![]() |
![]() |
1 Replies
5,639 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
Why not omnivore and carnivore along with carb focus?
Started by Satya |
4 Replies
5,675 Views |
![]() by Raw Kyle |
![]() |
![]() |
Recommendation
Started by TylerDurden |
1 Replies
5,729 Views |
![]() by HIT_it_RAW |
![]() |
![]() |
Longer numbers for discussion topics
Started by Satya |
5 Replies
5,745 Views |
![]() by feral |
![]() |
![]() |
Further rawpaleodiet.com updates
Started by TylerDurden |
5 Replies
5,752 Views |
![]() by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll