/* * 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 4 Guests are viewing this board. | ||||
rawpaleodiet.com improvements
Started by TylerDurden |
0 Replies
2,530 Views |
April 24, 2009, 10:43:25 pm by TylerDurden |
||
Spelling nuisance
Started by TylerDurden « 1 2 » |
25 Replies
15,725 Views |
April 18, 2009, 12:14:32 am by lex_rooker |
||
3 Replies
3,999 Views |
March 21, 2009, 06:48:25 am by JaX |
|||
"News" on rawpaleo.com
Started by Satya |
12 Replies
7,012 Views |
March 07, 2009, 06:55:10 pm by TylerDurden |
||
Modifying Messages
Started by Satya |
12 Replies
6,357 Views |
January 21, 2009, 07:35:53 am by JaX |
||
RSS feed question
Started by glennm01 |
1 Replies
3,137 Views |
January 12, 2009, 03:12:56 pm by goodsamaritan |
||
Longer numbers for discussion topics
Started by Satya |
5 Replies
4,695 Views |
December 10, 2008, 09:10:20 am by feral |
||
Please Help Test the Beyond Veg Debunked Page
Started by xylothrill |
8 Replies
8,622 Views |
November 06, 2008, 07:39:51 am by goodsamaritan |
||
Country Flags in Memberlist
Started by xylothrill |
11 Replies
6,614 Views |
October 30, 2008, 05:41:49 am by TylerDurden |
||
Contact Us
Started by Satya |
1 Replies
3,036 Views |
October 25, 2008, 09:51:18 am by xylothrill |
||
0 Replies
2,881 Views |
October 18, 2008, 12:41:03 pm by MaverickHunter40245 |
|||
A couple things...
Started by boxcarguy07 |
12 Replies
7,581 Views |
September 21, 2008, 06:42:39 pm by boxcarguy07 |
||
0 Replies
2,855 Views |
August 16, 2008, 04:14:15 am by Sully |
|||
Members Only Gallery Section
Started by xylothrill |
15 Replies
7,037 Views |
July 31, 2008, 05:39:35 am by xylothrill |
||
Centered text?
Started by boxcarguy07 |
8 Replies
5,116 Views |
July 26, 2008, 08:20:15 am by xylothrill |
||
Various suggestions
Started by TylerDurden |
3 Replies
5,147 Views |
July 26, 2008, 04:03:29 am by xylothrill |
||
Tabs on the bottom of pages
Started by Satya |
10 Replies
9,397 Views |
July 23, 2008, 01:31:40 am by xylothrill |
||
Our search engine
Started by Satya |
4 Replies
3,347 Views |
June 18, 2008, 12:40:37 am by xylothrill |
||
Why not omnivore and carnivore along with carb focus?
Started by Satya |
4 Replies
4,543 Views |
May 26, 2008, 05:11:36 am by Raw Kyle |
||
Re Journals
Started by TylerDurden |
2 Replies
10,928 Views |
May 06, 2008, 01:41:29 am by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll