/*
* 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 - The Best Airline of Year 1952 Award (America)
Airline Mogul Forum
Airline Mogul => General Chat => Topic started by: Jps on November 17, 2007, 10:04:27 am
-
I couldn't get 2 polls in one thread.. so blame the admins :lol:
America includes North, Central and South.
Post why you voted for them.
-
Put me in.
-
Can't... votes started..
sorry :lol:
-
Rr :x :x . JK :lol: :lol:
-
Vote today! :lol:
-
put me in next time OK. :lol:
-
If you're in the top 100 yes :lol:
-
Right now im the 30th biggest in the World
-
oh :lol:
-
i will vote for D Express as he's fast at plane brokerage :lol:
Hey....it's up to me to choose what i like, isn't it 8)
-
It is... Never thought he would get voted tho :shock:
-
Any polls for other continents? :lol:
I think USG members will win in all polls. :twisted:
-
You mean Asia? :lol:
I might create one... but they might lock them if I create too many threads..
-
I didn't mention 'Asia'. :lol:
-
It sounded like you wanted Asia :lol:
-
I didn't mention 'Asia'. :lol:
where'd you come from Dora? You smelled so "Asia". :twisted:
-
I didn't mention 'Asia'. :lol:
where'd you come from Dora? You smelled so "Asia". :twisted:
If I'm not wrong, HK.
-
Japan probably
-
We don't condone popularity contests because feeling would get hunt. Thus poll deleted and topic locked.