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'); ?>