boinc/html/forum/lang.php

12 lines
386 B
PHP

<?php
require_once('../include.php');
require_once('forum.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');
?>