/* * 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
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Filename | Downloads | Message | Posted |
---|---|---|---|
big Z.jpg | 11176 | Re: young powerlifter | May 17, 2013, 06:27:49 pm |
Pullover4a.jpg | 1562 | Re: is Stretching Paleo/Necessary? | June 08, 2011, 03:27:34 pm |
pullover7b.jpg | 648 | Re: Today's workout? | May 29, 2011, 12:15:35 am |
Pullover4a.jpg | 622 | Re: Today's workout? | May 29, 2011, 12:15:35 am |
pullover7a.jpg | 613 | Re: Today's workout? | May 29, 2011, 12:15:35 am |
TerriGorilla.jpg | 534 | Re: Today's workout? | May 25, 2011, 03:29:28 pm |
20110504_001.jpg | 755 | Re: pictures of grass fed meat and fat? | May 05, 2011, 02:24:11 am |
untitled.GIF | 2392 | Re: Question about weight-lifting | April 27, 2011, 06:26:19 pm |