[doc] website for install+presentation of AlternC
This commit is contained in:
parent
a2233d5845
commit
96992d4cde
|
@ -11,8 +11,8 @@ $uri=trim($_SERVER["REQUEST_URI"],"/");
|
||||||
// auto lang redirect:
|
// auto lang redirect:
|
||||||
if (!$uri) {
|
if (!$uri) {
|
||||||
$lang="en";
|
$lang="en";
|
||||||
if (isset($_SERVER["ACCEPT_LANGUAGE"])) {
|
if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
|
||||||
$l=substr($_SERVER["ACCEPT_LANGUAGE"],0,2);
|
$l=substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2);
|
||||||
if (isset($otherlang[$l])) {
|
if (isset($otherlang[$l])) {
|
||||||
$lang=$l;
|
$lang=$l;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue