vegancheck.me/index.php
2021-08-26 15:19:39 +02:00

9 lines
No EOL
216 B
PHP

<?php
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$supportedLanguages=['en','de', 'fr'];
if(!in_array($lang,$supportedLanguages)){
$lang='en';
}
require("localization/".$lang.".php");
?>