/* * 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; } } } } }
WERE THE FIRST AMERICANS ACTUALLY ABORIGINES?
A recent genetic study is threatening to transform theories about who the original Native Americans were after finding certain tribes in the Amazon are related to Aborigines in Australia.
The findings suggest America may have actually experienced multiple waves of migration thousands of years ago, rather than just one that spread down through the continent from the north.
Researchers found people belonging to the SuruĂ, Karitiana and Xavante peoples in the Amazon are more closely related to indigenous populations in Australasia than any other modern group.
Australian Aborigines, together with indigenous populations in New Guinea and the Andaman Islands, are thought to be descended from one of the earliest groups of modern humans to migrate out of Africa around 60,000 years ago.
They are thought to have been a sea faring people who were able to hop between the islands that extend from Asia to Australia.
The new findings suggest their descendants may have ranged far further and could have crossed the vast ocean expanse between Australia and south America.
However, the researchers say they could have also travelled across ice sheets to the north.