/*
* 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;
}
}
}
}
}
Show Posts - goodsamaritan
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.
Attachments - goodsamaritan
Pages: 1 ... 6 7 8 9 10 [11]
Filename
|
Downloads
|
Message
|
Posted
|
bone-marrow.jpg |
7910 |
Re: yellow bone marrow |
March 14, 2011, 04:40:59 pm |
langkawas-galangal.JPG |
7932 |
Galangal / Langkawas Discussions |
November 01, 2012, 01:49:48 pm |
sleep-apnea-bed-tilt.gif |
11015 |
Re: Inclined Bed Therapy (formerly Elevating the head of your bed) |
July 12, 2012, 01:46:36 pm |
p6090111.jpg |
14015 |
Market Pictures |
June 09, 2009, 09:39:49 pm |
lots-of-fish-vendors.jpg |
17592 |
Re: Worms in my fresh, raw, wild salmon from whole foods--a short video showing them |
August 31, 2010, 01:17:12 pm |
corner-of-fish.jpg |
18105 |
Re: Worms in my fresh, raw, wild salmon from whole foods--a short video showing them |
August 31, 2010, 01:17:12 pm |
rows-of-fish.jpg |
18192 |
Re: Worms in my fresh, raw, wild salmon from whole foods--a short video showing them |
August 31, 2010, 01:17:12 pm |
rows-of-fish2.jpg |
18262 |
Re: Worms in my fresh, raw, wild salmon from whole foods--a short video showing them |
August 31, 2010, 01:17:12 pm |
fresh-tbone-deboned.jpg |
20607 |
Photos of Your Best Cuts of Meat |
January 03, 2010, 09:33:36 am |
water-birth-19march2014.JPG |
91400 |
Re: Water Birth is Superior to Hospital "Normal" and Unnecessary C-Sections |
March 20, 2014, 08:10:08 am |
Pages: 1 ... 6 7 8 9 10 [11]