/* * 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 12 Guests are viewing this board. | ||||
5 Replies
8,340 Views |
May 28, 2018, 01:52:19 am by TylerDurden |
|||
0 Replies
1,207 Views |
April 29, 2017, 05:12:35 am by TylerDurden |
|||
0 Replies
867 Views |
February 05, 2015, 04:36:36 pm by TylerDurden |
|||
0 Replies
3,796 Views |
April 27, 2018, 02:09:40 pm by TylerDurden |
|||
0 Replies
1,218 Views |
December 27, 2015, 12:20:19 am by goodsamaritan |
|||
0 Replies
947 Views |
July 28, 2015, 09:17:05 pm by TylerDurden |
|||
0 Replies
1,263 Views |
May 23, 2017, 03:56:59 am by TylerDurden |
|||
4 Replies
2,409 Views |
August 17, 2018, 11:38:46 am by TylerDurden |
|||
300,000 years Homo sapiens
Started by Iguana |
0 Replies
1,576 Views |
June 08, 2017, 04:41:05 am by Iguana |
||
1 Replies
1,037 Views |
December 15, 2016, 04:48:24 am by goodsamaritan |
|||
2nd human brain found in bowels
Started by TylerDurden |
3 Replies
7,067 Views |
June 01, 2018, 12:11:35 am by dariorpl |
||
0 Replies
897 Views |
March 28, 2015, 10:38:15 pm by TylerDurden |
|||
1400 years of inbreeding - Genetic defects, lower intelligence
Started by goodsamaritan « 1 2 3 4 » |
83 Replies
17,221 Views |
February 03, 2016, 08:04:42 pm by TylerDurden |
||
2 Replies
5,389 Views |
November 13, 2019, 06:53:32 pm by TylerDurden |
|||
0 Replies
1,147 Views |
November 14, 2018, 01:37:44 pm by TylerDurden |
|||
0 Replies
1,074 Views |
March 10, 2017, 10:14:54 am by TylerDurden |
|||
0 Replies
870 Views |
January 02, 2017, 05:54:40 am by TylerDurden |
|||
1 Replies
1,521 Views |
May 11, 2019, 01:14:20 am by van |
|||
end of the world?
Started by hadzabal |
3 Replies
1,490 Views |
May 26, 2015, 04:33:56 pm by hadzabal |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll