fix'd myself :3,
as far as i can tell/think this should work in most cases.
PHP Code:
foreach ($_FILES as $file){
if(count(explode(".", strtolower($file['name']))) > 2 ){
die('what are you trying to pull?. cant upload double extensions.');
}
if (!(in_array(end(explode(".", strtolower($file["name"]))), $filetypes))){
die($file["name"] . " is not uploadible");
}
}
________
GLASS PIPE SET