/* * 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 |
---|---|---|---|
untitled.GIF | 2321 | Re: Question about weight-lifting | April 27, 2011, 06:26:19 pm |
TerriGorilla.jpg | 460 | Re: Today's workout? | May 25, 2011, 03:29:28 pm |
pullover7b.jpg | 579 | Re: Today's workout? | May 29, 2011, 12:15:35 am |
pullover7a.jpg | 538 | Re: Today's workout? | May 29, 2011, 12:15:35 am |
Pullover4a.jpg | 1497 | Re: is Stretching Paleo/Necessary? | June 08, 2011, 03:27:34 pm |
Pullover4a.jpg | 551 | Re: Today's workout? | May 29, 2011, 12:15:35 am |
big Z.jpg | 11081 | Re: young powerlifter | May 17, 2013, 06:27:49 pm |
20110504_001.jpg | 575 | Re: pictures of grass fed meat and fat? | May 05, 2011, 02:24:11 am |