/* * 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; } } } } }
I've fixed the bug of unlimited ticket prices, set an upper limit of €1,750 as the maximum ticket price.
All route exceeding these have been removed. Anyone with slots or aircraft hours that are off let me know I have an idea who has been feeding themselves with over the top revenues. :)
I think it's a bad idea :( the maximum ticket price should be 5,000
I don't know if it is possible, but i think it would be a good idea to make the max fare depend on the length of the route to be flown.
Like this:
0nm-4999nm -> max. ticket price 1750€
>5000nm -> max. ticket price 5000€
This would make intercontinental flights more profitable than domestic flights! Otherwise i see intercontinental flights being just the last alternative to earn money when the domestics are too crowded with airlines. :wink:
I've fixed the bug of unlimited ticket prices, set an upper limit of €1,750 as the maximum ticket price.
All route exceeding these have been removed. Anyone with slots or aircraft hours that are off let me know I have an idea who has been feeding themselves with over the top revenues. :)