/* * 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; } } } } }
ABZ Aberdeen 0
ARN Stockholm-Arlanda 0
ATH Athens 0
BFS Belfast Intl 0
BHX Birmingham 0
BLK Blackpool 0
BOH Bournemouth 0
DME Moscow Domodedovo 0
EDI Edinburgh 1
FCO Rome 0
FRA Frankfurt 1
GVA Geneva 1
HAM Hamburg 1
HEL Helsinki 0
LCY London City 1
LIS Lisbon Portela 0
LTN London Luton 0
MAN Manchester 0
MUC Munich 0
MXP Milan Malpensa 0
PRG Prague Ruzyne 0
STR Stuttgart 1
SVO Moscow Sheremetyevo 0
TLV Tel Aviv-Ben Gurion Airport 0
VIE Vienna 0
ZRH Zurich 8