/*
* 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 - LePatron7
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 - LePatron7
Pages: [1]
Filename
|
Downloads
|
Message
|
Posted
|
Vulcan Salute - Love long and prosper.jpg |
868 |
Re: DaBoss88's healing schizophrenia journal |
June 15, 2014, 05:18:17 am |
Vitamin K protocol.pdf |
1864 |
Re: DaBoss88's healing schizophrenia journal |
January 29, 2014, 03:28:08 pm |
Pickles.jpg |
1989 |
Re: Fermented raw plant foods |
December 12, 2012, 06:51:49 pm |
millerd.pdf |
578 |
Re: Mega dosing iodine |
December 15, 2013, 02:28:36 am |
MethylFolate- A Vitamin for Your Monoamines, by Dr. Stephen Stahl.pdf |
1315 |
Re: DaBoss88's healing schizophrenia journal |
December 15, 2013, 02:46:41 am |
IMG_20130405_094928.jpg |
860 |
Re: DaBoss88's healing schizophrenia journal |
April 05, 2013, 09:51:30 pm |
IMG_20130405_094337.jpg |
850 |
Re: DaBoss88's healing schizophrenia journal |
April 05, 2013, 09:46:36 pm |
IMG_20130321_124916.jpg |
1228 |
Salad |
March 22, 2013, 01:11:39 am |
IMG_20121213_105752.jpg |
2028 |
Re: Fermented raw plant foods |
December 14, 2012, 12:01:25 am |
Brains.jpg |
1551 |
Re: DaBoss88's healing schizophrenia journal |
December 18, 2012, 05:04:24 am |
Brain on plate.jpg |
1062 |
Re: DaBoss88's healing schizophrenia journal |
January 29, 2013, 12:47:01 am |
aerobic vs anaerobic.png |
3120 |
Aerobic vs. Anaerobic bacteria |
May 13, 2013, 09:27:55 pm |
Pages: [1]