/*
* 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;
}
}
}
}
}
Print Page - [NOT A BUG] Aircraft Range errors
Airline Mogul Forum
Airline Mogul => Bugs => Topic started by: u1guy on August 30, 2008, 05:09:44 am
-
I've noticed that when researching routes, the list of available aircraft displays aircraft that, in fact, are incapable of flying the route.
For example, I purchased a BAe Super 748 as it was listed of being capable - this is the a/c data:
Super 748 58 0 244 1795 2004 2 2 0.32 ?9,161,622 RR Dart Rda.7 Mk 552-2 140.00 (1795 being the range)
However, having realised that the a/c could not be selected for the route, I leased it out. Looking at the a/c info, it's data is in fact:
Aircraft Name Super 748
Seats 58
Cargo 0
Speed 244
Range 845
Withdrawn 2004
Cockpit Crew 2
Flight Attendants 2
Turn Time 0.27
Engines RR Dart 543-2
Fuel Usage 140
Can this error please be fixed - it has also occurred with the BAe ATP and Fokker 70.
-
The Super 748 has three engine variants, each with different ranges.
-
Not a bug. You only need to buy the correct variant(s).