diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1 +1,12 @@ -<?php header('Location: /en/'); die;
\ No newline at end of file +<?php +/** +*/ + +require_once 'langs.inc.php'; +require_once 'localeDetection.class.php'; + +$locale = new ChooseLocale(array_keys($langs)); + +$locale->setDefaultLocale('en'); + +header(sprintf('Location: /%s/', $locale->getCompatibleLocale()));
\ No newline at end of file |