/* * 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 7 Guests are viewing this board. | ||||
![]() |
![]() |
Promotion
Started by TylerDurden |
0 Replies
3,617 Views |
![]() by TylerDurden |
![]() |
![]() |
Reminder
Started by TylerDurden |
0 Replies
3,210 Views |
![]() by TylerDurden |
![]() |
![]() |
rawpaleodiet.com improvements
Started by TylerDurden |
0 Replies
3,177 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor advice
Started by TylerDurden |
0 Replies
3,599 Views |
![]() by TylerDurden |
![]() |
![]() |
Spelling Mistakes
Started by TylerDurden |
0 Replies
3,346 Views |
![]() by TylerDurden |
![]() |
![]() |
Install Google/Scroogle Search Engine
Started by zeno |
0 Replies
4,985 Views |
![]() by zeno |
![]() |
![]() |
Topics in the right forums
Started by TylerDurden |
0 Replies
3,502 Views |
![]() by TylerDurden |
![]() |
![]() |
0 Replies
3,784 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Brilliant!
Started by TylerDurden |
0 Replies
3,691 Views |
![]() by TylerDurden |
![]() |
![]() |
I Suggest you Improve the Suggestion Box
Started by Chris |
0 Replies
5,230 Views |
![]() by Chris |
![]() |
![]() |
Recent Posts
Started by majormark |
0 Replies
3,905 Views |
![]() by majormark |
![]() |
![]() |
Palaeo cave-paintings
Started by TylerDurden |
0 Replies
3,569 Views |
![]() by TylerDurden |
![]() |
![]() |
Further reminder
Started by TylerDurden |
0 Replies
4,980 Views |
![]() by TylerDurden |
![]() |
![]() |
Request to members
Started by TylerDurden |
0 Replies
3,405 Views |
![]() by TylerDurden |
![]() |
![]() |
Paleo Library and Mediateka
Started by Aura |
0 Replies
5,181 Views |
![]() by Aura |
![]() |
![]() |
Country flags
Started by Löwenherz |
0 Replies
4,892 Views |
![]() by Löwenherz |
![]() |
![]() |
Background color
Started by Iguana |
0 Replies
4,914 Views |
![]() by Iguana |
![]() |
![]() |
Back button on Browser
Started by Fermenter Zym |
0 Replies
4,985 Views |
![]() by Fermenter Zym |
![]() |
![]() |
0 Replies
3,498 Views |
![]() by Sully |
|
![]() |
![]() |
Before-and-after photos doesn't show
Started by thehadezb |
0 Replies
7,606 Views |
![]() by thehadezb |
![]() |
![]() |
0 Replies
3,554 Views |
![]() by MaverickHunter40245 |
|
![]() |
![]() |
chat room for raw paleo?
Started by smokeyquartz |
1 Replies
4,170 Views |
![]() by tonyvee |
![]() |
![]() |
Advice to members
Started by TylerDurden |
1 Replies
4,730 Views |
![]() by goodsamaritan |
![]() |
![]() |
New thread idea
Started by Paleo Donk |
1 Replies
5,173 Views |
![]() by TylerDurden |
![]() |
![]() |
Minor hypocrisy
Started by TylerDurden |
1 Replies
4,782 Views |
![]() by sabertooth |
![]() |
![]() |
RSS - please add RSS to this forum
Started by majormark |
1 Replies
5,526 Views |
![]() by majormark |
![]() |
![]() |
Image verification issue
Started by Delmonico |
1 Replies
5,892 Views |
![]() by goodsamaritan |
![]() |
![]() |
ACTIVISM!
Started by intouchwithinstinct |
1 Replies
4,141 Views |
![]() by TylerDurden |
![]() |
![]() |
Recommendation
Started by TylerDurden |
1 Replies
5,729 Views |
![]() by HIT_it_RAW |
![]() |
![]() |
1 Replies
5,643 Views |
![]() by cherimoya_kid |
|
![]() |
![]() |
VERIFICATION LETTERS TOO HARD TO READ!
Started by primalgirl |
1 Replies
5,807 Views |
![]() by goodsamaritan |
![]() |
![]() |
notifications
Started by MaximilianKohler |
1 Replies
5,102 Views |
![]() by MaximilianKohler |
![]() |
![]() |
Rawpaleodiet.com suggestions
Started by TylerDurden |
1 Replies
4,021 Views |
![]() by Ironbeef |
![]() |
![]() |
Contact Us
Started by Satya |
1 Replies
3,748 Views |
![]() by xylothrill |
![]() |
![]() |
RSS feed question
Started by glennm01 |
1 Replies
3,863 Views |
![]() by goodsamaritan |
![]() |
![]() |
Better grammar etc.
Started by TylerDurden |
1 Replies
5,514 Views |
![]() by CitrusHigh |
![]() |
![]() |
2 Replies
4,095 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Logout causes 'Internal Server Error'
Started by Löwenherz |
2 Replies
6,165 Views |
![]() by Löwenherz |
![]() |
![]() |
Can I change my sign on name?
Started by RogueFarmer |
2 Replies
5,079 Views |
![]() by goodsamaritan |
![]() |
![]() |
Expand "Diet Gallery"/sub-categories?
Started by Cinna |
2 Replies
4,521 Views |
![]() by goodsamaritan |
![]() |
![]() |
Moderators
Started by William |
2 Replies
3,729 Views |
![]() by TylerDurden |
![]() |
![]() |
2 Replies
4,977 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Re Journals
Started by TylerDurden |
2 Replies
13,426 Views |
![]() by TylerDurden |
![]() |
![]() |
HOW TO FIND A REPLY I MADE IN A TOPIC?
Started by primalgirl |
2 Replies
5,860 Views |
![]() by primalgirl |
![]() |
![]() |
mobile app?
Started by Dr. D |
2 Replies
6,067 Views |
![]() by Dr. D |
![]() |
![]() |
More sub categories
Started by Eurofusion |
2 Replies
5,265 Views |
![]() by wodgina |
![]() |
![]() |
Glitch
Started by William |
2 Replies
3,744 Views |
![]() by William |
![]() |
![]() |
Further suggestions wanted
Started by TylerDurden |
2 Replies
4,167 Views |
![]() by TylerDurden |
![]() |
![]() |
2 Replies
8,082 Views |
![]() by sabertooth |
|
![]() |
![]() |
quote of the week
Started by blackrhino |
2 Replies
5,771 Views |
![]() by blackrhino |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll