/*
* 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 - RawZi
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 - RawZi
Pages: [1]
Filename
|
Downloads
|
Message
|
Posted
|
4545435781_379x229.jpg |
1681 |
Re: Synthetic vitamin C causes atherosclerosis |
October 30, 2012, 10:17:56 pm |
IMAG0301.jpg |
434 |
Urgent possum |
December 18, 2011, 02:50:42 am |
Milk-Cream-Separator-large.jpg |
2909 |
Re: raw cream? |
August 24, 2010, 11:51:54 pm |
wing-beans.jpg |
7919 |
Re: Getting constipated when eating fish. |
April 18, 2010, 12:56:40 pm |
luffas.jpg |
4495 |
Re: Getting constipated when eating fish. |
April 18, 2010, 12:56:40 pm |
Heringsfass.JPG |
4781 |
Re: Getting constipated when eating fish. |
April 18, 2010, 12:56:40 pm |
coconut-tree.png |
2001 |
Re: How much fruit do all of the raw paleo omnivores eat? |
April 12, 2010, 07:20:17 am |
durianrider.jpg |
2318 |
Re: De Vany vs. Graham |
February 02, 2010, 01:22:46 am |
Wai Genriiu diet interview.jpg |
1830 |
Re: Count me in on this Wai Diet thing... |
January 31, 2010, 09:42:42 am |
cappings400px (1).gif |
713 |
Re: Honey |
January 31, 2010, 07:18:17 am |
Kieba-Aajonus-RawGame-Kickoff-1001.jpg |
1735 |
Re: De Vany vs. Graham |
January 30, 2010, 12:32:35 am |
the Laetiporus sulphureus mushroom variety.jpg |
782 |
Re: Going vegan shrinks your brain |
November 30, 2008, 04:55:36 am |
Pages: [1]