TeleQom.org/403.php

7 lines
242 B
PHP
Raw Normal View History

2023-03-15 19:53:04 +00:00
<?php
$language = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
echo($language);
$accept = ['fr', 'en'];
$language = in_array($language, $accept) ? $language : 'fr';
header("location:/pages/{$language}/err/403.html");
?>