/* * 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; } } } } }
Let me know what you think about the following. My idea is to make it easier to swap aircraft on routes. At the moment when you buy a new aircraft to use on existing routes, you have to close all of the routes then restart them all using the new aircraft. I may be a good idea for a simple aircraft swap option to be made on the edit route option.This is called hotswap, and it has just been beta-tested. There are still some minor an major bugs to be fixed, but it will be implemented relatively soon.
Secondly it would be good to see certain worlds that have a ready given scenarios to play with, for example the goverment of a country requires you to set up a national airline, it must have connections to the following places andd have carried (so many) passangers by the year (...) to be profitable for the government.I like that idea, but I think it would be hard to code into the game. Currently the game simulates an open skies agreement, so you can fly wherever you want without limitations. You could make a private world and require of the players to follow a set of guidelines, but of course it is not as fun as what you suggested.
See what you think guys and let me know.Thanks to you for coming with good suggestions :D
Many thanks, Alex.