-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
45 lines (43 loc) · 1.09 KB
/
index.php
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
<?php
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
switch ($lang) {
case "bs":
echo "<meta http-equiv='refresh' content='0; URL=bs/'>";
break;
case "cn":
echo "<meta http-equiv='refresh' content='0; URL=cn/'>";
break;
case "da":
echo "<meta http-equiv='refresh' content='0; URL=da/'>";
break;
case "de":
echo "<meta http-equiv='refresh' content='0; URL=de/'>";
break;
case "en":
echo "<meta http-equiv='refresh' content='0; URL=en/'>";
break;
case "es":
echo "<meta http-equiv='refresh' content='0; URL=es/'>";
break;
case "fr":
echo "<meta http-equiv='refresh' content='0; URL=fr/'>";
break;
case "id":
echo "<meta http-equiv='refresh' content='0; URL=id/'>";
break;
case "it":
echo "<meta http-equiv='refresh' content='0; URL=it/'>";
break;
case "ja":
echo "<meta http-equiv='refresh' content='0; URL=ja/'>";
break;
case "pt":
echo "<meta http-equiv='refresh' content='0; URL=pt/'>";
break;
case "ru":
echo "<meta http-equiv='refresh' content='0; URL=ru/'>";
break;
default:
echo "<meta http-equiv='refresh' content='0; URL=en/'>";
break;
}