/*
* 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
|
tamiluk-mangrove-grubs.jpg |
1179 |
Re: What are you eating right now? |
December 12, 2008, 03:45:03 pm |
raw-shrimps-presentation.jpg |
1159 |
Re: What are you eating right now? |
December 12, 2008, 03:26:56 pm |
pc010047.jpg |
696 |
Re: What do you LOVE to do? Pics! |
December 02, 2008, 07:55:14 am |
PC010043.JPG |
1124 |
Re: What are you eating right now? |
December 01, 2008, 09:15:56 am |
PC010041.JPG |
1100 |
Re: What are you eating right now? |
December 01, 2008, 09:15:56 am |
PC010039.JPG |
1170 |
Re: What are you eating right now? |
December 01, 2008, 09:15:56 am |
Fructose Metabolism.jpg |
1205 |
Re: description |
November 06, 2008, 06:34:03 am |
simple-trap.jpg |
1731 |
Re: Trap hunting wild boar and deer |
October 21, 2008, 08:43:01 am |
wild-honey-smoker.jpg |
869 |
Re: Raw wild honey hunting is easy, reliable and seasonal |
October 21, 2008, 07:46:20 am |
dinner-party-sep22.jpg |
1606 |
Re: What are you eating right now? |
September 21, 2008, 11:55:51 pm |
rambutan.jpg |
1551 |
Re: What are you eating right now? |
September 21, 2008, 11:39:17 pm |
coconut-straw.jpg |
761 |
Re: Water |
August 14, 2008, 10:05:33 pm |
screenshot.jpg |
789 |
Re: Computer Woes |
July 18, 2008, 11:46:31 am |
Pages: 1 ... 6 7 8 9 10 [11]