/*
* 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 - PW5 alliance votes.
Airline Mogul Forum
Airline Mogul => Bugs => Topic started by: cooperdan on April 10, 2008, 11:15:38 am
-
Well very simply i cant vote.
If the votes are yes=0 and no=0 what will happen?
-
should be in General Chat anyway
-
should be in General Chat anyway
Why don't you leave it for us to decide?
-
:lol: ! Sorry anyway, i'll answer his question. If no one votes, the person is declined :D
-
Is this a bug then. cos when i try to vote it just keeps on saying vote failed!
-
please click "back", then scroll down a couple of rows and read the "allaince vote [W4]" topic.
-
Thanks dan but when will it be sorted out?
-
hmm.... depends on the consciousness (or noun for somber) of one of our staff member :lol:
Seriously, it should be solved soon.
-
Yeah dan i tell you what though your sense of humour by the looks of it is very dark and organizied.
lol just kidding thanks for ya help! :)