1<?php 2 3use phpweb\LangChooser; 4use const releases\php84\LANGUAGES; 5 6$_SERVER['BASE_PAGE'] = 'releases/8.4/index.php'; 7require_once __DIR__ . '/common.php'; 8require_once __DIR__ . '/../../src/autoload.php'; 9 10$langChooser = new LangChooser(LANGUAGES, [], "", ""); 11[$lang,] = $langChooser->chooseCode("", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']); 12 13mirror_redirect("/releases/8.4/$lang.php"); 14