/* * 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 1 Guest are viewing this board. | ||||
10 Replies
8,553 Views |
May 04, 2020, 09:18:13 pm by therouting |
|||
Tabs on the bottom of pages
Started by Satya |
10 Replies
9,393 Views |
July 23, 2008, 01:31:40 am by xylothrill |
||
11 Replies
7,087 Views |
August 09, 2017, 05:40:12 am by a_real_man |
|||
Spam links
Started by Josh |
11 Replies
7,053 Views |
July 17, 2010, 06:04:43 pm by Josh |
||
Adding "thanks" button below posts
Started by letsdoiteczema |
11 Replies
8,665 Views |
September 01, 2013, 09:09:30 am by goodsamaritan |
||
Vague notes re improvements
Started by TylerDurden |
11 Replies
10,737 Views |
May 27, 2011, 02:55:34 am by zbr5 |
||
Country Flags in Memberlist
Started by xylothrill |
11 Replies
6,610 Views |
October 30, 2008, 05:41:49 am by TylerDurden |
||
A couple things...
Started by boxcarguy07 |
12 Replies
7,576 Views |
September 21, 2008, 06:42:39 pm by boxcarguy07 |
||
Modifying Messages
Started by Satya |
12 Replies
6,348 Views |
January 21, 2009, 07:35:53 am by JaX |
||
"News" on rawpaleo.com
Started by Satya |
12 Replies
7,001 Views |
March 07, 2009, 06:55:10 pm by TylerDurden |
||
13 Replies
14,993 Views |
July 02, 2013, 10:43:18 am by cherimoya_kid |
|||
13 Replies
6,322 Views |
March 30, 2018, 05:15:08 am by norawnofun |
|||
Members Only Gallery Section
Started by xylothrill |
15 Replies
7,026 Views |
July 31, 2008, 05:39:35 am by xylothrill |
||
Isn't this a RPD Only Forum?
Started by Chris |
17 Replies
10,435 Views |
August 03, 2012, 11:39:16 am by cherimoya_kid |
||
Live Chat Box ( Facebook kinda like)
Started by achillezzz |
18 Replies
14,254 Views |
October 21, 2013, 01:10:07 am by achillezzz |
||
New Moderators
Started by TylerDurden |
22 Replies
11,927 Views |
August 26, 2010, 08:30:57 am by djr_81 |
||
Better spelling/grammar/punctuation
Started by TylerDurden |
24 Replies
12,780 Views |
November 25, 2011, 09:46:01 pm by Muhammad.Sunshine |
||
Spelling nuisance
Started by TylerDurden « 1 2 » |
25 Replies
15,715 Views |
April 18, 2009, 12:14:32 am by lex_rooker |
||
New forum software?
Started by lb_on_the_cb « 1 2 » |
25 Replies
15,600 Views |
May 12, 2017, 12:10:35 pm by the6step |
||
68 Replies
32,003 Views |
August 10, 2011, 12:23:32 am by KD |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll