/*
* 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 - ys
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 - ys
Pages: [1]
Filename
|
Downloads
|
Message
|
Posted
|
milk.jpg |
468 |
Re: drinking milk and dying earlier |
January 17, 2019, 08:23:14 am |
20180711_172722sm.jpg |
326 |
Kidney color |
July 12, 2018, 11:48:41 pm |
1.jpg |
417 |
Buffalo Bridge Yellowstone |
June 17, 2017, 11:09:56 am |
IMG_3569 (1024x683).jpg |
761 |
Re: Lean Times |
August 01, 2016, 11:12:23 am |
2011.png |
599 |
Re: Donald Trump for President of the USA |
July 16, 2015, 11:41:43 am |
l4zfgDCq_UY.jpg |
549 |
Re: 2015 Watch: economic, financial, war, money, gold turmoil |
March 03, 2015, 11:48:02 am |
IMG_9757.JPG |
691 |
3-year old ram, questions |
October 06, 2014, 05:32:45 am |
IMG_7316.JPG |
983 |
Re: The Butcher |
October 26, 2013, 01:49:58 pm |
IMG_7208.JPG |
1120 |
Re: The Butcher |
September 21, 2013, 10:53:06 pm |
IMG_7194.jpg |
896 |
Re: The Butcher |
September 11, 2013, 03:38:26 am |
Video 35 0 00 04-08.jpg |
654 |
Re: Yon and GS meet up - you should too! |
July 28, 2012, 11:54:54 pm |
IMG_3569 (1024x683).jpg |
1217 |
Re: Tapeworm cysts |
April 24, 2012, 05:36:03 am |
IMG_3078 (1024x683).jpg |
1173 |
Re: Deer hunting |
December 07, 2011, 11:16:38 am |
IMAG0014-sm.jpg |
5080 |
Deer hunting |
November 20, 2011, 01:58:04 am |
lamb.jpg |
731 |
Pictures of grass-fed lamb |
April 11, 2010, 02:31:32 am |
Pages: [1]