Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/accountaction/accountaction.php
<?php
include_once "../../../site.class.php";
include_once $PATH_TO_CODE."/script/connect.php";
include_once $PATH_TO_CODE."/modules/dungeon/dungeonconstante.class.php";
include_once $PATH_TO_CODE."/modules/dungeon/objectmanager.class.php";
include_once $PATH_TO_CODE."/modules/dungeon/dungeonfunction.php";

include_once $PATH_TO_CODE."/script/disconnect.php";
beginPhpSession($locPlayerId);
closeCurrentSession();

$locNewLanguage = getGetPostWithNoEmpty("newLanguage", false);
if($locNewLanguage) {
	dungeonInitLanguage($locNewLanguage);
	global $gloObjectManager;
	$gloObjectManager->getPlayer($locPlayerId)->setLanguage($locNewLanguage);
	echo dgettext("dungeon", "new language is ")."'$locNewLanguage'";
}
disconnect();
?>
Return current item: PhpBlock