Public feed #377509

Stuff

public text v1 · immutable
Raw Edit
·published 2007-03-01 20:33 UTC
rendered paste body
<?php


$langues = explode(",",$HTTP_ACCEPT_LANGUAGE);

foreach($langues as $langue) {
	$langue = strtolower(substr(chop($langue),0,2));

	if ($langue == "fr") {
		header("location:#URL_RUBRIQUE{1}");
		die();
	} else if ($langue == "en") {
		header("location:#URL_RUBRIQUE{4}");
		die();
	}
	
//	echo "<li>$langue";
}
header("location:#URL_RUBRIQUE{1}");


?>

<!--on renvoie vers la rubrique secteur de langue choisie en preference par le navigateur -->