/* * 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 8 Guests are viewing this board. | ||||
42 Replies
19,216 Views |
September 22, 2022, 11:36:05 pm by jessica |
|||
11 Replies
15,414 Views |
September 25, 2021, 02:00:23 am by jessica |
|||
8 Replies
7,200 Views |
September 04, 2021, 09:21:05 am by jessica |
|||
ALWAYS REMEMBER!
Started by political atheist « 1 2 3 » |
74 Replies
20,733 Views |
August 26, 2021, 08:39:43 pm by sabertooth |
||
Low Milk Supply (breastfeeding)
Started by Sally |
7 Replies
6,938 Views |
December 03, 2018, 11:42:44 am by sabertooth |
||
4 Replies
5,073 Views |
November 16, 2018, 05:26:38 am by norawnofun |
|||
Testing after reinstall
Started by fwadmin |
3 Replies
4,906 Views |
April 02, 2018, 01:30:07 am by TylerDurden |
Normal Topic
Hot Topic (More than 15 replies)
Very Hot Topic (More than 30 replies)
Locked Topic
Sticky Topic
Poll