/* * 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; } } } } }
(http://airlinemogul.com/airlinelogos/5008_958.jpg)
Annyonghaseyo!
Choson Inmin Minhang is Democratic People's Republic of Korea's national airline that was founded by our glorious Great Leader Kim Jong-il. The main purpose of this airline is to provide the mighty Korean citizens (regardless of class) transport around Asia and for not-so-mighty-foreigners to visit the fantastic North Korea (or Choson). Of course, we won't fly to those capitalist nations that don't care about their worst-off citizens, for example, south Korea! Those evil south Koreans! All they care about is their "chaebol". Back to our airline...
We currently serve several Chinese destinations from the world's greatest airport... (drumrolls)... P'yongyang Sunan International Airport! Using the best planes on Earth, Soviet planes!
Now, who wouldn't want to fly with us? The real Socialists are here! Equality for all!
Annyong!
Disclaimer: I do not support Communism, Socialism, Juche or anything related to Democratic People's Republic of North Korea, and this whole post is just for the nature of the fiction airline in this game. Kamsahamnida and thank you.