/*
* 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;
}
}
}
}
}
Tulosta sivu - New member :) Hello
Miata.fi
Yleinen => English Forum => Aiheen aloitti: Mx5dan - 09.02.14 - klo:12:01
-
Hello.
Im Dan from the UK.
Ive been involved with Mx5's for many years and have owned 10+ of them :)
here are two of them (turbo) models Ive built over the last few years.
I also own and run www.fast5.co.uk and www.universal-intercoolers.co.uk
Im on Mx5 Nutz too if anyone goes on there.
cheers
Dan
(http://img.photobucket.com/albums/v155/dja121/Mx5/IMG_0513.jpg) (http://smg.photobucket.com/user/dja121/media/Mx5/IMG_0513.jpg.html)
(http://img.photobucket.com/albums/v155/dja121/MX5%20MK2%20RS%201800/Turbo%20Conversion/DSC00009.jpg) (http://smg.photobucket.com/user/dja121/media/MX5%20MK2%20RS%201800/Turbo%20Conversion/DSC00009.jpg.html)
-
Hello and welcome to the club :)
-
Thanks Marko ;)
-
Welcome! I´ve ordered some parts from you via MX5Nutz by the same username, great stuff ;)