website view index.php @ rev 1344

Resize balinor logo to 120px
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 22 23:02:15 2021 +0100 (16 months ago)
parents de926b623824
children
line source
1 <?php
3 $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
5 switch ($lang) {
6 case "bs":
7 echo "<meta http-equiv='refresh' content='0; URL=bs/'>";
8 break;
9 case "cn":
10 echo "<meta http-equiv='refresh' content='0; URL=cn/'>";
11 break;
12 case "da":
13 echo "<meta http-equiv='refresh' content='0; URL=da/'>";
14 break;
15 case "de":
16 echo "<meta http-equiv='refresh' content='0; URL=de/'>";
17 break;
18 case "en":
19 echo "<meta http-equiv='refresh' content='0; URL=en/'>";
20 break;
21 case "es":
22 echo "<meta http-equiv='refresh' content='0; URL=es/'>";
23 break;
24 case "fr":
25 echo "<meta http-equiv='refresh' content='0; URL=fr/'>";
26 break;
27 case "id":
28 echo "<meta http-equiv='refresh' content='0; URL=id/'>";
29 break;
30 case "it":
31 echo "<meta http-equiv='refresh' content='0; URL=it/'>";
32 break;
33 case "ja":
34 echo "<meta http-equiv='refresh' content='0; URL=ja/'>";
35 break;
36 case "pt":
37 echo "<meta http-equiv='refresh' content='0; URL=pt/'>";
38 break;
39 case "ru":
40 echo "<meta http-equiv='refresh' content='0; URL=ru/'>";
41 break;
42 default:
43 echo "<meta http-equiv='refresh' content='0; URL=en/'>";
44 break;
45 }