/*
* 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 - [FIXED] just a tiny bug
Airline Mogul Forum
Airline Mogul => Bugs => Topic started by: zvezdaman on August 24, 2007, 04:09:41 pm
-
Well on my rankings it says I've leased 2 A310 HGWs, but I've only leased 1...I've never had 2 A310 HGWs whatsoever :? :shock:
Its really not that big of the problem at the moment or anything its just sorta weird. it doesnt affect the game itself really.
Aside from that everything seems accurate
-
You may want to check whether you get chraged on that non-existent A313HGW
-
I dont think I get charged on it. Cuz on my View & Buy page it says I only have 1 leased A310HGW. So I think I will only be charged for one unit.
I think its just a little mistake on the rankings nutin big
-
What is your Airline ID?
-
1901
-
OK, thats fixed. Basically there were 2 lease contracts in the database for the same plane. I got rid of the oldest one.
-
oh..
well now everythiong is accurate so the bug is fixed.
thank you :D