website view index.php @ rev 1318
Try to fix Rolling date on the main pages after commit #1299.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 10 14:35:05 2017 +0300 (2017-06-10) |
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 }