mirror of https://github.com/BOINC/boinc.git
12 lines
325 B
PHP
12 lines
325 B
PHP
<?php
|
|
require_once("../html/inc/translation.inc");
|
|
$languages = get_supported_languages();
|
|
$lang = $_GET['lang'];
|
|
if (!in_array($lang, $languages) && $lang!="auto" && $lang!="en") {
|
|
echo "Language $lang is not supported";
|
|
} else {
|
|
setcookie('lang', $lang, time()+3600*24*365);
|
|
header('Location: index.php');
|
|
}
|
|
?>
|