/* * 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 ![]() |
Last post | ||
---|---|---|---|---|
0 Members and 10 Guests are viewing this board. | ||||
![]() |
![]() |
Promotion
Started by TylerDurden |
0 Replies
3,620 Views |
![]() by TylerDurden |
![]() |
![]() |
Reminder
Started by TylerDurden |
0 Replies
3,212 Views |
![]() by TylerDurden |
![]() |
![]() |
rawpaleodiet.com improvements
Started by TylerDurden |
0 Replies
3,180 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor advice
Started by TylerDurden |
0 Replies
3,603 Views |
![]() by TylerDurden |
![]() |
![]() |
Spelling Mistakes
Started by TylerDurden |
0 Replies
3,350 Views |
![]() by TylerDurden |
![]() |
![]() |
Install Google/Scroogle Search Engine
Started by zeno |
0 Replies
4,991 Views |
![]() by zeno |
![]() |
![]() |
Topics in the right forums
Started by TylerDurden |
0 Replies
3,508 Views |
![]() by TylerDurden |
![]() |
![]() |
0 Replies
3,791 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Brilliant!
Started by TylerDurden |
0 Replies
3,695 Views |
![]() by TylerDurden |
![]() |
![]() |
I Suggest you Improve the Suggestion Box
Started by Chris |
0 Replies
5,234 Views |
![]() by Chris |
![]() |
![]() |
Recent Posts
Started by majormark |
0 Replies
3,907 Views |
![]() by majormark |
![]() |
![]() |
Palaeo cave-paintings
Started by TylerDurden |
0 Replies
3,572 Views |
![]() by TylerDurden |
![]() |
![]() |
Further reminder
Started by TylerDurden |
0 Replies
4,988 Views |
![]() by TylerDurden |
![]() |
![]() |
Request to members
Started by TylerDurden |
0 Replies
3,408 Views |
![]() by TylerDurden |
![]() |
![]() |
Paleo Library and Mediateka
Started by Aura |
0 Replies
5,187 Views |
![]() by Aura |
![]() |
![]() |
Country flags
Started by Löwenherz |
0 Replies
4,897 Views |
![]() by Löwenherz |
![]() |
![]() |
Background color
Started by Iguana |
0 Replies
4,918 Views |
![]() by Iguana |
![]() |
![]() |
Back button on Browser
Started by Fermenter Zym |
0 Replies
4,988 Views |
![]() by Fermenter Zym |
![]() |
![]() |
0 Replies
3,503 Views |
![]() by Sully |
|
![]() |
![]() |
Before-and-after photos doesn't show
Started by thehadezb |
0 Replies
7,611 Views |
![]() by thehadezb |
![]() |
![]() |
0 Replies
3,556 Views |
![]() by MaverickHunter40245 |
|
![]() |
![]() |
chat room for raw paleo?
Started by smokeyquartz |
1 Replies
4,174 Views |
![]() by tonyvee |
![]() |
![]() |
Advice to members
Started by TylerDurden |
1 Replies
4,733 Views |
![]() by goodsamaritan |
![]() |
![]() |
New thread idea
Started by Paleo Donk |
1 Replies
5,176 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor hypocrisy
Started by TylerDurden |
1 Replies
4,788 Views |
![]() by sabertooth |
![]() |
![]() |
RSS - please add RSS to this forum
Started by majormark |
1 Replies
5,534 Views |
![]() by majormark |
![]() |
![]() |
Image verification issue
Started by Delmonico |
1 Replies
5,899 Views |
![]() by goodsamaritan |
![]() |
![]() |
ACTIVISM!
Started by intouchwithinstinct |
1 Replies
4,143 Views |
![]() by TylerDurden |
![]() |
![]() |
Recommendation
Started by TylerDurden |
1 Replies
5,734 Views |
![]() by HIT_it_RAW |
![]() |
![]() |
1 Replies
5,646 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
VERIFICATION LETTERS TOO HARD TO READ!
Started by primalgirl |
1 Replies
5,812 Views |
![]() by goodsamaritan |
![]() |
![]() |
notifications
Started by MaximilianKohler |
1 Replies
5,109 Views |
![]() by MaximilianKohler |
![]() |
![]() |
Rawpaleodiet.com suggestions
Started by TylerDurden |
1 Replies
4,024 Views |
![]() by Ironbeef |
![]() |
![]() |
Contact Us
Started by Satya |
1 Replies
3,751 Views |
![]() by xylothrill |
![]() |
![]() |
RSS feed question
Started by glennm01 |
1 Replies
3,866 Views |
![]() by goodsamaritan |
![]() |
![]() |
Better grammar etc.
Started by TylerDurden |
1 Replies
5,516 Views |
![]() by CitrusHigh |
![]() |
![]() |
2 Replies
4,098 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Logout causes 'Internal Server Error'
Started by Löwenherz |
2 Replies
6,171 Views |
![]() by Löwenherz |
![]() |
![]() |
Can I change my sign on name?
Started by RogueFarmer |
2 Replies
5,083 Views |
![]() by goodsamaritan |
![]() |
![]() |
Expand "Diet Gallery"/sub-categories?
Started by Cinna |
2 Replies
4,528 Views |
![]() by goodsamaritan |
![]() |
![]() |
Moderators
Started by William |
2 Replies
3,731 Views |
![]() by TylerDurden |
![]() |
![]() |
2 Replies
4,982 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Re Journals
Started by TylerDurden |
2 Replies
13,443 Views |
![]() by TylerDurden |
![]() |
![]() |
HOW TO FIND A REPLY I MADE IN A TOPIC?
Started by primalgirl |
2 Replies
5,869 Views |
![]() by primalgirl |
![]() |
![]() |
mobile app?
Started by Dr. D |
2 Replies
6,071 Views |
![]() by Dr. D |
![]() |
![]() |
More sub categories
Started by Eurofusion |
2 Replies
5,275 Views |
![]() by wodgina |
![]() |
![]() |
Glitch
Started by William |
2 Replies
3,749 Views |
![]() by William |
![]() |
![]() |
Further suggestions wanted
Started by TylerDurden |
2 Replies
4,179 Views |
![]() by TylerDurden |
![]() |
![]() |
2 Replies
8,082 Views |
![]() by sabertooth |
|
![]() |
![]() |
quote of the week
Started by blackrhino |
2 Replies
5,774 Views |
![]() by blackrhino |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll