/* * 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 15 Guests are viewing this board. | ||||
![]() |
![]() |
new to forum and question
Started by mentisafer |
12 Replies
8,696 Views |
![]() by djr_81 |
![]() |
![]() |
100 Replies
47,849 Views |
![]() by TylerDurden |
|
![]() |
![]() |
Newbie here
Started by Raw Forever |
8 Replies
5,769 Views |
![]() by Raw Forever |
![]() |
![]() |
Hello, trying new things!
Started by Megan Megatoast |
17 Replies
8,639 Views |
![]() by Megan Megatoast |
![]() |
![]() |
2 Replies
3,404 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Where do I start?
Started by Rod Franklin |
3 Replies
3,289 Views |
![]() by TylerDurden |
![]() |
![]() |
Very first post...
Started by Sitting Coyote |
8 Replies
5,494 Views |
![]() by Sitting Coyote |
![]() |
![]() |
First Post
Started by theskierkid |
2 Replies
3,489 Views |
![]() by PaleoPhil |
![]() |
![]() |
3 Replies
3,744 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
RVAF -- Newbie
Started by extralizard13 « 1 2 » |
26 Replies
15,778 Views |
![]() by William |
![]() |
![]() |
Saying hello as well
Started by Dbk |
5 Replies
4,448 Views |
![]() by Dbk |
![]() |
![]() |
Hi, new to the forum
Started by nicolegreen « 1 2 » |
33 Replies
16,282 Views |
![]() by nicolegreen |
![]() |
![]() |
16 Replies
9,274 Views |
![]() by TylerDurden |
|
![]() |
![]() |
19 Replies
9,879 Views |
![]() by PaleoPhil |
|
![]() |
![]() |
Greetings from Middle Tennessee. :)
Started by xnadam |
2 Replies
2,714 Views |
![]() by xnadam |
![]() |
![]() |
Raw-vegan and raw-paleo and other Questions
Started by aek11 |
12 Replies
8,935 Views |
![]() by RawZi |
![]() |
![]() |
Hello All
Started by sirloinsteaks |
3 Replies
3,092 Views |
![]() by sirloinsteaks |
![]() |
![]() |
5 Replies
4,234 Views |
![]() by Sitting Coyote |
|
![]() |
![]() |
50 Replies
27,525 Views |
![]() by chucky |
|
![]() |
![]() |
Introduction
Started by Seeker_1 |
1 Replies
2,918 Views |
![]() by goodsamaritan |
![]() |
![]() |
28 Replies
14,934 Views |
![]() by KD |
|
![]() |
![]() |
7 Replies
5,375 Views |
![]() by sevenpoints |
|
![]() |
![]() |
New here but not new to raw lifestyle
Started by Taste Sense |
0 Replies
2,624 Views |
![]() by Taste Sense |
![]() |
![]() |
Hello from Brazil
Started by Arthas_ |
15 Replies
10,101 Views |
![]() by Raw Kyle |
![]() |
![]() |
Hello! New member here!
Started by Ouchburns |
23 Replies
13,551 Views |
![]() by Stig of the Dump |
![]() |
![]() |
oops posted in wrong place
Started by tnlcrossfitter |
0 Replies
2,491 Views |
![]() by tnlcrossfitter |
![]() |
![]() |
3 Replies
3,112 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Time to participate and share...
Started by Rawzilla |
6 Replies
4,879 Views |
![]() by TylerDurden |
![]() |
![]() |
1 Replies
2,872 Views |
![]() by goodsamaritan |
|
![]() |
![]() |
Raw Vegan to Raw Every Thing
Started by DameonWolf |
15 Replies
10,796 Views |
![]() by chucky |
![]() |
![]() |
Hei guise :3
Started by oxycat |
4 Replies
3,718 Views |
![]() by oxycat |
![]() |
![]() |
11 Replies
6,758 Views |
![]() by RawZi |
|
![]() |
![]() |
Would like to thank everyody on this forum
Started by luis |
13 Replies
6,615 Views |
![]() by Stig of the Dump |
![]() |
![]() |
New member: Western Australia
Started by Atu |
14 Replies
8,125 Views |
![]() by Atu |
![]() |
![]() |
20 Replies
12,291 Views |
![]() by nummytummy |
|
![]() |
![]() |
5 Replies
4,675 Views |
![]() by nummytummy |
|
![]() |
![]() |
Hi :)
Started by MoonStalkeR |
9 Replies
5,000 Views |
![]() by TylerDurden |
![]() |
![]() |
new to paleo
Started by brettie vedder |
2 Replies
3,229 Views |
![]() by PaleoPhil |
![]() |
![]() |
new frenchy coming
Started by diogene |
11 Replies
11,457 Views |
![]() by diogene |
![]() |
![]() |
how do I change my name and username?
Started by pioneer |
1 Replies
2,797 Views |
![]() by goodsamaritan |
![]() |
![]() |
Amount of animal protein daily
Started by tnlcrossfitter « 1 2 » |
25 Replies
13,015 Views |
![]() by Josh |
![]() |
![]() |
Anyone in Vancouver?
Started by King Salmon |
1 Replies
2,971 Views |
![]() by TylerDurden |
![]() |
![]() |
3 Replies
3,901 Views |
![]() by dsohei |
|
![]() |
![]() |
Introduction and sabotage
Started by rich07 |
7 Replies
5,367 Views |
![]() by Curator |
![]() |
![]() |
Hiiiiiiiiii:D:D:D im new ^_^
Started by Curator |
6 Replies
4,555 Views |
![]() by Curator |
![]() |
![]() |
Some questions
Started by pioneer |
7 Replies
5,506 Views |
![]() by Curator |
![]() |
![]() |
6 Replies
6,906 Views |
![]() by Dwight |
|
![]() |
![]() |
Hi from the channel islands!
Started by Meloy |
5 Replies
3,467 Views |
![]() by Ioanna |
![]() |
![]() |
3 Replies
2,838 Views |
![]() by huntress |
|
![]() |
![]() |
Hello fellow cavepeoples
Started by Destor |
3 Replies
3,041 Views |
![]() by Destor |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll