/* * 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 7 Guests are viewing this board. | ||||
12 Replies
3,202 Views |
April 12, 2016, 04:55:16 pm by goodsamaritan |
|||
13 Replies
2,466 Views |
May 25, 2015, 05:33:31 am by JeuneKoq |
|||
Positive Neanderthal Study
Started by TylerDurden |
13 Replies
2,784 Views |
April 16, 2014, 05:01:07 am by Iguana |
||
14 Replies
4,248 Views |
June 15, 2018, 06:01:10 pm by TylerDurden |
|||
Bacteria in gut same as in brain....
Started by TylerDurden |
14 Replies
3,886 Views |
November 21, 2018, 10:31:29 pm by PaganGoy |
||
15 Replies
3,156 Views |
April 15, 2015, 09:21:03 am by goodsamaritan |
|||
15 Replies
5,073 Views |
June 03, 2019, 11:42:08 pm by surfsteve |
|||
17 Replies
3,345 Views |
July 01, 2016, 11:02:59 am by cherimoya_kid |
|||
20 Replies
3,292 Views |
February 10, 2015, 11:37:47 pm by JeuneKoq |
|||
23 Replies
3,992 Views |
January 10, 2016, 12:18:56 am by sabertooth |
|||
23 Replies
6,410 Views |
March 22, 2019, 08:36:36 pm by TylerDurden |
|||
Study shows that social brain theory is nonsense
Started by TylerDurden « 1 2 » |
26 Replies
4,905 Views |
January 31, 2016, 01:53:08 am by TylerDurden |
||
29 Replies
7,817 Views |
July 20, 2018, 06:02:41 am by norawnofun |
|||
More evidence re Neanderthals
Started by TylerDurden « 1 2 » |
31 Replies
6,261 Views |
May 03, 2014, 11:11:27 pm by PaleoPhil |
||
34 Replies
6,726 Views |
November 25, 2016, 07:20:41 pm by dariorpl |
|||
48 Replies
7,783 Views |
April 28, 2015, 01:48:53 am by raw-al |
|||
70 Replies
77,391 Views |
May 23, 2018, 01:07:55 am by TylerDurden |
|||
76 Replies
19,809 Views |
January 31, 2019, 04:15:55 am by Grey-Cup |
|||
1400 years of inbreeding - Genetic defects, lower intelligence
Started by goodsamaritan « 1 2 3 4 » |
83 Replies
17,054 Views |
February 03, 2016, 08:04:42 pm by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll