1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| <?
session_start();
$langs=explode(",",$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
if (isset($_GET['lang'])) {
$_SESSION['lang'] = $_GET['lang'];
}
if (isset($_SESSION['lang'])) {
if ($_SESSION['lang'] == "fr") {
?>
<div>
<script>
embed_flash("./templates/images/bandeau_FR.swf", 949, 206, 'bandeau' , '#FFFFFF', '', '', 4);
</script>
</div>
<?php
}
else {
?>
<div>
<script>
embed_flash("./templates/images/bandeau.swf", 949, 206, 'bandeau' , '#FFFFFF', '', '', 4);
</script>
</div>
<?php
}
}
else {
if ($langs[0] == "fr") {
?>
<div>
<script>
embed_flash("./templates/images/bandeau_FR.swf", 949, 206, 'bandeau' , '#FFFFFF', '', '', 4);
</script>
</div>
<?php
}
else {
?>
<div>
<script>
embed_flash("./templates/images/bandeau.swf", 949, 206, 'bandeau' , '#FFFFFF', '', '', 4);
</script>
</div>
<?php
}
}
?> |
Partager