boinc/html/forum/lang.php

13 lines
384 B
PHP

<?php
require_once('forum.inc');
require_once('../util.inc');
if (array_key_exists('id', $_GET) && $_GET['id'] > 0) {
$lang = getLanguage($_GET['id']);
$_SESSION['lang']['id'] = $lang->langID;
$_SESSION['lang']['charset'] = $lang->charset;
}
header('Location: http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PATH_INFO'], 0, strrpos($_SERVER['PATH_INFO'], '/')).'/index.php');
?>