/*
* 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 - Foreign hubs???
Airline Mogul Forum
Airline Mogul => General Chat => Topic started by: ALEKS_ODS on April 07, 2008, 10:21:20 am
-
In the world 6 we have 1 foreign and total of 7 hubs. What does foreign hub means? and what are the effects?
-
Foreign hubs are hubs outside your base continent
-
You can open a hub outside of your starting region/continent. For instance, if you're based in Asia, you can open one hub in Europe.
"Foreign" hubs count as 2 against the limit. So, in my previous example, you could have 7 bases in Asia OR 5 bases in Asia and 1 in another continent.
-
see this thread:
http://www.stephenm.org/forum/viewtopic.php?t=5884
-
see this thread:
http://www.stephenm.org/forum/viewtopic.php?t=5884
Self promoting while the thread is not completely accurate :wink: Foreign Hub counts as 2 against the total overall.
-
Did it change to this with the recent update?
-
Did it change to this with the recent update?
Yes. Before Multiworlds an airline could only haves bases in a single continent (or region).
-
so i can only have 7 hubs
-
it depend on what your world says
-
so i can only have 7 hubs
What do you mean only? That's more than we've ever been allowed before..
Also not necessarily 7 hubs- an overseas one counts as two , so you can either have:
7 hubs in your own continent,
or
5 'local' and one overseas hub.