"de/index.html", "en"=>"en/index.html"); $standard_sprache = "de"; if(empty($str)) { $sprache = $standard_sprache; } else { $temp = explode(",", $str); $temp2 = explode("-", $temp[0]); if(array_key_exists($temp2[0], $sprachen)) { $sprache = $temp2[0]; } else { $sprache = $standard_sprache; } } return $sprachen[$sprache]; } header("Location: ".Weiche($_SERVER["HTTP_ACCEPT_LANGUAGE"]).""); exit(); ?>